• 🏆 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!

[Trigger] Regrow Trees

Status
Not open for further replies.
Level 4
Joined
May 3, 2008
Messages
51
Okay guys... This is what I need someone to do for me:

First of all, I have no idea which basic spell I could use for this...
Something with a targeted area... (Please tell me...)


Okay, the spell should regrow all dead trees in the targeted area.
I tried around some time, but I didn't get it working...

I don't know if some of you know that spell - It's from Tree Tag


Thanks!!

EDIT: ****!! I wanted to post in Requests, but then I forgot it ;( Sorry!! Mods: move plz!! very sorry...
 
  • Regrow Trees
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to (==) Regrow Trees
    • Actions
      • Set TempPoint = (Target point of ability being cast)
      • Destructible - Pick every destructible within 256.00 of TempPoint and do (Actions)
        • Loop - Actions
          • Multiple FunctionsIf (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
      • Custom script: call RemoveLocation(udg_TempPoint)
You might want to do some kind of check to see if the destructable is actually a tree as well, because this also revives boxes and stuff.
 
Status
Not open for further replies.
Top