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
D13 ShooT n RuN.w3x
Variables
Initialization
Melee Initialization
Attack
Arrows move
Press left
Press right
Press up
Press down
Release up
Spawn
spawn z
spawn d
spawn f
mega spawn
Death
Deafeat
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
Hunter
unit
Yes
rects
rect
Yes
sec
integer
No
Default melee game initialization for all players
Melee Initialization
Events
Map initialization
Conditions
Actions
Game - Set the time of day to 12
Game - Set time of day speed to 0.00 % of the default speed
For each (Integer A) from 1 to 5 , do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player((Integer A))) slot status) Equal to Is playing
Then - Actions
Visibility - Create an initially Enabled visibility modifier for (Player((Integer A))) emitting Visibility across Rect_000 <gen>
Unit - Create 1 . Fire Lord (Female) for (Player((Integer A))) at ((Player((Integer A))) start location) facing Default building facing degrees
Set Variable Set Hunter[(Player number of (Owner of (Last created unit)))] = (Last created unit)
Selection - Select Hunter[(Integer A)] for (Player((Integer A)))
Else - Actions
Camera - Lock camera target for (Player((Integer A))) to Hunter[(Integer A)] , offset by ( 0 , 0 ) using Default rotation
Camera - Set (Player((Integer A))) 's camera Distance to target to 2000.00 over 0 seconds
Set Variable Set rects[1] = Rect_001_Copy <gen>
Set Variable Set rects[2] = Rect_001 <gen>
Wait 0.01 seconds
Leaderboard - Create a leaderboard for (All players) titled Time
Leaderboard - Add Player 7 (Green) to (Last created leaderboard) with label Survived: and value 0
Unit - Create (Random integer number between 5 and 10) . Zombie for Player 7 (Green) at (Random point in Rect_001_Copy <gen>) facing Default building facing degrees
Unit Group - Pick every unit in (Last created unit group) and do (Order (Picked unit) to Attack.(Random unit from (Units of type Fire Lord (Female))))
Wait 5.00 seconds
Trigger - Turn on spawn_d <gen>
Wait 5.00 seconds
Trigger - Turn on spawn_f <gen>
Wait 5.00 seconds
Trigger - Turn on mega_spawn <gen>
Attack
Events
Unit - A unit Is issued an order targeting a point
Unit - A unit Is issued an order targeting an object
Conditions
(Issued order) Equal to Right-Click
Actions
Unit - Create 1 . Dragon Hawk for (Triggering player) at (Position of Hunter[(Player number of (Triggering player))]) facing Default building facing degrees
Unit - Order (Last created unit) to Attack Ground . (Target point of issued order)
Unit - Order (Last created unit) to Attack Ground . (Position of (Target unit of issued order))
Unit - Set the custom value of Hunter[(Player number of (Triggering player))] to 90
Unit - Order Hunter[(Player number of (Owner of (Ordered unit)))] to Move To . ((Position of Hunter[(Player number of (Triggering player))]) offset by 1000.00 towards (Facing of Hunter[(Player number of (Triggering player))]) degrees.)
клавиша нажата - устанавливаем флаг нажатой клафиши, время цикла прокрутки на 0 и ставим флаг изменений.
Press left
Events
Player - Player 1 (Red) Presses the Left Arrow key
Player - Player 2 (Blue) Presses the Left Arrow key
Player - Player 3 (Teal) Presses the Left Arrow key
Player - Player 4 (Purple) Presses the Left Arrow key
Player - Player 5 (Yellow) Presses the Left Arrow key
Player - Player 6 (Orange) Presses the Left Arrow key
Player - Player 7 (Green) Presses the Left Arrow key
Player - Player 8 (Pink) Presses the Left Arrow key
Player - Player 9 (Gray) Presses the Left Arrow key
Player - Player 10 (Light Blue) Presses the Left Arrow key
Player - Player 11 (Dark Green) Presses the Left Arrow key
Player - Player 12 (Brown) Presses the Left Arrow key
Conditions
Actions
Unit - Order Hunter[(Player number of (Triggering player))] to Move To . ((Position of Hunter[(Player number of (Triggering player))]) offset by 1000.00 towards ((Facing of Hunter[(Player number of (Triggering player))]) + 50.00) degrees.)
Unit - Set the custom value of Hunter[(Player number of (Triggering player))] to 180
Press right
Events
Player - Player 1 (Red) Presses the Right Arrow key
Player - Player 2 (Blue) Presses the Right Arrow key
Player - Player 3 (Teal) Presses the Right Arrow key
Player - Player 4 (Purple) Presses the Right Arrow key
Player - Player 5 (Yellow) Presses the Right Arrow key
Player - Player 6 (Orange) Presses the Right Arrow key
Player - Player 7 (Green) Presses the Right Arrow key
Player - Player 8 (Pink) Presses the Right Arrow key
Player - Player 9 (Gray) Presses the Right Arrow key
Player - Player 10 (Light Blue) Presses the Right Arrow key
Player - Player 11 (Dark Green) Presses the Right Arrow key
Player - Player 12 (Brown) Presses the Right Arrow key
Conditions
Actions
Unit - Order Hunter[(Player number of (Triggering player))] to Move To . ((Position of Hunter[(Player number of (Triggering player))]) offset by 1000.00 towards ((Facing of Hunter[(Player number of (Triggering player))]) - 50.00) degrees.)
Unit - Set the custom value of Hunter[(Player number of (Triggering player))] to 360
Press up
Events
Player - Player 1 (Red) Presses the Up Arrow key
Player - Player 2 (Blue) Presses the Up Arrow key
Player - Player 3 (Teal) Presses the Up Arrow key
Player - Player 4 (Purple) Presses the Up Arrow key
Player - Player 5 (Yellow) Presses the Up Arrow key
Player - Player 6 (Orange) Presses the Up Arrow key
Player - Player 7 (Green) Presses the Up Arrow key
Player - Player 8 (Pink) Presses the Up Arrow key
Player - Player 9 (Gray) Presses the Up Arrow key
Player - Player 10 (Light Blue) Presses the Up Arrow key
Player - Player 11 (Dark Green) Presses the Up Arrow key
Player - Player 12 (Brown) Presses the Up Arrow key
Conditions
Actions
Unit - Order Hunter[(Player number of (Triggering player))] to Move To . ((Position of Hunter[(Player number of (Triggering player))]) offset by 1000.00 towards (Facing of Hunter[(Player number of (Triggering player))]) degrees.)
Unit - Set the custom value of Hunter[(Player number of (Triggering player))] to 90
Press down
Events
Player - Player 1 (Red) Presses the Down Arrow key
Player - Player 2 (Blue) Presses the Down Arrow key
Player - Player 3 (Teal) Presses the Down Arrow key
Player - Player 4 (Purple) Presses the Down Arrow key
Player - Player 5 (Yellow) Presses the Down Arrow key
Player - Player 6 (Orange) Presses the Down Arrow key
Player - Player 7 (Green) Presses the Down Arrow key
Player - Player 8 (Pink) Presses the Down Arrow key
Player - Player 9 (Gray) Presses the Down Arrow key
Player - Player 10 (Light Blue) Presses the Down Arrow key
Player - Player 11 (Dark Green) Presses the Down Arrow key
Player - Player 12 (Brown) Presses the Down Arrow key
Conditions
Actions
Unit - Order Hunter[(Player number of (Triggering player))] to Stop .
Unit - Set the custom value of Hunter[(Player number of (Triggering player))] to 0
Release up
Events
Player - Player 1 (Red) Releases the Up Arrow key
Player - Player 2 (Blue) Releases the Up Arrow key
Player - Player 3 (Teal) Releases the Up Arrow key
Player - Player 4 (Purple) Releases the Up Arrow key
Player - Player 5 (Yellow) Releases the Up Arrow key
Player - Player 6 (Orange) Releases the Up Arrow key
Player - Player 7 (Green) Releases the Up Arrow key
Player - Player 8 (Pink) Releases the Up Arrow key
Player - Player 9 (Gray) Releases the Up Arrow key
Player - Player 10 (Light Blue) Releases the Up Arrow key
Player - Player 11 (Dark Green) Releases the Up Arrow key
Player - Player 12 (Brown) Releases the Up Arrow key
Conditions
Actions
Unit Group - Pick every unit in (Units in Rect_000 <gen> matching ((Custom value of Hunter[(Player number of (Triggering player))]) Equal to 90)) and do (Actions)
Loop - Actions
Unit - Order Hunter[(Player number of (Triggering player))] to Stop .
spawn z
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Set Variable Set sec = (sec + 1)
Leaderboard - Add Player 7 (Green) to (Last created leaderboard) with label Survived: and value sec
Unit - Create 1 . Zombie for Player 7 (Green) at (Random point in rects[(Random integer number between 1 and 2)]) facing Default building facing degrees
Unit - Order (Last created unit) to Attack . (Random unit from (Units of type Fire Lord (Female)))
spawn d
Events
Time - Every 1.50 seconds of game time
Conditions
Actions
Unit - Create 1 . Fel Dog for Player 7 (Green) at (Random point in rects[(Random integer number between 1 and 2)]) facing Default building facing degrees
Unit - Order (Last created unit) to Attack . (Random unit from (Units of type Fire Lord (Female)))
spawn f
Events
Time - Every 12.00 seconds of game time
Conditions
Actions
Unit - Create 1 . Felguard for Player 7 (Green) at (Random point in rects[(Random integer number between 1 and 2)]) facing Default building facing degrees
Unit - Order (Last created unit) to Attack . (Random unit from (Units of type Fire Lord (Female)))
Unit - Change color of (Last created unit) to Red
mega spawn
Events
Time - Every 10.00 seconds of game time
Conditions
Actions
Unit - Create (Random integer number between 5 and (5 x (Number of players in (All players matching (((Matching player) slot status) Equal to Is playing).)))) . Zombie for Player 7 (Green) at (Random point in Rect_001_Copy <gen>) facing Default building facing degrees
Unit Group - Pick every unit in (Last created unit group) and do (Order (Picked unit) to Attack.(Random unit from (Units of type Fire Lord (Female))))
Unit - Create (Random integer number between 5 and (5 x (Number of players in (All players matching (((Matching player) slot status) Equal to Is playing).)))) . Fel Dog for Player 7 (Green) at (Random point in Rect_001_Copy <gen>) facing Default building facing degrees
Unit Group - Pick every unit in (Last created unit group) and do (Order (Picked unit) to Attack.(Random unit from (Units of type Fire Lord (Female))))
Deafeat
Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Equal to Fire Lord (Female)
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of living Fire Lord (Female) units owned by (Picked player)) Equal to 0
Then - Actions
Unit Group - Pick every unit in (Units owned by Player 7 (Green).) and do (Explode (Picked unit).)
Floating Text - Create floating text that reads (New Survive Record: + (String(sec))) at (Position of (Dying unit)) with Z offset 0 , using font size 20.00 , color ( 100 %, 59.00 %, 59.00 %), and 0 % transparency
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.