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
MPI MUI Portal System.w3x
Variables
teleporter
casting
start up
Portal1
Portal2
Portal3
Portal4
Portal5
Portal6
Portal7
Portal8
Portal9
Portal10
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
portal
unit
Yes
running
boolean
Yes
summoned
unit
Yes
trigger
trigger
Yes
casting
Events
Unit - A unit Spawns a summoned unit
Conditions
(Unit-type of (Summoned unit)) Equal to position holder (spell)
Actions
Special Effect - Create a special effect attached to the origin (Unexpected type: 'attachpoint') of (Summoning unit) using Abilities\Spells\Undead\DarkRitual\DarkRitualTarget.mdl
Wait 0.20 seconds
Special Effect - Destroy (Last created special effect)
For each (Integer B) from 1 to 10 , do (Actions)
Loop - Actions
If ((Integer B) Greater than or equal to 11) then do (Remove (Summoned unit) from the game) else do (Do nothing)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
running[(Integer B)] Equal to False
Then - Actions
Set Variable Set caster[(Integer B)] = (Summoning unit)
Set Variable Set summoned[(Integer B)] = (Summoned unit)
Trigger - Run trigger[(Integer B)] (checking conditions)
Skip remaining actions
Else - Actions
Do nothing
start up
Events
Time - Elapsed game time is 0.50 seconds
Conditions
Actions
Set Variable Set trigger[1] = Portal1 <gen>
Set Variable Set trigger[2] = Portal2 <gen>
Set Variable Set trigger[3] = Portal3 <gen>
Set Variable Set trigger[4] = Portal4 <gen>
Set Variable Set trigger[5] = Portal5 <gen>
Set Variable Set trigger[6] = Portal6 <gen>
Set Variable Set trigger[7] = Portal7 <gen>
Set Variable Set trigger[8] = Portal8 <gen>
Set Variable Set trigger[9] = Portal9 <gen>
Set Variable Set trigger[10] = Portal10 <gen>
Portal1
Events
Conditions
Actions
Set Variable Set running[1] = "true"
Unit - Change ownership of caster[1] to Neutral Passive and Retain color
Unit - Make caster[1] Invulnerable
Unit - Create 1 . Portal (spell) for (Owner of summoned[1]) at ((Position of caster[1]) offset by 200.00 towards (Facing of caster[1]) degrees.) facing ((Facing of caster[1]) - 180.00) degrees
Set Variable Set portal[1] = (Last created unit)
Animation - Play portal[1] 's birth animation
Wait 7.00 seconds
Unit - Hide summoned[1]
Unit - Order caster[1] to Move To . ((Position of caster[1]) offset by 250.00 towards ((Facing of portal[1]) - 180.00) degrees.)
Wait 1.00 seconds
Unit - Hide caster[1]
Animation - Play portal[1] 's death animation
Wait 2.50 seconds
Unit - Remove portal[1] from the game
Unit - Create 1 . Portal (spell) for (Owner of summoned[1]) at (Position of summoned[1]) facing (Facing of caster[1]) degrees
Set Variable Set portal[1] = (Last created unit)
Unit - Remove summoned[1] from the game
Animation - Play portal[1] 's birth animation
Wait 7.00 seconds
Unit - Unhide caster[1]
Unit - Move caster[1] instantly to ((Position of portal[1]) offset by 50.00 towards ((Facing of portal[1]) - 180.00) degrees.) , facing (Position of portal[1])
Unit - Order caster[1] to Move To . ((Position of caster[1]) offset by 300.00 towards (Facing of portal[1]) degrees.)
Wait 2.00 seconds
Animation - Play portal[1] 's death animation
Unit - Change ownership of caster[1] to (Owner of portal[1]) and Retain color
Unit - Make caster[1] Vulnerable
Wait 2.75 seconds
Unit - Remove portal[1] from the game
Set Variable Set caster[1] = No unit
Set Variable Set summoned[1] = No unit
Set Variable Set portal[1] = No unit
Set Variable Set running[1] = "false"
Portal2
Events
Conditions
Actions
Set Variable Set running[2] = "true"
Unit - Change ownership of caster[2] to Neutral Passive and Retain color
Unit - Make caster[2] Invulnerable
Unit - Create 1 . Portal (spell) for (Owner of summoned[2]) at ((Position of caster[2]) offset by 200.00 towards (Facing of caster[2]) degrees.) facing ((Facing of caster[2]) - 180.00) degrees
Set Variable Set portal[2] = (Last created unit)
Animation - Play portal[2] 's birth animation
Wait 7.00 seconds
Unit - Hide summoned[2]
Unit - Order caster[2] to Move To . ((Position of caster[2]) offset by 250.00 towards ((Facing of portal[2]) - 180.00) degrees.)
Wait 1.00 seconds
Unit - Hide caster[2]
Animation - Play portal[2] 's death animation
Wait 2.50 seconds
Unit - Remove portal[2] from the game
Unit - Create 1 . Portal (spell) for (Owner of summoned[2]) at (Position of summoned[2]) facing (Facing of caster[2]) degrees
Set Variable Set portal[2] = (Last created unit)
Unit - Remove summoned[2] from the game
Animation - Play portal[2] 's birth animation
Wait 7.00 seconds
Unit - Unhide caster[2]
Unit - Move caster[2] instantly to ((Position of portal[2]) offset by 50.00 towards ((Facing of portal[2]) - 180.00) degrees.) , facing (Position of portal[2])
Unit - Order caster[2] to Move To . ((Position of caster[2]) offset by 300.00 towards (Facing of portal[2]) degrees.)
Wait 2.00 seconds
Animation - Play portal[2] 's death animation
Unit - Change ownership of caster[2] to (Owner of portal[2]) and Retain color
Unit - Make caster[2] Vulnerable
Wait 2.75 seconds
Unit - Remove portal[2] from the game
Set Variable Set portal[2] = No unit
Set Variable Set caster[2] = No unit
Set Variable Set summoned[2] = No unit
Set Variable Set running[2] = "false"
Portal3
Events
Conditions
Actions
Set Variable Set running[3] = "true"
Unit - Change ownership of caster[3] to Neutral Passive and Retain color
Unit - Make caster[3] Invulnerable
Unit - Create 1 . Portal (spell) for (Owner of summoned[3]) at ((Position of caster[3]) offset by 200.00 towards (Facing of caster[3]) degrees.) facing ((Facing of caster[3]) - 180.00) degrees
Set Variable Set portal[3] = (Last created unit)
Animation - Play portal[3] 's birth animation
Wait 7.00 seconds
Unit - Hide summoned[3]
Unit - Order caster[3] to Move To . ((Position of caster[3]) offset by 250.00 towards ((Facing of portal[3]) - 180.00) degrees.)
Wait 1.00 seconds
Unit - Hide caster[3]
Animation - Play portal[3] 's death animation
Wait 2.50 seconds
Unit - Remove portal[3] from the game
Unit - Create 1 . Portal (spell) for (Owner of summoned[3]) at (Position of summoned[3]) facing (Facing of caster[3]) degrees
Set Variable Set portal[3] = (Last created unit)
Unit - Remove summoned[3] from the game
Animation - Play portal[3] 's birth animation
Wait 7.00 seconds
Unit - Unhide caster[3]
Unit - Move caster[3] instantly to ((Position of portal[3]) offset by 50.00 towards ((Facing of portal[3]) - 180.00) degrees.) , facing (Position of portal[3])
Unit - Order caster[3] to Move To . ((Position of caster[3]) offset by 300.00 towards (Facing of portal[3]) degrees.)
Wait 2.00 seconds
Animation - Play portal[3] 's death animation
Unit - Change ownership of caster[3] to (Owner of portal[3]) and Retain color
Unit - Make caster[3] Vulnerable
Wait 2.75 seconds
Unit - Remove portal[3] from the game
Set Variable Set caster[3] = No unit
Set Variable Set portal[3] = No unit
Set Variable Set summoned[3] = No unit
Set Variable Set running[3] = "false"
Portal4
Events
Conditions
Actions
Set Variable Set running[4] = "true"
Unit - Change ownership of caster[4] to Neutral Passive and Retain color
Unit - Make caster[4] Invulnerable
Unit - Create 1 . Portal (spell) for (Owner of summoned[4]) at ((Position of caster[4]) offset by 200.00 towards (Facing of caster[4]) degrees.) facing ((Facing of caster[4]) - 180.00) degrees
Set Variable Set portal[4] = (Last created unit)
Animation - Play portal[4] 's birth animation
Wait 7.00 seconds
Unit - Hide summoned[4]
Unit - Order caster[4] to Move To . ((Position of caster[4]) offset by 350.00 towards ((Facing of portal[4]) - 180.00) degrees.)
Wait 1.00 seconds
Unit - Hide caster[4]
Animation - Play portal[4] 's death animation
Wait 2.50 seconds
Unit - Remove portal[4] from the game
Unit - Create 1 . Portal (spell) for (Owner of summoned[4]) at (Position of summoned[4]) facing (Facing of caster[4]) degrees
Set Variable Set portal[4] = (Last created unit)
Unit - Remove summoned[4] from the game
Animation - Play portal[4] 's birth animation
Wait 7.00 seconds
Unit - Unhide caster[4]
Unit - Move caster[4] instantly to ((Position of portal[4]) offset by 100.00 towards ((Facing of portal[4]) - 180.00) degrees.) , facing (Position of portal[4])
Unit - Order caster[4] to Move To . ((Position of caster[4]) offset by 300.00 towards (Facing of portal[4]) degrees.)
Wait 2.00 seconds
Animation - Play portal[4] 's death animation
Unit - Change ownership of caster[4] to (Owner of portal[4]) and Retain color
Unit - Make caster[4] Vulnerable
Wait 2.75 seconds
Unit - Remove portal[4] from the game
Set Variable Set caster[4] = No unit
Set Variable Set summoned[4] = No unit
Set Variable Set portal[4] = No unit
Set Variable Set running[4] = "false"
Portal5
Events
Conditions
Actions
Set Variable Set running[5] = "true"
Unit - Change ownership of caster[5] to Neutral Passive and Retain color
Unit - Make caster[5] Invulnerable
Unit - Create 1 . Portal (spell) for (Owner of summoned[5]) at ((Position of caster[5]) offset by 200.00 towards (Facing of caster[5]) degrees.) facing ((Facing of caster[5]) - 180.00) degrees
Set Variable Set portal[5] = (Last created unit)
Animation - Play portal[5] 's birth animation
Wait 7.00 seconds
Unit - Hide summoned[5]
Unit - Order caster[5] to Move To . ((Position of caster[5]) offset by 350.00 towards ((Facing of portal[5]) - 180.00) degrees.)
Wait 1.00 seconds
Unit - Hide caster[5]
Animation - Play portal[5] 's death animation
Wait 2.50 seconds
Unit - Remove portal[5] from the game
Unit - Create 1 . Portal (spell) for (Owner of summoned[5]) at (Position of summoned[5]) facing (Facing of caster[5]) degrees
Set Variable Set portal[5] = (Last created unit)
Unit - Remove summoned[5] from the game
Animation - Play portal[5] 's birth animation
Wait 7.00 seconds
Unit - Unhide caster[5]
Unit - Move caster[5] instantly to ((Position of portal[5]) offset by 100.00 towards ((Facing of portal[5]) - 180.00) degrees.) , facing (Position of portal[5])
Unit - Order caster[5] to Move To . ((Position of caster[5]) offset by 300.00 towards (Facing of portal[5]) degrees.)
Wait 2.00 seconds
Animation - Play portal[5] 's death animation
Unit - Change ownership of caster[5] to (Owner of portal[5]) and Retain color
Unit - Make caster[5] Vulnerable
Wait 2.75 seconds
Unit - Remove portal[5] from the game
Set Variable Set caster[5] = No unit
Set Variable Set summoned[5] = No unit
Set Variable Set portal[5] = No unit
Set Variable Set running[5] = "false"
Portal6
Events
Conditions
Actions
Set Variable Set running[6] = "true"
Unit - Change ownership of caster[6] to Neutral Passive and Retain color
Unit - Make caster[6] Invulnerable
Unit - Create 1 . Portal (spell) for (Owner of summoned[6]) at ((Position of caster[6]) offset by 200.00 towards (Facing of caster[6]) degrees.) facing ((Facing of caster[6]) - 180.00) degrees
Set Variable Set portal[6] = (Last created unit)
Animation - Play portal[6] 's birth animation
Wait 7.00 seconds
Unit - Hide summoned[6]
Unit - Order caster[6] to Move To . ((Position of caster[6]) offset by 350.00 towards ((Facing of portal[6]) - 180.00) degrees.)
Wait 1.00 seconds
Unit - Hide caster[6]
Animation - Play portal[6] 's death animation
Wait 2.50 seconds
Unit - Remove portal[6] from the game
Unit - Create 1 . Portal (spell) for (Owner of summoned[6]) at (Position of summoned[6]) facing (Facing of caster[6]) degrees
Set Variable Set portal[6] = (Last created unit)
Unit - Remove summoned[6] from the game
Animation - Play portal[6] 's birth animation
Wait 7.00 seconds
Unit - Unhide caster[6]
Unit - Move caster[6] instantly to ((Position of portal[6]) offset by 100.00 towards ((Facing of portal[6]) - 180.00) degrees.) , facing (Position of portal[6])
Unit - Order caster[6] to Move To . ((Position of caster[6]) offset by 300.00 towards (Facing of portal[6]) degrees.)
Wait 2.00 seconds
Animation - Play portal[6] 's death animation
Unit - Change ownership of caster[6] to (Owner of portal[6]) and Retain color
Unit - Make caster[6] Vulnerable
Wait 2.75 seconds
Unit - Remove portal[6] from the game
Set Variable Set caster[6] = No unit
Set Variable Set summoned[6] = No unit
Set Variable Set portal[6] = No unit
Set Variable Set running[6] = "false"
Portal7
Events
Conditions
Actions
Set Variable Set running[7] = "true"
Unit - Change ownership of caster[7] to Neutral Passive and Retain color
Unit - Make caster[7] Invulnerable
Unit - Create 1 . Portal (spell) for (Owner of summoned[7]) at ((Position of caster[7]) offset by 200.00 towards (Facing of caster[7]) degrees.) facing ((Facing of caster[7]) - 180.00) degrees
Set Variable Set portal[7] = (Last created unit)
Animation - Play portal[7] 's birth animation
Wait 7.00 seconds
Unit - Hide summoned[7]
Unit - Order caster[7] to Move To . ((Position of caster[7]) offset by 350.00 towards ((Facing of portal[7]) - 180.00) degrees.)
Wait 1.00 seconds
Unit - Hide caster[7]
Animation - Play portal[7] 's death animation
Wait 2.50 seconds
Unit - Remove portal[7] from the game
Unit - Create 1 . Portal (spell) for (Owner of summoned[7]) at (Position of summoned[7]) facing (Facing of caster[7]) degrees
Set Variable Set portal[7] = (Last created unit)
Unit - Remove summoned[7] from the game
Animation - Play portal[7] 's birth animation
Wait 7.00 seconds
Unit - Unhide caster[7]
Unit - Move caster[7] instantly to ((Position of portal[7]) offset by 100.00 towards ((Facing of portal[7]) - 180.00) degrees.) , facing (Position of portal[7])
Unit - Order caster[7] to Move To . ((Position of caster[7]) offset by 300.00 towards (Facing of portal[7]) degrees.)
Wait 2.00 seconds
Animation - Play portal[7] 's death animation
Unit - Change ownership of caster[7] to (Owner of portal[7]) and Retain color
Unit - Make caster[7] Vulnerable
Wait 2.75 seconds
Unit - Remove portal[7] from the game
Set Variable Set caster[7] = No unit
Set Variable Set summoned[7] = No unit
Set Variable Set portal[7] = No unit
Set Variable Set running[7] = "false"
Portal8
Events
Conditions
Actions
Set Variable Set running[8] = "true"
Unit - Change ownership of caster[8] to Neutral Passive and Retain color
Unit - Make caster[8] Invulnerable
Unit - Create 1 . Portal (spell) for (Owner of summoned[8]) at ((Position of caster[8]) offset by 200.00 towards (Facing of caster[8]) degrees.) facing ((Facing of caster[8]) - 180.00) degrees
Set Variable Set portal[8] = (Last created unit)
Animation - Play portal[8] 's birth animation
Wait 7.00 seconds
Unit - Hide summoned[8]
Unit - Order caster[8] to Move To . ((Position of caster[8]) offset by 350.00 towards ((Facing of portal[8]) - 180.00) degrees.)
Wait 1.00 seconds
Unit - Hide caster[8]
Animation - Play portal[8] 's death animation
Wait 2.50 seconds
Unit - Remove portal[8] from the game
Unit - Create 1 . Portal (spell) for (Owner of summoned[8]) at (Position of summoned[8]) facing (Facing of caster[8]) degrees
Set Variable Set portal[8] = (Last created unit)
Unit - Remove summoned[8] from the game
Animation - Play portal[8] 's birth animation
Wait 7.00 seconds
Unit - Unhide caster[8]
Unit - Move caster[8] instantly to ((Position of portal[8]) offset by 100.00 towards ((Facing of portal[8]) - 180.00) degrees.) , facing (Position of portal[8])
Unit - Order caster[8] to Move To . ((Position of caster[8]) offset by 300.00 towards (Facing of portal[8]) degrees.)
Wait 2.00 seconds
Animation - Play portal[8] 's death animation
Unit - Change ownership of caster[8] to (Owner of portal[8]) and Retain color
Unit - Make caster[8] Vulnerable
Wait 2.75 seconds
Unit - Remove portal[8] from the game
Set Variable Set caster[8] = No unit
Set Variable Set summoned[8] = No unit
Set Variable Set portal[8] = No unit
Set Variable Set running[8] = "false"
Portal9
Events
Conditions
Actions
Set Variable Set running[9] = "true"
Unit - Change ownership of caster[9] to Neutral Passive and Retain color
Unit - Make caster[9] Invulnerable
Unit - Create 1 . Portal (spell) for (Owner of summoned[9]) at ((Position of caster[9]) offset by 200.00 towards (Facing of caster[9]) degrees.) facing ((Facing of caster[9]) - 180.00) degrees
Set Variable Set portal[9] = (Last created unit)
Animation - Play portal[9] 's birth animation
Wait 7.00 seconds
Unit - Hide summoned[9]
Unit - Order caster[9] to Move To . ((Position of caster[9]) offset by 350.00 towards ((Facing of portal[9]) - 180.00) degrees.)
Wait 1.00 seconds
Unit - Hide caster[9]
Animation - Play portal[9] 's death animation
Wait 2.50 seconds
Unit - Remove portal[9] from the game
Unit - Create 1 . Portal (spell) for (Owner of summoned[9]) at (Position of summoned[9]) facing (Facing of caster[9]) degrees
Set Variable Set portal[9] = (Last created unit)
Unit - Remove summoned[9] from the game
Animation - Play portal[9] 's birth animation
Wait 7.00 seconds
Unit - Unhide caster[9]
Unit - Move caster[9] instantly to ((Position of portal[9]) offset by 100.00 towards ((Facing of portal[9]) - 180.00) degrees.) , facing (Position of portal[9])
Unit - Order caster[9] to Move To . ((Position of caster[9]) offset by 300.00 towards (Facing of portal[9]) degrees.)
Wait 2.00 seconds
Animation - Play portal[9] 's death animation
Unit - Change ownership of caster[9] to (Owner of portal[9]) and Retain color
Unit - Make caster[9] Vulnerable
Wait 2.75 seconds
Unit - Remove portal[9] from the game
Set Variable Set caster[9] = No unit
Set Variable Set summoned[9] = No unit
Set Variable Set portal[9] = No unit
Set Variable Set running[9] = "false"
Portal10
Events
Conditions
Actions
Set Variable Set running[10] = "true"
Unit - Change ownership of caster[10] to Neutral Passive and Retain color
Unit - Make caster[10] Invulnerable
Unit - Create 1 . Portal (spell) for (Owner of summoned[10]) at ((Position of caster[10]) offset by 200.00 towards (Facing of caster[10]) degrees.) facing ((Facing of caster[10]) - 180.00) degrees
Set Variable Set portal[10] = (Last created unit)
Animation - Play portal[10] 's birth animation
Wait 7.00 seconds
Unit - Hide summoned[10]
Unit - Order caster[10] to Move To . ((Position of caster[10]) offset by 350.00 towards ((Facing of portal[10]) - 180.00) degrees.)
Wait 1.00 seconds
Unit - Hide caster[10]
Animation - Play portal[10] 's death animation
Wait 2.50 seconds
Unit - Remove portal[10] from the game
Unit - Create 1 . Portal (spell) for (Owner of summoned[10]) at (Position of summoned[10]) facing (Facing of caster[10]) degrees
Set Variable Set portal[10] = (Last created unit)
Unit - Remove summoned[10] from the game
Animation - Play portal[10] 's birth animation
Wait 7.00 seconds
Unit - Unhide caster[10]
Unit - Move caster[10] instantly to ((Position of portal[10]) offset by 100.00 towards ((Facing of portal[10]) - 180.00) degrees.) , facing (Position of portal[10])
Unit - Order caster[10] to Move To . ((Position of caster[10]) offset by 300.00 towards (Facing of portal[1]) degrees.)
Wait 2.00 seconds
Animation - Play portal[10] 's death animation
Unit - Change ownership of caster[10] to (Owner of portal[10]) and Retain color
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.