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
rock trap.w3x
Variables
init
init var
spells
rt cast
rt effect
Entrez le code script personnalisé spécifique à la carte ci-dessous. Ce texte sera inclus dans le script de la carte après que les variables auront été déclarées et avant tout code de déclencheur.
Name
Type
is_array
initial_value
Explode
group
No
hash
hashtable
Yes
integer_time
integer
No
point3
location
No
point4
location
No
real_damage
real
No
real_range
real
No
rocks
group
No
rocks_2
group
No
unit
unit
No
init var
Events
Map initialization
Conditions
Actions
Hashtable - Create a hashtable
Set Variable Set hash[1] = (Last created hashtable)
-------- just customize the spell here : --------
-------- this is the range for entered units --------
Set Variable Set real_range = "200.00"
Set Variable Set real_damage = "500.00"
-------- this is the time during the trap stay --------
Set Variable Set integer_time = "15"
rt cast
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Falling rocks
Actions
Set Variable Set point3 = (Target point of ability being cast)
-------- create the rock --------
Unit - Create 1 . dummy for Player 1 (Red) at point3 facing (Random angle) degrees
-------- make it can fly --------
Unit - Add Crow Form to (Last created unit)
Animation - Change (Last created unit) flying height to 500.00 at 1000000000.00
Unit Group - Add (Last created unit) to rocks
-------- save the time in a hashtable --------
Hashtable - Save 15 as 1 of (Key (Last created unit).) in hash[1] .
Custom script: call RemoveLocation( udg_point3 )
rt effect
Events
Time - Every 0.25 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in rocks and do (Actions)
Loop - Actions
-------- verify that the unit's time is not equal to 0 --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Load 1 of (Key (Picked unit).) from hash[1].) Greater than 0
Then - Actions
-------- save the unit's time as unit's time-1 --------
Hashtable - Save ((Load 1 of (Key (Picked unit).) from hash[1].) - 1) as 0 of (Key (Picked unit).) in hash[1] .
Set Variable Set point4 = (Position of (Picked unit))
Set Variable Set rocks_2 = (Units within real_range of point4.)
Set Variable Set unit = (Picked unit)
Unit Group - Pick every unit in rocks_2 and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Picked unit)) Not equal to (Owner of unit)
Then - Actions
Unit - Add a 1.50 second Generic expiration timer to unit
Unit - Cause unit to damage (Picked unit) , dealing real_damage damage of attack type Spells and damage type Normal
Unit - Add Crow Form to unit
Animation - Change unit flying height to 0.00 at 1500.00
Unit - Kill unit
Unit Group - Remove unit from Explode .
Else - Actions
Custom script: call DestroyGroup( udg_rocks_2 )
Custom script: call RemoveLocation( udg_point4 )
Else - Actions
Unit Group - Remove (Picked unit) from Explode .
Unit - Kill (Picked unit)
Hashtable - Clear all child hashtables of child (Key (Picked unit).) in hash[1] .
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.