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

[General] Tree Auto Respawn

Status
Not open for further replies.
Level 11
Joined
Jun 20, 2009
Messages
880
  • Trigger A
    • Events
      • Map initialization
    • 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
              • (Destructible-type of (Picked destructible)) Equal to Ashenvale Tree Wall
            • Then - Actions
              • Trigger - Add to Trigger B <gen> the event (Destructible - (Picked destructible) dies)
            • Else - Actions
  • Trigger B
    • Events
    • Conditions
    • Actions
      • Wait 5.00 seconds
      • Set TempLoc = (Position of (Dying destructible))
      • Destructible - Create a Ashenvale Tree Wall at TempLoc facing (Random angle) with scale 1.00 and variation 0
      • Custom script: call RemoveLocation(udg_TempLoc)

"TempLoc" is Point variable.
 
Level 5
Joined
Oct 12, 2004
Messages
109
  • Revive Trees Setup
    • Events
      • Time - Elapsed game time is 5.00 seconds
    • Conditions
    • Actions
      • Destructible - Pick every destructible in (Entire map) and do (Actions)
        • Loop - Actions
          • Trigger - Add to RegrowTrees <gen> the event (Destructible - (Picked destructible) dies)
  • RegrowTrees
    • Events
    • Conditions
    • Actions
      • Custom script: local destructable BADTREE = GetDyingDestructable()
      • Wait 150.00 seconds
      • Custom script: call DestructableRestoreLife( BADTREE, GetDestructableMaxLife(BADTREE), true )
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
So you'll create about 200 Destructible Events every 5 seconds. 1 minute to have 3000 events...

EDIT: Sorry, I missread, my bad. bbfreak trigger should work
 
Last edited:
Status
Not open for further replies.
Top