• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Restore Trees?

Status
Not open for further replies.

Nish

N

Nish

Hi, i wonder if there is a way to get the spell "Tranquility" to restore trees over the whole map:xxd:
 
doubleposts are not a good thing here use the edit button but:
just make the allowed target(a value at the spell in object editor(a the bottom)) to contain trees
This is absolutely erroneous. What you need to do is create a trigger in the trigger editor like this:
  • Tranquility
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Tranquility
    • Actions
      • Set Point_Variable = (Position of (Casting unit))
      • Destructible - Pick every destructible within 900.00 of Point_Variable 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_Point_Variable)
 
Restore i guess you mean resurrect?
Let's say the AoE of your spells Equals to 500.00.
Then, have a trigger
  • UnitCast
  • Events
    • Unit - A unit starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to Tranquility
  • Actions
    • Set Point1 = (Position of (Triggering unit))
    • Destructible - Pick up every destructible within 500.00 of (Point1) 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_Point1)
 
Look at the top of the world editor. Click on the big yellow 'a'. There you will find the trigger editor. Go click on 'create new trigger'. Once you have done that; add the event, condition, and events we just layed out for you.
 
Status
Not open for further replies.
Back
Top