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
133$+ $P31_1_ 3VAAR.w3x
Variables
Initialization
Untitled Trigger 003
Untitled Trigger 001
Untitled Trigger 002
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
caster
unit
Yes
counter
integer
Yes
index
integer
No
loop
integer
No
string
string
Yes
string2
string
Yes
text
texttag
Yes
Untitled Trigger 003
Events
Map initialization
Conditions
Actions
Set Variable Set string2[1] = "H"
Set Variable Set string2[2] = "A"
Set Variable Set string2[3] = "P"
Set Variable Set string2[4] = "P"
Set Variable Set string2[5] = "Y"
Set Variable Set string2[6] = " "
Set Variable Set string2[7] = "A"
Set Variable Set string2[8] = "P"
Set Variable Set string2[9] = "R"
Set Variable Set string2[10] = "I"
Set Variable Set string2[11] = "L"
Set Variable Set string2[12] = " "
Set Variable Set string2[13] = "F"
Set Variable Set string2[14] = "O"
Set Variable Set string2[15] = "O"
Set Variable Set string2[16] = "L"
Set Variable Set string2[17] = "S"
Set Variable Set string2[18] = " "
Set Variable Set string2[19] = "D"
Set Variable Set string2[20] = "A"
Set Variable Set string2[21] = "Y"
Set Variable Set string2[22] = "!"
Untitled Trigger 001
Events
Unit - A unit Starts the effect of an ability
Conditions
Actions
Set Variable Set index = (index + 1)
Set Variable Set counter[index] = "0"
Floating Text - Create floating text that reads above (Triggering unit) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Set Variable Set caster[index] = (Triggering unit)
Set Variable Set text[index] = (Last created floating text)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
index Equal to 1
Then - Actions
Trigger - Turn on Untitled_Trigger_002 <gen>
Else - Actions
Untitled Trigger 002
Events
Time - Every 0.14 seconds of game time
Conditions
Actions
For each (Integer loop ) from 1 to index , do (Actions)
Loop - Actions
Set Variable Set counter[loop] = (counter[loop] + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
counter[loop] Less than 23
Then - Actions
Set Variable Set string[loop] = (string[loop] + string2[counter[loop]])
Floating Text - Change text of text[loop] to string[loop] using font size 10
Else - Actions
Floating Text - Change the position of text[loop] to caster[loop] with Z offset 0 .
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
counter[loop] Greater than or equal to 50
Then - Actions
Floating Text - Destroy text[loop]
Set Variable Set counter[loop] = counter[index]
Set Variable Set string[loop] = string[index]
Set Variable Set text[loop] = text[index]
Set Variable Set caster[loop] = caster[index]
Set Variable Set caster[index] = No unit
Set Variable Set index = (index - 1)
Set Variable Set loop = (loop - 1)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
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.