• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Resurrect last killed tree

Status
Not open for further replies.
Level 2
Joined
Sep 18, 2009
Messages
6
As the title says,

How to ressurect the last killed tree(doodad) in this case Barren Tree Wall.

And it's gonna do it automatic not with a spell or something...

Hope someone can sort this out easy,tyty
 
Level 16
Joined
May 1, 2008
Messages
1,605
Seas =)

what about:
  • DeadTreeCheck
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
    • Actions
      • Destructible - Pick every destructible in (Playable map area) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked destructible) is dead) Equal to True
            • Then - Actions
              • Destructible - Create a Barrens Tree Wall at (Position of (Picked destructible)) facing (Random angle) with scale 1.00 and variation 0
              • Destructible - Remove (Picked destructible)
            • Else - Actions
 
Level 2
Joined
Sep 18, 2009
Messages
6
Seas =)

what about:
  • DeadTreeCheck
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
    • Actions
      • Destructible - Pick every destructible in (Playable map area) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked destructible) is dead) Equal to True
            • Then - Actions
              • Destructible - Create a Barrens Tree Wall at (Position of (Picked destructible)) facing (Random angle) with scale 1.00 and variation 0
              • Destructible - Remove (Picked destructible)
            • Else - Actions


Ty man! :)
 
Level 9
Joined
Aug 27, 2009
Messages
473

STOP!! That makes LAGG. Massive lagg!
Dont post stuff like that on the forums, if i were an admin ive -3'ed you.

Here is the good GUI:
  • ReviveTrees
    • Events
      • Destructible - A destructible within (Entire map) dies
    • Conditions
    • Actions
      • Destructible - Resurrect (Dying destructible) with (Max life of (Dying destructible)) life and Show birth animation
Or you could do:
  • ReviveTrees
    • Events
      • Destructible - A destructible within (Entire map) dies
    • Conditions
    • Actions
      • Destructible - Pick every destructible in (Entire map) and do (Actions)
        • Loop - Actions
          • Destructible - Resurrect (Picked destructible) with (Max life of (Picked destructible)) life and Show birth animation
First Trigger is probly the best. Enjoy a flawless tree revival.. (More advanced exists..)
 
Level 2
Joined
Sep 18, 2009
Messages
6
STOP!! That makes LAGG. Massive lagg!
Dont post stuff like that on the forums, if i were an admin ive -3'ed you.

Here is the good GUI:
  • ReviveTrees
    • Events
      • Destructible - A destructible within (Entire map) dies
    • Conditions
    • Actions
      • Destructible - Resurrect (Dying destructible) with (Max life of (Dying destructible)) life and Show birth animation
Or you could do:
  • ReviveTrees
    • Events
      • Destructible - A destructible within (Entire map) dies
    • Conditions
    • Actions
      • Destructible - Pick every destructible in (Entire map) and do (Actions)
        • Loop - Actions
          • Destructible - Resurrect (Picked destructible) with (Max life of (Picked destructible)) life and Show birth animation
First Trigger is probly the best. Enjoy a flawless tree revival.. (More advanced exists..)

hehe thanks :)
 
Level 5
Joined
Aug 22, 2008
Messages
123
Im sorry, but both ways are either too buggy or lagging.
The best way to solve this may be this one:

One trigger to initalize:
Code:
Resurrect doodads start
    Event
        Map initialization
    Condition
    Action
        Destructible - Pick every destructible in (Playable map area) and do (Actions)
           Actions
                Trigger - Add to Resurrect doodads <gen> the event (Destructible - (Picked destructible) dies)

One to execute the resurrection;
Code:
Resurrect doodads
    Event
    Condition
    Action
        Wait 20.00 game-time seconds
        Destructible - Resurrect (Dying destructible) with (Max life of (Dying destructible)) life and show birth animation
 
Level 2
Joined
Sep 18, 2009
Messages
6
Im sorry, but both ways are either too buggy or lagging.
The best way to solve this may be this one:

One trigger to initalize:
Code:
Resurrect doodads start
    Event
        Map initialization
    Condition
    Action
        Destructible - Pick every destructible in (Playable map area) and do (Actions)
           Actions
                Trigger - Add to Resurrect doodads <gen> the event (Destructible - (Picked destructible) dies)

One to execute the resurrection;
Code:
Resurrect doodads
    Event
    Condition
    Action
        Wait 20.00 game-time seconds
        Destructible - Resurrect (Dying destructible) with (Max life of (Dying destructible)) life and show birth animation

i will try that t00
 
Level 9
Joined
Aug 27, 2009
Messages
473
Im sorry, but both ways are either too buggy or lagging.
The best way to solve this may be this one:

One trigger to initalize:
Code:
Resurrect doodads start
    Event
        Map initialization
    Condition
    Action
        Destructible - Pick every destructible in (Playable map area) and do (Actions)
           Actions
                Trigger - Add to Resurrect doodads <gen> the event (Destructible - (Picked destructible) dies)

One to execute the resurrection;
Code:
Resurrect doodads
    Event
    Condition
    Action
        Wait 20.00 game-time seconds
        Destructible - Resurrect (Dying destructible) with (Max life of (Dying destructible)) life and show birth animation

Nice.. Even with timer! ;)
 
Status
Not open for further replies.
Top