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
Node Commander [v.1].w3x
Variables
Initialization
Melee Initialization
Locked Camera
Timer Start
Node Capturing
Capture Node
Leaderboard
Setup
Timer Ends
Timer Ends
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
BlueNodeCount
integer
No
1
BluePoint
integer
No
0
RedNodeCount
integer
No
1
RedPoint
integer
No
0
Timer
timer
No
Default melee game initialization for all players
Melee Initialization
Events
Map initialization
Conditions
Actions
Melee Game - Use melee time of day (for all players)
Visibility - Disable fog of war
Visibility - Disable black mask
Locked Camera
Events
Time - Every 0.10 seconds of game time
Conditions
Actions
Camera - . Apply . gg_cam_Camera_001 for Player 1 (Red) over 0 seconds
Player Group - Pick every player in (All players) and do (.Apply. gg_cam_Camera_001 for (Picked player) over 0 seconds)
Timer Start
Events
Time - Elapsed game time is 0.01 seconds
Conditions
Actions
Game - Display to (All players) the text: Welcome to |c00ffcc00Node Commander! [v.1]|r-------------------------------------------------Use the "Capture Node" ability (Hotkey "C") to take control of nodes.
Countdown Timer - Create a timer window for Timer with title Game Ends:
Countdown Timer - Start Timer as a One-shot timer that will expire in 300.00 seconds
Capture Node
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Capture Node
Actions
Unit - Change ownership of (Target unit of ability being cast) to (Owner of (Triggering unit)) and Change color
Selection - Select (Target unit of ability being cast) for (Owner of (Triggering unit))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Triggering unit)) Equal to Player 1 (Red)
Then - Actions
Set Variable Set RedPoint = (RedPoint + 1)
Set Variable Set RedNodeCount = (RedNodeCount + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Targeted unit)) Equal to Player 2 (Blue)
Then - Actions
Set Variable Set BlueNodeCount = (BlueNodeCount - 1)
Set Variable Set RedNodeCount = (RedNodeCount + 1)
Else - Actions
Else - Actions
Set Variable Set BluePoint = (BluePoint + 1)
Set Variable Set BlueNodeCount = (BlueNodeCount + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Targeted unit)) Equal to Player 1 (Red)
Then - Actions
Set Variable Set RedNodeCount = (RedNodeCount - 1)
Set Variable Set BlueNodeCount = (BlueNodeCount + 1)
Else - Actions
Leaderboard - Change the value for Player 1 (Red) in (Last created leaderboard) to RedPoint
Leaderboard - Change the value for Player 2 (Blue) in (Last created leaderboard) to BluePoint
Leaderboard - Sort (Last created leaderboard) by Value in Descending order
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
RedNodeCount Equal to 25
Then - Actions
Countdown Timer - Pause Timer
Game - Display to (All players) the text: |c00ffcc00[[GAME OVER]]|r
Wait 2.00 seconds
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Remove (Picked unit) from the game)
Wait 10.00 seconds
Game - Display to (All players) the text: ((|c00ffcc00 + ((Name of Player 1 (Red)) + |r)) + is the winner!)
Game - Victory Player 1 (Red) ( Show dialogs, Show scores)
Game - Defeat Player 2 (Blue) with the message: Defeat!
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
BlueNodeCount Equal to 25
Then - Actions
Game - Display to (All players) the text: |c00ffcc00[[GAME OVER]]|r
Wait 3.00 seconds
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Remove (Picked unit) from the game)
Wait 10.00 seconds
Game - Display to (All players) the text: ((|c00ffcc00 + ((Name of Player 2 (Blue)) + |r)) + is the winner!)
Game - Victory Player 2 (Blue) ( Show dialogs, Show scores)
Game - Defeat Player 1 (Red) with the message: Defeat!
Else - Actions
Setup
Events
Time - Elapsed game time is 0.01 seconds
Conditions
Actions
Leaderboard - Create a leaderboard for (All players) titled [Node Commander]
Leaderboard - Hide (Last created leaderboard)
Leaderboard - Add Player 1 (Red) to (Last created leaderboard) with label (Name of Player 1 (Red)) and value RedPoint
Leaderboard - Add Player 2 (Blue) to (Last created leaderboard) with label (Name of Player 2 (Blue)) and value BluePoint
Leaderboard - Show (Last created leaderboard)
Leaderboard - Sort (Last created leaderboard) by Value in Descending order
Timer Ends
Events
Time - Timer expires
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Remove (Picked unit) from the game)
Game - Display to (All players) the text: |c00ffcc00[[GAME OVER]]|r
Wait 10.00 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
RedPoint Greater than BluePoint
Then - Actions
Game - Display to (All players) the text: ((|c00ffcc00 + ((Name of Player 1 (Red)) + |r)) + is the winner!)
Game - Victory Player 1 (Red) ( Show dialogs, Show scores)
Game - Defeat Player 2 (Blue) with the message: Defeat!
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
RedPoint Equal to BluePoint
Then - Actions
Game - Display to (All players) the text: The game is a DRAW!
Game - Victory Player 1 (Red) ( Show dialogs, Show scores)
Game - Victory Player 2 (Blue) ( Show dialogs, Show scores)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
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.