raise tree's

X-maul

AKA: Demtrod
Reaction score
201
i got an proplem with my map, i need my tree's to respawn 1 sec after they dies.... how to do that?
 

UndeadDragon

Super Moderator
Reaction score
447
Event: Destructable Dies

Condition: Type of doodad Equal to Tree

Actions: Create 1 Tree at position of dying destructable.

That's basically it, but I don't have WE open atm.
 

X-maul

AKA: Demtrod
Reaction score
201
well now my trigger looks like this:
Code:
Regrow trees
    Events
        Destructible - A destructible within (Entire map) dies
    Conditions
        (Destructible-type of (Dying destructible)) Equal to Dalaran Ruins Tree Wall
    Actions
        Wait 1.00 seconds
        Destructible - Create a (Destructible-type of (Dying destructible)) at (Position of (Dying destructible)) facing (Random angle) with scale (Random real number between 0.80 and 1.20) and variation (Integer((Random real number between 0.00 and 10.00)))
 

Tholdalf

New Member
Reaction score
2
You can always use this system with some tweaks
Code:
tree ressurection
    Events
        Time - Every 15.00 seconds of game time
    Conditions
    Actions
        Destructible - Pick every destructible in (Playable map area) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Destructible-type of (Picked destructible)) Equal to Dungeon Tree Wall
                        ((Picked destructible) is dead) Equal to True
                    Then - Actions
                        Destructible - Resurrect (Picked destructible) with (Max life of (Picked destructible)) life and Hide birth animation
                    Else - Actions
                        Do nothing
 

Kazuga

Let the game begin...
Reaction score
110
Would be better to combine those triggers? It's better to use the event when the tree dies since it's less risk for lagg, also it's better to ressruct the tree instead of creating a new one at the same point especially when your not seting a point before and removing it after use.
 

Kazuga

Let the game begin...
Reaction score
110
Yes a trigger can run multiple times even while running. Otherwise no spell would be able to be mui.
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> Destructible - A destructible within (Entire map) dies

Did you read the hint that shows when selecting that event?
It only works on the first 64 destructibles it finds...


Code:
Trees Regrow
    Events
    Conditions
    Actions
        Wait 20.00 seconds
        Destructible - Resurrect (Dying destructible) with (Max life of (Dying destructible)) life and Show birth animation
Code:
Trees Start
    Events
        Map initialization
    Conditions
    Actions
        Destructible - Pick every destructible in (Playable map area) and do (Actions)
            Loop - Actions
                Trigger - Add to Trees Regrow <gen> the event (Destructible - (Picked destructible) dies)

Optionally with some condition in the "start" trigger to check for tree types before adding the event,
in case there are doors or other destructibles that should no revive.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top