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
Archery Spirits.w3x
Variables
TESTING ONLY
Visible map
The Spell
Archery Spirits A
Archery Spirits B
Archery Spirits C
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
AS_P1
location
No
AS_P2
location
No
AS_Random
integer
No
AS_Spirit_Count
integer
No
Visible map
Events
Map initialization
Conditions
Actions
Visibility - Disable fog of war
Visibility - Disable black mask
Archery Spirits A
Events
Unit - A unit Dies
Conditions
(Level of Archery Spirits for (Killing unit)) Greater than or equal to 1
Actions
Set Variable Set AS_Spirit_Count = (AS_Spirit_Count + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
AS_Spirit_Count Equal to 6
Then - Actions
Set Variable Set AS_Spirit_Count = (AS_Spirit_Count - 1)
Special Effect - Create a special effect attached to the origin (Unexpected type: 'attachpoint') of (Killing unit) using Abilities\Spells\Undead\DeathCoil\DeathCoilSpecialArt.mdl
Special Effect - Destroy (Last created special effect)
Unit - Set life of (Killing unit) to ((Life of (Killing unit)) + (Real((20 x (Level of Archery Spirits for (Killing unit))))))
Else - Actions
Set Variable Set AS_P1 = (Position of (Killing unit))
Floating Text - Create floating text that reads ((String(AS_Spirit_Count)) + !) at AS_P1 with Z offset 0 , using font size 10 , color ( 75.00 %, 75.00 %, 75.00 %), and 0 % transparency
Floating Text - Hide (Last created floating text) for (All players matching ((Owner of (Killing unit)) Not equal to (Matching player)).)
Floating Text - Change (Last created floating text) : Disable permanence
Floating Text - Change (Last created floating text) : Disable suspend state
Floating Text - Set the velocity of (Last created floating text) to 64 towards 90 degrees
Floating Text - Change the lifespan of (Last created floating text) to 5 seconds
Floating Text - Change the fading age of (Last created floating text) to 4 seconds
Custom script: call RemoveLocation(udg_AS_P1)
Wait 20.00 seconds
Set Variable Set AS_P1 = (Position of (Killing unit))
Set Variable Set AS_Spirit_Count = (AS_Spirit_Count - 1)
Floating Text - Create floating text that reads ((String(AS_Spirit_Count)) + !) at AS_P1 with Z offset 0 , using font size 10 , color ( 75.00 %, 75.00 %, 75.00 %), and 0 % transparency
Floating Text - Change (Last created floating text) : Disable permanence
Floating Text - Change (Last created floating text) : Disable suspend state
Floating Text - Hide (Last created floating text) for (All players matching ((Owner of (Killing unit)) Not equal to (Matching player)).)
Floating Text - Set the velocity of (Last created floating text) to 64 towards 90 degrees
Floating Text - Change the lifespan of (Last created floating text) to 5 seconds
Floating Text - Change the fading age of (Last created floating text) to 4 seconds
Custom script: call RemoveLocation(udg_AS_P1)
Archery Spirits B
Events
Unit - A unit Is attacked
Conditions
(Level of Archery Spirits for (Triggering unit)) Greater than 0
Actions
Set Variable Set AS_Random = (Random integer number between 1 and 100)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
AS_Random Less than or equal to ((Level of Archery Spirits for (Triggering unit)) x 5)
AS_Spirit_Count Greater than 0
Then - Actions
Set Variable Set AS_P1 = (Position of (Triggering unit))
For each (Integer A) from 1 to AS_Spirit_Count , do (Actions)
Loop - Actions
Set Variable Set AS_P2 = (AS_P1 offset by 150.00 towards ((360.00 / (Real(AS_Spirit_Count))) x (Real((Integer A)))) degrees.)
Special Effect - Create a special effect at AS_P2 using Abilities\Spells\Human\Feedback\ArcaneTowerAttack.mdl
Special Effect - Destroy (Last created special effect)
Unit - Create 1 . Archer Spirit for (Owner of (Triggering unit)) at AS_P2 facing (Facing of (Attacking unit)) degrees
Unit - Order (Last created unit) to Attack . (Attacking unit)
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Custom script: call RemoveLocation(udg_AS_P2)
Custom script: call RemoveLocation(udg_AS_P1)
Trigger - Turn off (This trigger)
Wait 2.00 seconds
Trigger - Turn on (This trigger)
Else - Actions
Archery Spirits C
Events
Unit - A unit Dies
Conditions
(Unit-type of (Triggering unit)) Equal to Archer Spirit
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.