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
Test.w3x
Variables
Movement
Left
Release Left
Continue Left
Right
Release Right
Continue Right
Up
Continue Up
Release Up
Down
Continue Down
Release Down
Direction
Shoot
Shoot
Start
Start
Zergling
Create
Switch
Create Level2
Switch 2
Create Level3
Switch to Rest
Create Level4
Switch 3
Create Level5
Switch 4
Create Level6
Ugh
Damage
Camera
Every 001
Life
Life Board Every Seconds
Grenade
Grenade
Special
Win or Lose
Lose
Winner
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
B
dialog
No
Plasma
leaderboard
No
target
unit
No
Left
Events
Player - Player 1 (Red) Presses the Left Arrow key
Conditions
Actions
Trigger - Turn off (This trigger)
Trigger - Turn on Continue_Left <gen>
Release Left
Events
Player - Player 1 (Red) Releases the Left Arrow key
Conditions
Actions
Trigger - Turn off Continue_Left <gen>
Unit - Order Rifleman 0000 <gen> to Stop .
Trigger - Turn on Left <gen>
Continue Left
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Unit - Make Rifleman 0000 <gen> face ((Facing of Rifleman 0000 <gen>) + 2.00) over 0.01 seconds
Camera - Set Player 1 (Red) 's camera Rotation to (Facing of Rifleman 0000 <gen>) over 0.00 seconds
Right
Events
Player - Player 1 (Red) Presses the Right Arrow key
Conditions
Actions
Trigger - Turn off (This trigger)
Trigger - Turn on Continue_Right <gen>
Release Right
Events
Player - Player 1 (Red) Releases the Right Arrow key
Conditions
Actions
Trigger - Turn off Continue_Right <gen>
Unit - Order Rifleman 0000 <gen> to Stop .
Trigger - Turn on Right <gen>
Continue Right
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Unit - Make Rifleman 0000 <gen> face ((Facing of Rifleman 0000 <gen>) - 2.00) over 0.01 seconds
Camera - Set Player 1 (Red) 's camera Rotation to (Facing of Rifleman 0000 <gen>) over 0.00 seconds
Up
Events
Player - Player 1 (Red) Presses the Up Arrow key
Conditions
Actions
Trigger - Turn off (This trigger)
Trigger - Turn on Continue_Up <gen>
Unit - Order Rifleman 0000 <gen> to Move To . ((Position of Rifleman 0000 <gen>) offset by 400.00 towards (Facing of Rifleman 0000 <gen>) degrees.)
Continue Up
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Unit - Order Rifleman 0000 <gen> to Move To . ((Position of Rifleman 0000 <gen>) offset by 400.00 towards (Facing of Rifleman 0000 <gen>) degrees.)
Release Up
Events
Player - Player 1 (Red) Releases the Up Arrow key
Conditions
Actions
Trigger - Turn off Continue_Up <gen>
Unit - Order Rifleman 0000 <gen> to Stop .
Trigger - Turn on Up <gen>
Down
Events
Player - Player 1 (Red) Presses the Down Arrow key
Conditions
Actions
Trigger - Turn off (This trigger)
Trigger - Turn on Continue_Down <gen>
Unit - Move Rifleman 0000 <gen> instantly to ((Position of Rifleman 0000 <gen>) offset by -2.00 towards (Facing of Rifleman 0000 <gen>) degrees.)
Animation - Play Rifleman 0000 <gen> 's Walk animation
Continue Down
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Unit - Move Rifleman 0000 <gen> instantly to ((Position of Rifleman 0000 <gen>) offset by -2.00 towards (Facing of Rifleman 0000 <gen>) degrees.)
Animation - Play Rifleman 0000 <gen> 's Walk animation
Release Down
Events
Player - Player 1 (Red) Releases the Down Arrow key
Conditions
Actions
Trigger - Turn off Continue_Down <gen>
Unit - Order Rifleman 0000 <gen> to Stop .
Trigger - Turn on Down <gen>
Direction
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Cinematic - Ping minimap for Player Group - Player 1 (Red) at ((Position of Rifleman 0000 <gen>) offset by 500.00 towards (Facing of Rifleman 0000 <gen>) degrees.) for 0.01 seconds
Shoot
Events
Player - Player 1 (Red) Selects a unit
Conditions
Actions
Set Variable Set target = (Triggering unit)
Selection - Clear selection for Player 1 (Red) .
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of target) is an enemy of Player 1 (Red).) Equal to True
Then - Actions
Trigger - Run Release_Down <gen> (ignoring conditions)
Trigger - Run Release_Left <gen> (ignoring conditions)
Trigger - Run Release_Right <gen> (ignoring conditions)
Trigger - Run Release_Up <gen> (ignoring conditions)
Unit - Make Rifleman 0000 <gen> face (Triggering unit) over 0 seconds
Animation - Play Rifleman 0000 <gen> 's Attack animation
Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) - 10.00)
Special Effect - Create a special effect attached to the chest (Unexpected type: 'attachpoint') of (Triggering unit) using Abilities\Weapons\Rifle\RifleImpact.mdl
Special Effect - Create a special effect attached to the chest (Unexpected type: 'attachpoint') of (Triggering unit) using Objects\Spawnmodels\Critters\Albatross\CritterBloodAlbatross.mdl
Else - Actions
Start
Events
Map initialization
Conditions
Actions
Game - Enable selection and deselection functionality ( Disable selection circles)
Game - Disable drag-selection functionality ( Disable drag-selection box)
Game - Disable pre-selection functionality ( Enable pre-selection circles, life bars, and object info)
Game - Set game speed to Fastest
Game - Lock the game speed
Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Visibility across (Playable map area)
Visibility - Create an initially Enabled visibility modifier for Player 2 (Blue) emitting Visibility across (Playable map area)
Camera - Set Player 1 (Red) 's camera Distance to target to 700.00 over 0.00 seconds
Camera - Set Player 1 (Red) 's camera Far Z to 4999.00 over 0.00 seconds
Camera - Set Player 1 (Red) 's camera Angle of attack to 356.00 over 0.00 seconds
Camera - Set Player 1 (Red) 's camera Field of view to 20.00 over 0.00 seconds
Camera - Set Player 1 (Red) 's camera Roll to 0.00 over 0.00 seconds
Camera - Set Player 1 (Red) 's camera Height Offset to 110.00 over 0.00 seconds
Camera - Lock camera target for Player 1 (Red) to Rifleman 0000 <gen> , offset by ( 0 , 0 ) using Default rotation
Wait 1.00 game-time seconds
Multiboard - Create a multiboard with 2 columns and 2 rows, titled Status .
Multiboard - Set the width for (Last created multiboard) item in column 0 , row 0 to 6.00 % of the total screen width
Multiboard - Set the display style for (Last created multiboard) item in column 0 , row 0 to Show text and Hide icons
Multiboard - Set the text for (Last created multiboard) item in column 1 , row 1 to Life:
Multiboard - Set the text for (Last created multiboard) item in column 1 , row 2 to Plasma:
Multiboard - Set the text for (Last created multiboard) item in column 2 , row 2 to Ready!
Multiboard - Set the text for (Last created multiboard) item in column 2 , row 1 to (String((Life of Rifleman 0000 <gen>)))
Multiboard - Minimize (Last created multiboard)
Multiboard - Maximize (Last created multiboard)
Set Variable Set Plasma = (Last created leaderboard)
Sound - Play PursuitTheme <gen>
Create
Events
Time - Every 5.00 seconds of game time
Conditions
Actions
Unit - Create 5 . Zergling for Player 2 (Blue) at (Center of Region_000 <gen>) facing Default building facing degrees
Unit Group - Order (Last created unit group) to Neutral - Kaboom! . Rifleman 0000 <gen>
Switch
Events
Time - Elapsed game time is 30.00 seconds
Conditions
Actions
Trigger - Turn off Create <gen>
Trigger - Turn on Create_Level2 <gen>
Create Level2
Events
Time - Every 5.00 seconds of game time
Conditions
Actions
Unit - Create 10 . Zergling for Player 2 (Blue) at (Center of Region_000 <gen>) facing Default building facing degrees
Unit Group - Order (Last created unit group) to Neutral - Kaboom! . Rifleman 0000 <gen>
Switch 2
Events
Time - Elapsed game time is 60.00 seconds
Conditions
Actions
Trigger - Turn off Create_Level2 <gen>
Trigger - Turn on Create_Level3 <gen>
Create Level3
Events
Time - Every 5.00 seconds of game time
Conditions
Actions
Unit - Create 3 . Hydralisk for Player 2 (Blue) at (Center of Region_000 <gen>) facing Default building facing degrees
Unit Group - Order (Last created unit group) to Neutral - Kaboom! . Rifleman 0000 <gen>
Unit - Create 4 . Zergling for Player 2 (Blue) at (Center of Region_000 <gen>) facing Default building facing degrees
Unit Group - Order (Last created unit group) to Neutral - Kaboom! . Rifleman 0000 <gen>
Switch to Rest
Events
Time - Elapsed game time is 90.00 seconds
Conditions
Actions
Game - Display to (All players) the text: Take a break for a 5 seconds......
Trigger - Turn off Create_Level3 <gen>
Wait 20.00 seconds
Game - Display to (All players) the text: Ready.... Go!
Trigger - Turn on Create_Level4 <gen>
Create Level4
Events
Time - Every 5.00 seconds of game time
Conditions
Actions
Unit - Create 5 . Hydralisk for Player 2 (Blue) at (Center of Region_000 <gen>) facing Default building facing degrees
Unit Group - Order (Last created unit group) to Neutral - Kaboom! . Rifleman 0000 <gen>
Switch 3
Events
Time - Elapsed game time is 140.00 seconds
Conditions
Actions
Trigger - Turn off Create_Level4 <gen>
Trigger - Turn on Create_Level5 <gen>
Create Level5
Events
Time - Every 5.00 seconds of game time
Conditions
Actions
Unit - Create 15 . Zergling (Fast) for Player 2 (Blue) at (Center of Region_000 <gen>) facing Default building facing degrees
Unit Group - Order (Last created unit group) to Neutral - Kaboom! . Rifleman 0000 <gen>
Switch 4
Events
Time - Elapsed game time is 170.00 seconds
Conditions
Actions
Trigger - Turn off Create_Level5 <gen>
Trigger - Run Create_Level6 <gen> (ignoring conditions)
Create Level6
Events
Conditions
Actions
Unit - Create 1 . Hydralisk (Boss) for Player 2 (Blue) at (Center of Region_000 <gen>) facing Default building facing degrees
Unit Group - Order (Last created unit group) to Neutral - Kaboom! . Rifleman 0000 <gen>
Damage
Events
Unit - Rifleman 0000 <gen> Takes damage
Conditions
Actions
Cinematic - Fade out and back in over 0.50 seconds using texture White Mask and color ( 100.00 %, 0 %, 0 %) with 50.00 % transparency
Every 001
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Camera - Set Player 1 (Red) 's camera Distance to target to 700.00 over 0.00 seconds
Camera - Set Player 1 (Red) 's camera Far Z to 4999.00 over 0.00 seconds
Camera - Set Player 1 (Red) 's camera Angle of attack to 356.00 over 0.00 seconds
Camera - Set Player 1 (Red) 's camera Field of view to 20.00 over 0.00 seconds
Camera - Set Player 1 (Red) 's camera Roll to 0.00 over 0.00 seconds
Camera - Set Player 1 (Red) 's camera Height Offset to 110.00 over 0.00 seconds
Life Board Every Seconds
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Multiboard - Set the text for (Last created multiboard) item in column 2 , row 1 to (String((Life of Rifleman 0000 <gen>)))
Grenade
Events
Player - Player 1 (Red) skips a cinematic sequence
Conditions
Actions
Trigger - Turn off (This trigger)
Unit - Reset ability cooldowns for Rifleman 0000 <gen> .
Unit - Order Rifleman 0000 <gen> to Neutral Tinker - Cluster Rockets . ((Position of Rifleman 0000 <gen>) offset by 2000.00 towards (Facing of Rifleman 0000 <gen>) degrees.)
Wait 3.00 seconds
Trigger - Turn on (This trigger)
Special
Events
Player - Player 1 (Red) Selects a unit
Conditions
(Unit-type of (Triggering unit)) Equal to Rifleman
Actions
Trigger - Turn off (This trigger)
Animation - Play Rifleman 0000 <gen> 's Attack animation
Multiboard - Set the text for (Last created multiboard) item in column 2 , row 2 to Reloading...
Unit - Create 1 . Plasma for Player 1 (Red) at ((Position of Rifleman 0000 <gen>) offset by 100.00 towards (Facing of Rifleman 0000 <gen>) degrees.) facing Default building facing degrees
Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
For each (Integer A) from 1 to 60 , do (Actions)
Loop - Actions
Unit - Create 1 . Plasma for Player 1 (Red) at ((Position of (Last created unit)) offset by 100.00 towards (Facing of Rifleman 0000 <gen>) degrees.) facing Default building facing degrees
Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
Wait 30.00 seconds
Trigger - Turn on (This trigger)
Multiboard - Set the text for (Last created multiboard) item in column 2 , row 2 to Ready!
Lose
Events
Unit - Rifleman 0000 <gen> Dies
Conditions
Actions
Game - Defeat Player 1 (Red) with the message: Defeat!
Winner
Events
Unit - A unit owned by Player 2 (Blue) . Dies
Conditions
(Unit-type of (Dying unit)) Equal to Hydralisk (Boss)
Actions
Game - Victory Player 1 (Red) ( Show dialogs, Show scores)
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.