Ressurection-Type Ability for Trees?

Status
Not open for further replies.
Level 4
Joined
Jul 14, 2012
Messages
100
Hi, so I'm trying to make an ability that revives dead trees. Is this possible? I've tried doing it but it doesnt seem to work. I made it an Item ability on an Item i called Fertilizer. But when i click the Item, nothing happens.
 
  • Ressurect Trees
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Ressurect Trees
    • Actions
      • Set Temp_Point = (Position of (Triggering unit))
      • Destructible - Pick every destructible within 300.00 of Temp_Point and do (Actions)
        • Loop - Actions
          • Destructible - Resurrect (Picked destructible) with (Max life of (Picked destructible)) life and Show birth animation
      • Custom script: call RemoveLocation(udg_Temp_Point)
That should do the trick...
Though it might ressurect other destructibles because it does not pick specific types of destructibles, guess you can do it yourself.
 
  • Ressurect Trees
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Ressurect Trees
    • Actions
      • Set Temp_Point = (Position of (Triggering unit))
      • Destructible - Pick every destructible within 300.00 of Temp_Point and do (Actions)
        • Loop - Actions
          • Destructible - Resurrect (Picked destructible) with (Max life of (Picked destructible)) life and Show birth animation
      • Custom script: call RemoveLocation(udg_Temp_Point)
That should do the trick...
Though it might ressurect other destructibles because it does not pick specific types of destructibles, guess you can do it yourself.

Nice it worked! Thanks
 
Status
Not open for further replies.
Back
Top