1. Are you planning to upload your awesome map to Hive? Please review the rules here.
    Dismiss Notice
  2. Find your way through the deepest dungeon in the 18th Mini Mapping Contest Poll.
    Dismiss Notice
  3. A brave new world lies beyond the seven seas. Join the 34th Modeling Contest today!
    Dismiss Notice
  4. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
Hive 3 Remoosed BETA - NOW LIVE. Go check it out at BETA Hive Workshop! Post your feedback in this new forum BETA Feedback.
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Trigger Viewer

(8)SfACNY2015V2.37.w3x
Variables
Initialization
Melee Initialization
Game Information
Neutral Units
Race
Player Faction
Player Old God Minions
Player Alterac Syndicate
Player Burning Legion
Player Dark Horde
Player Eastern Horde
Ability
Infestation
Mannoroths Fury
Shade of the Necro Lord
Wretched Priest
Wretched Sorceress
Periodic
Naga AI Gold
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
AllPlayers force No
EnchantedGoldMines group Yes
HumanRaceDialogButton button Yes
NagaPlayers force No
NeutralUnitSpawn rect No
NightElfRaceDialogButton button Yes
OrcRaceDialogButton button Yes
PlayerDifficulty integer Yes
PlayerHumanRace dialog Yes
PlayerNightElfRace dialog Yes
PlayerOrcRace dialog Yes
PlayerUndeadRace dialog Yes
RandomAIRace integer Yes
RandomHero integer Yes
RandomHeroSpawn rect Yes
Slaves group Yes
UndeadRaceDialogButton button Yes
Default melee game initialization for all players
Melee Initialization
  Events
    Map initialization
  Conditions
  Actions
    Melee Game - Use melee time of day (for all players)
    Melee Game - Limit Heroes to 1 per Hero-type (for all players)
    Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
    Melee Game - Set starting resources (for all players)
    Melee Game - Remove creeps and critters from used start locations (for all players)
    Environment - Set sky to Lordaeron Summer Sky
    Set VariableSet AllPlayers = (All players)
    Player Group - Pick every player in AllPlayers and do (Actions)
      Loop - Actions
        Player - Limit training of Apothecary (Blood Elf) to 1 for (Picked player)
        Player - Limit training of Archmage (Syndicate) to 1 for (Picked player)
        Player - Limit training of Bandit Lord (Syndicate) to 1 for (Picked player)
        Player - Limit training of Beast Hunter to 1 for (Picked player)
        Player - Limit training of Blood Knight (Blood Elf) to 1 for (Picked player)
        Player - Limit training of Blood Lord to 1 for (Picked player)
        Player - Limit training of Dark Knight (Dark Orc) to 1 for (Picked player)
        Player - Limit training of Defiler of the Grove (Naga) to 1 for (Picked player)
        Player - Limit training of Dread Mage (Demon) to 1 for (Picked player)
        Player - Limit training of Druid of the Pack to 1 for (Picked player)
        Player - Limit training of Elder Warlock (Syndicate) to 1 for (Picked player)
        Player - Limit training of Enchantress (Naga) to 1 for (Picked player)
        Player - Limit training of Grand Marshal to 1 for (Picked player)
        Player - Limit training of Houndmaster (Demon) to 1 for (Picked player)
        Player - Limit training of Jujumancer (Dark Orc) to 1 for (Picked player)
        Player - Limit training of Mountain King (Syndicate) to 1 for (Picked player)
        Player - Limit training of Necro Lord to 1 for (Picked player)
        Player - Limit training of Paladin to 1 for (Picked player)
        Player - Limit training of Ranger (Blood Elf) to 1 for (Picked player)
        Player - Limit training of Ranger (Syndicate) to 1 for (Picked player)
        Player - Limit training of Sea King (Naga) to 1 for (Picked player)
        Player - Limit training of Wrath Lord (Demon) to 1 for (Picked player)
        Player - Make Berserker (Dark Orc) Unavailable for training/construction by (Picked player)
        Player - Make Dragon Rider (Fel Orc) Unavailable for training/construction by (Picked player)
        Player - Make Grunt (Fel Orc) Unavailable for training/construction by (Picked player)
        Player - Make Raider (Fel Orc) Unavailable for training/construction by (Picked player)
        Player - Make Smasher (Dark Orc) (Battle Armor) Unavailable for training/construction by (Picked player)
        Player - Make Warlock (Fel Orc) Unavailable for training/construction by (Picked player)
        Set VariableSet RandomHero[(Player number of (Picked player))] = (Random integer number between 1 and 5)
        Set VariableSet RandomAIRace[(Player number of (Picked player))] = (Random integer number between 1 and 2)
        Set VariableSet RandomHeroSpawn[(Player number of (Picked player))] = (Region centered at ((Picked player) start location) with size (1.00, 1.00))
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            (Race of (Picked player)) Equal to Human
          Then - Actions
            Melee Game - Create Human starting units for (Picked player) at ((Picked player) start location) (Exclude Heroes)
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                (Use random heroes is set) Equal to True
              Then - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    RandomHero[(Player number of (Picked player))] Equal to 1
                  Then - Actions
                    Unit - Create 1.Mountain King for (Picked player) at (Center of RandomHeroSpawn[(Player number of (Picked player))]) facing Default building facing degrees
                  Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    RandomHero[(Player number of (Picked player))] Equal to 2
                  Then - Actions
                    Unit - Create 1.Beast Hunter for (Picked player) at (Center of RandomHeroSpawn[(Player number of (Picked player))]) facing Default building facing degrees
                  Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    RandomHero[(Player number of (Picked player))] Equal to 3
                  Then - Actions
                    Unit - Create 1.Archmage for (Picked player) at (Center of RandomHeroSpawn[(Player number of (Picked player))]) facing Default building facing degrees
                  Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    RandomHero[(Player number of (Picked player))] Equal to 4
                  Then - Actions
                    Unit - Create 1.Grand Marshal for (Picked player) at (Center of RandomHeroSpawn[(Player number of (Picked player))]) facing Default building facing degrees
                  Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    RandomHero[(Player number of (Picked player))] Equal to 5
                  Then - Actions
                    Unit - Create 1.Paladin for (Picked player) at (Center of RandomHeroSpawn[(Player number of (Picked player))]) facing Default building facing degrees
                  Else - Actions
              Else - Actions
          Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            (Race of (Picked player)) Equal to Orc
          Then - Actions
            Melee Game - Create Orc starting units for (Picked player) at ((Picked player) start location) (Exclude Heroes)
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                (Use random heroes is set) Equal to True
              Then - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    RandomHero[(Player number of (Picked player))] Equal to 1
                  Then - Actions
                    Unit - Create 1.Beastmaster for (Picked player) at (Center of RandomHeroSpawn[(Player number of (Picked player))]) facing Default building facing degrees
                  Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    RandomHero[(Player number of (Picked player))] Equal to 2
                  Then - Actions
                    Unit - Create 1.Brewmaster for (Picked player) at (Center of RandomHeroSpawn[(Player number of (Picked player))]) facing Default building facing degrees
                  Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    RandomHero[(Player number of (Picked player))] Equal to 3
                  Then - Actions
                    Unit - Create 1.Shadow Hunter for (Picked player) at (Center of RandomHeroSpawn[(Player number of (Picked player))]) facing Default building facing degrees
                  Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    RandomHero[(Player number of (Picked player))] Equal to 4
                  Then - Actions
                    Unit - Create 1.Far Seer for (Picked player) at (Center of RandomHeroSpawn[(Player number of (Picked player))]) facing Default building facing degrees
                  Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    RandomHero[(Player number of (Picked player))] Equal to 5
                  Then - Actions
                    Unit - Create 1.Chieftain for (Picked player) at (Center of RandomHeroSpawn[(Player number of (Picked player))]) facing Default building facing degrees
                  Else - Actions
              Else - Actions
          Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            (Race of (Picked player)) Equal to Undead
          Then - Actions
            Melee Game - Create Undead starting units for (Picked player) at ((Picked player) start location) (Exclude Heroes)
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                (Use random heroes is set) Equal to True
              Then - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    RandomHero[(Player number of (Picked player))] Equal to 1
                  Then - Actions
                    Unit - Create 1.Blood Lord for (Picked player) at (Center of RandomHeroSpawn[(Player number of (Picked player))]) facing Default building facing degrees
                  Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    RandomHero[(Player number of (Picked player))] Equal to 2
                  Then - Actions
                    Unit - Create 1.Crypt Lord for (Picked player) at (Center of RandomHeroSpawn[(Player number of (Picked player))]) facing Default building facing degrees
                  Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    RandomHero[(Player number of (Picked player))] Equal to 3
                  Then - Actions
                    Unit - Create 1.Death Knight for (Picked player) at (Center of RandomHeroSpawn[(Player number of (Picked player))]) facing Default building facing degrees
                  Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    RandomHero[(Player number of (Picked player))] Equal to 4
                  Then - Actions
                    Unit - Create 1.Necro Lord for (Picked player) at (Center of RandomHeroSpawn[(Player number of (Picked player))]) facing Default building facing degrees
                  Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    RandomHero[(Player number of (Picked player))] Equal to 5
                  Then - Actions
                    Unit - Create 1.Lich for (Picked player) at (Center of RandomHeroSpawn[(Player number of (Picked player))]) facing Default building facing degrees
                  Else - Actions
              Else - Actions
          Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            (Race of (Picked player)) Equal to Night Elf
          Then - Actions
            Melee Game - Create Night Elf starting units for (Picked player) at ((Picked player) start location) (Exclude Heroes)
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                (Use random heroes is set) Equal to True
              Then - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    RandomHero[(Player number of (Picked player))] Equal to 1
                  Then - Actions
                    Unit - Create 1.Warden for (Picked player) at (Center of RandomHeroSpawn[(Player number of (Picked player))]) facing Default building facing degrees
                  Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    RandomHero[(Player number of (Picked player))] Equal to 2
                  Then - Actions
                    Unit - Create 1.Druid of the Pack for (Picked player) at (Center of RandomHeroSpawn[(Player number of (Picked player))]) facing Default building facing degrees
                  Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    RandomHero[(Player number of (Picked player))] Equal to 3
                  Then - Actions
                    Unit - Create 1.Demon Hunter for (Picked player) at (Center of RandomHeroSpawn[(Player number of (Picked player))]) facing Default building facing degrees
                  Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    RandomHero[(Player number of (Picked player))] Equal to 4
                  Then - Actions
                    Unit - Create 1.Keeper of the Grove for (Picked player) at (Center of RandomHeroSpawn[(Player number of (Picked player))]) facing Default building facing degrees
                  Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    RandomHero[(Player number of (Picked player))] Equal to 5
                  Then - Actions
                    Unit - Create 1.Priestess of the Moon for (Picked player) at (Center of RandomHeroSpawn[(Player number of (Picked player))]) facing Default building facing degrees
                  Else - Actions
              Else - Actions
          Else - Actions
        Custom script: call RemoveRect(udg_RandomHeroSpawn[GetConvertedPlayerId(GetTriggerPlayer())])
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            And - All (Conditions) are true
              Conditions
                ((Picked player) controller) Equal to Computer
                (Race of (Picked player)) Equal to Human
          Then - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                ((Picked player) Food used) Less than 10
              Then - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    RandomAIRace[(Player number of (Picked player))] Equal to 2
                  Then - Actions
                    Custom script: set bj_wantDestroyGroup=true
                    Unit Group - Pick every unit in (Units owned by (Picked player).) and do (Actions)
                      Loop - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                          If - Conditions
                            (Unit-type of (Picked unit)) Equal to Peasant
                          Then - Actions
                            Unit - Replace (Picked unit) with a Worker (Blood Elf) using The new unit's default life and mana
                          Else - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                          If - Conditions
                            (Unit-type of (Picked unit)) Equal to Town Hall
                          Then - Actions
                            Unit - Replace (Picked unit) with a Town Hall (Blood Elf) using The new unit's default life and mana
                          Else - Actions
                        Unit Group - Pick every unit in (Units owned by (Picked player).) and do (Actions)
                          Loop - Actions
                            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                              If - Conditions
                                (Unit-type of (Picked unit)) Equal to Town Hall (Blood Elf)
                              Then - Actions
                                Unit - Add Call To Arms (Town Hall) to (Picked unit)
                              Else - Actions
                    AI - Start melee AI script for (Picked player): Scripts\bloodelf.ai (aiscript)
                  Else - Actions
                    AI - Start melee AI script for (Picked player): Scripts\human.ai (aiscript)
              Else - Actions
                AI - Start melee AI script for (Picked player): Scripts\human.ai (aiscript)
          Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            And - All (Conditions) are true
              Conditions
                ((Picked player) controller) Equal to Computer
                (Race of (Picked player)) Equal to Orc
          Then - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                ((Picked player) Food used) Less than 10
              Then - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    RandomAIRace[(Player number of (Picked player))] Equal to 2
                  Then - Actions
                    Custom script: set bj_wantDestroyGroup=true
                    Unit Group - Pick every unit in (Units owned by (Picked player).) and do (Actions)
                      Loop - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                          If - Conditions
                            (Unit-type of (Picked unit)) Equal to Peon
                          Then - Actions
                            Unit - Replace (Picked unit) with a Peon (Dark Orc) using The new unit's default life and mana
                          Else - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                          If - Conditions
                            (Unit-type of (Picked unit)) Equal to Great Hall
                          Then - Actions
                            Unit - Replace (Picked unit) with a Great Hall (Dark Orc) using The new unit's default life and mana
                          Else - Actions
                    AI - Start melee AI script for (Picked player): Scripts\darkorc.ai (aiscript)
                  Else - Actions
                    AI - Start melee AI script for (Picked player): Scripts\orc.ai (aiscript)
              Else - Actions
                AI - Start melee AI script for (Picked player): Scripts\orc.ai (aiscript)
          Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            And - All (Conditions) are true
              Conditions
                ((Picked player) controller) Equal to Computer
                (Race of (Picked player)) Equal to Undead
          Then - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                ((Picked player) Food used) Less than 10
              Then - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    RandomAIRace[(Player number of (Picked player))] Equal to 2
                  Then - Actions
                    Custom script: set bj_wantDestroyGroup=true
                    Unit Group - Pick every unit in (Units owned by (Picked player).) and do (Actions)
                      Loop - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                          If - Conditions
                            (Unit-type of (Picked unit)) Equal to Acolyte
                          Then - Actions
                            Unit - Replace (Picked unit) with a Acolyte (Demon) using The new unit's default life and mana
                          Else - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                          If - Conditions
                            (Unit-type of (Picked unit)) Equal to Necropolis
                          Then - Actions
                            Unit - Replace (Picked unit) with a Demonopolis (Demon) using The new unit's default life and mana
                          Else - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                          If - Conditions
                            (Unit-type of (Picked unit)) Equal to Ghoul
                          Then - Actions
                            Unit - Replace (Picked unit) with a Fel Guard (Demon) using The new unit's default life and mana
                          Else - Actions
                    AI - Start melee AI script for (Picked player): Scripts\demon.ai (aiscript)
                  Else - Actions
                    AI - Start melee AI script for (Picked player): Scripts\undead.ai (aiscript)
              Else - Actions
                AI - Start melee AI script for (Picked player): Scripts\undead.ai (aiscript)
          Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            And - All (Conditions) are true
              Conditions
                ((Picked player) controller) Equal to Computer
                (Race of (Picked player)) Equal to Night Elf
          Then - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                ((Picked player) Food used) Less than 10
              Then - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    RandomAIRace[(Player number of (Picked player))] Equal to 2
                  Then - Actions
                    Custom script: set bj_wantDestroyGroup=true
                    Unit Group - Pick every unit in (Units owned by (Picked player).) and do (Actions)
                      Loop - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                          If - Conditions
                            (Unit-type of (Picked unit)) Equal to Entangled Gold Mine
                          Then - Actions
                            Unit - Kill (Picked unit)
                          Else - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                          If - Conditions
                            (Unit-type of (Picked unit)) Equal to Wisp
                          Then - Actions
                            Unit - Replace (Picked unit) with a Slave (Naga) using The new unit's default life and mana
                          Else - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                          If - Conditions
                            (Unit-type of (Picked unit)) Equal to Tree of Life
                          Then - Actions
                            Unit - Replace (Picked unit) with a Temple of Tides (Naga) using The new unit's default life and mana
                          Else - Actions
                        Unit Group - Pick every unit in (Units owned by (Picked player).) and do (Actions)
                          Loop - Actions
                            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                              If - Conditions
                                (Unit-type of (Picked unit)) Equal to Temple of Tides (Naga)
                              Then - Actions
                                Unit - Order (Picked unit) to Night Elf Tree Of Life - Entangle Nearby Gold Mine (Instant).
                              Else - Actions
                    AI - Start melee AI script for (Picked player): Scripts\naga.ai (aiscript)
                    Trigger - Turn on Naga_AI_Gold <gen>
                    Player Group - Add (Picked player) to NagaPlayers
                  Else - Actions
                    AI - Start melee AI script for (Picked player): Scripts\elf.ai (aiscript)
              Else - Actions
                AI - Start melee AI script for (Picked player): Scripts\elf.ai (aiscript)
          Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            (Use random heroes is set) Equal to True
          Then - Actions
          Else - Actions
            Player - Set (Picked player).Available free Heroes to 1
    Melee Game - Enforce victory/defeat conditions (for all players)
Game Information
  Events
    Map initialization
  Conditions
  Actions
    Quest - Create a Required quest titled Map with the description This map was created by putting together parts of certain melee maps and editing them. The following maps are:(4) |cffffcc00Goldshire|r(8) |cffffcc00Cherryville|rThe city itself is part of |cffffcc00Goldshire|r. The rest of the map is |cffffcc00Cherryville|r., using icon path ReplaceableTextures\CommandButtons\BTNSpy.blp
    Quest - Create a Required quest titled Services with the description There are citizens of |cffffcc00Alterac Ruins|r who are willing to provide you their services for a price. Be sure to pay them a visit., using icon path ReplaceableTextures\CommandButtons\BTNVillagerMan.blp
    Quest - Create a Required quest titled Glyphs with the description Glyphs are valuable assets. They can give you an advantage over your opponents. There are only a limited number of |cffffcc00Glyphs of Ultravision|r and |cffffcc00Glyphs of Fortification|r in |cffffcc00Alterac Ruins|r but they are in the hands of its denizens. You'll have to work fast to get them before your enemies do!, using icon path ReplaceableTextures\CommandButtons\BTNGlyph.blp
    Quest - Create a Optional quest titled Author with the description This map was created by |cffffcc00Ujimasa Hojo|r., using icon path ReplaceableTextures\WorldEditUI\Editor-Random-Unit.blp
    Quest - Create a Optional quest titled Credits - Icons with the description I would like to thank the following for their |cffffcc00Icons|r that are included in this map.Club Swing - Stanakin SkywalkerDark Kael - Sephiroth_VIIDemon Space Ship - pWn3dDraenei Paladin - SinisterXJuggernaught - Mr.GoblinOrc Transport Ship - Mr.GoblinOgre Armor 3 - Stanakin SkywalkerScale - Mr.GoblinShredder Saws - Marcos DABTidebaron - dickxunderTroll Destroyer - Mr.GoblinZerg Overlord - FranksterOther modified icons came from Blizzard Entertainment., using icon path ReplaceableTextures\CommandButtons\BTNScrollUber.blp
    Quest - Create a Optional quest titled Credits - Models with the description I would like to thank the following for their |cffffcc00Models:|r that are included in this map.Baron Darkclaw - Fan &amp, xXm0RpH3usXxBlood Elf Buildings - SinisterXDemoness - MecheonDemon Space Ship - pWn3dDraenei Paladin - SinisterXDraenei Sorceress - SinisterXDwarven Ram Rider - NorinradFel Orc General - FranksterFel Orc Lancer - FranksterFemale Necromancer - Sin'dorei300Forsaken Catapult - Edge45Goblin Remote Airplane - Mc !Goblin War Turtle - Deolrin, Mr.GoblinGolden Eagle - DeolrinHero Blood Elven Paladin - FranksterHero Troll Voodoo Hunter - General FrankJudgment of Light - Champara BrosJuggernaught - Dmitry Rommel, Xaran Alamas, Mr.GoblinMounted Bandit - Wandering SoulMounted Bandit Spearthrower - Wandering SoulOrc Transport Ship - Dmitry RommelOrc Transport Ship (SoC) - Dmitry Rommel, Xaran Alamas, Mr.GoblinSuited Worgen - CavmanTidebaron - dickxunderTroll Destroyer - Deolrin, Mr.GoblinUndead Blood Elf - ironmaidenWarcraft 2 Zeppelin - PROXYZerg Overlord - killst4rOther models came from Blizzard Entertainment., using icon path ReplaceableTextures\CommandButtons\BTNScrollUber.blp
    Quest - Create a Optional quest titled Credits - Skins with the description I would like to thank the following for their |cffffcc00Skins|r that are included in this map.Furion - erwtenpellerHigh Elf Spell Breaker - Heinvers, using icon path ReplaceableTextures\CommandButtons\BTNScrollUber.blp
    Quest - Create a Optional quest titled Credits - Maps with the description I would like to thank the following for their |cffffcc00Maps|r that are included in this map.(4) Goldshire - Blizzard Entertainment(8) Cherryville - Blizzard Entertainment, using icon path ReplaceableTextures\CommandButtons\BTNScrollUber.blp
    Quest - Create a Optional quest titled Credits - Sites with the description I would like to thank the following |cffffcc00Sites|r:www.campaigncreations.orgwww.hiveworkshop.comwww.wc3campaigns.netwww.wowpedia.org, using icon path ReplaceableTextures\CommandButtons\BTNScrollUber.blp
Neutral Units
  Events
    Map initialization
  Conditions
  Actions
    Set VariableSet NeutralUnitSpawn = City_000 <gen>
    Unit - Create 3.Citizen (Male 2) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 3.Citizen (Male) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 3.Citizen (Female) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 3.Citizen (Female 2) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Set VariableSet NeutralUnitSpawn = City_090 <gen>
    Unit - Create 3.Citizen (Male 2) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 3.Citizen (Male) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 3.Citizen (Female) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 3.Citizen (Female 2) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Set VariableSet NeutralUnitSpawn = City_180 <gen>
    Unit - Create 3.Citizen (Male 2) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 3.Citizen (Male) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 3.Citizen (Female) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 3.Citizen (Female 2) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Set VariableSet NeutralUnitSpawn = City_270 <gen>
    Unit - Create 3.Citizen (Male 2) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 3.Citizen (Male) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 3.Citizen (Female) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 3.Citizen (Female 2) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Set VariableSet NeutralUnitSpawn = Village_000 <gen>
    Unit - Create 2.Citizen (Male 2) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 2.Citizen (Male) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 2.Citizen (Female) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 2.Citizen (Female 2) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Set VariableSet NeutralUnitSpawn = Village_060 <gen>
    Unit - Create 2.Citizen (Male) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 2.Citizen (Male 2) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 2.Citizen (Female) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 2.Citizen (Female 2) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Set VariableSet NeutralUnitSpawn = Village_090 <gen>
    Unit - Create 2.Citizen (Male) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 2.Citizen (Male 2) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 2.Citizen (Female) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 2.Citizen (Female 2) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Set VariableSet NeutralUnitSpawn = Village_120 <gen>
    Unit - Create 2.Citizen (Male) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 2.Citizen (Male 2) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 2.Citizen (Female) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 2.Citizen (Female 2) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Set VariableSet NeutralUnitSpawn = Village_180 <gen>
    Unit - Create 2.Citizen (Male) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 2.Citizen (Male 2) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 2.Citizen (Female) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 2.Citizen (Female 2) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Set VariableSet NeutralUnitSpawn = Village_240 <gen>
    Unit - Create 2.Citizen (Male) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 2.Citizen (Male 2) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 2.Citizen (Female) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 2.Citizen (Female 2) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Set VariableSet NeutralUnitSpawn = Village_270 <gen>
    Unit - Create 2.Citizen (Male) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 2.Citizen (Male 2) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 2.Citizen (Female) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 2.Citizen (Female 2) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Set VariableSet NeutralUnitSpawn = Village_300 <gen>
    Unit - Create 2.Citizen (Male) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 2.Citizen (Male 2) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 2.Citizen (Female) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Unit - Create 2.Citizen (Female 2) for Neutral Passive at (Center of NeutralUnitSpawn) facing Default building facing degrees
    Custom script: call RemoveRect(udg_NeutralUnitSpawn)
Player Faction
  Events
    Time - Elapsed game time is 2.00 seconds
  Conditions
  Actions
    For each (Integer A) from 1 to 12, do (Actions)
      Loop - Actions
        Dialog - Change the title of PlayerHumanRace[(Integer A)] to Select Faction
        Dialog - Create a dialog button for PlayerHumanRace[(Integer A)] labelled |CFF7EBFF1Eastern Alliance|R
        Set VariableSet HumanRaceDialogButton[((((Integer A) - 1) x 8) + 0)] = (Last created dialog Button)
        Dialog - Create a dialog button for PlayerHumanRace[(Integer A)] labelled |CFFFE8A0EAlterac Syndicate|R
        Set VariableSet HumanRaceDialogButton[((((Integer A) - 1) x 8) + 1)] = (Last created dialog Button)
        Dialog - Create a dialog button for PlayerHumanRace[(Integer A)] labelled |CFF4E2A04Eastern Horde|R
        Set VariableSet HumanRaceDialogButton[((((Integer A) - 1) x 8) + 2)] = (Last created dialog Button)
    For each (Integer A) from 1 to 12, do (Actions)
      Loop - Actions
        Dialog - Change the title of PlayerOrcRace[(Integer A)] to Select Faction
        Dialog - Create a dialog button for PlayerOrcRace[(Integer A)] labelled |CFFFF0303Western Horde|r
        Set VariableSet OrcRaceDialogButton[((((Integer A) - 1) x 8) + 0)] = (Last created dialog Button)
        Dialog - Create a dialog button for PlayerOrcRace[(Integer A)] labelled |CFF959697Dark Horde|r
        Set VariableSet OrcRaceDialogButton[((((Integer A) - 1) x 8) + 1)] = (Last created dialog Button)
    For each (Integer A) from 1 to 12, do (Actions)
      Loop - Actions
        Dialog - Change the title of PlayerUndeadRace[(Integer A)] to Select Faction
        Dialog - Create a dialog button for PlayerUndeadRace[(Integer A)] labelled |CFF540081Undead Scourge|r
        Set VariableSet UndeadRaceDialogButton[((((Integer A) - 1) x 8) + 0)] = (Last created dialog Button)
        Dialog - Create a dialog button for PlayerUndeadRace[(Integer A)] labelled |CFF20C000Burning Legion|r
        Set VariableSet UndeadRaceDialogButton[((((Integer A) - 1) x 8) + 1)] = (Last created dialog Button)
    For each (Integer A) from 1 to 12, do (Actions)
      Loop - Actions
        Dialog - Change the title of PlayerNightElfRace[(Integer A)] to Select Faction
        Dialog - Create a dialog button for PlayerNightElfRace[(Integer A)] labelled |CFF0042FFOld God Minions|r
        Set VariableSet NightElfRaceDialogButton[((((Integer A) - 1) x 8) + 0)] = (Last created dialog Button)
        Dialog - Create a dialog button for PlayerNightElfRace[(Integer A)] labelled |CFF1CB619Western Alliance|r
        Set VariableSet NightElfRaceDialogButton[((((Integer A) - 1) x 8) + 1)] = (Last created dialog Button)
    Player Group - Pick every player in (All players matching (((Matching player) slot status) Equal to Is playing).) and do (Actions)
      Loop - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            And - All (Conditions) are true
              Conditions
                ((Picked player) Food used) Less than or equal to 5
                (Race of (Picked player)) Equal to Human
          Then - Actions
            Dialog - Show PlayerHumanRace[(Player number of (Picked player))] for (Picked player)
          Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            And - All (Conditions) are true
              Conditions
                ((Picked player) Food used) Less than or equal to 5
                (Race of (Picked player)) Equal to Orc
          Then - Actions
            Dialog - Show PlayerOrcRace[(Player number of (Picked player))] for (Picked player)
          Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            And - All (Conditions) are true
              Conditions
                ((Picked player) Food used) Less than or equal to 5
                (Race of (Picked player)) Equal to Undead
          Then - Actions
            Dialog - Show PlayerUndeadRace[(Player number of (Picked player))] for (Picked player)
          Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            And - All (Conditions) are true
              Conditions
                ((Picked player) Food used) Less than or equal to 5
                (Race of (Picked player)) Equal to Night Elf
          Then - Actions
            Dialog - Show PlayerNightElfRace[(Player number of (Picked player))] for (Picked player)
          Else - Actions
Player Old God Minions
  Events
    Dialog - A dialog button is clicked for PlayerNightElfRace[1]
    Dialog - A dialog button is clicked for PlayerNightElfRace[2]
    Dialog - A dialog button is clicked for PlayerNightElfRace[3]
    Dialog - A dialog button is clicked for PlayerNightElfRace[4]
    Dialog - A dialog button is clicked for PlayerNightElfRace[5]
    Dialog - A dialog button is clicked for PlayerNightElfRace[6]
    Dialog - A dialog button is clicked for PlayerNightElfRace[7]
    Dialog - A dialog button is clicked for PlayerNightElfRace[8]
    Dialog - A dialog button is clicked for PlayerNightElfRace[9]
    Dialog - A dialog button is clicked for PlayerNightElfRace[10]
    Dialog - A dialog button is clicked for PlayerNightElfRace[11]
    Dialog - A dialog button is clicked for PlayerNightElfRace[12]
  Conditions
  Actions
    For each (Integer A) from 1 to 12, do (Actions)
      Loop - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            (Clicked dialog button) Equal to NightElfRaceDialogButton[((((Integer A) - 1) x 8) + 0)]
          Then - Actions
            Custom script: set bj_wantDestroyGroup=true
            Unit Group - Pick every unit in (Units owned by (Triggering player).) and do (Actions)
              Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    (Unit-type of (Picked unit)) Equal to Entangled Gold Mine
                  Then - Actions
                    Unit - Kill (Picked unit)
                  Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    (Unit-type of (Picked unit)) Equal to Wisp
                  Then - Actions
                    Unit - Replace (Picked unit) with a Slave (Naga) using The new unit's default life and mana
                  Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    (Unit-type of (Picked unit)) Equal to Tree of Life
                  Then - Actions
                    Unit - Replace (Picked unit) with a Temple of Tides (Naga) using The new unit's default life and mana
                  Else - Actions
                Unit Group - Pick every unit in (Units owned by (Triggering player).) and do (Actions)
                  Loop - Actions
                    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                      If - Conditions
                        (Unit-type of (Picked unit)) Equal to Temple of Tides (Naga)
                      Then - Actions
                        Unit - Order (Picked unit) to Night Elf Tree Of Life - Entangle Nearby Gold Mine (Instant).
                      Else - Actions
          Else - Actions
Player Alterac Syndicate
  Events
    Dialog - A dialog button is clicked for PlayerHumanRace[1]
    Dialog - A dialog button is clicked for PlayerHumanRace[2]
    Dialog - A dialog button is clicked for PlayerHumanRace[3]
    Dialog - A dialog button is clicked for PlayerHumanRace[4]
    Dialog - A dialog button is clicked for PlayerHumanRace[5]
    Dialog - A dialog button is clicked for PlayerHumanRace[6]
    Dialog - A dialog button is clicked for PlayerHumanRace[7]
    Dialog - A dialog button is clicked for PlayerHumanRace[8]
    Dialog - A dialog button is clicked for PlayerHumanRace[9]
    Dialog - A dialog button is clicked for PlayerHumanRace[10]
    Dialog - A dialog button is clicked for PlayerHumanRace[11]
    Dialog - A dialog button is clicked for PlayerHumanRace[12]
  Conditions
  Actions
    For each (Integer A) from 1 to 12, do (Actions)
      Loop - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            (Clicked dialog button) Equal to HumanRaceDialogButton[((((Integer A) - 1) x 8) + 1)]
          Then - Actions
            Custom script: set bj_wantDestroyGroup=true
            Unit Group - Pick every unit in (Units owned by (Triggering player).) and do (Actions)
              Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    (Unit-type of (Picked unit)) Equal to Peasant
                  Then - Actions
                    Unit - Replace (Picked unit) with a Peasant (Syndicate) using The new unit's default life and mana
                  Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    (Unit-type of (Picked unit)) Equal to Town Hall
                  Then - Actions
                    Unit - Replace (Picked unit) with a Town Hall (Syndicate) using The new unit's default life and mana
                  Else - Actions
                Unit Group - Pick every unit in (Units owned by (Triggering player).) and do (Actions)
                  Loop - Actions
                    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                      If - Conditions
                        (Unit-type of (Picked unit)) Equal to Town Hall (Syndicate)
                      Then - Actions
                        Unit - Add Call To Arms (Town Hall) to (Picked unit)
                      Else - Actions
          Else - Actions
Player Burning Legion
  Events
    Dialog - A dialog button is clicked for PlayerUndeadRace[1]
    Dialog - A dialog button is clicked for PlayerUndeadRace[2]
    Dialog - A dialog button is clicked for PlayerUndeadRace[3]
    Dialog - A dialog button is clicked for PlayerUndeadRace[4]
    Dialog - A dialog button is clicked for PlayerUndeadRace[5]
    Dialog - A dialog button is clicked for PlayerUndeadRace[6]
    Dialog - A dialog button is clicked for PlayerUndeadRace[7]
    Dialog - A dialog button is clicked for PlayerUndeadRace[8]
    Dialog - A dialog button is clicked for PlayerUndeadRace[9]
    Dialog - A dialog button is clicked for PlayerUndeadRace[10]
    Dialog - A dialog button is clicked for PlayerUndeadRace[11]
    Dialog - A dialog button is clicked for PlayerUndeadRace[12]
  Conditions
  Actions
    For each (Integer A) from 1 to 12, do (Actions)
      Loop - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            (Clicked dialog button) Equal to UndeadRaceDialogButton[((((Integer A) - 1) x 8) + 1)]
          Then - Actions
            Custom script: set bj_wantDestroyGroup=true
            Unit Group - Pick every unit in (Units owned by (Triggering player).) and do (Actions)
              Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    (Unit-type of (Picked unit)) Equal to Acolyte
                  Then - Actions
                    Unit - Replace (Picked unit) with a Acolyte (Demon) using The new unit's default life and mana
                  Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    (Unit-type of (Picked unit)) Equal to Necropolis
                  Then - Actions
                    Unit - Replace (Picked unit) with a Demonopolis (Demon) using The new unit's default life and mana
                  Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    (Unit-type of (Picked unit)) Equal to Ghoul
                  Then - Actions
                    Unit - Replace (Picked unit) with a Fel Guard (Demon) using The new unit's default life and mana
                  Else - Actions
          Else - Actions
Player Dark Horde
  Events
    Dialog - A dialog button is clicked for PlayerOrcRace[1]
    Dialog - A dialog button is clicked for PlayerOrcRace[2]
    Dialog - A dialog button is clicked for PlayerOrcRace[3]
    Dialog - A dialog button is clicked for PlayerOrcRace[4]
    Dialog - A dialog button is clicked for PlayerOrcRace[5]
    Dialog - A dialog button is clicked for PlayerOrcRace[6]
    Dialog - A dialog button is clicked for PlayerOrcRace[7]
    Dialog - A dialog button is clicked for PlayerOrcRace[8]
    Dialog - A dialog button is clicked for PlayerOrcRace[9]
    Dialog - A dialog button is clicked for PlayerOrcRace[10]
    Dialog - A dialog button is clicked for PlayerOrcRace[11]
    Dialog - A dialog button is clicked for PlayerOrcRace[12]
  Conditions
  Actions
    For each (Integer A) from 1 to 12, do (Actions)
      Loop - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            (Clicked dialog button) Equal to OrcRaceDialogButton[((((Integer A) - 1) x 8) + 1)]
          Then - Actions
            Custom script: set bj_wantDestroyGroup=true
            Unit Group - Pick every unit in (Units owned by (Triggering player).) and do (Actions)
              Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    (Unit-type of (Picked unit)) Equal to Peon
                  Then - Actions
                    Unit - Replace (Picked unit) with a Peon (Dark Orc) using The new unit's default life and mana
                  Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    (Unit-type of (Picked unit)) Equal to Great Hall
                  Then - Actions
                    Unit - Replace (Picked unit) with a Great Hall (Dark Orc) using The new unit's default life and mana
                  Else - Actions
          Else - Actions
Player Eastern Horde
  Events
    Dialog - A dialog button is clicked for PlayerHumanRace[1]
    Dialog - A dialog button is clicked for PlayerHumanRace[2]
    Dialog - A dialog button is clicked for PlayerHumanRace[3]
    Dialog - A dialog button is clicked for PlayerHumanRace[4]
    Dialog - A dialog button is clicked for PlayerHumanRace[5]
    Dialog - A dialog button is clicked for PlayerHumanRace[6]
    Dialog - A dialog button is clicked for PlayerHumanRace[7]
    Dialog - A dialog button is clicked for PlayerHumanRace[8]
    Dialog - A dialog button is clicked for PlayerHumanRace[9]
    Dialog - A dialog button is clicked for PlayerHumanRace[10]
    Dialog - A dialog button is clicked for PlayerHumanRace[11]
    Dialog - A dialog button is clicked for PlayerHumanRace[12]
  Conditions
  Actions
    For each (Integer A) from 1 to 12, do (Actions)
      Loop - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            (Clicked dialog button) Equal to HumanRaceDialogButton[((((Integer A) - 1) x 8) + 2)]
          Then - Actions
            Custom script: set bj_wantDestroyGroup=true
            Unit Group - Pick every unit in (Units owned by (Triggering player).) and do (Actions)
              Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    (Unit-type of (Picked unit)) Equal to Peasant
                  Then - Actions
                    Unit - Replace (Picked unit) with a Worker (Blood Elf) using The new unit's default life and mana
                  Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    (Unit-type of (Picked unit)) Equal to Town Hall
                  Then - Actions
                    Unit - Replace (Picked unit) with a Town Hall (Blood Elf) using The new unit's default life and mana
                  Else - Actions
                Unit Group - Pick every unit in (Units owned by (Triggering player).) and do (Actions)
                  Loop - Actions
                    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                      If - Conditions
                        (Unit-type of (Picked unit)) Equal to Town Hall (Blood Elf)
                      Then - Actions
                        Unit - Add Call To Arms (Town Hall) to (Picked unit)
                      Else - Actions
          Else - Actions
Infestation
  Events
    Unit - A unit Changes owner
  Conditions
    (Unit-type of (Ownership-changed unit)) Equal to Tree of Life
  Actions
    Unit - Replace (Ownership-changed unit) with a Tree of Life (Corrupted) using The old unit's relative life and mana
Mannoroths Fury
  Events
    Unit - A unit Finishes research
  Conditions
    (Researched tech-type) Equal to Roch (techcode)
  Actions
    Player - Make Grunt (Dark Orc) Unavailable for training/construction by (Owner of (Researching unit))
    Player - Make Grunt (Fel Orc) Available for training/construction by (Owner of (Researching unit))
    Player - Make Raider (Dark Orc) Unavailable for training/construction by (Owner of (Researching unit))
    Player - Make Raider (Fel Orc) Available for training/construction by (Owner of (Researching unit))
    Player - Make Warlock (Dark Orc) Unavailable for training/construction by (Owner of (Researching unit))
    Player - Make Warlock (Fel Orc) Available for training/construction by (Owner of (Researching unit))
    Player - Make Dragon Rider (Dark Orc) Unavailable for training/construction by (Owner of (Researching unit))
    Player - Make Dragon Rider (Fel Orc) Available for training/construction by (Owner of (Researching unit))
Shade of the Necro Lord
  Events
    Unit - A unit Learns a skill
  Conditions
    (Learned Hero Skill) Equal to Shade of the Necro Lord (Research)
  Actions
    Unit - Add Shade of the Necro Lord (Button) to (Learning Hero)
Wretched Priest
  Events
    Unit - A unit Finishes casting an ability
  Conditions
    And - All (Conditions) are true
      Conditions
        (Current research level of R008 (techcode) for (Owner of (Casting unit))) Equal to 3
        (Unit-type of (Casting unit)) Equal to Priest (Blood Elf)
        (Percentage mana of (Casting unit)) Less than 10.00
  Actions
    Unit - Replace (Casting unit) with a Degenerate Priest (Wretched) using The old unit's relative life and mana
Wretched Sorceress
  Events
    Unit - A unit Finishes casting an ability
  Conditions
    And - All (Conditions) are true
      Conditions
        (Current research level of R009 (techcode) for (Owner of (Casting unit))) Equal to 3
        (Unit-type of (Casting unit)) Equal to Sorceress (Blood Elf)
        (Percentage mana of (Casting unit)) Less than 10.00
  Actions
    Unit - Replace (Casting unit) with a Degenerate Sorceress (Wretched) using The old unit's relative life and mana
Naga AI Gold
  Events
    Time - Every 1.00 seconds of game time
  Conditions
  Actions
    Player Group - Pick every player in NagaPlayers and do (Actions)
      Loop - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            (Melee AI of (Picked player)) Equal to Insane AI
          Then - Actions
            Set VariableSet PlayerDifficulty[(Player number of (Picked player))] = 2
          Else - Actions
            Set VariableSet PlayerDifficulty[(Player number of (Picked player))] = 1
        Set VariableSet Slaves[(Player number of (Picked player))] = (Units owned by (Picked player) matching (((Unit-type of (Matching unit)) Equal to Slave (Naga)) and (((Matching unit) is alive) Equal to True)).)
        Set VariableSet EnchantedGoldMines[(Player number of (Picked player))] = (Units owned by (Picked player) matching (((Unit-type of (Matching unit)) Equal to Enchanted Gold Mine (Naga)) and (((Matching unit) is alive) Equal to True)).)
        Player - Add (((Number of units in Slaves[(Player number of (Picked player))]) x (Number of units in EnchantedGoldMines[(Player number of (Picked player))])) x PlayerDifficulty[(Player number of (Picked player))]) to (Picked player).Current gold
        Custom script: call DestroyGroup(udg_Slaves[GetConvertedPlayerId(GetTriggerPlayer())])
        Custom script: call DestroyGroup(udg_EnchantedGoldMines[GetConvertedPlayerId(GetTriggerPlayer())])