Author Topic: How to build attacking trees  (Read 1830 times)

Exazzo

  • Guest
How to build attacking trees
« on: 22 October 2009, 06:35:23 »
Hi we are making a mod in Glest and we need to make a tree attack a human when he tries to cut it down.
is that posible or do we need to make it a "enemy" in disquise as a tree to make it work?
if any has a xml. code for it? or can help that would be awesome.

regards Kasper  .
« Last Edit: 22 October 2009, 07:06:17 by titi »

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Help Me Please v.2.0
« Reply #1 on: 22 October 2009, 07:05:50 »
No, this is not possible. You have to make an enemy unit that looks like a tree. ( xml-descriptions https://docs.megaglest.org/XML_Definitions)
Maybe you can use a scenario and lua scripting to place the trees, but there is currently no real way of making forests with attacking trees in a map.

By the way, please choose better subjet titles for your posts! ( I changed it for you , hope iots OK )
« Last Edit: 18 June 2016, 19:34:00 by filux »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: Help Me Please v.2.0
« Reply #2 on: 22 October 2009, 07:11:52 »
I believe you can simulate something like this.

You will need:
  • A unit that looks like a tree
  • A human unit with an attack skill that looks like chopping wood
  • A scripted scenario in which the player receives resources upon killing each tree unit

Basically, instead of harvesting wood, the woodcutting unit will be sent to attack the tree unit.  Then the tree unit will fight back.  When the tree unit dies, the human side will be rewarded with wood just like if it had cut down a regular tree.

Exazzo

  • Guest
Re: How to build attacking trees
« Reply #3 on: 22 October 2009, 09:16:48 »
You will need:

•A unit that looks like a tree
•A human unit with an attack skill that looks like chopping wood
•A scripted scenario in which the player receives resources upon killing each tree unit

i iz aware .
eehm. how to do that?
im this far:
making a unit NOT MOVE only hit .
thats it lol.
i iz newb

kris9700

  • Guest
Re: How to build attacking trees
« Reply #4 on: 23 October 2009, 03:44:01 »
No i dont think you can do that but good try