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
Hold The Line.w3x
Variables
Initialization
Melee Initialization
Start
StartGame
EnemySpawns
MoreEnemySpawns
DragonTurtleSpawn
Reinforcements1
Reinforcements2
Reinforcements3
TimerMode
Normal
Hard
AlliedHoldingLine
HoldingTheLine
HoldingTheLine2
HoldingTheLine3
EnemyAttacking
EnemyAttacking
EnemyAttacking2
EnemyAttacking3
EnemyAttacking4
DragonTurtleAttacking1
DragonTurtleAttacking2
MoreEnemyAttacking
MoreEnemyAttacking1
MoreEnemyAttacking2
MoreEnemyAttacking3
MoreEnemyAttacking4
TownHallDies
TownHallDies
SurvivalTimer
NormalModeTimer
HardModeTimer
DefensePlan
StartingResources
MoreResources
Victory
GameVictory
PlayMusic
Music
Music2
Player1HeroRespawn
HeroRespawnsAfterDeath
Player2AltarDies
AltarDies
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
DialogButton1
button
No
DialogButton2
button
No
DialogTitle
dialog
No
HardSurvivalTimer
timer
No
SurvivalTimer
timer
No
TimerWindow
timerdialog
No
TimerWindow2
timerdialog
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)
StartGame
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Trigger - Turn on EnemySpawns <gen>
Trigger - Turn on MoreEnemySpawns <gen>
Trigger - Turn on DragonTurtleSpawn <gen>
Trigger - Turn on Reinforcements1 <gen>
Trigger - Turn on Reinforcements2 <gen>
Trigger - Turn on Reinforcements3 <gen>
Trigger - Run StartingResources <gen> (checking conditions)
Unit - Pause all units
Dialog - Change the title of DialogTitle to Choose survival timer
Dialog - Create a dialog button for DialogTitle labelled Normal (30 mins)
Set Variable Set DialogButton1 = (Last created dialog Button)
Dialog - Create a dialog button for DialogTitle labelled Hard (50 mins)
Set Variable Set DialogButton2 = (Last created dialog Button)
Dialog - Show DialogTitle for Player 1 (Red)
Wait 2 seconds
Game - Display to (All players) for 10.00 seconds the text: |cffffff00Build your defensive structure to defend an allied Town Hall until you win. If the enemy destroyed the town hall, you lose!|r
Wait 4.00 seconds
Quest - Display to (All players) the Hint message: |cffffa500NOTICE|r - |cffffff00You can build|r |cff32cd32"Tidal Guardian"|r |cffffff00to fend off the monsters.|r |cffffff00Also, build|r |cff32cd32"Temple Barracks"|r |cffffff00in order to fight.|r
EnemySpawns
Events
Time - Every 20.00 seconds of game time
Conditions
Actions
Unit - Create 3 . Makrura Prawn for Player 12 (Brown) at (Center of Spawn1 <gen>) facing Default building facing degrees
Unit - Create 3 . Spider Crab Shorecrawler for Player 12 (Brown) at (Center of Spawn2 <gen>) facing Default building facing degrees
Unit - Create 3 . Sea Turtle for Player 12 (Brown) at (Center of Spawn3 <gen>) facing Default building facing degrees
Unit - Create 4 . Mur'gul Cliffrunner for Player 12 (Brown) at (Center of Spawn4 <gen>) facing Default building facing degrees
MoreEnemySpawns
Events
Time - Every 80.00 seconds of game time
Conditions
Actions
Quest - Display to (All players) the Warning message: |cffff0000WARNING|r - More enemy reinforcements approaching!
Unit - Create 2 . Makrura Snapper for Player 12 (Brown) at (Center of MoreSpawn1 <gen>) facing Default building facing degrees
Unit - Create 2 . Spider Crab Limbripper for Player 12 (Brown) at (Center of MoreSpawn2 <gen>) facing Default building facing degrees
Unit - Create 2 . Giant Sea Turtle for Player 12 (Brown) at (Center of MoreSpawn3 <gen>) facing Default building facing degrees
Unit - Create 3 . Mur'gul Tidewarrior for Player 12 (Brown) at (Center of MoreSpawn4 <gen>) facing Default building facing degrees
DragonTurtleSpawn
Events
Time - Every 280.00 seconds of game time
Conditions
Actions
Quest - Display to (All players) the Warning message: |cffff0000WARNING|r - |cffffff00Dragon Turtles approaching!|r
Unit - Create 2 . Dragon Turtle for Player 12 (Brown) at (Center of DragonTurtleSpawn <gen>) facing Default building facing degrees
Unit - Create 2 . Dragon Turtle for Player 12 (Brown) at (Center of DragonTurtleSpawn2 <gen>) facing Default building facing degrees
Reinforcements1
Events
Time - Elapsed game time is 220.00 seconds
Conditions
Actions
Unit - Create 3 . Footman for Player 2 (Blue) at (Center of Reinforcements1 <gen>) facing Default building facing degrees
Wait 2 seconds
Unit - Create 2 . Rifleman for Player 2 (Blue) at (Center of Reinforcements1 <gen>) facing Default building facing degrees
Reinforcements2
Events
Time - Elapsed game time is 220.00 seconds
Conditions
Actions
Unit - Create 5 . Island Soldier for Player 2 (Blue) at (Center of Reinforcements2 <gen>) facing Default building facing degrees
Wait 2 seconds
Unit - Create 3 . Rifleman for Player 2 (Blue) at (Center of Reinforcements2 <gen>) facing Default building facing degrees
Reinforcements3
Events
Time - Elapsed game time is 220.00 seconds
Conditions
Actions
Unit - Create 3 . Island Soldier for Player 5 (Yellow) at (Center of Reinforcements3 <gen>) facing Default building facing degrees
Wait 2 seconds
Unit - Create 5 . Bandit for Player 5 (Yellow) at (Center of Reinforcements3 <gen>) facing Default building facing degrees
Wait 4.00 seconds
Unit - Create 3 . Rogue for Player 5 (Yellow) at (Center of Reinforcements3 <gen>) facing Default building facing degrees
Normal
Events
Dialog - A dialog button is clicked for DialogTitle
Conditions
(Clicked dialog button) Equal to DialogButton1
Actions
Dialog - Hide DialogTitle for Player 1 (Red)
Unit - Unpause all units
Quest - Display to (All players) the Hint message: |cffffa500NOTICE|r - |cffffff00Set survive time in 30 minutes!|r
Trigger - Run NormalModeTimer <gen> (checking conditions)
Hard
Events
Dialog - A dialog button is clicked for DialogTitle
Conditions
(Clicked dialog button) Equal to DialogButton2
Actions
Dialog - Hide DialogTitle for Player 1 (Red)
Unit - Unpause all units
Quest - Display to (All players) the Hint message: |cffffa500NOTICE|r - |cffffff00Set survive time in 50 minutes!|r
Trigger - Run HardModeTimer <gen> (checking conditions)
HoldingTheLine
Events
Unit - A unit enters Reinforcements1 <gen>
Conditions
(Owner of (Entering unit)) Equal to Player 2 (Blue)
Actions
Unit - Order (Entering unit) to Attack-Move To . (Center of HoldForTownHall <gen>)
HoldingTheLine2
Events
Unit - A unit enters Reinforcements2 <gen>
Conditions
(Owner of (Entering unit)) Equal to Player 2 (Blue)
Actions
Unit - Order (Entering unit) to Attack-Move To . (Center of HoldForTownHall <gen>)
HoldingTheLine3
Events
Unit - A unit enters Reinforcements3 <gen>
Conditions
(Owner of (Entering unit)) Equal to Player 5 (Yellow)
Actions
Unit - Order (Entering unit) to Attack-Move To . (Center of HoldForTownHall <gen>)
EnemyAttacking
Events
Unit - A unit enters Spawn1 <gen>
Conditions
(Owner of (Entering unit)) Equal to Player 12 (Brown)
Actions
Unit - Order (Entering unit) to Attack-Move To . (Center of TownHallTarget <gen>)
EnemyAttacking2
Events
Unit - A unit enters Spawn2 <gen>
Conditions
(Owner of (Entering unit)) Equal to Player 12 (Brown)
Actions
Unit - Order (Entering unit) to Attack-Move To . (Center of TownHallTarget <gen>)
EnemyAttacking3
Events
Unit - A unit enters Spawn3 <gen>
Conditions
(Owner of (Entering unit)) Equal to Player 12 (Brown)
Actions
Unit - Order (Entering unit) to Attack-Move To . (Center of TownHallTarget <gen>)
EnemyAttacking4
Events
Unit - A unit enters Spawn4 <gen>
Conditions
(Owner of (Entering unit)) Equal to Player 12 (Brown)
Actions
Unit - Order (Entering unit) to Attack-Move To . (Center of TownHallTarget <gen>)
DragonTurtleAttacking1
Events
Unit - A unit enters DragonTurtleSpawn <gen>
Conditions
(Owner of (Entering unit)) Equal to Player 12 (Brown)
Actions
Unit - Order (Entering unit) to Attack-Move To . (Center of TownHallTarget <gen>)
DragonTurtleAttacking2
Events
Unit - A unit enters DragonTurtleSpawn2 <gen>
Conditions
(Owner of (Entering unit)) Equal to Player 12 (Brown)
Actions
Unit - Order (Entering unit) to Attack-Move To . (Center of TownHallTarget <gen>)
MoreEnemyAttacking1
Events
Unit - A unit enters MoreSpawn1 <gen>
Conditions
(Owner of (Entering unit)) Equal to Player 12 (Brown)
Actions
Unit - Order (Entering unit) to Attack-Move To . (Center of TownHallTarget <gen>)
MoreEnemyAttacking2
Events
Unit - A unit enters MoreSpawn2 <gen>
Conditions
(Owner of (Entering unit)) Equal to Player 12 (Brown)
Actions
Unit - Order (Entering unit) to Attack-Move To . (Center of TownHallTarget <gen>)
MoreEnemyAttacking3
Events
Unit - A unit enters MoreSpawn3 <gen>
Conditions
(Owner of (Entering unit)) Equal to Player 12 (Brown)
Actions
Unit - Order (Entering unit) to Attack-Move To . (Center of TownHallTarget <gen>)
MoreEnemyAttacking4
Events
Unit - A unit enters MoreSpawn4 <gen>
Conditions
(Owner of (Entering unit)) Equal to Player 12 (Brown)
Actions
Unit - Order (Entering unit) to Attack-Move To . (Center of TownHallTarget <gen>)
TownHallDies
Events
Unit - Town Hall 0001 <gen> Dies
Conditions
Actions
Sound - Play 13_Game_Over <gen>
Game - Display to (All players) for 10.00 seconds the text: |cffe60000The defense has lost!|r
Wait 2 seconds
Cinematic - Fade in over 2.00 seconds using texture Black Mask and color ( 0 %, 0 %, 0 %) with 0 % transparency
Wait 8.00 seconds
Game - Defeat Player 1 (Red) with the message: Defeat!
Game - Defeat Player 2 (Blue) with the message: Defeat!
Game - Defeat Player 5 (Yellow) with the message: Defeat!
NormalModeTimer
Events
Conditions
Actions
Countdown Timer - Start SurvivalTimer as a One-shot timer that will expire in 1800.00 seconds
Countdown Timer - Create a timer window for SurvivalTimer with title Time remaining
Set Variable Set TimerWindow = (Last created timer window)
Countdown Timer - Show TimerWindow
Wait 1800.00 seconds
Trigger - Run GameVictory <gen> (checking conditions)
HardModeTimer
Events
Conditions
Actions
Countdown Timer - Start HardSurvivalTimer as a One-shot timer that will expire in 3000.00 seconds
Countdown Timer - Create a timer window for HardSurvivalTimer with title Time remaining
Set Variable Set TimerWindow2 = (Last created timer window)
Countdown Timer - Show TimerWindow2
Wait 3000.00 seconds
Trigger - Run GameVictory <gen> (checking conditions)
StartingResources
Events
Conditions
Actions
Player - Set Player 1 (Red) . Current gold to 2000
Player - Set Player 1 (Red) . Current lumber to 1000
Trigger - Turn on MoreResources <gen>
MoreResources
Events
Time - Every 300.00 seconds of game time
Conditions
Actions
Player - Add 1000 to Player 1 (Red) . Current gold
Player - Add 500 to Player 1 (Red) . Current lumber
Game - Display to (All players) for 10.00 seconds the text: |cffffff00More resources to keep defending!|r
GameVictory
Events
Conditions
Actions
Sound - Play 05_Stage_Clear <gen>
Game - Display to (All players) for 10.00 seconds the text: |cff32cd32You did it! The defense has won!|r
Wait 5.00 seconds
Game - Victory Player 1 (Red) ( Skip dialogs, Show scores)
Game - Victory Player 2 (Blue) ( Skip dialogs, Show scores)
Game - Victory Player 5 (Yellow) ( Skip dialogs, Show scores)
Music
Events
Time - Elapsed game time is 20.00 seconds
Conditions
Actions
Sound - Play 03_Stage_1 <gen>
Music2
Events
Time - Every 280.00 seconds of game time
Conditions
Actions
Sound - Play 10_Stage_6 <gen>
HeroRespawnsAfterDeath
Events
Unit - Island Hunter 0029 <gen> Dies
Conditions
Actions
Quest - Display to (All players) the Warning message: |cffff0000WARNING|r - |cffffff00Your hero has died. You will respawn in 10 seconds!|r
Wait 10.00 seconds
Camera - Pan camera for Player 1 (Red) to (Center of HeroSpawn <gen>) over 1.00 seconds
Hero - Instantly revive Island Hunter 0029 <gen> at (Center of HeroSpawn <gen>) , Show revival graphics
AltarDies
Events
Unit - Altar of Kings 0030 <gen> Dies
Conditions
Actions
Quest - Display to (All players) the Warning message: |cffff0000WARNING|r - |cffffff00Your hero will no longer respawn!|r
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.