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
(Spell) Firebolts.w3x
Variables
Firebolts
Firebolts
Firebolts Loop
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. (This map save with X design Pack v1.06)
Name
Type
is_array
initial_value
B9999_CasterLoc
location
No
B9999_Counter
integer
No
B9999_GroupPick
group
No
B9999_RandomTarg
unit
No
Firebolts
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Firebolts
Actions
Set Variable Set B9999_Counter = "0"
Set Variable Set B9999_CasterLoc = (Position of (Casting unit))
Unit Group - Pick every unit in (Units within 700.00 of B9999_CasterLoc matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) is A Hero) Equal to False))).) and do (Actions)
Loop - Actions
Unit Group - Add (Picked unit) to B9999_GroupPick
Trigger - Turn on Firebolts_Loop <gen>
Trigger - Turn off (This trigger)
Firebolts Loop
Events
Time - Every 0.30 seconds of game time
Conditions
Actions
Set Variable Set B9999_Counter = (B9999_Counter + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
B9999_Counter Less than 4
Then - Actions
Unit Group - Pick every unit in (Random 1 units from B9999_GroupPick) and do (Actions)
Loop - Actions
Set Variable Set B9999_RandomTarg = (Picked unit)
Unit Group - Remove B9999_RandomTarg from B9999_GroupPick .
Unit - Create 1 . Footman for Player 1 (Red) at B9999_CasterLoc facing Default building facing degrees
Unit - Add Firebolt (Neutral Hostile) to (Last created unit)
Unit - Order (Last created unit) to Neutral - Firebolt . B9999_RandomTarg
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
B9999_Counter Equal to 4
Then - Actions
Trigger - Turn on Firebolts <gen>
Set Variable Set B9999_RandomTarg = No unit
Unit Group - Remove all units from B9999_GroupPick .
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.