1. Are you planning to upload your awesome map to Hive? Please review the rules here.
    Dismiss Notice
  2. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  3. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  4. The Lich King demands your service! We've reached the 19th edition of the Icon Contest. Come along and make some chilling servants for the one true king.
    Dismiss Notice
  5. The 4th SFX Contest has started. Be sure to participate and have a fun factor in it.
    Dismiss Notice
  6. The poll for the 21st Terraining Contest is LIVE. Be sure to check out the entries and vote for one.
    Dismiss Notice
  7. The results are out! Check them out.
    Dismiss Notice
  8. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  9. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  10. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Trigger Viewer

Protect Gaara TD.w3x
Variables
Map Initialization
TimeStart
Shoot it Out
Hopeless
Lance
Ashes
Stop Music In General
Stop Music N Stuff
Gold
Name
Visibility
Sound
Game Functions
Quests
Open Gates
Change Disconnected Player Owner
Camera
Making Game Time Work
Set Tech
Camera Smoothing
Cheats
Gold Copy
Air Level Commands
Red Air
Red Air Copy
Red Air Copy 2
Red Air Copy 3
Red Air Copy 4
Red Air Copy 5
Red Air Copy 6
Hero
Move P1 Unit to Way Gate 1
Win and Loose
Victory
Loose
End Game
Corpse Removal Attackers
Corpse Removal Lives
Player Leaves Game
Blue Leaves
Monster Spawn
Bounty Gold
Set Enemies
Time Spawn
Next Round
Spawn Monsters
Display Level Text
Leader Board
Make
Add Point
make peasant 10 mins
make peasant 20 mins
Attack Move
Attack Move
The guy is being attacked
Sell
Sell Button
Ban
Ban 1
Ban 1 Copy
Ban 1 Copy 2
Ban 1 Copy 3
Ban 1 Copy 4
Ban 1 Copy 5
Debug
Tips
Tips
Game Difficulty Set Up
Easy
Medium
Hard
Turn Off All Difficulty Settings

		
Name Type Is Array Initial Value
defeated boolean No false
dialog dialog No
DiffDialog button Yes
Easy button No
endgame boolean No false
EnemyCount integer Yes
EnemyGold integer Yes
EnemyType unitcode Yes
Game_Time real No
Hard button No
i integer No 0
Kills integer Yes
lives integer No 21
Normal button No
pointer integer No 0
SuperHuman button No
Time_elapsed timer No
Time_Elapsed_Window timerdialog No
TradeGold integer No
victory boolean No false
TimeStart
  Events
    Map initialization
  Conditions
  Actions
    Game - Set the time of day to 24.00
    Game - Turn the day/night cycle Off
    Environment - Set sky to Lordaeron Fall Sky
    Environment - Create at (Playable map area) the weather effect Ashenvale Rain (Heavy)
    Unit - Order Miner 0047 <gen> to Harvest Resource Mine 0029 <gen>
    Unit - Order Miner 0046 <gen> to Harvest Resource Mine 0029 <gen>
    Unit - Order Miner 0051 <gen> to Harvest Resource Mine 0030 <gen>
    Unit - Order Miner 0050 <gen> to Harvest Resource Mine 0030 <gen>
    Unit - Order Miner 0057 <gen> to Harvest Resource Mine 0031 <gen>
    Unit - Order Miner 0056 <gen> to Harvest Resource Mine 0031 <gen>
    Unit - Order Miner 0062 <gen> to Harvest Resource Mine 0032 <gen>
    Unit - Order Miner 0061 <gen> to Harvest Resource Mine 0032 <gen>
    Unit - Order Miner 0067 <gen> to Harvest Resource Mine 0025 <gen>
    Unit - Order Miner 0066 <gen> to Harvest Resource Mine 0025 <gen>
    Unit - Order Miner 0071 <gen> to Harvest Resource Mine 0034 <gen>
    Unit - Order Miner 0072 <gen> to Harvest Resource Mine 0034 <gen>
    Unit - Order Miner 0077 <gen> to Harvest Resource Mine 0027 <gen>
    Unit - Order Miner 0076 <gen> to Harvest Resource Mine 0027 <gen>
    Wait 0.25 seconds
    Countdown Timer - Create a timer window for Time_elapsed with title Game Time
    Set Time_Elapsed_Window = (Last created timer window)
    Countdown Timer - Change the color of the time for (Last created timer window) to (100%, 0.00%, 0.00%) with 0% transparency
    Countdown Timer - Change the color of the title for (Last created timer window) to (0.00%, 0.00%, 100.00%) with 0% transparency
    Countdown Timer - Show Time_Elapsed_Window
Shoot it Out
  Events
    Player - Player 1 (Red) types a chat message containing -Track 1 as An exact match
  Conditions
  Actions
    Sound - Stop _Shoot_it_Out__promo_Video <gen> After fading
    Sound - Play _Shoot_it_Out__promo_Video <gen>
    Sound - Stop Hopelesss <gen> After fading
    Sound - Stop Ashes <gen> After fading
    Sound - Stop Pokemon_Champion_Lance_Music_Metal_Remix <gen> After fading
    Game - Display to (All players) the text: |cffff0000Now Playing... Shoot It Out by 10 Years|r
Hopeless
  Events
    Player - Player 1 (Red) types a chat message containing -Track 2 as An exact match
  Conditions
  Actions
    Sound - Stop Hopelesss <gen> After fading
    Sound - Play Hopelesss <gen>
    Sound - Stop _Shoot_it_Out__promo_Video <gen> After fading
    Sound - Stop Ashes <gen> After fading
    Sound - Stop Pokemon_Champion_Lance_Music_Metal_Remix <gen> After fading
    Game - Display to (All players) the text: |cffff0000Now Playing... Hopeless by Breaking Benjamin|r
Lance
  Events
    Player - Player 1 (Red) types a chat message containing -Track 4 as An exact match
  Conditions
  Actions
    Sound - Stop Pokemon_Champion_Lance_Music_Metal_Remix <gen> After fading
    Sound - Play Pokemon_Champion_Lance_Music_Metal_Remix <gen>
    Sound - Stop _Shoot_it_Out__promo_Video <gen> After fading
    Sound - Stop Hopelesss <gen> After fading
    Sound - Stop Ashes <gen> After fading
    Game - Display to (All players) the text: |cffff0000Now Playing... Lance Metal Theme by Fairzons|r
Ashes
  Events
    Player - Player 1 (Red) types a chat message containing -Track 3 as An exact match
  Conditions
  Actions
    Sound - Stop Ashes <gen> After fading
    Sound - Play Ashes <gen>
    Sound - Stop Hopelesss <gen> After fading
    Sound - Stop _Shoot_it_Out__promo_Video <gen> After fading
    Sound - Stop Pokemon_Champion_Lance_Music_Metal_Remix <gen> After fading
    Game - Display to (All players) the text: |cffff0000Now Playing... Ashes of the Innocent by Bullet for my Valentine|r
Stop Music In General
  Events
    Player - Player 1 (Red) types a chat message containing -stop music as An exact match
  Conditions
  Actions
    Sound - Stop _Shoot_it_Out__promo_Video <gen> After fading
    Sound - Stop Hopelesss <gen> After fading
    Sound - Stop Ashes <gen> After fading
    Sound - Stop Pokemon_Champion_Lance_Music_Metal_Remix <gen> After fading
Stop Music N Stuff
  Events
    Map initialization
  Conditions
  Actions
    Sound - Disable dawn and dusk sounds
    Custom script: call StopSound(bj_dayAmbientSound, true, true)
    Custom script: call StopSound(bj_nightAmbientSound, true, true)
    Sound - Stop music Immediately
    Sound - Clear the music list
Gold
  Events
    Map initialization
  Conditions
  Actions
    Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Set (Picked player) Current gold to 250)
    Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Set (Picked player) Current lumber to 2)
Name
  Events
    Map initialization
  Conditions
  Actions
    Game - Display to (All players) the text: |cffff0000Welcome Players to Protect Gaara TD By DarkZXRead Quests For Any Information You Need About The Game!|r|cff7777aaRed Has 20 Seconds To Choose The Difficulty Settings For The Game (Easy, Normal and Hard)The Game Will Default To Easy If Red Decides Not To Pick A Difficulty Level.|r
Visibility
  Events
    Map initialization
  Conditions
  Actions
    Player Group - Pick every player in (All players) and do (Create an initially Enabled visibility modifier for (Picked player) emitting Visibility across (Playable map area))
Sound
  Events
    Map initialization
  Conditions
  Actions
    Sound - Stop music Immediately
    Sound - Disable dawn and dusk sounds
Quests
  Events
    Map initialization
  Conditions
  Actions
    Quest - Create a Required quest titled Welcome with the description Welcome to Protect Gaara TD by DarkZX:In Here You Can Find FAQ's and Other Important Information About The Map., using icon path war3mapImported\BTNHeroDreadLord.blp
    Quest - Create a Required quest titled Host Commands with the description These Are Commands That The Host Can Type In:Difficulty Settings: (Works In The First 20 Seconds Of The Game Only):-Easy (Gives Creeps No Bonus Armor)-Medium (Gives Creeps 5 Bonus Armor)-Hard (Gives Creeps 10 Bonus Armor and Extra Speed), using icon path ReplaceableTextures\CommandButtons\BTNHumanMissileUpOne.blp
    Quest - Create a Required quest titled Music Commands with the description These Music Commands Play Music On The Map (Only Host Can Type Them):-track 1 (Plays: Shoot It Out by 10 Years)-track 2 (Plays: Hopeless by Breaking Benjamin)-track 3 (Plays: Ashes of the Innocent by Bullet for my Valentine)-track 4 (Plays: Lance Metal Theme by Fairzons)-stop music (Stops Any Music That Is Playing), using icon path ReplaceableTextures\CommandButtons\BTNAdvancedStrengthOfTheMoon.blp
    Quest - Create a Required quest titled Player Commands with the description These are commands that anyone, not just the host can type in.-air (shows which levels are air levels), using icon path ReplaceableTextures\CommandButtons\BTNSoulBurn.blp
    Quest - Create a Optional quest titled Object Of The Game with the description The Object Of The Game Is To Protect Gaara and Keep Him From Dying.Get Gold From The Gold Mines In The Upper Left Corner Of The Map.Maze Towers, DO NOT BLOCK! If you block the creeps will kill your towers.Most Of All, LISTEN TO THE HOST, he most likely knows what he is doing., using icon path ReplaceableTextures\CommandButtons\BTNSelectHeroOff.blp
Open Gates
  Events
    Map initialization
  Conditions
  Actions
    Destructible - Open Elven Gate 1680 <gen>
    Destructible - Open Elven Gate 1681 <gen>
    Destructible - Open Elven Gate 1682 <gen>
    Destructible - Open Elven Gate 1683 <gen>
Taken from Arkguil. If it works, why make your own?
Change Disconnected Player Owner
  Events
    Time - Every 15.00 seconds of game time
  Conditions
  Actions
    -------- Coded by Arkguil. (2009) --------
    Player Group - Pick every player in (All players matching (((Matching player) slot status) Equal to Has left the game)) and do (Pick every unit in (Units owned by (Picked player)) and do (Change ownership of (Picked unit) to (Random player from (All allies of Player 1 (Red))) and Change color))
    Player Group - Pick every player in (All players matching (((Matching player) slot status) Equal to Has left the game)) and do (Change the label for (Picked player) in (Last created leaderboard) to Leaver)
    Player Group - Pick every player in (All players matching (((Matching player) slot status) Equal to Has left the game)) and do (Add ((Picked player) Current gold) to (Random player from (All allies of Player 1 (Red))) Current gold)
    Player Group - Pick every player in (All players matching (((Matching player) slot status) Equal to Has left the game)) and do (Set (Picked player) Current gold to 0)
Camera
  Events
    Time - Every 1.00 seconds of game time
  Conditions
  Actions
    Camera - Set Player 1 (Red)'s camera Distance to target to 2000.00 over 1.00 seconds
    Camera - Set Player 2 (Blue)'s camera Distance to target to 2000.00 over 1.00 seconds
    Camera - Set Player 3 (Teal)'s camera Distance to target to 2000.00 over 1.00 seconds
    Camera - Set Player 4 (Purple)'s camera Distance to target to 2000.00 over 1.00 seconds
    Camera - Set Player 5 (Yellow)'s camera Distance to target to 2000.00 over 1.00 seconds
    Camera - Set Player 6 (Orange)'s camera Distance to target to 2000.00 over 1.00 seconds
    Camera - Set Player 7 (Green)'s camera Distance to target to 2000.00 over 1.00 seconds
Making Game Time Work
  Events
    Time - Every 1.00 seconds of game time
  Conditions
  Actions
    Set Game_Time = (Game_Time + 1)
    Countdown Timer - Start Time_elapsed as a One-shot timer that will expire in Game_Time seconds
    Countdown Timer - Pause Time_elapsed
Set Tech
  Events
    Map initialization
  Conditions
  Actions
    Player - Set the max research level of Redc (techcode) to 0 for Player 1 (Red)
Camera Smoothing
  Events
    Time - Elapsed game time is 0.50 seconds
  Conditions
  Actions
    Camera - Change camera smoothing factor to 10.00
Gold Copy
  Events
    Player - Player 1 (Red) types a chat message containing -Cheat 1 as An exact match
  Conditions
  Actions
    Player - Add 1000 to Player 1 (Red) Current gold
Red Air
  Events
    Player - Player 1 (Red) types a chat message containing -air as An exact match
  Conditions
  Actions
    Game - Display to (All players) the text: |cffff0000Air Levels Are:|rLevel 12, Level 15, Level 20, Level 32, Level 40, Level 42
Red Air Copy
  Events
    Player - Player 2 (Blue) types a chat message containing -air as An exact match
  Conditions
  Actions
    Game - Display to (All players) the text: |cffff0000Air Levels Are:|rLevel 12, Level 15, Level 20, Level 32, Level 40, Level 42
Red Air Copy 2
  Events
    Player - Player 3 (Teal) types a chat message containing -air as An exact match
  Conditions
  Actions
    Game - Display to (All players) the text: |cffff0000Air Levels Are:|rLevel 12, Level 15, Level 20, Level 32, Level 40, Level 42
Red Air Copy 3
  Events
    Player - Player 4 (Purple) types a chat message containing -air as An exact match
  Conditions
  Actions
    Game - Display to (All players) the text: |cffff0000Air Levels Are:|rLevel 12, Level 15, Level 20, Level 32, Level 40, Level 42
Red Air Copy 4
  Events
    Player - Player 5 (Yellow) types a chat message containing -air as An exact match
  Conditions
  Actions
    Game - Display to (All players) the text: |cffff0000Air Levels Are:|rLevel 12, Level 15, Level 20, Level 32, Level 40, Level 42
Red Air Copy 5
  Events
    Player - Player 6 (Orange) types a chat message containing -air as An exact match
  Conditions
  Actions
    Game - Display to (All players) the text: |cffff0000Air Levels Are:|rLevel 12, Level 15, Level 20, Level 32, Level 40, Level 42
Red Air Copy 6
  Events
    Player - Player 7 (Green) types a chat message containing -air as An exact match
  Conditions
  Actions
    Game - Display to (All players) the text: |cffff0000Air Levels Are:|rLevel 12, Level 15, Level 20, Level 32, Level 40, Level 42
This trigger makes it so that when a player creates a new Tower Builder, the unit will automatically walk to the Way Gate where it will be teleported to the player's playing area.
Move P1 Unit to Way Gate 1
  Events
    Unit - A unit enters Region_014 <gen>
  Conditions
  Actions
    Unit - Move (Triggering unit) instantly to (Center of Region_015 <gen>)
    Unit - Order (Triggering unit) to Move To (Destination of (Last created unit))
Victory
  Events
    Time - Every 1.00 seconds of game time
  Conditions
    victory Equal to False
  Actions
    If (pointer Equal to 47) then do (Pick every player in (All allies of Player 1 (Red)) and do (Victory (Picked player) (Show dialogs, Show scores))) else do (Do nothing)
Loose
  Events
    Unit - 5th Kazekage 0022 <gen> Dies
  Conditions
  Actions
    Sound - Stop _Shoot_it_Out__promo_Video <gen> After fading
    Sound - Stop Hopelesss <gen> After fading
    Sound - Stop Ashes <gen> After fading
    Sound - Stop Pokemon_Champion_Lance_Music_Metal_Remix <gen> After fading
    Sound - Play Doom01 <gen>
    Game - Display to (All players) the text: |cffff0000Gaara Has Been Killed, You Have Lost.The Game Will End In 75 Seconds, Good Luck and Please Try AgainPlease Send Any Suggestions to DarkZX on West Or Add His MSN at daltondubois2@yahoo.com|r
    Unit Group - Pick every unit in (Units owned by Player 1 (Red)) and do (Remove (Picked unit) from the game)
    Unit Group - Pick every unit in (Units owned by Player 2 (Blue)) and do (Remove (Picked unit) from the game)
    Unit Group - Pick every unit in (Units owned by Player 3 (Teal)) and do (Remove (Picked unit) from the game)
    Unit Group - Pick every unit in (Units owned by Player 4 (Purple)) and do (Remove (Picked unit) from the game)
    Unit Group - Pick every unit in (Units owned by Player 5 (Yellow)) and do (Remove (Picked unit) from the game)
    Unit Group - Pick every unit in (Units owned by Player 6 (Orange)) and do (Remove (Picked unit) from the game)
    Unit Group - Pick every unit in (Units owned by Player 7 (Green)) and do (Remove (Picked unit) from the game)
    Unit Group - Pick every unit in (Units owned by Player 8 (Pink)) and do (Remove (Picked unit) from the game)
    Unit Group - Pick every unit in (Units owned by Player 9 (Gray)) and do (Remove (Picked unit) from the game)
    Wait 75.00 seconds
    Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Defeat (Picked player) with the message: Gaara Has Been Killed)
End Game
  Events
  Conditions
  Actions
    Wait 7.50 seconds
    Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Defeat (Picked player) with the message: (Defeated at Level + (String(pointer))))
Corpse Removal Attackers
  Events
    Unit - A unit owned by Player 12 (Brown) Dies
  Conditions
  Actions
    Wait 2 seconds
    Unit - Remove (Dying unit) from the game
Corpse Removal Lives
  Events
    Unit - A unit owned by Player 11 (Dark Green) Dies
  Conditions
  Actions
    Wait 2 seconds
    Unit - Remove (Dying unit) from the game
Blue Leaves
  Events
  Conditions
  Actions
Had to use this because I couldn't figure out the bounty system used with creeps. To give gold to the killer of the unit
Bounty Gold
  Events
    Unit - A unit owned by Player 12 (Brown) Dies
  Conditions
  Actions
    Player - Add EnemyGold[pointer] to (Owner of (Killing unit)) Current gold
VERY easy to add new levels or modify the existing ones.

Set Enemies
  Events
    Map initialization
  Conditions
  Actions
    -------- Level 0 --------
    Set i = 0
    Set EnemyType[i] = Hydralisk
    Set EnemyCount[i] = 40
    Set EnemyGold[i] = 1
    -------- Level 1 --------
    Set i = (i + 1)
    Set EnemyType[i] = Frost Wolf
    Set EnemyCount[i] = 20
    Set EnemyGold[i] = 2
    -------- Level 2 --------
    Set i = (i + 1)
    Set EnemyType[i] = Ballista
    Set EnemyCount[i] = 20
    Set EnemyGold[i] = 3
    -------- Level 3 --------
    Set i = (i + 1)
    Set EnemyType[i] = Dark Fish Man
    Set EnemyCount[i] = 20
    Set EnemyGold[i] = 4
    -------- Level 4 --------
    Set i = (i + 1)
    Set EnemyType[i] = Assassin
    Set EnemyCount[i] = 20
    Set EnemyGold[i] = 5
    -------- Level 5 --------
    Set i = (i + 1)
    Set EnemyType[i] = Ice Troll
    Set EnemyCount[i] = 20
    Set EnemyGold[i] = 5
    -------- Level 6 --------
    Set i = (i + 1)
    Set EnemyType[i] = Skelly
    Set EnemyCount[i] = 20
    Set EnemyGold[i] = 6
    -------- Level 7 --------
    Set i = (i + 1)
    Set EnemyType[i] = Blue Ogre
    Set EnemyCount[i] = 20
    Set EnemyGold[i] = 6
    -------- Level 8 --------
    Set i = (i + 1)
    Set EnemyType[i] = Kobold Geomancer
    Set EnemyCount[i] = 20
    Set EnemyGold[i] = 7
    -------- Level 9 --------
    Set i = (i + 1)
    Set EnemyType[i] = Flame Spider
    Set EnemyCount[i] = 20
    Set EnemyGold[i] = 8
    -------- Level 10 --------
    Set i = (i + 1)
    Set EnemyType[i] = R/C Racer
    Set EnemyCount[i] = 20
    Set EnemyGold[i] = 9
    -------- Level 11 --------
    Set i = (i + 1)
    Set EnemyType[i] = Banshee
    Set EnemyCount[i] = 20
    Set EnemyGold[i] = 10
    -------- Level 12 --------
    Set i = (i + 1)
    Set EnemyType[i] = Flying Beauties
    Set EnemyCount[i] = 20
    Set EnemyGold[i] = 11
    -------- Level 13 --------
    Set i = (i + 1)
    Set EnemyType[i] = Fury Bear
    Set EnemyCount[i] = 20
    Set EnemyGold[i] = 12
    -------- Level 14 --------
    Set i = (i + 1)
    Set EnemyType[i] = Golem
    Set EnemyCount[i] = 15
    Set EnemyGold[i] = 12
    -------- Level 15 --------
    Set i = (i + 1)
    Set EnemyType[i] = Harpy Storm-hag
    Set EnemyCount[i] = 20
    Set EnemyGold[i] = 12
    -------- Level 16 --------
    Set i = (i + 1)
    Set EnemyType[i] = Tiny Lizards
    Set EnemyCount[i] = 15
    Set EnemyGold[i] = 12
    -------- Level 17 --------
    Set i = (i + 1)
    Set EnemyType[i] = Centaur Sorcerer
    Set EnemyCount[i] = 20
    Set EnemyGold[i] = 13
    -------- Level 18 --------
    Set i = (i + 1)
    Set EnemyType[i] = Goblin Sapper
    Set EnemyCount[i] = 20
    Set EnemyGold[i] = 13
    -------- Level 19 --------
    Set i = (i + 1)
    Set EnemyType[i] = Meat Wagon
    Set EnemyCount[i] = 15
    Set EnemyGold[i] = 13
    -------- Level 20 --------
    Set i = (i + 1)
    Set EnemyType[i] = Red Drake
    Set EnemyCount[i] = 30
    Set EnemyGold[i] = 15
    -------- Level 21 --------
    Set i = (i + 1)
    Set EnemyType[i] = UFO
    Set EnemyCount[i] = 20
    Set EnemyGold[i] = 15
    -------- Level 22 --------
    Set i = (i + 1)
    Set EnemyType[i] = Corrupted Tree Runners
    Set EnemyCount[i] = 20
    Set EnemyGold[i] = 15
    -------- Level 23 --------
    Set i = (i + 1)
    Set EnemyType[i] = Frost Warrior
    Set EnemyCount[i] = 20
    Set EnemyGold[i] = 15
    -------- Level 24 --------
    Set i = (i + 1)
    Set EnemyType[i] = Spider Queen
    Set EnemyCount[i] = 30
    Set EnemyGold[i] = 17
    -------- Level 25 --------
    Set i = (i + 1)
    Set EnemyType[i] = Wendigo
    Set EnemyCount[i] = 30
    Set EnemyGold[i] = 17
    -------- Level 26 --------
    Set i = (i + 1)
    Set EnemyType[i] = Kel'Thuzad (Ghost)
    Set EnemyCount[i] = 30
    Set EnemyGold[i] = 20
    -------- Level 27 --------
    Set i = (i + 1)
    Set EnemyType[i] = ANBU Itachi
    Set EnemyCount[i] = 30
    Set EnemyGold[i] = 22
    -------- Level 28 --------
    Set i = (i + 1)
    Set EnemyType[i] = Crypt Queen
    Set EnemyCount[i] = 25
    Set EnemyGold[i] = 25
    -------- Level 29 --------
    Set i = (i + 1)
    Set EnemyType[i] = Haunted Horse
    Set EnemyCount[i] = 30
    Set EnemyGold[i] = 30
    -------- Level 30 --------
    Set i = (i + 1)
    Set EnemyType[i] = Furbolg Ursa Warrior
    Set EnemyCount[i] = 20
    Set EnemyGold[i] = 30
    -------- Level 31 --------
    Set i = (i + 1)
    Set EnemyType[i] = Infernal
    Set EnemyCount[i] = 20
    Set EnemyGold[i] = 35
    -------- level 32 --------
    Set i = (i + 1)
    Set EnemyType[i] = Madoshi Box
    Set EnemyCount[i] = 20
    Set EnemyGold[i] = 40
    -------- level 33 --------
    Set i = (i + 1)
    Set EnemyType[i] = Wendigo Shaman
    Set EnemyCount[i] = 20
    Set EnemyGold[i] = 40
    -------- level 34 --------
    Set i = (i + 1)
    Set EnemyType[i] = Tower Attacking Parasites
    Set EnemyCount[i] = 20
    Set EnemyGold[i] = 45
    -------- level 35 --------
    Set i = (i + 1)
    Set EnemyType[i] = Ultra Goblin Mech
    Set EnemyCount[i] = 20
    Set EnemyGold[i] = 45
    -------- level 36 --------
    Set i = (i + 1)
    Set EnemyType[i] = Crazy Pilot
    Set EnemyCount[i] = 20
    Set EnemyGold[i] = 50
    -------- level 37 --------
    Set i = (i + 1)
    Set EnemyType[i] = Doom Guard
    Set EnemyCount[i] = 20
    Set EnemyGold[i] = 50
    -------- level 38 --------
    Set i = (i + 1)
    Set EnemyType[i] = Red Ogre
    Set EnemyCount[i] = 20
    Set EnemyGold[i] = 50
    -------- level 39 --------
    Set i = (i + 1)
    Set EnemyType[i] = Crypt Lord
    Set EnemyCount[i] = 20
    Set EnemyGold[i] = 55
    -------- level 40 --------
    Set i = (i + 1)
    Set EnemyType[i] = Shadow King
    Set EnemyCount[i] = 20
    Set EnemyGold[i] = 60
    -------- level 41 --------
    Set i = (i + 1)
    Set EnemyCount[i] = 20
    Set EnemyType[i] = Flaming Evil
    Set EnemyGold[i] = 65
    -------- level 42 --------
    Set i = (i + 1)
    Set EnemyCount[i] = 20
    Set EnemyType[i] = Icy Madoshi Box
    Set EnemyGold[i] = 70
    -------- level 43 --------
    Set i = (i + 1)
    Set EnemyCount[i] = 20
    Set EnemyType[i] = Frozen Statue
    Set EnemyGold[i] = 75
    -------- level 44 --------
    Set i = (i + 1)
    Set EnemyCount[i] = 40
    Set EnemyType[i] = Frozen Itachi
    Set EnemyGold[i] = 80
    -------- level 45 --------
    Set i = (i + 1)
    Set EnemyCount[i] = 25
    Set EnemyType[i] = Nature's Spear
    Set EnemyGold[i] = 80
    -------- level 46 --------
    Set i = (i + 1)
    Set EnemyCount[i] = 35
    Set EnemyType[i] = Spears of Darkness
    Set EnemyGold[i] = 90
    -------- level 47 --------
Time Spawn
  Events
    Time - Elapsed game time is 35.00 seconds
  Conditions
  Actions
    Trigger - Run Display_Level_Text <gen> (checking conditions)
    For each (Integer A) from 1 to EnemyCount[i], do (Run Spawn_Monsters <gen> (checking conditions))
Next Round
  Events
    Player - Player 12 (Brown)'s Food used becomes Less than 1.10
  Conditions
  Actions
    Set pointer = (pointer + 1)
    Player Group - Pick every player in (All players) and do (Add 25 to (Picked player) Current gold)
    For each (Integer A) from 1 to EnemyCount[i], do (Run Time_Spawn <gen> (ignoring conditions))
    Wait 10.00 seconds
Spawn Monsters
  Events
  Conditions
  Actions
    Unit - Create 1 EnemyType[pointer] for Player 12 (Brown) at (Random point in Monster_Spawn_Top_Left <gen>) facing (Position of (Triggering unit))
    Unit - Create 1 EnemyType[pointer] for Player 12 (Brown) at (Random point in Monster_Spawn_Top_Right <gen>) facing (Position of (Triggering unit))
    Unit - Create 1 EnemyType[pointer] for Player 12 (Brown) at (Random point in Monster_Spawn_Bottom_Left <gen>) facing (Position of (Triggering unit))
    Unit - Create 1 EnemyType[pointer] for Player 12 (Brown) at (Random point in Monster_Spawn_Bottom_Right <gen>) facing (Position of (Triggering unit))
Display Level Text
  Events
  Conditions
  Actions
    Wait 1.00 seconds
    Game - Display to (All players) for 7.00 seconds the text: (|c0000ff80Level + ((String(pointer)) + (: |r + ((Name of (Last created unit)) + ( ( + ((String(EnemyCount[pointer])) + each corner)))))))
Make
  Events
    Map initialization
  Conditions
  Actions
    -------- Begin Leaderboard --------
    Wait 1.00 seconds
    Leaderboard - Create a leaderboard for (All allies of Player 1 (Red)) titled Player Kills
    Player Group - Pick every player in (All allies of Player 1 (Red)) and do (If (((Picked player) slot status) Equal to Is playing) then do (Add (Picked player) to (Last created leaderboard) with label (Name of (Picked player)) and value 0) else do (Do nothing))
    Leaderboard - Sort (Last created leaderboard) by Value in Descending order
    Leaderboard - Show (Last created leaderboard)
    For each (Integer A) from 1 to 12, do (Set Kills[0] = 0)
    -------- End Leaderboard --------
Add Point
  Events
    Unit - A unit owned by Player 12 (Brown) Dies
  Conditions
  Actions
    Set Kills[(Player number of (Owner of (Killing unit)))] = (Kills[(Player number of (Owner of (Killing unit)))] + 1)
    Leaderboard - Change the value for (Owner of (Killing unit)) in (Last created leaderboard) to Kills[(Player number of (Owner of (Killing unit)))]
    Leaderboard - Sort (Last created leaderboard) by Value in Descending order
make peasant 10 mins
  Events
    Time - Elapsed game time is 600.00 seconds
  Conditions
  Actions
    Unit - Create 1 Miner for Player 1 (Red) at (Center of red_spawn_peasant <gen>) facing (Center of (Playable map area))
    Unit - Create 1 Miner for Player 2 (Blue) at (Center of blue_spawn_peasant <gen>) facing (Center of (Playable map area))
    Unit - Create 1 Miner for Player 3 (Teal) at (Center of teal_spawn_peasant <gen>) facing (Center of (Playable map area))
    Unit - Create 1 Miner for Player 4 (Purple) at (Center of purple_spawn_peasant <gen>) facing (Center of (Playable map area))
    Unit - Create 1 Miner for Player 5 (Yellow) at (Center of yellow_spawn_peasant <gen>) facing (Center of (Playable map area))
    Unit - Create 1 Miner for Player 6 (Orange) at (Center of orange_spawn_peasant <gen>) facing (Center of (Playable map area))
    Unit - Create 1 Miner for Player 7 (Green) at (Center of green_spawn_peasant <gen>) facing (Center of (Playable map area))
    Game - Display to (All players) the text: |c005CDBE3You've lasted 10 minutes! Another miner has been created for you!|r
make peasant 20 mins
  Events
    Time - Elapsed game time is 1200.00 seconds
  Conditions
  Actions
    Unit - Create 1 Miner for Player 1 (Red) at (Center of red_spawn_peasant <gen>) facing (Center of (Playable map area))
    Unit - Create 1 Miner for Player 2 (Blue) at (Center of blue_spawn_peasant <gen>) facing (Center of (Playable map area))
    Unit - Create 1 Miner for Player 3 (Teal) at (Center of teal_spawn_peasant <gen>) facing (Center of (Playable map area))
    Unit - Create 1 Miner for Player 4 (Purple) at (Center of purple_spawn_peasant <gen>) facing (Center of (Playable map area))
    Unit - Create 1 Miner for Player 5 (Yellow) at (Center of yellow_spawn_peasant <gen>) facing (Center of (Playable map area))
    Unit - Create 1 Miner for Player 6 (Orange) at (Center of orange_spawn_peasant <gen>) facing (Center of (Playable map area))
    Unit - Create 1 Miner for Player 7 (Green) at (Center of green_spawn_peasant <gen>) facing (Center of (Playable map area))
    Game - Display to (All players) the text: |c005CDBE3You've lasted 20 minutes! Another miner has been created for you!|r
Attack Move
  Events
    Unit - A unit enters Region_004 <gen>
  Conditions
    (Owner of (Triggering unit)) Equal to Player 12 (Brown)
  Actions
    Unit - Order (Triggering unit) to Attack 5th Kazekage 0022 <gen>
The guy is being attacked
  Events
    Unit - 5th Kazekage 0022 <gen> Is attacked
  Conditions
  Actions
    Game - Display to (All players) the text: Gaara Is Bieng Attacked! Defend Him!
Sell Button
  Events
    Unit - A unit owned by Player 1 (Red) Finishes training a unit
    Unit - A unit owned by Player 2 (Blue) Finishes training a unit
    Unit - A unit owned by Player 3 (Teal) Finishes training a unit
    Unit - A unit owned by Player 4 (Purple) Finishes training a unit
    Unit - A unit owned by Player 5 (Yellow) Finishes training a unit
    Unit - A unit owned by Player 6 (Orange) Finishes training a unit
    Unit - A unit owned by Player 7 (Green) Finishes training a unit
    Unit - A unit owned by Player 8 (Pink) Finishes training a unit
  Conditions
    (Trained unit-type) Equal to Sell
  Actions
    Unit - Remove (Trained unit) from the game
    Special Effect - Create a special effect at (Position of (Triggering unit)) using Abilities\Spells\Items\Alvi\AlviTarget.mdx
    Player - Add ((Integer((Real((Point-value of (Triggering unit)))))) / 2) to (Triggering player) Current gold
    Unit - Remove (Triggering unit) from the game
taken from neverlax d&d
Ban 1
  Events
    Player - Player 1 (Red) types a chat message containing -ban blue as An exact match
  Conditions
  Actions
    Unit Group - Pick every unit in (Units owned by Player 2 (Blue)) and do (Remove (Picked unit) from the game)
Ban 1 Copy
  Events
    Player - Player 1 (Red) types a chat message containing -ban teal as An exact match
  Conditions
  Actions
    Unit Group - Pick every unit in (Units owned by Player 3 (Teal)) and do (Remove (Picked unit) from the game)
Ban 1 Copy 2
  Events
    Player - Player 1 (Red) types a chat message containing -ban purple as An exact match
  Conditions
  Actions
    Unit Group - Pick every unit in (Units owned by Player 4 (Purple)) and do (Remove (Picked unit) from the game)
Ban 1 Copy 3
  Events
    Player - Player 1 (Red) types a chat message containing -ban yellow as An exact match
  Conditions
  Actions
    Unit Group - Pick every unit in (Units owned by Player 5 (Yellow)) and do (Remove (Picked unit) from the game)
Ban 1 Copy 4
  Events
    Player - Player 1 (Red) types a chat message containing -ban orange as An exact match
  Conditions
  Actions
    Unit Group - Pick every unit in (Units owned by Player 6 (Orange)) and do (Remove (Picked unit) from the game)
Ban 1 Copy 5
  Events
    Player - Player 1 (Red) types a chat message containing -ban green as An exact match
  Conditions
  Actions
    Unit Group - Pick every unit in (Units owned by Player 7 (Green)) and do (Remove (Picked unit) from the game)
Debug
  Events
    Player - Player 1 (Red) types a chat message containing -debug as An exact match
  Conditions
  Actions
    Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Set (Picked player) Current gold to 1000000)
    Unit - Make 5th Kazekage 0022 <gen> Invulnerable
Tips
  Events
    Time - Elapsed game time is 30.00 seconds
  Conditions
  Actions
    Game - Display to (All players) the text: Tip #1: |cffff0000Make Sure That You Always Protect Gaara and Do What He Tells You To Do, Most Likely He Knows Quite A Few Strategies.|r
    Wait 75.00 seconds
    Game - Display to (All players) the text: Tip #2: |cffff0000Air Levels Get Increasingly Harder, A Good Strategy Is To Have 4 Time Slow Towers, and One Extremly Powerful Anti-Air Tower or More.|r
    Wait 75.00 seconds
    Game - Display to (All players) the text: Tip #3: |cffff0000If You Get A Hero, You Should Take Them To Heros Grotto, It Is On The Lower Left Corner Of The Map Near The Alters. You Can Buy Tomes, Ankths, and Other Important Items There.|r
    Wait 75.00 seconds
    Game - Display to (All players) the text: Tip #4: |cffff0000Taking A Spawn Can Help Out With Kills Quite A Bit, A Good Strategy Is To Take a Cannon Tower Build It Right In Front Of A Spawn, Then Build Guard Towers Around The Spawn, Forcing Units To Go Near The Cannon Tower To Get Out Of The Maze, Dont Forget To Upgrade That Cannon Tower!|r
    Wait 75.00 seconds
    Game - Display to (All players) the text: Tip #5: |cffff0000Use Your Heros Well, Using Them To Stop Any Creeps Going After Gaara Is Most Likely The Best Way To Use Them.|r
    Wait 75.00 seconds
    Game - Display to (All players) the text: Tip #6: |cffff0000If You Have Ideas For The Map, Add DarkZX on West or add his MSN, daltondubois2@yahoo.com|r
    Wait 75.00 seconds
    Game - Display to (All players) the text: Tip #7: |cffff0000I play on both the West and East realms of battle.net, however most of the time I am on West.|r
    Wait 75.00 seconds
    Game - Display to (All players) the text: Tip #8: |cffff0000Hmmm.... I need to take a shit.|r
    Wait 75.00 seconds
    Game - Display to (All players) the text: Tip #9: |cffff0000What has 5 metal lines and holds back the incredible hulk? My Zipper.|r
    Wait 75.00 seconds
    Game - Display to (All players) the text: Tip #10: |cffff0000mmmm... burger.....|r
    Wait 75.00 seconds
    Game - Display to (All players) the text: Tip #11: |cffff0000Successful Troll is Successful|r
    Wait 75.00 seconds
    Game - Display to (All players) the text: Tip #12: |cffff0000Do you work at cingular? Cause you just rose my bar.|r
    Wait 75.00 seconds
    Game - Display to (All players) the text: Tip #13: |cffff0000Music is simply amazing, thats all that needs to be said.|r
Easy
  Events
    Player - Player 1 (Red) types a chat message containing -Easy as An exact match
  Conditions
  Actions
    Game - Display to (All players) the text: Game Difficulty Has Been Set To Easy... Get Ready For A Fun Game!
    Trigger - Turn off Medium <gen>
    Trigger - Turn off Hard <gen>
    Trigger - Turn off Turn_Off_All_Difficulty_Settings <gen>
    Trigger - Turn off Easy <gen>
Medium
  Events
    Player - Player 1 (Red) types a chat message containing -Medium as An exact match
  Conditions
  Actions
    Game - Display to (All players) the text: Game Difficulty Has Been Set To Medium, All Enemies Have A Bonus Five Armor.... Get Ready For A Challenging Game...
    Trigger - Turn off Hard <gen>
    Trigger - Turn off Easy <gen>
    Trigger - Turn off Turn_Off_All_Difficulty_Settings <gen>
    Unit - Create 1 Medium Difficulty for Player 10 (Light Blue) at (Center of Difficulty_Spawn <gen>) facing Default building facing degrees
    Unit - Pause (Last created unit)
    Trigger - Turn off Medium <gen>
Hard
  Events
    Player - Player 1 (Red) types a chat message containing -Hard as An exact match
  Conditions
  Actions
    Game - Display to (All players) the text: Game Difficulty Has Been Set To Hard, All Enemies Have Ten Bonus Armor... Get Ready For An Extremely Hard Game...
    Trigger - Turn off Easy <gen>
    Trigger - Turn off Medium <gen>
    Trigger - Turn off Turn_Off_All_Difficulty_Settings <gen>
    Unit - Create 1 Hard Difficulty for Player 10 (Light Blue) at (Center of Difficulty_Spawn <gen>) facing Default building facing degrees
    Unit - Pause (Last created unit)
    Trigger - Turn off Hard <gen>
Turn Off All Difficulty Settings
  Events
    Time - Elapsed game time is 20.00 seconds
  Conditions
  Actions
    Game - Display to (All players) the text: Game Difficulty Has Automatically Defaulted To Easy
    Trigger - Turn off Easy <gen>
    Trigger - Turn off Medium <gen>
    Trigger - Turn off Hard <gen>