Trigger, revive dead trees

Discussion in 'World Editor Help' started by italocolt, Jan 26, 2010.

  1. italocolt New Member

    How can I make a trigger that every 24h of the game time, revive all dead trees
  2. Komaqtion You can change this now in User CP.

    24 hours ?!

    You mean like every in-game day ? :eek:

    If so, then something like this should work ;)

    Trigger:
    • Revive Trees
      • Events
        • Game - The in-game time of day becomes Equal to 6.00
      • 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
                • ((Picked destructible) is dead) Equal to True
              • Then - Actions
                • Destructible - Resurrect (Picked destructible) with (Max life of (Picked destructible)) life and Show birth animation
              • Else - Actions


    If not, then just change the event to whatever you want ;)
  3. italocolt New Member

    Thanks mann ;D is that than I want!!!!
  4. Xan_Kriegor I can change this now in User CP.

    Minor issue

    I'm not entirely sure, but aren't there other destructibles that aren't trees that this would resurrect? My (somewhat weak, but should work) solution is that there's an item ability that I think is sold from the ladder Night Elf shop, some item that regrows trees in a certain radius around the caster. Just change the AoE to global (i.e. 99,999) and create a dummy unit that casts it every 24 hours.

    Hopefully that helps! :)
  5. Komaqtion You can change this now in User CP.

    Or, you could just simply check whether the picked destructible is the tree type you use in you map ;)

Share This Page