Warcraft III World Editor Tutorial – 10: Re-Growing Trees

This tutorial will show you how to make trees re-grow once they have been cut down. Great for easy money multiplayer missions!

There are a couple ways that you can do it, I am not sure if they ALL work the same. But i’ll put them here anyway.

I will give you the triggers of each method

First Method:

Events:
Destructible Doodad – Tree Wall 0000 [gen] dies
– When a certain tree dies,

Conditions:

Actions:
Destructible Doodad – Create Tree Wall at (Center of Region 000 [gen] ) facing (Random angle) with scale 1.00 and variation 0
– creates a new tree

This will only work once – I know that for a fact.

Second Method:

Events:
Destructible Doodad – Tree Wall 0000 [gen] dies
– When a certain tree dies,

Conditions:

Actions:
Destructible Doodad – Resurrect Tree Wall 0000 [gen] with (Max life of Tree Wall 0000 [gen] ) life and Show birth animation
– Should re-create the tree every time it is cut down.

Third Method:

Events:
Time – Timer1 expires
– When a Timer expires

Conditions:

Actions:
Destructible Doodad – Create Tree Wall at (Center of Region 000 [gen] ) facing (Random angle) with scale 1.00 and variation 0
– creates a new tree in the region: ‘Region 000’

This is the safest, but you will have to create a Timer variable, and start the timer in the map initialization trigger. I do not know whether this will end up growing a forest, or delete what is already in the region and grow another tree.

To create a large number of trees that re-grow, use the second method, then after creating the tree and trigger, go back into the World Editor and simply copy the tree. The trigger should still work, but this time for all trees. One problem encountered was adding too many doodads, this would cause the triggers not to work and possibly a game crash – so be careful.

Thanks to Godspeed on the PlanetWarcraft Forums for his input with this tutorial.

Leave a Reply

Your email address will not be published. Required fields are marked *