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
Split Dimension v1.6b.w3x
Variables
Initialization
Assign Hashtable
Spell
Split Dimension start
Split Dimension 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.
Name
Type
is_array
initial_value
Hashtable_Split_Dimension
hashtable
No
Point1
location
No
Point_Split_Dimension
location
Yes
Split_Dimension_Group
group
No
Temp_Integer
integer
No
Assign Hashtable
Events
Map initialization
Conditions
Actions
Hashtable - Create a hashtable
Set Variable Set Hashtable_Split_Dimension = (Last created hashtable)
Split Dimension start
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Split Dimension
Actions
Hashtable - Save 11 as (Key loop.) of (Key (Triggering unit).) in Hashtable_Split_Dimension .
Hashtable - Save Handle Of (Target unit of ability being cast) as (Key target.) of (Key (Triggering unit).) in Hashtable_Split_Dimension .
Unit Group - Add (Triggering unit) to Split_Dimension_Group
Trigger - Turn on Split_Dimension_loop <gen>
Split Dimension loop
Events
Time - Every 0.15 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Split_Dimension_Group is empty) Equal to True
Then - Actions
Trigger - Turn off (This trigger)
Else - Actions
Unit Group - Pick every unit in Split_Dimension_Group and do (Actions)
Loop - Actions
Set Variable Set Temp_Integer = (Load (Key loop.) of (Key (Picked unit).) from Hashtable_Split_Dimension.)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Temp_Integer Greater than 0
Then - Actions
Set Variable Set Point_Split_Dimension[0] = (Position of (Picked unit))
Set Variable Set Point_Split_Dimension[1] = (Position of (Load (Key target.) of (Key (Picked unit).) in Hashtable_Split_Dimension.))
Set Variable Set Point_Split_Dimension[2] = (Point_Split_Dimension[0] offset by 450.00 towards (Random real number between 0 and 360.00) degrees.)
Special Effect - Create a special effect at Point_Split_Dimension[1] using Abilities\Spells\Items\AIil\AIilTarget.mdl
Special Effect - Destroy (Last created special effect)
Unit - Move (Load (Key target.) of (Key (Picked unit).) in Hashtable_Split_Dimension.) instantly to Point_Split_Dimension[2]
Unit - Cause (Picked unit) to damage (Load (Key target.) of (Key (Picked unit).) in Hashtable_Split_Dimension.) , dealing 60.00 damage of attack type Spells and damage type Normal
Set Variable Set Temp_Integer = (Temp_Integer - 1)
Hashtable - Save Temp_Integer as (Key loop.) of (Key (Picked unit).) in Hashtable_Split_Dimension .
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.