Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Trigger Viewer

Kobold Cave.w3x
Variables
Initialization
Start Timer
Settings
Pick Settings
Cleanup
Die
Lose
Start
LavaKobolds
LavaHeroes
Kobold Spawn
Breakout
Spawn Gold
Abilities
Sell Oil
Become a Shaman
Become a Worker
Suicide Bomb
Alchemy
Become a Fighter
Heroes
Next Hero Wave Timer
Ping
ReactivateHeroAttack1
ReactivateHeroAttack2
ReactivateHeroAttack3
Dead Hero
HeroWave1
HeroWave
Hero Taunt
Hero Attack1
Hero Attack2
Hero Attack3
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
Burn effect Yes
Dead boolean Yes
DeadLOL string Yes
Difficulty integer Yes
Easy button No
FirstHeroTimer timer No
Hard button No
Hero unit Yes
Hero1 unitcode Yes
Hero2 unitcode Yes
Hero3 unitcode Yes
HeroRegion rect Yes
HeroStartTaunt string Yes
HeroTimer timer No
HitPoints real No
LOL integer No
Medium button No
Ready integer No
RealMen force No
RMax integer No 3
SayWhat string No
Settings dialog No
StartPoint rect No
StartRegion rect Yes
TauntLOL string Yes
TimerWindow timerdialog No
WaveNumber integer No
Win integer No
Start Timer
  Events
    Time - Elapsed game time is 0.50 seconds
  Conditions
  Actions
    Countdown Timer - Start FirstHeroTimer as a One-shot timer that will expire in 180.00 seconds
    Countdown Timer - Create a timer window for (Last started timer) with title Hero attacks in:
    Set VariableSet TimerWindow = (Last created timer window)
    Countdown Timer - Show TimerWindow
    Set VariableSet WaveNumber = 1
Settings
  Events
    Time - Elapsed game time is 1.00 seconds
  Conditions
  Actions
    Dialog - Clear Settings
    Dialog - Create a dialog button for Settings labelled n00b
    Set VariableSet Easy = (Last created dialog Button)
    Dialog - Create a dialog button for Settings labelled pro
    Set VariableSet Medium = (Last created dialog Button)
    Dialog - Create a dialog button for Settings labelled 1337 hax! OMG Kawai!!11!!
    Set VariableSet Hard = (Last created dialog Button)
    Dialog - Change the title of Settings to Select Difficulty
    Player Group - Pick every player in RealMen and do (Actions)
      Loop - Actions
        Dialog - Show Settings for (Picked player)
Pick Settings
  Events
    Dialog - A dialog button is clicked for Settings
  Conditions
  Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        (Clicked dialog button) Equal to Easy
      Then - Actions
        Set VariableSet Difficulty[(Player number of (Triggering player))] = 1
      Else - Actions
        Do nothing
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        (Clicked dialog button) Equal to Medium
      Then - Actions
        Set VariableSet Difficulty[(Player number of (Triggering player))] = 2
      Else - Actions
        Do nothing
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        (Clicked dialog button) Equal to Hard
      Then - Actions
        Set VariableSet Difficulty[(Player number of (Triggering player))] = 3
      Else - Actions
        Do nothing
    Set VariableSet Ready = (Ready + 1)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Ready Equal to (Number of players in RealMen)
      Then - Actions
        For each (Integer A) from 1 to 6, do (Actions)
          Loop - Actions
            Set VariableSet Win = (Win + Difficulty[(Integer A)])
        Set VariableSet Win = (Win / (Number of players in RealMen))
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Win Equal to 1
          Then - Actions
            Set VariableSet SayWhat = n00b
            Set VariableSet HitPoints = 400.00
          Else - Actions
            Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Win Equal to 2
          Then - Actions
            Set VariableSet SayWhat = pro
            Set VariableSet HitPoints = 200.00
          Else - Actions
            Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Win Equal to 3
          Then - Actions
            Set VariableSet SayWhat = 1337 hax! OMG Kawai!!11!!
            Set VariableSet HitPoints = 0.00
          Else - Actions
            Do nothing
        Game - Display to (All players) the text: (|cffffcc00Difficulty has been set: |r + SayWhat)
        Wait 2.00 game-time seconds
      Else - Actions
        Do nothing
Cleanup
  Events
    Unit - A unit Dies
  Conditions
  Actions
    Wait 2 seconds
    Unit - Remove (Triggering unit) from the game
Die
  Events
    Time - Every 2 seconds of game time
  Conditions
  Actions
    Player Group - Pick every player in RealMen and do (Actions)
      Loop - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            (Number of units in (Units owned by (Picked player) matching (((Matching unit) is alive) Equal to True).)) Equal to 0
            Dead[(Player number of (Picked player))] Equal to False
          Then - Actions
            Set VariableSet Dead[(Player number of (Picked player))] = True
            Game - Display to (All players) the text: ((Name of (Picked player)) + has been defeated.)
          Else - Actions
            Do nothing
Lose
  Events
    Time - Every 2 seconds of game time
  Conditions
    (Number of units in (Units in (Playable map area) matching (((Owner of (Matching unit)) Not equal to Player 12 (Brown)) and (((Matching unit) is alive) Equal to True)))) Equal to 0
  Actions
    Player Group - Pick every player in RealMen and do (Defeat (Picked player) with the message: You have been royaly 0wn3d.)
Start
  Events
    Map initialization
  Conditions
  Actions
    For each (Integer A) from 1 to 200, do (Actions)
      Loop - Actions
        Item - Create Hunk of Gold at (Position of (Random destructible in (Entire map) matching ((Destructible-type of (Matching destructible)) Equal to B000 (destructablecode))))
    Set VariableSet HeroStartTaunt[1] = lol kobolds r teh n00bz
    Set VariableSet HeroStartTaunt[2] = famring kobolds is fun
    Set VariableSet HeroStartTaunt[3] = woot koboldz r experiance :D
    Set VariableSet HeroStartTaunt[4] = feer mah 1337 skillz
    Set VariableSet HeroStartTaunt[5] = time 2 pwn some kobolds lol
    Set VariableSet StartRegion[1] = Kobold_Start_1 <gen>
    Set VariableSet StartRegion[2] = Kobold_Start_2 <gen>
    Set VariableSet StartRegion[3] = Kobold_Start_3 <gen>
    Set VariableSet HeroRegion[1] = Hero_Spawn_1 <gen>
    Set VariableSet HeroRegion[2] = Hero_Spawn_2 <gen>
    Set VariableSet HeroRegion[3] = Hero_Spawn_3 <gen>
    Set VariableSet HeroRegion[4] = Hero_Spawn_4 <gen>
    Set VariableSet HeroRegion[5] = Hero_Spawn_5 <gen>
    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
            (Picked player) Not equal to Player 12 (Brown)
            ((Picked player) controller) Equal to User
            ((Picked player) slot status) Equal to Is playing
          Then - Actions
            Player Group - Add (Picked player) to RealMen
          Else - Actions
            If ((Picked player) Not equal to Player 12 (Brown)) then do (Defeat (Picked player) with the message: You're not playing!) else do (Do nothing)
    Player Group - Pick every player in RealMen and do (Actions)
      Loop - Actions
        Player - Add 50 to (Picked player).Current gold
        Player - Add 50 to (Picked player).Current lumber
        Set VariableSet LOL = (Random integer number between 1 and 3)
        Camera - Pan camera for (Picked player) to (Center of StartRegion[LOL]) over 0 seconds
        Unit - Create 1.Kobold Worker for (Picked player) at (Random point in StartRegion[LOL]) facing (Random angle) degrees
        Hero - Create Spawn Pit and give it to (Last created unit)
        Unit - Create 1.Kobold Fodder for (Picked player) at (Random point in StartRegion[LOL]) facing (Random angle) degrees
        Unit - Create 1.Kobold Fodder for (Picked player) at (Random point in StartRegion[LOL]) facing (Random angle) degrees
        Unit - Create 1.Kobold Fodder for (Picked player) at (Random point in StartRegion[LOL]) facing (Random angle) degrees
    Set VariableSet Hero1[1] = Archer Hero
    Set VariableSet Hero1[2] = Warrior Hero
    Set VariableSet Hero1[3] = Wizard Hero
    Set VariableSet Hero1[4] = Archer Hero
    Set VariableSet Hero2[4] = Warrior Hero
    Set VariableSet Hero1[5] = Rouge Hero
    Set VariableSet Hero2[5] = Wizard Hero
    Set VariableSet Hero1[6] = Archer Hero
    Set VariableSet Hero2[6] = Wizard Hero
    Set VariableSet Hero1[7] = Warrior Hero
    Set VariableSet Hero2[7] = Wizard Hero
    Set VariableSet Hero3[7] = Rouge Hero
    Set VariableSet Hero1[8] = Archer Hero
    Set VariableSet Hero2[8] = Wizard Hero
    Set VariableSet Hero3[8] = Rouge Hero
    Set VariableSet Hero1[9] = Archer Hero
    Set VariableSet Hero2[9] = Wizard Hero
    Set VariableSet Hero3[9] = Warrior Hero
    Set VariableSet Hero1[10] = Wizard Hero
    Set VariableSet Hero2[10] = Rouge Hero
    Set VariableSet Hero3[10] = Warrior Hero
    Set VariableSet DeadLOL[1] = rez plz
    Set VariableSet DeadLOL[2] = OMGWTF
    Set VariableSet DeadLOL[3] = omg kobold own3d
    Set VariableSet DeadLOL[4] = this is gay
    Set VariableSet DeadLOL[5] = lol hax
    Set VariableSet DeadLOL[6] = laaaaaaame
    Set VariableSet DeadLOL[7] = omg im dead
    Set VariableSet DeadLOL[8] = dam kobolds
    Set VariableSet DeadLOL[10] = OMGWTF I HATE THIS RETARD GAEM
    Set VariableSet DeadLOL[9] = lagged lawl
    Set VariableSet TauntLOL[1] = lol ownage
    Set VariableSet TauntLOL[2] = kobolds r n00bs 0.o
    Set VariableSet TauntLOL[3] = pwn3d
    Set VariableSet TauntLOL[4] = ur dead lol
    Set VariableSet TauntLOL[5] = i r 1337
    Set VariableSet TauntLOL[6] = joo sux lol
    Set VariableSet TauntLOL[7] = rofl
    Set VariableSet TauntLOL[8] = im pro
    Set VariableSet TauntLOL[9] = mad skillz
    Set VariableSet TauntLOL[10] = omg u r noob
    Quest - Create a Required quest titled How to Play with the description Kobold Cave is a game where you play the monsters, and the computer controlls the Heroes.Your goal, as a kobold, is to survive through the waves of heroes by building a cave and fortifying it with traps and troops.GETTING STARTED:When you start the game, you are given three kobold fodder and one kobold worker. your kobold worker has a Spawn Pit in his inventory. The best way to start a successful kobold cave is to dig a way into the mountain (by destroying rocks with your kobold worker) and clearing out a space big enough to place your Spawn Pit. Your Spawn Pit will spawn kobold fodder continuously while your worker can proceed to harvest lumber and gather gold.YOUR KOBOLDS:Kobold WorkerThe Kobold Worker is the kobold that gets things done. He can dig into rock, build buildings, and harvest lumber. The kobold worker is not built for combat, but he can fight better than Kobold Fodder, so don't forget these kobolds in a pinch!The Kobold Fodder is the most useless kobold there is. His sole purpose is to run blindly into the enemy heroes and die to stall for time. However, this kobold can be upgraded to a worker or a fighter for a price.The Kobold Fighter is the only kobold who can stand his own in combat - for a while, anyway. In order to upgrade your Kobold Fodder into fighters, you have to build an Armory with one of your workers.ALCHEMY:While you're tunneling, rocks will occasionally drop special items like Diamonds or Sulfer. To use these items, build an Alchemist's Laboratory with one of your workers. Then place two different items in the Laboratory's inventory and press the Alchemy! button. The two items will build something new and usefull.Good Luck and have fun!, using icon path ReplaceableTextures\CommandButtons\BTNScrollOfProtection.blp
    Quest - Create a Optional quest titled Credits with the description Created by BLOT ink(c) 2008Questions? Comments? Contact us at tylers@pacific.net., using icon path ReplaceableTextures\CommandButtons\BTNAvatar.blp
LavaKobolds
  Events
    Time - Every 0.25 seconds of game time
  Conditions
  Actions
    Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
      Loop - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            (Terrain type at (Position of (Picked unit))) Equal to Dungeon - Lava Cracks
            (Owner of (Picked unit)) Not equal to Player 12 (Brown)
          Then - Actions
            Environment - Change terrain type at (Position of (Picked unit)) to Dungeon - Brick using variation -1 in an area of size 1 and shape Circle
            Unit - Kill (Picked unit)
          Else - Actions
            Do nothing
LavaHeroes
  Events
    Time - Every 0.25 seconds of game time
  Conditions
  Actions
    Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 12 (Brown)) and do (Actions)
      Loop - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            (Terrain type at (Position of (Picked unit))) Equal to Dungeon - Lava Cracks
          Then - Actions
            Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 20.00)
            For each (Integer A) from 1 to 3, do (Actions)
              Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    (Picked unit) Equal to Hero[(Integer A)]
                  Then - Actions
                    Special Effect - Create a special effect attached to the overhead (attachpoint) of (Picked unit) using Environment\LargeBuildingFire\LargeBuildingFire1.mdl
                    Set VariableSet Burn[(Integer A)] = (Last created special effect)
                  Else - Actions
                    Do nothing
          Else - Actions
            For each (Integer B) from 1 to 3, do (Actions)
              Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    (Picked unit) Equal to Hero[(Integer B)]
                  Then - Actions
                    Special Effect - Destroy Burn[(Integer B)]
                  Else - Actions
                    Do nothing
            Do nothing
Kobold Spawn
  Events
    Time - Every 12.00 seconds of game time
  Conditions
  Actions
    Unit Group - Pick every unit in (Units in (Playable map area) matching (((Unit-type of (Matching unit)) Equal to Spawn Pit) and ((Life of (Matching unit)) Equal to 150.00))) and do (Actions)
      Loop - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            ((Picked unit) is alive) Equal to True
            (Number of units in (Units owned by (Owner of (Picked unit)) matching (((Matching unit) is A structure) Equal to False).)) Less than or equal to 100
          Then - Actions
            Unit - Create 1 Kobold Fodder for (Owner of (Picked unit)) at (Position of (Picked unit)) facing (Position of (Picked unit))
          Else - Actions
            Do nothing
Breakout
  Events
    Destructible - Rock 3449 <gen> dies
    Destructible - Rock 3450 <gen> dies
    Destructible - Rock 3455 <gen> dies
    Destructible - Rock 3460 <gen> dies
    Destructible - Rock 3465 <gen> dies
    Destructible - Rock 1717 <gen> dies
    Destructible - Rock 1714 <gen> dies
    Destructible - Rock 1716 <gen> dies
    Destructible - Rock 1720 <gen> dies
    Destructible - Rock 1724 <gen> dies
    Destructible - Rock 1731 <gen> dies
    Destructible - Rock 1727 <gen> dies
    Destructible - Rock 1732 <gen> dies
    Destructible - Rock 1735 <gen> dies
    Destructible - Rock 1739 <gen> dies
    Destructible - Rock 2655 <gen> dies
    Destructible - Rock 2653 <gen> dies
    Destructible - Rock 2650 <gen> dies
    Destructible - Rock 2642 <gen> dies
    Destructible - Rock 2637 <gen> dies
    Destructible - Rock 2634 <gen> dies
  Conditions
  Actions
    Set VariableSet RMax = 5
    Trigger - Turn off (This trigger)
Spawn Gold
  Events
    Time - Every 20.00 seconds of game time
  Conditions
  Actions
    Item - Create Hunk of Gold at (Position of (Random destructible in (Entire map) matching ((Destructible-type of (Matching destructible)) Equal to B000 (destructablecode))))
Sell Oil
  Events
    Unit - A unit Uses an item
  Conditions
    (Item-type of (Item being manipulated)) Equal to Crude Oil
  Actions
    Player - Add 50 to (Owner of (Triggering unit)).Current gold
    Player - Add 50 to (Owner of (Triggering unit)).Current lumber
    Item - Remove (Item being manipulated)
Become a Shaman
  Events
    Unit - A unit Uses an item
  Conditions
    (Item-type of (Item being manipulated)) Equal to Voodoo Mask
  Actions
    Special Effect - Create a special effect attached to the overhead (attachpoint) of (Triggering unit) using Abilities\Spells\Items\AIam\AIamTarget.mdl
    Item - Remove (Item being manipulated)
    Item - Create (Item-type of (Item carried by (Triggering unit) in slot 1)) at (Position of (Triggering unit))
    Item - Create (Item-type of (Item carried by (Triggering unit) in slot 2)) at (Position of (Triggering unit))
    Item - Create (Item-type of (Item carried by (Triggering unit) in slot 3)) at (Position of (Triggering unit))
    Item - Create (Item-type of (Item carried by (Triggering unit) in slot 4)) at (Position of (Triggering unit))
    Item - Create (Item-type of (Item carried by (Triggering unit) in slot 5)) at (Position of (Triggering unit))
    Item - Create (Item-type of (Item carried by (Triggering unit) in slot 6)) at (Position of (Triggering unit))
    Unit - Replace (Triggering unit) with a Kobold Shaman using The new unit's max life and mana
Become a Worker
  Events
    Unit - A unit Finishes casting an ability
  Conditions
    (Ability being cast) Equal to Become a Worker
  Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        ((Owner of (Triggering unit)) Current gold) Greater than or equal to 15
        ((Owner of (Triggering unit)) Current lumber) Greater than or equal to 15
      Then - Actions
        Item - Create (Item-type of (Item carried by (Triggering unit) in slot 1)) at (Position of (Triggering unit))
        Item - Create (Item-type of (Item carried by (Triggering unit) in slot 2)) at (Position of (Triggering unit))
        Unit - Replace (Triggering unit) with a Kobold Worker using The old unit's relative life and mana
        Player - Add -15 to (Owner of (Triggering unit)).Current gold
        Player - Add -15 to (Owner of (Triggering unit)).Current lumber
      Else - Actions
        Game - Display to (Player group((Owner of (Triggering unit)))) the text: |cffff0000You're too dang poor to do that!|r
Suicide Bomb
  Events
    Unit - A unit Uses an item
  Conditions
    (Item-type of (Item being manipulated)) Equal to Suicide Bomb
  Actions
    Unit Group - Pick every unit in (Units within 300.00 of (Position of (Triggering unit)).) and do (Actions)
      Loop - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            (Owner of (Picked unit)) Not equal to Player 12 (Brown)
            ((Picked unit) is A structure) Equal to False
          Then - Actions
            Unit - Kill (Picked unit)
          Else - Actions
            Do nothing
Alchemy
  Events
    Unit - A unit Begins casting an ability
  Conditions
    (Ability being cast) Equal to Alchemy!
  Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        ((Triggering unit) has an item of type Flint) Equal to True
        ((Triggering unit) has an item of type Sulfur) Equal to True
      Then - Actions
        Item - Remove (Item carried by (Triggering unit) of type Flint)
        Item - Remove (Item carried by (Triggering unit) of type Sulfur)
        Special Effect - Create a special effect attached to the overhead (attachpoint) of (Triggering unit) using Abilities\Spells\NightElf\BattleRoar\RoarCaster.mdl
        Hero - Create Suicide Bomb and give it to (Triggering unit)
      Else - Actions
        Do nothing
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        ((Triggering unit) has an item of type Flint) Equal to True
        ((Triggering unit) has an item of type Diamond) Equal to True
      Then - Actions
        Item - Remove (Item carried by (Triggering unit) of type Flint)
        Item - Remove (Item carried by (Triggering unit) of type Diamond)
        Special Effect - Create a special effect attached to the overhead (attachpoint) of (Triggering unit) using Abilities\Spells\NightElf\BattleRoar\RoarCaster.mdl
        Hero - Create Super Pick and give it to (Triggering unit)
      Else - Actions
        Do nothing
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        ((Triggering unit) has an item of type Fossil) Equal to True
        ((Triggering unit) has an item of type Sulfur) Equal to True
      Then - Actions
        Item - Remove (Item carried by (Triggering unit) of type Fossil)
        Item - Remove (Item carried by (Triggering unit) of type Sulfur)
        Special Effect - Create a special effect attached to the overhead (attachpoint) of (Triggering unit) using Abilities\Spells\NightElf\BattleRoar\RoarCaster.mdl
        Hero - Create Crude Oil and give it to (Triggering unit)
      Else - Actions
        Do nothing
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        ((Triggering unit) has an item of type Fossil) Equal to True
        ((Triggering unit) has an item of type Diamond) Equal to True
      Then - Actions
        Item - Remove (Item carried by (Triggering unit) of type Fossil)
        Item - Remove (Item carried by (Triggering unit) of type Diamond)
        Special Effect - Create a special effect attached to the overhead (attachpoint) of (Triggering unit) using Abilities\Spells\NightElf\BattleRoar\RoarCaster.mdl
        Hero - Create Kodo Egg and give it to (Triggering unit)
      Else - Actions
        Do nothing
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        ((Triggering unit) has an item of type Sulfur) Equal to True
        ((Triggering unit) has an item of type Diamond) Equal to True
      Then - Actions
        Item - Remove (Item carried by (Triggering unit) of type Sulfur)
        Item - Remove (Item carried by (Triggering unit) of type Diamond)
        Special Effect - Create a special effect attached to the overhead (attachpoint) of (Triggering unit) using Abilities\Spells\NightElf\BattleRoar\RoarCaster.mdl
        Hero - Create Super Juice! and give it to (Triggering unit)
      Else - Actions
        Do nothing
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        ((Triggering unit) has an item of type Flint) Equal to True
        ((Triggering unit) has an item of type Fossil) Equal to True
      Then - Actions
        Item - Remove (Item carried by (Triggering unit) of type Flint)
        Item - Remove (Item carried by (Triggering unit) of type Fossil)
        Special Effect - Create a special effect attached to the overhead (attachpoint) of (Triggering unit) using Abilities\Spells\NightElf\BattleRoar\RoarCaster.mdl
        Hero - Create Voodoo Mask and give it to (Triggering unit)
      Else - Actions
        Do nothing
Become a Fighter
  Events
    Unit - A unit Finishes casting an ability
  Conditions
    (Ability being cast) Equal to Become a Fighter
  Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        ((Owner of (Triggering unit)) Current gold) Greater than or equal to 20
        ((Owner of (Triggering unit)) Current lumber) Greater than or equal to 10
      Then - Actions
        Item - Create (Item-type of (Item carried by (Triggering unit) in slot 1)) at (Position of (Triggering unit))
        Item - Create (Item-type of (Item carried by (Triggering unit) in slot 2)) at (Position of (Triggering unit))
        Unit - Replace (Triggering unit) with a Kobold Fighter using The old unit's relative life and mana
        Player - Add -20 to (Owner of (Triggering unit)).Current gold
        Player - Add -10 to (Owner of (Triggering unit)).Current lumber
      Else - Actions
        Game - Display to (Player group((Owner of (Triggering unit)))) the text: |cffff0000You're too dang poor to do that!|r
Next Hero Wave Timer
  Events
    Unit - A unit owned by Player 12 (Brown).Dies
  Conditions
    (Number of units in (Units owned by Player 12 (Brown) matching (((Matching unit) is alive) Equal to True).)) Equal to 0
  Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        WaveNumber Less than or equal to 10
      Then - Actions
        Countdown Timer - Hide TimerWindow
        Countdown Timer - Start HeroTimer as a One-shot timer that will expire in 120.00 seconds
        Countdown Timer - Create a timer window for (Last started timer) with title Hero attacks in:
        Set VariableSet TimerWindow = (Last created timer window)
        Countdown Timer - Show TimerWindow
      Else - Actions
        Player Group - Pick every player in RealMen and do (Actions)
          Loop - Actions
            Game - Victory (Picked player) (Show dialogs, Show scores)
Ping
  Events
    Time - Every 2 seconds of game time
  Conditions
  Actions
    Unit Group - Pick every unit in (Units owned by Player 12 (Brown) matching (((Matching unit) is alive) Equal to True).) and do (Ping minimap for (All players) at (Position of (Picked unit)) for 1 seconds)
ReactivateHeroAttack1
  Events
    Unit - A unit Dies
  Conditions
    (Killing unit) Equal to Hero[1]
    (Hero_Attack1 <gen> is on) Equal to False
  Actions
    Trigger - Turn on Hero_Attack1 <gen>
ReactivateHeroAttack2
  Events
    Unit - A unit Dies
  Conditions
    (Killing unit) Equal to Hero[2]
    (Hero_Attack1 <gen> is on) Equal to False
  Actions
    Trigger - Turn on Hero_Attack1 <gen>
ReactivateHeroAttack3
  Events
    Unit - A unit Dies
  Conditions
    (Killing unit) Equal to Hero[3]
    (Hero_Attack1 <gen> is on) Equal to False
  Actions
    Trigger - Turn on Hero_Attack1 <gen>
Dead Hero
  Events
    Unit - A unit owned by Player 12 (Brown).Dies
  Conditions
  Actions
    Game - Display to (All players) the text: ((|cffffcc00 + ((Proper name of (Triggering unit)) + :|r )) + DeadLOL[(Random integer number between 1 and 10)])
HeroWave1
  Events
    Time - FirstHeroTimer expires
  Conditions
  Actions
    Unit - Create 1.Hero1[WaveNumber] for Player 12 (Brown) at (Center of HeroRegion[(Random integer number between 1 and RMax)]) facing 90.00 degrees
    Unit - Set life of (Last created unit) to ((Life of (Last created unit)) - HitPoints)
    Set VariableSet Hero[1] = (Last created unit)
    Hero - Set (Last created unit) Hero-level to WaveNumber, Hide level-up graphics
    Player Group - Pick every player in RealMen and do (Actions)
      Loop - Actions
        Unit - Grant shared vision of (Last created unit) to (Picked player)
    Unit - Order (Last created unit) to Attack.(Random unit from (Units owned by (Random player from (All enemies of Player 12 (Brown).)).))
    Game - Display to (All players) the text: ((|cffffcc00 + ((Proper name of (Last created unit)) + :|r )) + HeroStartTaunt[(Random integer number between 1 and 5)])
    Set VariableSet WaveNumber = 2
HeroWave
  Events
    Time - HeroTimer expires
  Conditions
  Actions
    Set VariableSet StartPoint = HeroRegion[(Random integer number between 1 and RMax)]
    Unit - Create 1.Hero1[WaveNumber] for Player 12 (Brown) at (Center of StartPoint) facing 90.00 degrees
    Unit - Set life of (Last created unit) to ((Life of (Last created unit)) - HitPoints)
    Set VariableSet Hero[1] = (Last created unit)
    Game - Display to (All players) the text: ((|cffffcc00 + ((Proper name of (Last created unit)) + :|r )) + HeroStartTaunt[(Random integer number between 1 and 5)])
    Hero - Set (Last created unit) Hero-level to WaveNumber, Hide level-up graphics
    Player Group - Pick every player in RealMen and do (Actions)
      Loop - Actions
        Unit - Grant shared vision of (Last created unit) to (Picked player)
    Unit - Order (Last created unit) to Attack.(Random unit from (Units owned by (Random player from (All enemies of Player 12 (Brown).)).))
    Unit - Create 1.Hero2[WaveNumber] for Player 12 (Brown) at (Center of StartPoint) facing 90.00 degrees
    Unit - Set life of (Last created unit) to ((Life of (Last created unit)) - HitPoints)
    Set VariableSet Hero[2] = (Last created unit)
    Hero - Set (Last created unit) Hero-level to WaveNumber, Hide level-up graphics
    Player Group - Pick every player in RealMen and do (Actions)
      Loop - Actions
        Unit - Grant shared vision of (Last created unit) to (Picked player)
    Unit - Order (Last created unit) to Attack.(Random unit from (Units owned by (Random player from (All enemies of Player 12 (Brown).)).))
    Unit - Create 1.Hero3[WaveNumber] for Player 12 (Brown) at (Center of StartPoint) facing 90.00 degrees
    Unit - Set life of (Last created unit) to ((Life of (Last created unit)) - HitPoints)
    Set VariableSet Hero[3] = (Last created unit)
    Hero - Set (Last created unit) Hero-level to WaveNumber, Hide level-up graphics
    Player Group - Pick every player in RealMen and do (Actions)
      Loop - Actions
        Unit - Grant shared vision of (Last created unit) to (Picked player)
    Unit - Order (Last created unit) to Attack.(Random unit from (Units owned by (Random player from (All enemies of Player 12 (Brown).)).))
    Set VariableSet WaveNumber = (WaveNumber + 1)
Hero Taunt
  Events
    Unit - A unit Dies
  Conditions
    (Owner of (Killing unit)) Equal to Player 12 (Brown)
  Actions
    Set VariableSet LOL = (Random integer number between 1 and 4)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        LOL Equal to 4
      Then - Actions
        Game - Display to (All players) the text: ((|cffffcc00 + ((Proper name of (Killing unit)) + :|r )) + TauntLOL[(Random integer number between 1 and 10)])
      Else - Actions
        Do nothing
Hero Attack1
  Events
    Time - Every 2.00 seconds of game time
  Conditions
    (Number of units in (Units in (Region centered at (Position of Hero[1]) with size (1000.00, 1000.00)) matching ((((Matching unit) is alive) Equal to True) and ((((Matching unit) is A structure) Equal to False) and ((Owner of (Matching unit)) Not equal to Player 12 (Brown)))))) Equal to 0
  Actions
    Unit - Order Hero[1] to Attack.(Random unit from (Units owned by (Random player from (All enemies of Player 12 (Brown).)) matching (((Matching unit) is alive) Equal to True).))
    Trigger - Turn off (This trigger)
Hero Attack2
  Events
    Time - Every 2.00 seconds of game time
  Conditions
    (Number of units in (Units in (Region centered at (Position of Hero[2]) with size (1000.00, 1000.00)) matching ((((Matching unit) is alive) Equal to True) and ((((Matching unit) is A structure) Equal to False) and ((Owner of (Matching unit)) Not equal to Player 12 (Brown)))))) Equal to 0
  Actions
    Unit - Order Hero[2] to Attack.(Random unit from (Units owned by (Random player from (All enemies of Player 12 (Brown).)) matching (((Matching unit) is alive) Equal to True).))
    Trigger - Turn off (This trigger)
Hero Attack3
  Events
    Time - Every 2.00 seconds of game time
  Conditions
    (Number of units in (Units in (Region centered at (Position of Hero[3]) with size (1000.00, 1000.00)) matching ((((Matching unit) is alive) Equal to True) and ((((Matching unit) is A structure) Equal to False) and ((Owner of (Matching unit)) Not equal to Player 12 (Brown)))))) Equal to 0
  Actions
    Unit - Order Hero[3] to Attack.(Random unit from (Units owned by (Random player from (All enemies of Player 12 (Brown).)) matching (((Matching unit) is alive) Equal to True).))
    Trigger - Turn off (This trigger)