• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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.
 
Level 8
Joined
Dec 20, 2007
Messages
128
  • 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.
 
Level 4
Joined
Jul 14, 2012
Messages
100
  • 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.
Top