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
Charge.w3x
Variables
Spell
Charge
Charge HashTable
Charge start
Charge loop
Níže zapište kód vlastního skriptu
Name
Type
is_array
initial_value
HashTable
hashtable
No
Points
location
Yes
UnitGroup
group
No
Charge HashTable
Events
Map initialization
Conditions
Actions
Hashtable - Create a hashtable
Set Variable Set HashTable = (Last created hashtable)
Charge start
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Charge!
Actions
Hashtable - Save Handle Of (Target unit of ability being cast) as (Key target.) of (Key (Triggering unit).) in HashTable .
Unit Group - Add (Triggering unit) to UnitGroup
Unit - Turn collision for (Triggering unit) Off .
Trigger - Turn on Charge_loop <gen>
Charge loop
Events
Time - Every 0.03 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(UnitGroup is empty) Equal to True
Then - Actions
Trigger - Turn off (This trigger)
Else - Actions
Unit Group - Pick every unit in UnitGroup and do (Actions)
Loop - Actions
Set Variable Set Points[1] = (Position of (Picked unit))
Set Variable Set Points[2] = (Position of (Load (Key target.) of (Key (Picked unit).) in HashTable.))
Set Variable Set Points[3] = (Points[1] offset by 15.00 towards (Angle from Points[1] to Points[2]) degrees.)
Unit - Move (Picked unit) instantly to Points[3] , facing Points[2]
Special Effect - Create a special effect attached to the chest (Unexpected type: 'attachpoint') of (Picked unit) using Objects\Spawnmodels\Undead\ImpaleTargetDust\ImpaleTargetDust.mdl
Special Effect - Destroy (Last created special effect)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Distance between Points[1] and Points[2]) Less than or equal to 50.00
Then - Actions
Unit Group - Remove (Picked unit) from UnitGroup .
Unit - Turn collision for (Picked unit) On .
Animation - Change (Picked unit) 's animation speed to 100.00 % of its original speed
Animation - Play (Picked unit) 's attack 2 animation
Unit - Cause (Picked unit) to damage (Load (Key target.) of (Key (Picked unit).) in HashTable.) , dealing 300.00 damage of attack type Hero and damage type Lightning
Special Effect - Create a special effect attached to the chest (Unexpected type: 'attachpoint') of (Load (Key target.) of (Key (Picked unit).) in HashTable.) using Objects\Spawnmodels\Human\HumanBlood\BloodElfSpellThiefBlood.mdl
Special Effect - Destroy (Last created special effect)
Custom script: call RemoveLocation(udg_Points[1])
Custom script: call RemoveLocation(udg_Points[2])
Custom script: call RemoveLocation(udg_Points[3])
Hashtable - Clear all child hashtables of child (Key (Picked unit).) in HashTable .
Else - Actions
Unit Group - Pick every unit in UnitGroup and do (Actions)
Loop - Actions
Animation - Change (Picked unit) 's animation speed to 30.00 % of its original speed
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.