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
Lane Castle Defense.w3m
Variables
Variables
Initialization
StartGame
WinCondition
LoseCondition
Hero Selection
Repick
Selection1
Selection2
Selection3
Selection4
Selection5
Selection6
Selection7
Selection8
Selection9
Selection10
Selection11
Selection12
Selection13
Selection14
UnitSpawn
Wave1
Wave2
Wave3
Wave4
Wave5
WaveController
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 except Custom Script Item. Custom Script Item will merge into map script after globals variables declaration with the list order in trigger view.
Name
Type
is_array
initial_value
WaveVar
trigger
Yes
StartGame
Events
Map initialization
Conditions
Actions
For each (Integer A) from 1 to 10 , do (Actions)
Loop - Actions
Player - Turn Gives bounty On for Player 12 (Brown)
Visibility - Create an initially Enabled visibility modifier for (Player((Integer A))) emitting Visibility from (Center of Selection3 <gen>) to a radius of 2000.00 .
Visibility - Create an initially Enabled visibility modifier for (Player((Integer A))) emitting Visibility from (Center of Hero_Spawn <gen>) to a radius of 2000.00 .
Camera - . Apply . gg_cam_HeroSelectionCam for (Player((Integer A))) over 0 seconds
Game - Turn the day/night cycle Off
Game - Set the time of day to 12
Floating Text - Create floating text that reads Repick Here at (Center of TouchToRepick <gen>) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
WinCondition
Events
Time - Every 2.00 seconds of game time
Conditions
(WaveController <gen> is on) Equal to False
Actions
For each (Integer A) from 1 to 10 , do (Victory (Player((Integer A))) (Show dialogs, Show scores))
LoseCondition
Events
Unit - Castle 0022 <gen> Dies
Conditions
Actions
For each (Integer A) from 1 to 10 , do (Defeat (Player((Integer A))) with the message: Defeat!)
Repick
Events
Unit - A unit enters TouchToRepick <gen>
Conditions
Actions
Unit - Create 1 . HeroChooser for (Owner of (Entering unit)) at (Center of RepickArea <gen>) facing Default building facing degrees
Unit - Remove (Entering unit) from the game
Selection - Select (Last created unit) for (Owner of (Entering unit))
Camera - . Apply . gg_cam_HeroSelectionCam for (Owner of (Entering unit)) over 0 seconds
Selection1
Events
Unit - A unit enters Selection1 <gen>
Conditions
Actions
Unit - Create 1 . Arrow Master for (Owner of (Entering unit)) at (Center of Hero_Spawn <gen>) facing Default building facing degrees
Unit - Remove (Entering unit) from the game
Selection - Select (Last created unit) for (Owner of (Entering unit))
Camera - . Apply . gg_cam_HeroCam for (Owner of (Entering unit)) over 0 seconds
Selection2
Events
Unit - A unit enters Selection2 <gen>
Conditions
Actions
Unit - Create 1 . Earth Mage for (Owner of (Entering unit)) at (Center of Hero_Spawn <gen>) facing Default building facing degrees
Unit - Remove (Entering unit) from the game
Selection - Select (Last created unit) for (Owner of (Entering unit))
Camera - . Apply . gg_cam_HeroCam for (Owner of (Entering unit)) over 0 seconds
Selection3
Events
Unit - A unit enters Selection3 <gen>
Conditions
Actions
Unit - Create 1 . Ice Mage for (Owner of (Entering unit)) at (Center of Hero_Spawn <gen>) facing Default building facing degrees
Unit - Remove (Entering unit) from the game
Selection - Select (Last created unit) for (Owner of (Entering unit))
Camera - . Apply . gg_cam_HeroCam for (Owner of (Entering unit)) over 0 seconds
Selection4
Events
Unit - A unit enters Selection4 <gen>
Conditions
Actions
Unit - Create 1 . Trent Controller for (Owner of (Entering unit)) at (Center of Hero_Spawn <gen>) facing Default building facing degrees
Unit - Remove (Entering unit) from the game
Selection - Select (Last created unit) for (Owner of (Entering unit))
Camera - . Apply . gg_cam_HeroCam for (Owner of (Entering unit)) over 0 seconds
Selection5
Events
Unit - A unit enters Selection5 <gen>
Conditions
Actions
Unit - Create 1 . Ice/Lightning Mage for (Owner of (Entering unit)) at (Center of Hero_Spawn <gen>) facing Default building facing degrees
Unit - Remove (Entering unit) from the game
Selection - Select (Last created unit) for (Owner of (Entering unit))
Camera - . Apply . gg_cam_HeroCam for (Owner of (Entering unit)) over 0 seconds
Selection6
Events
Unit - A unit enters Selection6 <gen>
Conditions
Actions
Unit - Create 1 . Elemental Mage for (Owner of (Entering unit)) at (Center of Hero_Spawn <gen>) facing Default building facing degrees
Unit - Remove (Entering unit) from the game
Selection - Select (Last created unit) for (Owner of (Entering unit))
Camera - . Apply . gg_cam_HeroCam for (Owner of (Entering unit)) over 0 seconds
Selection7
Events
Unit - A unit enters Selection7 <gen>
Conditions
Actions
Unit - Create 1 . Flame Guardian for (Owner of (Entering unit)) at (Center of Hero_Spawn <gen>) facing Default building facing degrees
Unit - Remove (Entering unit) from the game
Selection - Select (Last created unit) for (Owner of (Entering unit))
Camera - . Apply . gg_cam_HeroCam for (Owner of (Entering unit)) over 0 seconds
Selection8
Events
Unit - A unit enters Selection8 <gen>
Conditions
Actions
Unit - Create 1 . Stats Slayer for (Owner of (Entering unit)) at (Center of Hero_Spawn <gen>) facing Default building facing degrees
Unit - Remove (Entering unit) from the game
Selection - Select (Last created unit) for (Owner of (Entering unit))
Camera - . Apply . gg_cam_HeroCam for (Owner of (Entering unit)) over 0 seconds
Selection9
Events
Unit - A unit enters Selection9 <gen>
Conditions
Actions
Unit - Create 1 . Chaos Blade for (Owner of (Entering unit)) at (Center of Hero_Spawn <gen>) facing Default building facing degrees
Unit - Remove (Entering unit) from the game
Selection - Select (Last created unit) for (Owner of (Entering unit))
Camera - . Apply . gg_cam_HeroCam for (Owner of (Entering unit)) over 0 seconds
Selection10
Events
Unit - A unit enters Selection10 <gen>
Conditions
Actions
Unit - Create 1 . Sinister Sage for (Owner of (Entering unit)) at (Center of Hero_Spawn <gen>) facing Default building facing degrees
Unit - Remove (Entering unit) from the game
Selection - Select (Last created unit) for (Owner of (Entering unit))
Camera - . Apply . gg_cam_HeroCam for (Owner of (Entering unit)) over 0 seconds
Selection11
Events
Unit - A unit enters Selection11 <gen>
Conditions
Actions
Unit - Create 1 . Forest Sage for (Owner of (Entering unit)) at (Center of Hero_Spawn <gen>) facing Default building facing degrees
Unit - Remove (Entering unit) from the game
Selection - Select (Last created unit) for (Owner of (Entering unit))
Camera - . Apply . gg_cam_HeroCam for (Owner of (Entering unit)) over 0 seconds
Selection12
Events
Unit - A unit enters Selection12 <gen>
Conditions
Actions
Unit - Create 1 . Potion Slayer for (Owner of (Entering unit)) at (Center of Hero_Spawn <gen>) facing Default building facing degrees
Unit - Remove (Entering unit) from the game
Selection - Select (Last created unit) for (Owner of (Entering unit))
Camera - . Apply . gg_cam_HeroCam for (Owner of (Entering unit)) over 0 seconds
Selection13
Events
Unit - A unit enters Selection13 <gen>
Conditions
Actions
Unit - Create 1 . Mechanic Blaster for (Owner of (Entering unit)) at (Center of Hero_Spawn <gen>) facing Default building facing degrees
Unit - Remove (Entering unit) from the game
Selection - Select (Last created unit) for (Owner of (Entering unit))
Camera - . Apply . gg_cam_HeroCam for (Owner of (Entering unit)) over 0 seconds
Selection14
Events
Unit - A unit enters Selection14 <gen>
Conditions
Actions
Unit - Create 1 . Flame Art for (Owner of (Entering unit)) at (Center of Hero_Spawn <gen>) facing Default building facing degrees
Unit - Remove (Entering unit) from the game
Selection - Select (Last created unit) for (Owner of (Entering unit))
Camera - . Apply . gg_cam_HeroCam for (Owner of (Entering unit)) over 0 seconds
Wave1
Events
Time - Every 15.00 seconds of game time
Conditions
Actions
Game - Display to (All players) the text: Wave 1
Unit - Create 1 . Footman for Player 12 (Brown) at (Center of Creep_Spawn <gen>) facing Default building facing degrees
Unit Group - Order (Units in Creep_Spawn <gen>) to Attack-Move To . (Center of Creep_Attack <gen>)
Wave2
Events
Time - Every 15.00 seconds of game time
Conditions
Actions
Game - Display to (All players) the text: Wave 2
Unit - Create 1 . Footman for Player 12 (Brown) at (Center of Creep_Spawn <gen>) facing Default building facing degrees
Unit Group - Order (Units in Creep_Spawn <gen>) to Attack-Move To . (Center of Creep_Attack <gen>)
Wave3
Events
Time - Every 15.00 seconds of game time
Conditions
Actions
Game - Display to (All players) the text: Wave 3
Unit - Create 1 . Footman for Player 12 (Brown) at (Center of Creep_Spawn <gen>) facing Default building facing degrees
Unit Group - Order (Units in Creep_Spawn <gen>) to Attack-Move To . (Center of Creep_Attack <gen>)
Wave4
Events
Time - Every 15.00 seconds of game time
Conditions
Actions
Game - Display to (All players) the text: Wave 4
Unit - Create 1 . Footman for Player 12 (Brown) at (Center of Creep_Spawn <gen>) facing Default building facing degrees
Unit Group - Order (Units in Creep_Spawn <gen>) to Attack-Move To . (Center of Creep_Attack <gen>)
Wave5
Events
Time - Every 15.00 seconds of game time
Conditions
Actions
Game - Display to (All players) the text: Wave 5
Unit - Create 1 . Footman for Player 12 (Brown) at (Center of Creep_Spawn <gen>) facing Default building facing degrees
Unit Group - Order (Units in Creep_Spawn <gen>) to Attack-Move To . (Center of Creep_Attack <gen>)
WaveController
Events
Time - Elapsed game time is 10.00 seconds
Conditions
Actions
Set Variable Set WaveVar[1] = Wave1 <gen>
Set Variable Set WaveVar[2] = Wave2 <gen>
Set Variable Set WaveVar[3] = Wave3 <gen>
Set Variable Set WaveVar[4] = Wave4 <gen>
Set Variable Set WaveVar[5] = Wave5 <gen>
For each (Integer A) from 1 to 5 , do (Actions)
Loop - Actions
Trigger - Turn on WaveVar[(Integer A)]
Wait 30.00 seconds
Trigger - Turn off WaveVar[(Integer A)]
Wait until ((All units of (Units in (Playable map area) owned by Player 12 (Brown)) are dead) Equal to True) , checking every 1 seconds
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.