• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Get your art tools and paintbrushes ready and enter Hive's 34th Texturing Contest: Void! Click here to enter!

RestoreTrees after period

This bundle is marked as lacking. It fails to meet the standard requirements and may only have minor use.
Simple JASS that will check on every 15 seconds and regrow/restore all DESIRED destructibles, like trees;

I mostly use it for trees, but also work for any other destructibles;

1. To add or remove a desired destructible ID to the trigger;
"== 'LTlt' or treeId == 'ATtr' or treeId == 'ATtc' then"
(LTlt,ATtr ,ATtc) = Currently set for 'Summer Tree', 'Ashenvale Tree' and 'Ashenvale Canopy Tree';
[Press Ctrl + D on WE to check ID's]

2. To change the interval when the trigger will regrow the destructibles.
"call TriggerSleepAction(15.00)"
(Is set to 15 seconds)
Contents

RestoreTrees (Map)

Reviews
Antares
You can determine whether a destructable is a tree by ordering a dummy to harvest it and checking whether the command is successful. function IsDestructableTree takes destructable dest returns boolean return IssueTargetOrder(dummy, "harvest"...

Antares

Spell Reviewer
Level 33
Joined
Dec 13, 2009
Messages
1,027
You can determine whether a destructable is a tree by ordering a dummy to harvest it and checking whether the command is successful.
JASS:
function IsDestructableTree takes destructable dest returns boolean
    return IssueTargetOrder(dummy, "harvest", dest)
endfunction
Like with your Lumber Mill script, you want to put the configurables at the top of your script. In addition, I think RestoreTreesSetup and RestoreTrees should be a single script instead of split into two.

While a system like this has some use, it is unfortunately too simplistic and there are already tree revival systems on hive that are more complete.

Rejected
 
Top