• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Restore Trees?

Status
Not open for further replies.
Level 2
Joined
Jul 4, 2009
Messages
10
Hi, i wonder if there is a way to get the spell "Tranquility" to restore trees over the whole map:xxd:
 
Level 7
Joined
Feb 26, 2005
Messages
210
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)
 
Level 7
Joined
Feb 26, 2005
Messages
210
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.
Top