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!
You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
Triggers
Simple Destributors Replacement Triggers.w3x
Variables
Simple Destributors Replacement System
How to copy
SDRS Initialization
Destributors Replacement
Aoe tree Destroy
Aoe
Tree Replacement time
time
Enter map-specific custom script code below. This text will be included in the map script after variables are declared and before any trigger code.
Name
Type
is_array
initial_value
Destributor
destructable
Yes
Destributor_Counts
integer
No
Timer
timer
No
timer_window
timerdialog
No
To copy SDRS.
1. Be sure "Automatically create unknown variables while pasting trigger data" is enabled in the World Editor general preferences.
2.. Copy and paste the Simple Destributors replacement Cotegary.
To modify time change the event in trigger Destributors Replacement.
This map created by me. Please credit me when you using this in your map.
THANK YOU
SDRS Initialization
Events
Map initialization
Conditions
Actions
Destructible - Pick every destructible in (Playable map area) and do (Actions)
Loop - Actions
Set Variable Set Destributor_Counts = (Destributor_Counts + 1)
Set Variable Set Destributor[Destributor_Counts] = (Picked destructible)
Destributors Replacement
Events
Time - Every 30.00 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to Destributor_Counts , do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Destributor[(Integer A)] is dead) Equal to True
Then - Actions
Destructible - Create a (Destructible-type of Destributor[(Integer A)]) at (Position of Destributor[(Integer A)]) facing (Random angle) with scale 1 and variation 0
Else - Actions
Aoe
Events
Unit - A unit Begins channeling an ability
Conditions
(Ability being cast) Equal to Clear tree Aoe
Actions
Destructible - Pick every destructible within 300.00 of (Target point of ability being cast) and do (Actions)
Loop - Actions
Destructible - Kill (Picked destructible)
time
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Countdown Timer - Create a timer window for Timer with title Destributors respawn in
Set Variable Set timer_window = (Last created timer window)
Countdown Timer - Start Timer as a Repeating timer that will expire in 30 seconds
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.