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) Forked Chain Lightning.w3x
Variables
Spellpack
Untitled Trigger 001
Forked Chain Lightning
Forked Chain Lightning Timing
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
B9996_Count
integer
Yes
B9996_Cstman
unit
Yes
B9996_dummys
unit
Yes
B9996_Index
integer
No
B9996_targunit
unit
Yes
B9996_UGtarg
group
Yes
Untitled Trigger 001
Events
Map initialization
Conditions
Actions
Visibility - Disable fog of war
Visibility - Disable black mask
Uses Cloud ability but also reduces armor of the units affected. Level 7 or above units are not affected.
Forked Chain Lightning
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Forked Chain Lightning
Actions
Set Variable Set B9996_Index = (B9996_Index + 1)
Set Variable Set B9996_Count[B9996_Index] = "0"
Set Variable Set B9996_Cstman[B9996_Index] = (Casting unit)
Set Variable Set B9996_UGtarg[B9996_Index] = (Units within 300.00 of (Position of (Target unit of ability being cast)) matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) is Mechanical) Equal to False))).)
Trigger - Turn on Forked_Chain_Lightning_Timing <gen>
Forked Chain Lightning Timing
Events
Time - Every 0.10 seconds of game time
Conditions
Actions
Set Variable Set B9996_Count[B9996_Index] = (B9996_Count[B9996_Index] + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
B9996_Count[B9996_Index] Equal to 1
Then - Actions
Unit Group - Pick every unit in (Random 1 units from B9996_UGtarg[B9996_Index]) and do (Actions)
Loop - Actions
Set Variable Set B9996_targunit[12] = (Picked unit)
Set Variable Set B9996_dummys[12] = (Missing string for 'CreateUnitAtLoc')
Unit Group - Remove (Picked unit) from B9996_UGtarg[B9996_Index] .
Unit - Add Chain Lightning (Neutral Hostile) to B9996_dummys[12]
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
B9996_Count[B9996_Index] Equal to 2
Then - Actions
Unit Group - Pick every unit in (Random 1 units from B9996_UGtarg[B9996_Index]) and do (Actions)
Loop - Actions
Set Variable Set B9996_targunit[13] = (Picked unit)
Set Variable Set B9996_dummys[13] = (Missing string for 'CreateUnitAtLoc')
Unit Group - Remove (Picked unit) from B9996_UGtarg[B9996_Index] .
Unit - Add Chain Lightning (Neutral Hostile) to B9996_dummys[13]
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
B9996_Count[B9996_Index] Equal to 3
Then - Actions
Unit Group - Pick every unit in (Random 1 units from B9996_UGtarg[B9996_Index]) and do (Actions)
Loop - Actions
Set Variable Set B9996_targunit[14] = (Picked unit)
Set Variable Set B9996_dummys[14] = (Missing string for 'CreateUnitAtLoc')
Unit Group - Remove (Picked unit) from B9996_UGtarg[B9996_Index] .
Unit - Add Chain Lightning (Neutral Hostile) to B9996_dummys[14]
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
B9996_Count[B9996_Index] Equal to 4
Then - Actions
Unit - Add a 2.00 second Generic expiration timer to B9996_dummys[12]
Unit - Add a 2.00 second Generic expiration timer to B9996_dummys[13]
Unit - Add a 2.00 second Generic expiration timer to B9996_dummys[14]
Unit Group - Remove all units from B9996_UGtarg[B9996_Index] .
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
B9996_Count[B9996_Index] Equal to 6
Then - Actions
Unit - Order B9996_dummys[12] to Orc Far Seer - Chain Lightning . B9996_targunit[12]
Unit - Order B9996_dummys[13] to Orc Far Seer - Chain Lightning . B9996_targunit[13]
Unit - Order B9996_dummys[14] to Orc Far Seer - Chain Lightning . B9996_targunit[14]
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.