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
CreepIt.w3x
Variables
Triggers
initialization
leavesystem
left
player1
always enabled
trees
quest
visibility
view 2
view 1
in-game enabled only
kill
spawn
options
setup ready
setup clear
setup mode
setup kills
setup time
setup free
settings clear1
clear A
clear B
clear C
settings clear2
cA
cB
settings time1
time A
time B
time C
settings time2
tABC
settings kills1
kills A
kills B
settings kills2
kA
kB
settings free
stop
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
Time
timer
No
initialization
Events
Map initialization
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Player - Make Player 5 (Yellow) treat (Picked player) as an Ally with shared vision
Player - Make Player 7 (Green) treat (Picked player) as an Ally with shared vision
Player - Make Player 8 (Pink) treat (Picked player) as an Ally with shared vision
Player - Make Player 6 (Orange) treat (Picked player) as an Ally with shared vision
left
Events
Player - Player 1 (Red) leaves the game
Player - Player 2 (Blue) leaves the game
Player - Player 3 (Teal) leaves the game
Player - Player 4 (Purple) leaves the game
Conditions
Actions
Game - Display to (All players) the text: ((Name of (Triggering player)) + has left the game.)
player1
Events
Player - Player 1 (Red) leaves the game
Conditions
Actions
Game - Display to (All players) the text: Rematch has been disabled because RED has left the game.
trees
Events
Destructible - A destructible within (Playable map area) dies
Conditions
Actions
Destructible - Resurrect (Dying destructible) with (Max life of (Last created destructible)) life and Show birth animation
quest
Events
Map initialization
Conditions
Actions
Quest - Create a Required quest titled Camera with the description Type: -view 1 to set the camera on battleview. -view 2 for normal view. , using icon path ReplaceableTextures\CommandButtons\BTNAmbush.blp
visibility
Events
Map initialization
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Visibility - Create an initially Enabled visibility modifier for (Picked player) emitting Visibility across (Playable map area)
view 2
Events
Player - Player 1 (Red) types a chat message containing -view 2 (Unexpected type: 'stringnoformat') as An exact match
Player - Player 2 (Blue) types a chat message containing -view 2 (Unexpected type: 'stringnoformat') as An exact match
Player - Player 3 (Teal) types a chat message containing -view 2 (Unexpected type: 'stringnoformat') as An exact match
Player - Player 4 (Purple) types a chat message containing -view 2 (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Camera - . Apply . gg_cam_Norm_View for (Triggering player) over 1.00 seconds
view 1
Events
Player - Player 1 (Red) types a chat message containing -view 1 (Unexpected type: 'stringnoformat') as An exact match
Player - Player 2 (Blue) types a chat message containing -view 1 (Unexpected type: 'stringnoformat') as An exact match
Player - Player 3 (Teal) types a chat message containing -view 1 (Unexpected type: 'stringnoformat') as An exact match
Player - Player 4 (Purple) types a chat message containing -view 1 (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Camera - . Apply . gg_cam_Whole_View for (Triggering player) over 1.00 seconds
kill
Events
Unit - A unit Dies
Conditions
Actions
Player - Add 1 to (Owner of (Killing unit)) . Current gold
Player - Set Player 5 (Yellow) . Current gold to (Player 1 (Red) Current gold)
Player - Set Player 6 (Orange) . Current gold to (Player 2 (Blue) Current gold)
Player - Set Player 7 (Green) . Current gold to (Player 3 (Teal) Current gold)
Player - Set Player 8 (Pink) . Current gold to (Player 4 (Purple) Current gold)
spawn
Events
Time - Every 7.50 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 1 (Red) slot status) Equal to Is playing
Then - Actions
Unit - Create 1 . (Random level -1 creep unit-type) for Player 1 (Red) at (Center of Player_1 <gen>) facing Default building facing degrees
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 2 (Blue) slot status) Equal to Is playing
Then - Actions
Unit - Create 1 . (Random level -1 creep unit-type) for Player 2 (Blue) at (Center of Player_2 <gen>) facing Default building facing degrees
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 3 (Teal) slot status) Equal to Is playing
Then - Actions
Unit - Create 1 . (Random level -1 creep unit-type) for Player 3 (Teal) at (Center of Player_3 <gen>) facing Default building facing degrees
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 4 (Purple) slot status) Equal to Is playing
Then - Actions
Unit - Create 1 . (Random level -1 creep unit-type) for Player 4 (Purple) at (Center of Player_4 <gen>) facing Default building facing degrees
Else - Actions
Do nothing
setup ready
Events
Map initialization
Conditions
Actions
Game - Display to (All players) the text: ((Name of Player 1 (Red)) + has to write: -ready, to begin setting up the game settings. After each game there WILL be a rematch, so it isn't needed to rehost the game.)
setup clear
Events
Player - Player 1 (Red) types a chat message containing -ready (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Game - Display to (All players) the text: ((|cffff0000 + ((Name of Player 1 (Red)) + |r)) + , please choose area-clearing rate by writing "-clear a/b/c". |cffff0000A|r - every 2 minutes. | |cffff0000B|r - every 5 minutes. | |cffff0000C|r - never.)
Trigger - Turn on clear_A <gen>
Trigger - Turn on clear_B <gen>
Trigger - Turn on clear_C <gen>
Trigger - Turn on setup_mode <gen>
Trigger - Turn off (This trigger)
setup mode
Events
Player - Player 1 (Red) types a chat message containing -clear A (Unexpected type: 'stringnoformat') as An exact match
Player - Player 1 (Red) types a chat message containing -clear B (Unexpected type: 'stringnoformat') as An exact match
Player - Player 1 (Red) types a chat message containing -clear C (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Game - Display to (All players) the text: ((|cffff0000 + ((Name of Player 1 (Red)) + |r)) + (, please choose how to win by writing "-mode a/b/c". |cffff0000A|r - win by getting X kills. | |cffff0000B|r - win by getting most kills after X time. | |cffff0000C|r - win by getting most kills until + ((|cffff0000 + ((Name of Player 1 (Red)) + |r)) + writes "-stop".)))
Trigger - Turn on setup_kills <gen>
Trigger - Turn on setup_time <gen>
Trigger - Turn on setup_free <gen>
Trigger - Turn off (This trigger)
setup kills
Events
Player - Player 1 (Red) types a chat message containing -mode A (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Game - Display to (All players) the text: ((|cffff0000 + ((Name of Player 1 (Red)) + |r)) + (, please choose the amount of kills needed to make by writing "-kills a/b". |cffff0000A|r - 50 kills. | |cffff0000B|r - 100 kills. + (1 kill = 1 gold).))
Trigger - Turn on kills_A <gen>
Trigger - Turn on kills_B <gen>
Trigger - Turn off setup_time <gen>
Trigger - Turn off setup_free <gen>
Trigger - Turn off (This trigger)
setup time
Events
Player - Player 1 (Red) types a chat message containing -mode B (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Game - Display to (All players) the text: ((|cffff0000 + ((Name of Player 1 (Red)) + |r)) + , please choose the time limit by writing "-time a/b/c". |cffff0000A|r - 10 minutes. | |cffff0000B|r - 15 minutes. | |cffff0000C|r - 30 minutes.)
Trigger - Turn on time_A <gen>
Trigger - Turn on time_B <gen>
Trigger - Turn on time_C <gen>
Trigger - Turn off setup_kills <gen>
Trigger - Turn off setup_free <gen>
Trigger - Turn off (This trigger)
setup free
Events
Player - Player 1 (Red) types a chat message containing -mode C (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Game - Display to (All players) the text: |cffccccffNo points, no time... JUST PLAY!!! Until|r |cffff0000red|r |cffccccffwrites "-stop".|r
Trigger - Turn on stop <gen>
Trigger - Turn on kill <gen>
Trigger - Turn on spawn <gen>
Trigger - Turn off setup_kills <gen>
Trigger - Turn off setup_time <gen>
Trigger - Turn off (This trigger)
clear A
Events
Player - Player 1 (Red) types a chat message containing -clear A (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Trigger - Turn on cA <gen>
Trigger - Turn off clear_B <gen>
Trigger - Turn off clear_C <gen>
Trigger - Turn off (This trigger)
clear B
Events
Player - Player 1 (Red) types a chat message containing -clear B (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Trigger - Turn on cB <gen>
Trigger - Turn off clear_A <gen>
Trigger - Turn off clear_C <gen>
Trigger - Turn off (This trigger)
clear C
Events
Player - Player 1 (Red) types a chat message containing -clear C (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Trigger - Turn off clear_A <gen>
Trigger - Turn off clear_B <gen>
Trigger - Turn off (This trigger)
cA
Events
Time - Every 120.00 seconds of game time
Conditions
Actions
Game - Display to (All players) the text: |cffccffffArea Cleared|r
Special Effect - Create a special effect at (Center of Light_Rays <gen>) using Units\NightElf\Wisp\WispExplode.mdl
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) is A structure) Equal to False)) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
cB
Events
Time - Every 300.00 seconds of game time
Conditions
Actions
Game - Display to (All players) the text: |cffccffffArea Cleared|r
Special Effect - Create a special effect at (Center of Light_Rays <gen>) using Units\NightElf\Wisp\WispExplode.mdl
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) is A structure) Equal to False)) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
time A
Events
Player - Player 1 (Red) types a chat message containing -time A (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Countdown Timer - Start Time as a One-shot timer that will expire in 600.00 seconds
Game - Display to (All players) the text: Get the highest kills in 10 minutes, starting now!
Trigger - Turn on tABC <gen>
Trigger - Turn on kill <gen>
Trigger - Turn on spawn <gen>
Trigger - Turn off time_B <gen>
Trigger - Turn off time_C <gen>
Trigger - Turn off (This trigger)
time B
Events
Player - Player 1 (Red) types a chat message containing -time B (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Countdown Timer - Start Time as a One-shot timer that will expire in 900.00 seconds
Game - Display to (All players) the text: Get the highest kills in 15 minutes, starting now!
Trigger - Turn on tABC <gen>
Trigger - Turn on kill <gen>
Trigger - Turn on spawn <gen>
Trigger - Turn off time_A <gen>
Trigger - Turn off time_C <gen>
Trigger - Turn off (This trigger)
time C
Events
Player - Player 1 (Red) types a chat message containing -time C (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Countdown Timer - Start Time as a One-shot timer that will expire in 1800.00 seconds
Game - Display to (All players) the text: Get the highest kills in 30 minutes, starting now!
Trigger - Turn on tABC <gen>
Trigger - Turn on kill <gen>
Trigger - Turn on spawn <gen>
Trigger - Turn off time_A <gen>
Trigger - Turn off time_B <gen>
Trigger - Turn off (This trigger)
tABC
Events
Time - Time expires
Conditions
Actions
Game - Display to (All players) the text: (|cffccfffScore:|r + ((Name of Player 1 (Red)) + (( has + (String((Player 1 (Red) Current gold)))) + (, + ((Name of Player 2 (Blue)) + ( has + ((String((Player 2 (Blue) Current gold))) + (, + ((Name of Player 3 (Teal)) + ( has + ((String((Player 3 (Teal) Current gold))) + (, + ((Name of Player 4 (Purple)) + ( has + (String((Player 4 (Purple) Current gold)))))))))))))))))
Game - Display to (All players) the text: Rematch is coming!!!
Special Effect - Create a special effect at (Center of Light_Rays <gen>) using Units\NightElf\Wisp\WispExplode.mdl
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) is A structure) Equal to False)) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Player - Set (Picked player) . Current gold to 0
Wait 5.00 seconds
Trigger - Turn off kill <gen>
Trigger - Turn off spawn <gen>
Trigger - Turn off setup_kills <gen>
Trigger - Turn off setup_time <gen>
Trigger - Turn off setup_free <gen>
Trigger - Turn off cA <gen>
Trigger - Turn off cB <gen>
Trigger - Turn on setup_clear <gen>
Trigger - Run setup_ready <gen> (ignoring conditions)
Trigger - Turn off (This trigger)
kills A
Events
Player - Player 1 (Red) types a chat message containing -kills A (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Game - Display to (All players) the text: Be the first with 50 kills, starting now!
Trigger - Turn on kA <gen>
Trigger - Turn on kill <gen>
Trigger - Turn on spawn <gen>
Trigger - Turn off kills_A <gen>
Trigger - Turn off kills_B <gen>
kills B
Events
Player - Player 1 (Red) types a chat message containing -kills B (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Game - Display to (All players) the text: Be the first with 100 kills, starting now!
Trigger - Turn on kB <gen>
Trigger - Turn on kill <gen>
Trigger - Turn on spawn <gen>
Trigger - Turn off kills_A <gen>
Trigger - Turn off kills_B <gen>
kA
Events
Player - Player 1 (Red) 's Current gold becomes Greater than or equal to 50.00
Player - Player 2 (Blue) 's Current gold becomes Greater than or equal to 50.00
Player - Player 3 (Teal) 's Current gold becomes Greater than or equal to 50.00
Player - Player 4 (Purple) 's Current gold becomes Greater than or equal to 50.00
Conditions
Actions
Game - Display to (All players) the text: Rematch is coming!!!
Game - Display to (All players) the text: ((Name of (Triggering player)) + won this round!!!)
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Player - Set (Picked player) . Current gold to 0
Special Effect - Create a special effect at (Center of Light_Rays <gen>) using Units\NightElf\Wisp\WispExplode.mdl
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) is A structure) Equal to False)) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Wait 5.00 seconds
Trigger - Turn off kill <gen>
Trigger - Turn off spawn <gen>
Trigger - Turn off setup_kills <gen>
Trigger - Turn off setup_time <gen>
Trigger - Turn off setup_free <gen>
Trigger - Turn off cA <gen>
Trigger - Turn off cB <gen>
Trigger - Turn on setup_clear <gen>
Trigger - Run setup_ready <gen> (ignoring conditions)
Trigger - Turn off (This trigger)
kB
Events
Player - Player 1 (Red) 's Current gold becomes Greater than or equal to 100.00
Player - Player 2 (Blue) 's Current gold becomes Greater than or equal to 100.00
Player - Player 3 (Teal) 's Current gold becomes Greater than or equal to 100.00
Player - Player 4 (Purple) 's Current gold becomes Greater than or equal to 100.00
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Player - Set (Picked player) . Current gold to 0
Game - Display to (All players) the text: ((Name of (Triggering player)) + won this round!!!)
Game - Display to (All players) the text: Rematch is coming!!!
Special Effect - Create a special effect at (Center of Light_Rays <gen>) using Units\NightElf\Wisp\WispExplode.mdl
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) is A structure) Equal to False)) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Wait 5.00 seconds
Trigger - Turn on setup_clear <gen>
Trigger - Turn off kill <gen>
Trigger - Turn off spawn <gen>
Trigger - Turn off setup_kills <gen>
Trigger - Turn off setup_time <gen>
Trigger - Turn off setup_free <gen>
Trigger - Turn off cA <gen>
Trigger - Turn off cB <gen>
Trigger - Turn on setup_clear <gen>
Trigger - Run setup_ready <gen> (ignoring conditions)
Trigger - Turn off (This trigger)
stop
Events
Player - Player 1 (Red) types a chat message containing -stop (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Special Effect - Create a special effect at (Center of Light_Rays <gen>) using Units\NightElf\Wisp\WispExplode.mdl
Game - Display to (All players) the text: Rematch is coming!!!
Game - Display to (All players) the text: (|cffccffffScore:|r + ((Name of Player 1 (Red)) + (( has + (String((Player 1 (Red) Current gold)))) + (, + ((Name of Player 2 (Blue)) + ( has + ((String((Player 2 (Blue) Current gold))) + (, + ((Name of Player 3 (Teal)) + ( has + ((String((Player 3 (Teal) Current gold))) + (, + ((Name of Player 4 (Purple)) + ( has + (String((Player 4 (Purple) Current gold)))))))))))))))))
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) is A structure) Equal to False)) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Player - Set (Picked player) . Current gold to 0
Wait 5.00 seconds
Trigger - Turn off kill <gen>
Trigger - Turn off spawn <gen>
Trigger - Turn on setup_clear <gen>
Trigger - Turn off setup_kills <gen>
Trigger - Turn off setup_time <gen>
Trigger - Turn off setup_free <gen>
Trigger - Turn off cA <gen>
Trigger - Turn off cB <gen>
Trigger - Run setup_ready <gen> (ignoring conditions)
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.