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
Assassins Aid.w3x
Variables
Map Stuffs
Map Init
Refresh
Messages
Assassins Aid
AA Preload
AA Effect
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
AA_A_Group
group
No
AA_Cstr_Group
group
No
AA_E_HP
real
No
AA_HPcount
real
No
AA_Loc
location
Yes
AA_Percent
real
Yes
AA_PreLoop
integer
No
Map Init
Events
Map initialization
Conditions
Actions
Visibility - Disable fog of war
Visibility - Disable black mask
Refresh
Events
Player - Player 1 (Red) skips a cinematic sequence
Conditions
Actions
Unit Group - Pick every unit in (Units owned by Player 1 (Red).) and do (Actions)
Loop - Actions
Unit - Reset ability cooldowns for (Picked unit) .
Messages
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Game - Display to (All players) for 1000000000.00 seconds the text: Press ESC to reset all ability Cooldowns.
AA Preload
Events
Map initialization
Conditions
Actions
For each (Integer AA_PreLoop ) from 1 to 4 , do (Actions)
Loop - Actions
Set Variable Set AA_Percent[AA_PreLoop] = (5.00 + (3.00 x (Real(AA_PreLoop))))
AA Effect
Events
Unit - A unit Dies
Conditions
Actions
Set Variable Set AA_Loc[1] = (Position of (Triggering unit))
Set Variable Set AA_Cstr_Group = (Units within 700.00 of AA_Loc[1] matching (((Level of Assassins Aid for (Matching unit)) Greater than 0) and (((Matching unit) is alive) Equal to True)).)
Unit Group - Pick every unit in AA_Cstr_Group and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(AA_Cstr_Group is empty) Equal to False
Then - Actions
Set Variable Set AA_E_HP = (Max life of (Triggering unit))
Special Effect - Create a special effect attached to the origin (Unexpected type: 'attachpoint') of (Triggering unit) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
Special Effect - Destroy (Last created special effect)
Set Variable Set AA_Loc[2] = (Position of (Picked unit))
Set Variable Set AA_A_Group = (Units within 700.00 of AA_Loc[2] matching ((((Matching unit) belongs to an ally of (Owner of (Picked unit)).) Equal to True) and (((Matching unit) is alive) Equal to True)).)
Set Variable Set AA_HPcount = ((AA_E_HP / AA_Percent[(Level of Assassins Aid for (Picked unit))]) / (Real((Number of units in AA_A_Group))))
Unit Group - Pick every unit in AA_A_Group and do (Actions)
Loop - Actions
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + AA_HPcount)
Special Effect - Create a special effect attached to the overhead (Unexpected type: 'attachpoint') of (Picked unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
Special Effect - Destroy (Last created special effect)
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.