1. Are you planning to upload your awesome map to Hive? Please review the rules here.
    Dismiss Notice
  2. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  3. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  4. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  5. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  6. Units have been turned into heroes in our latest Icon Contest! Vote for the best icon set at the Icon Contest #18 Poll!
    Dismiss Notice
  7. The poll for Hive's 12th Concept Art Contest is up! Go cast your vote for your favourite genie!
    Dismiss Notice
  8. The raddest synthwave tracks were chosen - Check out our Music Contest #12 - Results and congratulate the winners!
    Dismiss Notice
  9. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Trigger Viewer

NorthrendBound_v1.85.w3x
Variables
Initialization and Multiboard
Initialization
Multiboard
General Dialog
Selection Dialog
Leavers
Timers
Dragon Event
Timer On
Timer 1 Sec
Mirror Image Reset
Natures Wrath Lightning
Robo Goblin Mow Down
Timer 5 Sec
Apple Trees
Bloodmoon
Economic Victory Check
Eggs
Patrol Control
Random Lightning
Timer 10 Sec
Consumable Removal
Demon Spawn
Fishing Boats
Timer 12 Sec
Iron Mining
Granary Pickup
Timer 24 Sec
Mayor Control
Timer 30 Sec
Zombies
Mithril Mining
AI Gold
Timer 60 Sec
Caravans and Vessels
Roaming Dead AI
Events
Tree Revival
Gameplay
-----General Gameplay-----
Hero Level Up
Stat Increase
Summoned Hero Stats
Traits
Vault Select
Morph Attributes
Tome of Retraining
Techtree Options
Gold Mine Placement
Gold Mine Birth
Gold Mine Death
Mainland Ho
To Cavalon
Ranged Hero Revive
Rotate Structure
Toggle Gate
Mayor Assault
Mayor Assault Spells
Town Options
Town Captured
Town Founding
Townsfolk War
Townsfolk Contested
Townsfolk Upgrading
Siege Engine Animation
Refund Tech
Hero Bounty
-----Diplomacy-----
Diplomacy Menu
Peace Time
Peace Out
Murder
Genocide
Timmys Leg
Espionage
Assault
Spell Assault
Enemy of my Enemy
Reputation Check
-----Victory Conditions-----
Economic Victory
Heroic Victory
Capture Victory
Conquest and Defeat
Comeback
Check Bosses Defeated
-----Commands-----
Help
Roll
Camera
Clear Chat
Give Units
Movement Speed
Name Change
Weather
Credits
Signs
-----Game Modes-----
Game Mode Selection
Grace Period End
Friend Mode
Greed Is Win
Hard Mode
Quickstart
Wild Hunt
Pathing
Traveler Respawn
Port Sledge
Patrol 2
Droknar
Patrol 4
Patrol 5
Riverside
Patrol 7
Patrol 8
Patrol 9
Patrol 10
Patrol 11
Patrol 12
Ashford
Patrol 14
Patrol 15
Patrol 16
Patrol 17
East Caravan
West Caravan
South Caravan
North Port
South Port
East Port
Vessel Trade
Ship 1
Ship 2
Ship 3
Ship 4
Bosses and AI
Help and Boss Summons
Berserk AI
Elusive Stag 1
Elusive Stag 2
Monster Loot
Rare Animal Loot
Respawn Trigger
Wolf AI
-----Bosses-----
Admiral Fight
Fleet and Meteor Cast
Fleet Finish
Gravity Cast
Tsunami Cast
Dark Wizard Fight
Fire Elemental Birth
Fire Elemental Kills
Grand Magus Fight
Hollow Wood Cast
Leviathan Fight
Queen Fight
Troll Oracle
-----AI Heroes-----
Computer Hero Start
Computer Hero Level
-----Summoned Groups-----
Player11 Spawn
Summoned AI
Summoned Deaths
Summoned Groups
Summoned Masters
Summons Toggle
Dungeon Quests
Arena Safety
Arena Entrance
Arena Exit
Arena Quest
Arena Rounds
Dungeon Restrictions
Moladune Entrance 1
Moladune Entrance 2
Seafarer Entrance
Eternal Grove Entrance
Moladune Exit 1
Moladune Exit 2
Seafarer Exit
Eternal Grove Exit
Moladune Mine Gate
Moladune Mines Quest
Seafarers Gate
Seafarers Quest
Eternal Grove Quest
Tree Bridge 1
Tree Bridge 2
Commune
Temple of Tides Quest
Radiant Quests
Radiant Quests
Ashford Regions
Bandit T1 Spawn
Bandit T2 Spawn
Bandit T3 Spawn
Bandit T4 Spawn
Cavalon Regions
Skeleton T1 Spawn
Skeleton T2 Spawn
Skeleton T3 Spawn
Skeleton T4 Spawn
Droknar Regions
Demon T1 Spawn
Demon T2 Spawn
Demon T3 Spawn
Demon T4 Spawn
Dragon Spawn
Quest Markers
Ranks
Ranked Unit Saving
Rank System
Rank Unit Death
Flagship Assign
NE Dismount
NE Mount
Mounted Rank Assign
Undying Legion Effect
Veterans of War Finish
Trigger Spells
-----Spells-----
Agony
Arcane Missiles
Arrow Rain
Assassinate
Attune
Backstab
Bark
Black Powder
Blink
Blizzard
Bribe
Call Dog
Call Pet
Call Dog Death
Call Pet Death
Charge Action
Charge Loop
Concussive Shot
Control Magic
Death Grip Cast
Death Grip Loop
Demolish
Emblem
Execute
Explosive Shot
Fireball
Flash Heal
Frost Armor
Frostbite
Frost Nova
Gae Bulg
Gravity Well Cast
Gravity Well Loop
Gravity Well Cancel
Hamstring
Head Shot
Heal
Inspire
Interrogate
Knockout
Lightning Bolt
Maledict
Mirror Image
Mortal Blow
Reapers Sweep
Rupture
Sabotage
Shield Bash
Skull Crack
Smite
Starfall Cast
Uppercut Cast
TK Loop
Steal
Stealth
Taunt
Throw Water
Vault
Whirlwind
-----Systems-----
Floating Text Fadeout
Item Animation 1
Item Animation 2
Ranged Animation
Drunk Effects
Jump System
Jump Loop
Cavalry Charge
Charge End
Knockback System
SpecialFX Destruction
-----Bag Abilities-----
Pick up Items ON
Pick up Items OFF
Pick up Items Loop
Backpack Loop
Bag Position
Bag Death
Bag Revival
Drop Items
Suicide Dialog
Suicide Yes
-----Armor Abilities-----
Aquire Rage
Lose Rage
Rage On Hit
Rage On Cast
Aquire Zealous
Lose Zealous
Zealous
-----Thugs-----
Recruit Thief
Recruit Mercenary
Recruit Conjurer
Trades
Barn Animal Death
Cooking Stand
Construction Exp
Remove Light
Crafting Experience
Crop Fully Grown
Crop Planting
Crop Planting Exp
Dog Calls
Gathering Exp
Sheer Exp
Slaughter Exp
Hero Kills
Hunting
Fishing Exp
Fishing Boat Group
Fishing Weigh In
Dig Exp
Mine Ore
Mining Deposit Groups
Items Sold Regional
Items Bought Discount
Unit Discount
Conversations
Gambling
Produce Coal
Scuttle Cargo
Loot Cargo
Achievements
Major Miner
Alchemist
Baker Terbakar
Master Angler
Green Thumb
Huntsman
Bounty Hunter
Silver Tongue
Slayer
Item System
Consumable Item Limits
Ability Drop
Clear Summons
Attribute Adjust
Gear Requirements
Set Bonus Removal
Unit Item Limits
EasyItemStacknSplitGUI
Item Cleanup
Buy Animation
Recipes and Crafting
Concoct Potion of Healing
Concoct Potion of Greater Healing
Concoct Potion of Mana
Concoct Potion of Greater Mana
Concoct Potion of Invisibility
Concoct Potion of Speed
Concoct Antimagic Potion
Concoct Chloroform
Concoct Deadly Poison
Concoct Cleanse Potion
Concoct Molotov Cocktail
Cook Apple Pie
Cook Banana Bread
Cook Basted Ribs
Cook Bread
Cook Cake
Cook Cheese
Cook Corn Bread
Cook Pint
Cook Roasted Meat
Cook Sausage
Cook Wine
Craft Bomb
Craft String
Craft Torch
Refine Flour
Refine Gunpowder
Refine Med Powder
Smelt Iron
Smelt Steel
Smelt Mithril
Tan Leather
Weapons
Craft Club
Craft Hatchet
Craft Knife
Craft Shortsword
Craft Musket
Craft Quarterstaff
Craft Bone Fetish
Craft Spear
Craft Flintlock
Craft Shiv
Craft Hammer
Craft Wooden Board
Craft Wooden Crossbow
Armor
Craft Chain Mail
Craft Cloth Robe
Craft Leather Tunic
Accessories
Craft Amulet of Warding
Craft Bracers of Agility
Craft Golden Heart Talisman
Craft Leather Belt
Craft Leather Boots
Craft Pendant of Mana
Craft Periapt of Vitality
Craft Pilgrims Scarf
Craft Ring of Protection
Craft Ring of Regeneration
Reforge!
Reforge
Reforge Commission
Day Cycle
-----Day-----
Light of the Day
Clear Dungeons
Ashford Respawn
Droknar Respawn
Cavalon Respawn
Small Town Respawn
Verdant Rains
Natures Wrath
-----Night-----
Dark of the Night
Daily Income
Blood Moon
Demon Invasion End
Moladune Mines Reset
Eternal Grove Reset
Seafarers Rest Reset
Credits
-----Credit Roll-----
-----Overview-----
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
AISumInt integer No
AllianceHashtable hashtable No
AlliedToTownsfolk boolean Yes
AntiSpam boolean Yes
ArenaGroup group No
ArenaMessage boolean Yes
ArenaReset boolean No
ArenaRound1 boolean No
ArenaRound2 boolean No
ArenaRound3 boolean No
ArenaRound4 boolean No
ArenaRound5 boolean No
ArenaWon boolean No
AssignAbilities boolean Yes
Backpack_Group group No
BAG unit Yes
BanditPlayers force No
Button_AcceptArena button Yes
Button_AcceptAshford button Yes
Button_AcceptBoneCollector button Yes
Button_AcceptCavalon button Yes
Button_AcceptCleric button Yes
Button_AcceptDroknar button Yes
Button_AcceptMoladune button Yes
Button_AcceptTemple button Yes
Button_Alliance button Yes
Button_Banker button Yes
Button_BrokerPeace button Yes
Button_Cancel button Yes
Button_DeclareWar button Yes
Button_Delver button Yes
Button_Denounce button Yes
Button_Dwarf button Yes
Button_Elf button Yes
Button_Fisherman button Yes
Button_Founder button Yes
Button_Human button Yes
Button_Hunter button Yes
Button_MakeTruce button Yes
Button_Orc button Yes
Button_Player button Yes
Button_Trader button Yes
Button_Tribute button Yes
Button_Undead button Yes
CAcceleration real Yes
CAccelerationRate real No
CAngle real Yes
CAnimSpeed real Yes
CanMurder boolean No
CArray integer No
CavalryGroup group No
CCaster unit Yes
CCasterCheck unit No
CCasterPos location No
CCasterPosCheck location No
CDamage real Yes
CDistance real Yes
CEndOfCharge boolean Yes
CheckDig boolean Yes
CheckFishing boolean Yes
CheckTalk boolean Yes
CleanedItem item Yes
ClearSummons boolean Yes
CLoop integervar No
CMovePoint location No
ComputerName string Yes
ConcussiveReal real Yes
ConcussiveTarget unit Yes
ConquestInt integer No
ConquestTimer timer No
ConquestTimerWindow timerdialog No
CountAnimals integer Yes
CountCrops integer Yes
CountDeer integer Yes
CountDig integer Yes
CountDogCalls integer Yes
CountFish integer Yes
CountFood integer Yes
CountHeroKills integer Yes
CountItemsBought integer Yes
CountItemsSold integer Yes
CountPotions integer Yes
CountQuests integer Yes
CountTimesTalked integer Yes
CPlayaGroup force Yes
CPlayaGroupCheck force No
CraftedBoolean boolean Yes false
CraftExp boolean Yes
CreepPoint location Yes
CTarget unit Yes
CTargetCheck unit No
CTargetPos location No
CTargetPosCheck location No
Cthulhu unit No
CthulhuFight boolean No
CWait real Yes
DemonGate unit No
DemonInt integer No
DG_Angle real No
DG_Attach_Target string No
DG_Caster unit No
DG_CastingTime real No
DG_Collision real No
DG_CurrentDist real No
DG_Group group No
DG_Target unit No
DG_TargetEffect string No
DG_Timer real No
DGAbility abilcode No
DGPoint1 location No
DGPoint2 location No
DGTargetKey integer No
Diplomacy_Ally boolean Yes
Diplomacy_DeclareWar boolean Yes
Diplomacy_Denounce boolean Yes
Diplomacy_Tribute boolean Yes
Diplomacy_Truce boolean Yes
EasyItem__ERRORSOUND string No
EasyItem__SPLIT boolean No
EasyItem__SPLITDROP boolean No
EasyItem__SPLITSIZE integer No
EasyItem__SPLITSTACK boolean No
EasyItem__SPLITSTACKDELAY real No
EasyItem__USEITEMLEVEL boolean No
EasyItem_integer integervar Yes
EasyItem_item item No
EasyItem_items item Yes
EasyItem_point location Yes
EasyItem_sound sound No
EasyItem_string string Yes
EasyItem_timer timer No
EasyItem_unit unit No
EasyItem_units unit Yes
EconomicWarning boolean Yes
EventBloodMoon boolean No
EventDemonInvasion boolean No
EventDragon boolean No
EventForestBoss boolean No
EventLateGame boolean No
EventNaturesWrath boolean No
EventVerdantRain boolean No
FactorCleared boolean Yes
FishingBoats group No
FishingBoot boolean Yes
Flagship unit Yes
FriendMode boolean Yes
FriendVote integer No
GameMode string No |c00FFFFFFSelecting|r Game Modes
GameModeSelect boolean No true
Gear_Dialog dialog No
GearDrop boolean Yes
General_Dialog dialog Yes
GoldMine unit Yes
GracePeriod boolean No true
Granary_Group group No
GreedisWin boolean Yes
GreedIsWinVote integer No
GW_Ability abilcode No
GW_CatchRange real No
GW_DragSpeed real No
GW_Dummy unitcode No
GW_Duration real No
GW_PullsAllies boolean No
GW_SpellGroup group No
GW_SpellHash hashtable No
HardMode boolean Yes
HardModeVote integer No
HasDog boolean Yes
HashGrip hashtable No
HasPet boolean Yes
HERO unit Yes
HeroComputer boolean Yes
HeroGroupLeader group Yes
HeroGroupLt group Yes
HeroGroupRanger group Yes
HeroGroupSummoner group Yes
HeroicAdmiral boolean Yes
HeroicBalthazar boolean Yes
HeroicBloodMoon boolean Yes
HeroicHollowWood boolean Yes
HeroicLeviathan boolean Yes
HeroicMagus boolean Yes
HeroicQueen boolean Yes
HeroicVictoryPlayers force No
HEROLt unit Yes
HERORanger unit Yes
HEROSummoner unit Yes
HeroSummons boolean Yes
ID integer Yes
ID2 integer No
IDMax integer No
IllusionGroup group No
Ingredients integer No
IronDepositGroup group No
IsABandit boolean Yes
IsAFounder boolean Yes
IsAHero boolean Yes
IsNight boolean No
Item_Integer integer No
ItemCleanupFlag boolean No
ItemCleanupTimer timer No
ItemsToClean integer No
ItemUser unit Yes
J_Angle real Yes
J_Animation string No
J_Animations string Yes
J_AnimationSpeed real No
J_Collision boolean No
J_Distances real Yes
J_Effect string Yes
J_Group group No
J_HeightSettings real Yes
J_Integers integer Yes
J_JumpHigh real Yes
J_JumpHigh_Distance real No
J_ReachedDistance real Yes
J_RealTimer real Yes
J_SpecialEffect string No
J_Speed real No
J_TargetPoint location No
J_TempPoint location Yes
J_Unit unit Yes
J_UnitSpeed real Yes
JCast_Unit unit No
KB integervar No
KB_Angle real Yes
KB_Distance real Yes
KB_Group group Yes
KB_Int integer No
KB_Off boolean Yes
KB_Point location Yes
KB_Skip integer No
KB_Spam integer Yes
KB_Speed real Yes
KB_Target unit Yes
KB_Times integer No
LocustGroup group No
Loop integervar No
Map boolean Yes
MarketDemand real Yes
MarketInt integer No
MithrilDepositGroup group No
MountRank integer Yes
Multiboard multiboard No
MultiboardPlaceCheck boolean No
MultiboardPlayer boolean Yes
NatureWrathLightning boolean No
NeutralPlayers force No
No_Suicide button No
OrderID integer No
Packhorse_Group group No
Path1 group No
Path2 group No
Path3 group No
PeaceBrokered boolean No
Player11Group group No
Player11Int integer No
PlayerAlignment string Yes
PlayerColor string Yes
PlayerCount integer No
PlayerDefeated boolean Yes
PlayerRotate boolean Yes
PlayerRow integer Yes
PlayerStatus string Yes
PointBloodMoon location Yes
PointCaravan location Yes
PointDemonLordSpawn location No
PointDemonSpawn location No
PointForestCreeps location Yes
PointMineCreeps location Yes
PointPatrol location Yes
PointPirates location Yes
PointSeafarerCreeps location Yes
PointShip location Yes
PointTrawlers location Yes
PointVessel location Yes
PointVillagers location Yes
QuestActiveArena boolean No
QuestActiveAshford boolean No
QuestActiveBoneCollector boolean No
QuestActiveCavalon boolean No
QuestActiveCleric boolean No
QuestActiveDroknar boolean No
QuestActiveMoladune boolean No
QuestActiveTemple boolean No
QuestArena quest No
QuestAshford quest No
QuestAshfordGroup group No
QuestBoneCollector quest No
QuestCavalon quest No
QuestCavalonGroup group No
QuestCleric quest No
QuestDroknar quest No
QuestDroknarGroup group No
QuesterAshford force No
QuesterCavalon force No
QuesterDroknar force No
QuestMoladune quest No
QuestRegion rect No
QuestTemple quest No
QuestTierAshford integer No
QuestTierCavalon integer No
QuestTierDroknar integer No
Quickstart boolean Yes
QuickstartVote integer No
Rage group No
RankHashtable hashtable No
RankInt integer No
RecipeFactor itemcode Yes
Reputation integer Yes
Selection_Dialog dialog Yes
ShrineLightning effect No
Slot_Integer integervar No
SpecialFX effect No
Suicide_Dialog dialog No
SulfurDepositGroup group No
SummonedLeviathan boolean No
SummonedMagus boolean No
SummonedQueen boolean No
Temp_Group_1 group No
Temp_Loc_1 location No
Temp_Loc_2 location No
Temp_Real_1 real No
Temp_Real_2 real No
Temp_Real_3 real No
Temp_Real_4 real No
Temp_Real_5 real No
Temp_Unit_1 unit No
Temp_Unit_2 unit No
Temp_Unit_3 unit No
TempFloatText texttag No
TempForce force No
TempGroup group No
TempInt integer No
TempItem item No
TempLoc location No
TempPlayer player No
TempPoint location No
TempReal real No
TempRegion rect No
TempUnit unit No
TextAdmiral boolean No
TextDarkWizard boolean No
TextGrandMagus boolean No
TextLeviathan boolean No
TextQueen boolean No
TextTroll boolean No
Time string No
TimeHours integer No
TimeMinutes integer No
TimeMinutes_Tens integer No
TimeSeconds integer No
TimeSeconds_Tens integer No
TK_FlyingUnits group No
TK_FSpeed real Yes
TK_Hero unit Yes
TK_ImpactSFX string No
TK_Integers integer Yes
TK_Interval real Yes
TK_Level integer Yes
TK_LiftSFX string No
TK_LiftSFXTimer real No
TK_LsfxT real Yes
TK_MaxHeight real Yes
TK_MaxHeightIncrease real No
TK_MaxHeightStart real No
TK_MinHeightIncrease real No
TK_MinHeightStart real No
TK_Pause boolean No
TK_Speed real No
TK_SpeedVariationPerc real No
TK_StartSFX string No
TK_TempPoint location Yes
TK_Unit unit Yes
TK_UnitGroup group No
TownContested boolean No
TownsfolkAssailant unit No
TownsfolkUnit unit No
TRdummyh unit No
TRhash hashtable No
TRindexD integer No
TRindexN integer No
TRisEnabled boolean No
TRtimers timer Yes
TRtrig trigger No
UppercutGroup group No
VassalAshford integer No 13
VassalCavalon integer No 13
VassalDroknar integer No 13
VassalFrostGate integer No 13
VassalPortSledge integer No 13
VassalRiverside integer No 13
VassalSanctumCay integer No 13
VassalWizardFolly integer No 13
Victor integer No
Weapon effect Yes
Weather boolean No true
Weather_Current integer No
Weather_Effects weathereffect Yes
WildHunt boolean Yes
WildHuntSaved integer No
WildHuntVote integer No
Yes_Suicide button No
Zealous group No
Initialization
  Events
    Map initialization
  Conditions
  Actions
    -------- Hashtables --------
    Hashtable - Create a hashtable
    Set RankHashtable = (Last created hashtable)
    Hashtable - Create a hashtable
    Set AllianceHashtable = (Last created hashtable)
    For each (Integer A) from 1 to 59, do (Actions)
      Loop - Actions
        Set MarketDemand[(Integer A)] = 1.00
    -------- Preloaded Units --------
    Unit - Remove Blacksmith 0175 <gen> from the game
    Unit - Remove Cooking Stand 0176 <gen> from the game
    -------- Respawn Setup --------
    Set TempInt = 0
    Set TempGroup = (Units in (Playable map area) owned by Player 9 (Gray))
    Unit Group - Pick every unit in TempGroup and do (Actions)
      Loop - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Or - Any (Conditions) are true
              Conditions
                (Unit-type of (Picked unit)) Equal to |cffffcc00Guard|r
                (Unit-type of (Picked unit)) Equal to |cffffcc00Warrior|r
          Then - Actions
            Set TempInt = (TempInt + 1)
            Set CreepPoint[TempInt] = (Position of (Picked unit))
            Unit - Set the custom value of (Picked unit) to TempInt
            Hashtable - Save 0 as (Key rank) of (Key (Picked unit)) in RankHashtable
          Else - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                (Unit-type of (Picked unit)) Equal to |cffffcc00Soldier|r
              Then - Actions
                Hashtable - Save 0 as (Key rank) of (Key (Picked unit)) in RankHashtable
              Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    ((Picked unit) is A Hero) Equal to True
                  Then - Actions
                    Unit - Make (Picked unit) Invulnerable
                  Else - Actions
                    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                      If - Conditions
                        (Unit-type of (Picked unit)) Equal to Fishing Trawler
                      Then - Actions
                        Hero - Create Blue Fin and give it to (Picked unit)
                        Item - Set charges remaining in (Last created item) to (Random integer number between 5 and 15)
                        Item - Set the custom value of (Last created item) to 24
                      Else - Actions
    Custom script: call DestroyGroup(udg_TempGroup)
    Set TempGroup = (Units in (Playable map area) owned by Neutral Hostile)
    Unit Group - Pick every unit in TempGroup and do (Actions)
      Loop - Actions
        Set TempInt = (TempInt + 1)
        Set CreepPoint[TempInt] = (Position of (Picked unit))
        Unit - Set the custom value of (Picked unit) to TempInt
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Or - Any (Conditions) are true
              Conditions
                (Unit-type of (Picked unit)) Equal to |cffffcc00Fenrir|r
                (Unit-type of (Picked unit)) Equal to Alpha Wolf
                (Unit-type of (Picked unit)) Equal to Bear
          Then - Actions
            Hashtable - Save 0 as (Key rank) of (Key (Picked unit)) in RankHashtable
          Else - Actions
    Custom script: call DestroyGroup(udg_TempGroup)
    Set TempGroup = (Units in (Playable map area) owned by Neutral Passive)
    Unit Group - Pick every unit in TempGroup 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 Sheep
          Then - Actions
            Set TempInt = (TempInt + 1)
            Set CreepPoint[TempInt] = (Position of (Picked unit))
            Unit - Set the custom value of (Picked unit) to TempInt
          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 Center
              Then - Actions
                Neutral Building - Add Upgrade Weapons Tier 1 to (Picked unit) with 0 in stock and a max stock of 1
                Neutral Building - Add Upgrade Armor Tier 1 to (Picked unit) with 0 in stock and a max stock of 1
                Neutral Building - Add Upgrade Defences Tier 1 to (Picked unit) with 0 in stock and a max stock of 1
              Else - Actions
    Custom script: call DestroyGroup(udg_TempGroup)
    Set WildHuntSaved = TempInt
    -------- Map Setup --------
    Game - Set the time of day to 6.01
    Game - Set ally color filtering to 0
    Destructible - Open Gate 1762 <gen>
    Animation - Play the stand upgrade second animation for all doodads of type LSin (doodadcode) within (Playable map area)
    Animation - Play the death animation for all doodads of type LOtz (doodadcode) within (Playable map area)
    Animation - Play the death animation for all doodads of type LOlp (doodadcode) within (Playable map area)
    Animation - Play the death animation for all doodads of type LObz (doodadcode) within (Playable map area)
    Animation - Play the death animation for all doodads of type NOfp (doodadcode) within (Playable map area)
    Set DemonGate = Demon Gate 0118 <gen>
    Set PointDemonSpawn = (Center of Demon_Spawn <gen>)
    Set PointDemonLordSpawn = (Center of Demon_Gate_Spawn <gen>)
    Set PointCaravan[1] = (Center of Caravan_West <gen>)
    Set PointCaravan[2] = (Center of Caravan_South <gen>)
    Set PointCaravan[3] = (Center of Caravan_East <gen>)
    Set PointPatrol[2] = (Center of Patrol_2 <gen>)
    Set PointPatrol[4] = (Center of Patrol_4 <gen>)
    Set PointPatrol[5] = (Center of Patrol_5 <gen>)
    Set PointPatrol[7] = (Center of Patrol_7 <gen>)
    Set PointPatrol[8] = (Center of Patrol_8 <gen>)
    Set PointPatrol[9] = (Center of Patrol_9 <gen>)
    Set PointPatrol[10] = (Center of Patrol_10 <gen>)
    Set PointPatrol[11] = (Center of Patrol_11 <gen>)
    Set PointPatrol[12] = (Center of Patrol_12 <gen>)
    Set PointPatrol[14] = (Center of Patrol_14 <gen>)
    Set PointPatrol[15] = (Center of Patrol_15 <gen>)
    Set PointPatrol[16] = (Center of Patrol_16 <gen>)
    Set PointPatrol[17] = (Center of Patrol_17 <gen>)
    Set PointPirates[1] = (Center of Pirates_1 <gen>)
    Set PointPirates[2] = (Center of Pirates_2 <gen>)
    Set PointPirates[3] = (Center of Pirates_3 <gen>)
    Set PointTrawlers[1] = (Center of Trawler_1 <gen>)
    Set PointTrawlers[2] = (Center of Trawler_2 <gen>)
    Set PointTrawlers[3] = (Center of Trawler_3 <gen>)
    Set PointVessel[1] = (Center of Trade_Vessel_1a <gen>)
    Set PointVessel[2] = (Center of Trade_Vessel_2a <gen>)
    Set PointVessel[3] = (Center of Trade_Vessel_3a <gen>)
    Set PointVessel[4] = (Center of Trade_Vessel_1b <gen>)
    Set PointVessel[5] = (Center of Trade_Vessel_2b <gen>)
    Set PointVessel[6] = (Center of Trade_Vessel_3b <gen>)
    Set PointVillagers[1] = (Center of Villagers_1 <gen>)
    Set PointVillagers[2] = (Center of Villagers_2 <gen>)
    Set PointVillagers[3] = (Center of Villagers_3 <gen>)
    Set PointVillagers[4] = (Center of Villagers_4 <gen>)
    Set PointVillagers[5] = (Center of Villagers_5 <gen>)
    Set PointVillagers[6] = (Center of Villagers_6 <gen>)
    Set PointVillagers[7] = (Center of Villagers_7 <gen>)
    Set PointVillagers[8] = (Center of Villagers_8 <gen>)
    Set PointVillagers[9] = (Center of Villagers_9 <gen>)
    Set PointVillagers[10] = (Center of Villagers_10 <gen>)
    Set PointVillagers[11] = (Center of Villagers_11 <gen>)
    Set PointBloodMoon[1] = (Center of Bloodmoon_Portal_1 <gen>)
    Set PointBloodMoon[2] = (Center of Bloodmoon_Portal_2 <gen>)
    Set PointBloodMoon[3] = (Center of Bloodmoon_Portal_3 <gen>)
    Set PointBloodMoon[4] = (Center of Bloodmoon_Portal_4 <gen>)
    Set PointMineCreeps[1] = (Center of Mine_Creeps_1 <gen>)
    Set PointMineCreeps[2] = (Center of Mine_Creeps_2 <gen>)
    Set PointMineCreeps[3] = (Center of Mine_Creeps_3 <gen>)
    Set PointMineCreeps[4] = (Center of Mine_Creeps_4 <gen>)
    Set PointMineCreeps[5] = (Center of Mine_Creeps_5 <gen>)
    Set PointMineCreeps[6] = (Center of Mine_Creeps_6 <gen>)
    Set PointMineCreeps[7] = (Center of Mine_Creeps_7 <gen>)
    Set PointMineCreeps[8] = (Center of Mine_Creeps_8 <gen>)
    Set PointMineCreeps[9] = (Center of Mine_Creeps_9 <gen>)
    Set PointForestCreeps[1] = (Center of Forest_Creeps_1 <gen>)
    Set PointForestCreeps[2] = (Center of Forest_Creeps_2 <gen>)
    Set PointForestCreeps[3] = (Center of Forest_Creeps_3 <gen>)
    Set PointForestCreeps[4] = (Center of Forest_Creeps_4 <gen>)
    Set PointForestCreeps[5] = (Center of Forest_Creeps_5 <gen>)
    Set PointForestCreeps[6] = (Center of Forest_Creeps_6 <gen>)
    Set PointForestCreeps[7] = (Center of Forest_Creeps_7 <gen>)
    Set PointForestCreeps[8] = (Center of Forest_Creeps_8 <gen>)
    Set PointForestCreeps[9] = (Center of Forest_Creeps_9 <gen>)
    Set PointSeafarerCreeps[1] = (Center of Seafarer_Creeps_1 <gen>)
    Set PointSeafarerCreeps[2] = (Center of Seafarer_Creeps_2 <gen>)
    Set PointSeafarerCreeps[3] = (Center of Seafarer_Creeps_3 <gen>)
    Set PointSeafarerCreeps[4] = (Center of Seafarer_Creeps_4 <gen>)
    Set PointSeafarerCreeps[5] = (Center of Seafarer_Creeps_5 <gen>)
    Set PointSeafarerCreeps[6] = (Center of Seafarer_Creeps_6 <gen>)
    Set PointSeafarerCreeps[7] = (Center of Seafarer_Creeps_7 <gen>)
    Set PointSeafarerCreeps[8] = (Center of Seafarer_Creeps_8 <gen>)
    Set PointSeafarerCreeps[9] = (Center of Seafarer_Creeps_9 <gen>)
    Set PointSeafarerCreeps[10] = (Center of Seafarer_Creeps_10 <gen>)
    Set PointShip[1] = (Center of Ship_1 <gen>)
    Set PointShip[2] = (Center of Ship_2 <gen>)
    Set PointShip[3] = (Center of Ship_3 <gen>)
    Set PointShip[4] = (Center of Ship_4 <gen>)
    Set PlayerColor[1] = |CFFFF0000
    Set PlayerColor[2] = |CFF0000FF
    Set PlayerColor[3] = |CFF18E7BD
    Set PlayerColor[4] = |CFF520084
    Set PlayerColor[5] = |CFFFFFF00
    Set PlayerColor[6] = |CFFFF8A08
    Set PlayerColor[7] = |CFF18BE00
    Set PlayerColor[8] = |CFFE759AD
    Set ComputerName[1] = Bloodhill Bandits
    Set ComputerName[2] = Blackwater Raiders
    Set ComputerName[3] = Northsea Pirates
    Set ComputerName[4] = Ravenclaw Gang
    Set ComputerName[5] = Copper Shiv Crew
    Set ComputerName[6] = Defias Brotherhood
    Set ComputerName[7] = Westfall Thugs
    Set ComputerName[8] = Dread Corsairs
    Player - Disable Guard Passives for Player 9 (Gray)
    Player - Disable Guard Passives for Player 10 (Light Blue)
    Player - Disable Feral Spirit (Alpha Wolf) for Neutral Hostile
    Player - Make Player 11 (Dark Green) treat Neutral Passive as an Enemy
    Player - Make Player 12 (Brown) treat Neutral Hostile as an Neutral
    Player - Make Neutral Hostile treat Player 12 (Brown) as an Neutral
    Player - Make Neutral Hostile treat Neutral Passive as an Enemy
    Player - Turn Gives bounty On for Neutral Passive
    For each (Integer A) from 9 to 12, do (Actions)
      Loop - Actions
        Player - Change color of (Player((Integer A))) to , Changing color of existing units
        Player - Hide (Player((Integer A))) in the post-game score screen
        Player - Turn Gives bounty On for (Player((Integer A)))
    AI - Ignore the guard positions of all Player 11 (Dark Green) units
    Set TempPoint = (Center of Ship_1 <gen>)
    Unit - Create 1 Ship for Neutral Passive at TempPoint facing 270.00 degrees
    Custom script: call RemoveLocation(udg_TempPoint)
    Set TempPoint = (Random point in Stag_Spawn <gen>)
    Unit - Create 1 |cffffcc00Elusive Stag|r for Neutral Hostile at TempPoint facing (Random angle) degrees
    Custom script: call RemoveLocation(udg_TempPoint)
    Neutral Building - Change the special minimap icon to UI\Minimap\MiniMap-Entrance.blp
    Set TempGroup = (Units of type Exit (Custom Campaign))
    Unit Group - Pick every unit in TempGroup and do (Actions)
      Loop - Actions
        Neutral Building - Turn special minimap icon On for (Picked unit)
    Custom script: call DestroyGroup(udg_TempGroup)
    Set TempGroup = (Units owned by Neutral Passive matching (((Matching unit) is A structure) Equal to True))
    Unit Group - Pick every unit in TempGroup and do (Actions)
      Loop - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Or - Any (Conditions) are true
              Conditions
                (Unit-type of (Picked unit)) Equal to Shipyard
                (Unit-type of (Picked unit)) Equal to Fisherman's Guild
          Then - Actions
            Animation - Play (Picked unit)'s work animation
          Else - Actions
    Custom script: call DestroyGroup(udg_TempGroup)
    Animation - Play Demon Gate 0118 <gen>'s stand alternate animation
    -------- Patrol Start --------
    Set TempPoint = (Center of Patrol_7 <gen>)
    Set TempGroup = (Units owned by Player 9 (Gray))
    Unit Group - Pick every unit in TempGroup and do (Actions)
      Loop - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Or - Any (Conditions) are true
              Conditions
                (Unit-type of (Picked unit)) Equal to |cffffcc00Soldier|r
                (Unit-type of (Picked unit)) Equal to Traveller (Male 2)
                (Unit-type of (Picked unit)) Equal to |cffffcc00Geoffrey Good-Dealz|r
          Then - Actions
            Set TempInt = (Random integer number between 1 and 3)
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                TempInt Equal to 1
              Then - Actions
                Unit Group - Add (Picked unit) to Path1
              Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    TempInt Equal to 2
                  Then - Actions
                    Unit Group - Add (Picked unit) to Path2
                  Else - Actions
                    Unit Group - Add (Picked unit) to Path3
            Unit - Order (Picked unit) to Move To TempPoint
          Else - Actions
    Custom script: call RemoveLocation(udg_TempPoint)
    Custom script: call DestroyGroup(udg_TempGroup)
    -------- Player Setup --------
    For each (Integer B) from 1 to 10, do (Actions)
      Loop - Actions
        Player Group - Add (Player((Integer B))) to NeutralPlayers
    Set TempPoint = (Center of Start <gen>)
    Player Group - Pick every player in NeutralPlayers and do (Actions)
      Loop - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            ((Picked player) slot status) Equal to Is playing
            (Picked player) Not equal to Player 9 (Gray)
            (Picked player) Not equal to Player 10 (Light Blue)
          Then - Actions
            Set TempPlayer = (Picked player)
            Set PlayerCount = (PlayerCount + 1)
            For each (Integer A) from 1 to 8, do (Actions)
              Loop - Actions
                Hashtable - Save False as (Player number of TempPlayer) of (Integer A) in AllianceHashtable
                Hashtable - Save 0 as (Player number of TempPlayer) of (Integer A) in AllianceHashtable
            Visibility - Create an initially Enabled visibility modifier for TempPlayer emitting Visibility across (Playable map area)
            Visibility - Enable (Last created visibility modifier)
            Visibility - Destroy (Last created visibility modifier)
            -------- Disable Abilities --------
            Player - Disable Stats for TempPlayer
            Player - Disable Stats (2) for TempPlayer
            Player - Disable Stats (Sniper) for TempPlayer
            Player - Disable Stats (Warrior) for TempPlayer
            Player - Disable Charge Bonus for TempPlayer
            Player - Disable Magic (Dwarf) for TempPlayer
            Player - Disable Magic (Human) for TempPlayer
            Player - Disable Magic (Elf) for TempPlayer
            Player - Disable Magic (Orc) for TempPlayer
            Player - Disable Magic (Undead) for TempPlayer
            Player - Disable Invoke (2) for TempPlayer
            Player - Disable Invoke for TempPlayer
            Player - Disable Arcane Missiles for TempPlayer
            Player - Disable Mirror Image for TempPlayer
            Player - Disable Chain Lightning for TempPlayer
            Player - Disable Death Coil (Hero) for TempPlayer
            Player - Disable Entangling Roots for TempPlayer
            Player - Disable Fireball for TempPlayer
            Player - Disable Flash Heal for TempPlayer
            Player - Disable Frost Nova for TempPlayer
            Player - Disable Life Drain for TempPlayer
            Player - Disable Charge for TempPlayer
            Player - Disable Whirlwind for TempPlayer
            Player - Disable Hamstring for TempPlayer
            Player - Disable Mortal Blow for TempPlayer
            Player - Disable Skull Crack for TempPlayer
            Player - Disable Taunt for TempPlayer
            Player - Disable Vault for TempPlayer
            Player - Disable Shockwave for TempPlayer
            Player - Disable Backstab for TempPlayer
            Player - Disable Fan of Knives for TempPlayer
            Player - Disable Aimed Shot for TempPlayer
            Player - Disable Explosive Shot for TempPlayer
            Player - Disable Death Grip for TempPlayer
            Player - Disable Reaper's Sweep for TempPlayer
            Player - Disable Starfall for TempPlayer
            Player - Disable Cyclone for TempPlayer
            Player - Disable Lightning Bolt for TempPlayer
            Player - Disable Scorch for TempPlayer
            Player - Disable Rain of Fire for TempPlayer
            Player - Disable Renew for TempPlayer
            Player - Disable Smite for TempPlayer
            Player - Disable Agony for TempPlayer
            Player - Disable Gravity Well for TempPlayer
            Player - Disable Summon Earth Elemental for TempPlayer
            Player - Disable Impale for TempPlayer
            Player - Disable Blizzard for TempPlayer
            Player - Disable Frost Armor for TempPlayer
            Player - Disable Raise Minion for TempPlayer
            Player - Disable Maledict for TempPlayer
            Player - Disable Black Powder for TempPlayer
            Player - Disable Head Shot for TempPlayer
            Player - Disable Stealth for TempPlayer
            Player - Disable Rupture for TempPlayer
            Player - Disable Concussive Shot for TempPlayer
            Player - Disable Poison Sting (Hero) for TempPlayer
            Player - Disable Shield Bash for TempPlayer
            Player - Disable Defend (Hero) for TempPlayer
            Player - Disable Hammer Toss for TempPlayer
            Player - Disable Thunder Clap for TempPlayer
            Player - Disable Inspire for TempPlayer
            Player - Disable Arrow Rain for TempPlayer
            Player - Disable Strafe for TempPlayer
            Player - Disable Knock Out for TempPlayer
            Player - Disable Uppercut for TempPlayer
            -------- Hero Traits --------
            Player - Disable Endurance Aura (Sniper) for TempPlayer
            Player - Disable Trueshot Aura (Sniper) for TempPlayer
            Player - Disable Call Wolf for TempPlayer
            Player - Disable Call Bear for TempPlayer
            Player - Disable Spirit Link (Summoner) for TempPlayer
            Player - Disable Dark Ritual (Summoner) for TempPlayer
            Player - Disable Unholy Aura (Summoner) for TempPlayer
            Player - Disable Malice Aura (Summoner) for TempPlayer
            Player - Disable Bash (Inquisitor) for TempPlayer
            Player - Disable Slow Poison (Inquisitor) for TempPlayer
            Player - Disable Spell Steal for TempPlayer
            Player - Disable Dispel Magic (Inquisitor) for TempPlayer
            Player - Disable Battle Roar (Warrior) for TempPlayer
            Player - Disable Taunt (Warrior) for TempPlayer
            Player - Disable Parry for TempPlayer
            Player - Disable Vengeance for TempPlayer
            Player - Disable Banish (Mage) for TempPlayer
            Player - Disable Mana Shield (Mage) for TempPlayer
            Player - Disable Brilliance Aura (Mage) for TempPlayer
            Player - Disable Molten Armor for TempPlayer
            Player - Disable Divine Shield (Healer) for TempPlayer
            Player - Disable Mana Burn (Healer) for TempPlayer
            Player - Disable Devotion Aura (Healer) for TempPlayer
            Player - Disable Thorns Aura (Healer) for TempPlayer
            -------- Limits and Startup --------
            Set TempForce = (Player group(TempPlayer))
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                (TempPlayer controller) Equal to User
              Then - Actions
                Camera - Pan camera for TempPlayer to TempPoint over 0 seconds
                Player - Add 500 to TempPlayer Current gold
                Player Group - Make NeutralPlayers treat TempForce as an Neutral
                Player Group - Make TempForce treat NeutralPlayers as an Neutral
                Set PlayerStatus[(Player number of TempPlayer)] = |CFFFFFF00Neutral|r
                Set PlayerAlignment[(Player number of TempPlayer)] = |CFF949694Trusted|r
                Player - Limit training of Thieves' Guild to 0 for TempPlayer
                Player - Limit training of War Camp to 0 for TempPlayer
                Player - Limit training of Lookout Tower to 0 for TempPlayer
                Player - Limit training of Vault to 0 for TempPlayer
                Player - Limit training of Book of Summoning to 0 for TempPlayer
                Player - Limit training of Tent to 1 for TempPlayer
                Player - Limit training of Granary to 0 for TempPlayer
                Player - Limit training of Barn to 0 for TempPlayer
                Player - Limit training of Granary (Undead) to 0 for TempPlayer
                Player - Limit training of Barn (Undead) to 0 for TempPlayer
                Player - Limit training of Gold Mine to 1 for TempPlayer
                Player - Limit training of Entangled Gold Mine to 1 for TempPlayer
                Player - Limit training of Well to 1 for TempPlayer
                Player - Limit training of Moon Well to 0 for TempPlayer
                Player - Limit training of City Fountain to 0 for TempPlayer
                Player - Limit training of Hot Spring to 0 for TempPlayer
                Player - Limit training of Crimson Oasis to 0 for TempPlayer
                Player - Limit training of Defiled Font to 0 for TempPlayer
                Player - Limit training of Hearth to 0 for TempPlayer
                Player - Limit training of Town Hall to 0 for TempPlayer
                Player - Limit training of Great Hall to 0 for TempPlayer
                Player - Limit training of Necropolis to 0 for TempPlayer
                Player - Limit training of Tree of Life to 0 for TempPlayer
                Player - Limit training of Quarry to 0 for TempPlayer
                Player - Limit training of Gold Mine to 0 for TempPlayer
                Player - Limit training of |cffffcc00Spy|r to 1 for TempPlayer
                Player - Limit training of |cffffcc00Spy|r (Horde) to 1 for TempPlayer
                Player - Limit training of |cffffcc00Spy|r (Bandit) to 2 for TempPlayer
                Player - Limit training of Inn (Elf) to 0 for TempPlayer
                Player - Limit training of Inn (Human) to 0 for TempPlayer
                Player - Limit training of Inn (Undead) to 0 for TempPlayer
                Player - Limit training of Inn (Orc) to 0 for TempPlayer
                Player - Limit training of Inn (Dwarf) to 0 for TempPlayer
                Player - Limit training of Dry Dock (Elf) to 0 for TempPlayer
                Player - Limit training of Dry Dock (Human) to 0 for TempPlayer
                Player - Limit training of Dry Dock (Orc) to 0 for TempPlayer
                Player - Limit training of Dry Dock (Undead) to 0 for TempPlayer
                Player - Limit training of Naval Battery to 5 for TempPlayer
                Player - Limit training of Tidal Guardian to 3 for TempPlayer
                Player - Limit training of Spawning Grounds to 1 for TempPlayer
                Player - Limit training of Hide Out to 5 for TempPlayer
                Player - Limit training of Guild Hall to 1 for TempPlayer
                Player - Limit training of Inquisitor to 1 for TempPlayer
                Player - Limit training of Healer to 1 for TempPlayer
                Player - Limit training of Summoner to 1 for TempPlayer
                Player - Limit training of Mage to 1 for TempPlayer
                Player - Limit training of Ranger to 1 for TempPlayer
                Player - Limit training of Warrior to 1 for TempPlayer
                Player - Limit training of Tinker to 1 for TempPlayer
                Player - Make Crypt Knight Unavailable for training/construction by TempPlayer
              Else - Actions
                Player - Limit training of Thieves' Guild (AI) to 0 for TempPlayer
                Player - Set TempPlayer Current gold to 100
                Player Group - Remove TempPlayer from NeutralPlayers
                Player Group - Add TempPlayer to BanditPlayers
                Player Group - Make BanditPlayers treat TempForce as an Enemy
                Player Group - Make TempForce treat BanditPlayers as an Enemy
                Player - Set name of TempPlayer to ComputerName[(Player number of TempPlayer)]
                Set PlayerStatus[(Player number of TempPlayer)] = |CFFFF0000Bandit|r
                Set PlayerAlignment[(Player number of TempPlayer)] = |CFFFF0000Hated|r
                Set Reputation[(Player number of TempPlayer)] = -500
                Player - Set the max research level of Rosp (techcode) to 1 for TempPlayer
                Hero - Make TempPlayer Heroes gain 150.00% experience from future kills
            Custom script: call DestroyForce(udg_TempForce)
            Player - Turn Gives bounty On for TempPlayer
            Player - Limit training of Heroes to 1 for TempPlayer
          Else - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                ((Picked player) controller) Equal to User
              Then - Actions
                Player - Hide (Picked player) in the post-game score screen
                Player Group - Remove (Picked player) from NeutralPlayers
              Else - Actions
    Custom script: call RemoveLocation(udg_TempPoint)
    Player Group - Make BanditPlayers treat NeutralPlayers as an Enemy
    Player Group - Make NeutralPlayers treat BanditPlayers as an Enemy
    Player Group - Make BanditPlayers treat Player Group - Neutral Passive as an Enemy
    -------- Weather Init --------
    Environment - Create at Southern_Weather <gen> the weather effect Dungeon White Fog (Heavy)
    Set Weather_Effects[0] = (Last created weather effect)
    Environment - Create at Southern_Weather <gen> the weather effect Ashenvale Rain (Heavy)
    Set Weather_Effects[1] = (Last created weather effect)
    Environment - Create at Southern_Weather <gen> the weather effect Rays Of Light
    Set Weather_Effects[2] = (Last created weather effect)
    Environment - Create at Middle_Weather <gen> the weather effect Outland Wind (Light)
    Set Weather_Effects[3] = (Last created weather effect)
    Environment - Create at Middle_Weather <gen> the weather effect Ashenvale Rain (Heavy)
    Set Weather_Effects[4] = (Last created weather effect)
    Environment - Create at Middle_Weather <gen> the weather effect Rays Of Light
    Set Weather_Effects[5] = (Last created weather effect)
    Environment - Create at Northern_Weather_1 <gen> the weather effect Outland Wind (Heavy)
    Set Weather_Effects[6] = (Last created weather effect)
    Environment - Create at Northern_Weather_1 <gen> the weather effect Ashenvale Rain (Heavy)
    Set Weather_Effects[7] = (Last created weather effect)
    Environment - Create at Northern_Weather_1 <gen> the weather effect Rays Of Light
    Set Weather_Effects[8] = (Last created weather effect)
    Environment - Create at Northern_Weather_2 <gen> the weather effect Outland Wind (Heavy)
    Set Weather_Effects[9] = (Last created weather effect)
    Environment - Create at Northern_Weather_2 <gen> the weather effect Ashenvale Rain (Heavy)
    Set Weather_Effects[10] = (Last created weather effect)
    Environment - Create at Northern_Weather_2 <gen> the weather effect Rays Of Light
    Set Weather_Effects[11] = (Last created weather effect)
    Environment - Create at Northern_Weather_3 <gen> the weather effect Outland Wind (Heavy)
    Set Weather_Effects[12] = (Last created weather effect)
    Environment - Create at Northern_Weather_3 <gen> the weather effect Ashenvale Rain (Heavy)
    Set Weather_Effects[13] = (Last created weather effect)
    Environment - Create at Northern_Weather_3 <gen> the weather effect Rays Of Light
    Set Weather_Effects[14] = (Last created weather effect)
    -------- Initial Hero Stats --------
    Set TempGroup = (Units in (Playable map area) matching (((Matching unit) is A Hero) Equal to True))
    Unit Group - Pick every unit in TempGroup and do (Actions)
      Loop - Actions
        Hero - Modify Strength of (Picked unit): Add (Level of Strength for (Picked unit))
        Hero - Modify Agility of (Picked unit): Add (Level of Agility for (Picked unit))
        Hero - Modify Intelligence of (Picked unit): Add (Level of Intelligence for (Picked unit))
        Unit - Set level of Critical Evasion (Agility) for (Picked unit) to (Agility of (Picked unit) (Include bonuses))
        Unit - Set level of Spell Resistance (Intelligence) for (Picked unit) to (Intelligence of (Picked unit) (Include bonuses))
    Custom script: call DestroyGroup(udg_TempGroup)
    -------- Spell Setup------------------------------------------------------------ --------
    -------- Gravity Well Setup --------
    Hashtable - Create a hashtable
    Set GW_SpellHash = (Last created hashtable)
    Set GW_Ability = Gravity Well
    Set GW_Dummy = Dummy (Gravity Well)
    Set GW_PullsAllies = True
    Set GW_Duration = 5.00
    Set GW_DragSpeed = 3.00
    Set GW_CatchRange = 300.00
    -------- Telekinesis Setup --------
    Set TK_MinHeightStart = 250.00
    -------- Returns the initial minimal height --------
    Set TK_MinHeightIncrease = 2.50
    -------- Returns the additional height per level --------
    Set TK_MaxHeightStart = 350.00
    -------- Returns the initial maximum height. --------
    Set TK_MaxHeightIncrease = 5.00
    -------- Returns the additional maximum height per level. --------
    Set TK_Speed = 1.00
    -------- Air time for affected units in seconds --------
    Set TK_SpeedVariationPerc = 0.20
    -------- Returns the percentage of variation between each unit's lifting speed --------
    Set TK_LiftSFX = Abilities\Spells\Undead\OrbOfDeath\OrbOfDeathMissile.mdl
    -------- Returns the special effect displayed periodically on the chest of the lifted targets --------
    Set TK_LiftSFXTimer = 0.30
    -------- Returns the interval in seconds in which the previous effect is displayed --------
    Set TK_StartSFX = Abilities\Spells\Items\AIil\AIilTarget.mdl
    -------- Returns the special effect displayed on the targets upon casting this spell --------
    Set TK_ImpactSFX = Abilities\Weapons\GryphonRiderMissile\GryphonRiderMissileTarget.mdl
    -------- Returns the special effect displayed upon impact with the ground --------
    Set TK_Pause = True
    -------- Returns whether the flying unit should be paused. --------
    -------- Death Grip Config --------
    -------- Creating the Hashtable --------
    Hashtable - Create a hashtable
    Set HashGrip = (Last created hashtable)
    -------- Casting Time --------
    Set DG_CastingTime = 0.50
    -------- Set Effects to be used --------
    Set DG_TargetEffect = Abilities\Spells\Undead\DarkSummoning\DarkSummonMissile.mdl
    Set DG_Attach_Target = chest
    -------- Set Collision of the Caster --------
    Set DG_Collision = 50.00
    -------- Set the used Ability --------
    Set DGAbility = Death Grip
    -------- Objectives and Help --------
    Quest - Create a Required quest titled To Win with the description Conquest Victory: Destroy all other players, or control all towns. Be the one true king.Economic Victory: First player to have 100,000 gold wins. Type "-greediswin" to enable.Heroic Victory: Conquer all dungeons, destroy all bosses, and survive all calamities!, using icon path ReplaceableTextures\CommandButtons\BTNUpgradeRegenerationAura.blp
    Quest - Create a Required quest titled Death with the description Is not the end. You can revive from an Altar, Inn or Tent.Upon defeat, when you have no leader and no way to revive, you will come back within one of the towns of the North after 60 seconds.Be warned: revival in this way comes at a price., using icon path ReplaceableTextures\CommandButtons\BTNAnimateDead.blp
    Quest - Create a Required quest titled To Get Gold with the description Try various jobs like: farming, hunting, fishing, logging, trading, questing or digging. Sell your goods to Markets or the Smuggler's Den, and exchange lumber at Town Centers. Once you get a racial Town Hall, you can claim a Gold Mine.Enemy units and Heroes award gold when killed., using icon path ReplaceableTextures\CommandButtons\BTNChestOfGold.blp
    Quest - Create a Required quest titled To Get Experience with the description The best way to gain experience is through questing, dungeon crawling, or simply killing enemy units. You can, however, gain decent experience off the various jobs in the North, by crafting, and even by purchasing items with your Hero., using icon path ReplaceableTextures\CommandButtons\BTNStatUp.blp
    Quest - Create a Required quest titled Requirements with the description Each stat does the following: Strength increases damage, hp, and health regen. Agility increases critical chance, evasion and movement speed. Intelligence increases mana, mana regen and spell resist. Gear requirements depend on total stats. Ability levels increase with every 5 points in a stat., using icon path ReplaceableTextures\CommandButtons\BTNEngineeringUpgrade.blp
    Quest - Create a Required quest titled The Backpack with the description There are many items in the North. But do not fret!With your handy-dandy backpack, inventory management is made easy.Use your backpack to auto-loot, perform diplomatic actions, check achievements, or... kill yourself... when necessary. Upon leader death, all backpack items are dropped., using icon path war3mapImported\BTNMisc_Bag.blp
    Quest - Create a Required quest titled Founder Techtree with the description Humans are round-all, have no fliers, and are more diplomatic. Orcs have more health, use more food, and have a strong military. Elves are highly mobile, more ranged, and better at night. Undead have cheap yet weak units with strong debuffs. Dwarves are hardy with strong machines, but more costly., using icon path ReplaceableTextures\WorldEditUI\Editor-MultipleUnits.blp
    Quest - Create a Required quest titled Bandit Techtree with the description Once you go Bandit, you can never go back.Traits: Structures can purchase items, rely on espionage, have poor military with no flying units, but Heroes gain 25% more experience. Bandits start off "hated" and cannot go past "despised.", using icon path ReplaceableTextures\CommandButtons\BTNBandit.blp
    Quest - Create a Required quest titled Hero Techtree with the description If base building is not your thing, why not focus on Heroes?Traits: Can train 2 additional Heroes, who gain 25% more experience from kills. Also unlocks Hero talents, but there are no military options and you'll have a poor economy., using icon path ReplaceableTextures\CommandButtons\BTNHelmutPurple.blp
    Quest - Create a Required quest titled Crafting with the description Got poorly geared heroes? Make gear for them at your Blacksmith or Crypt!Crafting is an excellent way to get good gear and experience for your heroes.You can also craft consumables at a Cooking Stand, or refine materials at a Windmill.Make sure your heroes are nearby to gain experience., using icon path war3mapImported\BTNMisc_BlackSmithing.blp
    Quest - Create a Required quest titled Digging with the description Buy a Shovel from a Fisherman's Guild, and dig up random treasures, bait or ores!You can also use the shovel for landscaping.If you dig up enough items, you will get a permanent boost to ore mining., using icon path war3mapImported\BTNMisc_Shovel.blp
    Quest - Create a Required quest titled Farming with the description Buy seeds at a Barn or Farmer's Market and plant them somewhere safe. Be wary: wild animals will destroy your crops! Crops don't grow in colder climates, but sell high there. Be sure to fence in your chickens: they wander.Right-click "Pick Up Items" on a Pack Horse for easy crop management!, using icon path ReplaceableTextures\CommandButtons\BTNShimmerWeed.blp
    Quest - Create a Required quest titled Fishing with the description To fish, all you need is a Fishing Rod and Fish Bait. Fishing Spots are located at rivers, lakes, and coastlines. Buy a Fishing Rod and bait at a Fisherman's Guild.Ocean fish sell high at inland towns, and freshwater fish sell high at seaside towns.You can roast fish at a Firepit., using icon path war3mapImported\BTNMisc_Fishing.blp
    Quest - Create a Required quest titled Hunting with the description Killing wild animals with your leader, hero or dog scoress you meat and hides. A Dog Whistle can be used to summon your dog, which has useful abilities for hunting. It is said hides fetch a high price in colder climates! Meat sells high in the south.Wild animals are more common in warmer climates, using icon path ReplaceableTextures\CommandButtons\BTNImprovedStrengthOfTheWild.blp
    Quest - Create a Required quest titled Logging with the description Your leader can chop down trees for lumber and experience using a Pickaxe.Thugs, Shredders and racial workers can harvest lumber. Exchange lumber at Town Centers for gold.Trees will regrow. Don't clear-cut too much!, using icon path ReplaceableTextures\CommandButtons\BTNOrcMeleeUpOne.blp
    Quest - Create a Required quest titled Mining with the description There are three kinds of mines in the North: Iron, Mithril, and Gold. Gold mines are harvested by your workers. Protect it well: you can only have one. To mine Iron or Mithril, simply build a Quarry next to a deposit. Ore deposits are more common in colder terrain. Ores sell high in the south., using icon path ReplaceableTextures\CommandButtons\BTNGatherGold.blp
    Quest - Create a Required quest titled Questing with the description Obtain quests from Heralds or dungeon NPCs. All players have access to initiated quests, and anyone can finish them. Quest types include: fetch quests, bounties, and raiding.Quests are an excellent source of gold and experience, but can be time consuming., using icon path ReplaceableTextures\CommandButtons\BTNSpy.blp
    Quest - Create a Required quest titled Dungeons with the description Throughout the map, there are numerous dungeons to be explored. Though dangerous, they can prove lucrative in both gold and experience, but can only be entered at night. Take care venturing into these places: an unprepared delver will meet an early demise., using icon path ReplaceableTextures\CommandButtons\BTNElunesBlessing.blp
    Quest - Create a Required quest titled Trading with the description Talk to enough villagers, and you become eloquent enough to barter your deals.Be warned: if the locals don't like you, they will not give you a discount!Experiment: different items sell for more at different towns.Transferring goods between markets can prove to be a very profitable business!, using icon path war3mapImported\BTNTalk.blp
    Quest - Create a Required quest titled Reforge with the description The easiest way to get higher level gear is to Reforge it at a Blacksmith, Crypt or Town Center. Simply gather the components listed to upgrade the item,and hit that Reforge button!To reforge at a Blacksmith or Crypt, put the components in the structure., using icon path ReplaceableTextures\CommandButtons\BTNBash.blp
    Quest - Create a Required quest titled Reputation with the description Reputation plays an important role in the North. Become too notorious, and the locals will turn hostile. Become loved, and gain special benefits with vision and diplomacy. Espionage and murdering decreases reputation,where talking, killing enemies, and offering tributes increases reputation., using icon path war3mapImported\BTNAlly.blp
    Quest - Create a Required quest titled Alignment with the description Reputation can change your alignment as follows:+600 = |CFF18BE00Exalted|r, +300 = |CFFA6FF4DAdmired|r, +0 = |CFF949694Trusted|r, -0 = |CFFFFFF00Shady|r, -250 = |CFFFF8A08Despised|r, -500 = |CFFFF0000Hated|rWhen admired, locals will give you gifts. However, killing them gives gold!, using icon path ReplaceableTextures\CommandButtons\BTNHumanCaptureFlag.blp
    Quest - Create a Required quest titled Conquering Towns with the description Defeating the Mayor or Sheriff of a town will put that town under your control. Once conquered, you will gain control of all towers and markets in the area. Guards will try to retake the town if you are |CFFFF0000Hated|r, but you gain income from each citizen alive., using icon path ReplaceableTextures\CommandButtons\BTNOrcCaptureFlag.blp
    Quest - Create a Required quest titled Vassals with the description Releasing a town as a vassal causes it to no longer be in your control. This increases your reputation by 200, and you will still earn income from that town's citizens at the end of each day. You will lose your vassal towns if you are defeated, or if they are conquered by another player., using icon path ReplaceableTextures\CommandButtons\BTNStaffOfPreservation.blp
    Quest - Create a Required quest titled Espionage with the description There is more than one way to undermine your enemies - and your allies.Thieves and Spies can be used to steal, sabotage, monitor or manipulate your rivals.Purchase a Mercenary Contract from a Town Center to gain access to these units!Take care: the locals frown upon such deeds., using icon path war3mapImported\BTNBribe.blp
    Quest - Create a Required quest titled Naval Units with the description To build a navy, hire a Shipwright from a Shipyard.You can also hire Fishing Boats and Transport Shipsto travel over deep water.The first battleship-class vessel you make becomes your Flagship!, using icon path ReplaceableTextures\CommandButtons\BTNTransport.blp
    Quest - Create a Required quest titled Ranks with the description Units gain rank through combat. Units with rank are far more efficient than those without. Combat experience is gained by attacking, taking damage, or killing enemy units. Attacks or hits required per rank: 50, 100, 175, 275, 400. Units gain more experience from fighting or killing enemies., using icon path war3mapImported\BTNRank.blp
    Quest - Create a Required quest titled Shops and Locations with the description In each town you will find an Obelisk. Use this to get a description for merchant types and locations!, using icon path ReplaceableTextures\WorldEditUI\Editor-MultipleDoodads.blp
    Quest - Create a Required quest titled Tutorials and Commands with the description Type "-help" in chat to get a list of all the game commands. Find an Obelisk of Help in any major town for a tutorial! If you're stuck on an island, a Ship can take you to the mainland.Turning weather off may reduce lag., using icon path ReplaceableTextures\WorldEditUI\Editor-Random-Unit.blp
Multiboard
  Events
    Time - Elapsed game time is 0.01 seconds
  Conditions
  Actions
    Sound - Play Comradeship <gen>
    -------- Multiboard Setup --------
    Multiboard - Create a multiboard with 4 columns and (PlayerCount + 1) rows, titled (Status: + GameMode)
    Set Multiboard = (Last created multiboard)
    Multiboard - Set the display style for Multiboard item in column 0, row 0 to Show text and Hide icons
    Multiboard - Set the width for Multiboard item in column 1, row 1 to 10.00% of the total screen width
    Multiboard - Set the width for Multiboard item in column 2, row 1 to 6.00% of the total screen width
    Multiboard - Set the width for Multiboard item in column 3, row 1 to 6.00% of the total screen width
    Multiboard - Set the width for Multiboard item in column 4, row 1 to 6.00% of the total screen width
    Multiboard - Set the text for Multiboard item in column 1, row 1 to Player
    Multiboard - Set the text for Multiboard item in column 2, row 1 to Status
    Multiboard - Set the text for Multiboard item in column 3, row 1 to Reputation
    Multiboard - Set the text for Multiboard item in column 4, row 1 to Alignment
    For each (Integer A) from 1 to PlayerCount, do (Actions)
      Loop - Actions
        Set MultiboardPlaceCheck = False
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            MultiboardPlaceCheck Equal to False
            MultiboardPlayer[1] Equal to False
            (Player 1 (Red) slot status) Equal to Is playing
          Then - Actions
            Set MultiboardPlayer[1] = True
            Set PlayerRow[1] = ((Integer A) + 1)
            Set TempInt = 1
            Set MultiboardPlaceCheck = True
          Else - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                MultiboardPlaceCheck Equal to False
                MultiboardPlayer[2] Equal to False
                (Player 2 (Blue) slot status) Equal to Is playing
              Then - Actions
                Set MultiboardPlayer[2] = True
                Set PlayerRow[2] = ((Integer A) + 1)
                Set TempInt = 2
                Set MultiboardPlaceCheck = True
              Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    MultiboardPlaceCheck Equal to False
                    MultiboardPlayer[3] Equal to False
                    (Player 3 (Teal) slot status) Equal to Is playing
                  Then - Actions
                    Set MultiboardPlayer[3] = True
                    Set PlayerRow[3] = ((Integer A) + 1)
                    Set TempInt = 3
                    Set MultiboardPlaceCheck = True
                  Else - Actions
                    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                      If - Conditions
                        MultiboardPlaceCheck Equal to False
                        MultiboardPlayer[4] Equal to False
                        (Player 4 (Purple) slot status) Equal to Is playing
                      Then - Actions
                        Set MultiboardPlayer[4] = True
                        Set PlayerRow[4] = ((Integer A) + 1)
                        Set TempInt = 4
                        Set MultiboardPlaceCheck = True
                      Else - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                          If - Conditions
                            MultiboardPlaceCheck Equal to False
                            MultiboardPlayer[5] Equal to False
                            (Player 5 (Yellow) slot status) Equal to Is playing
                          Then - Actions
                            Set MultiboardPlayer[5] = True
                            Set PlayerRow[5] = ((Integer A) + 1)
                            Set TempInt = 5
                            Set MultiboardPlaceCheck = True
                          Else - Actions
                            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                              If - Conditions
                                MultiboardPlaceCheck Equal to False
                                MultiboardPlayer[6] Equal to False
                                (Player 6 (Orange) slot status) Equal to Is playing
                              Then - Actions
                                Set MultiboardPlayer[6] = True
                                Set PlayerRow[6] = ((Integer A) + 1)
                                Set TempInt = 6
                                Set MultiboardPlaceCheck = True
                              Else - Actions
                                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                  If - Conditions
                                    MultiboardPlaceCheck Equal to False
                                    MultiboardPlayer[7] Equal to False
                                    (Player 7 (Green) slot status) Equal to Is playing
                                  Then - Actions
                                    Set MultiboardPlayer[7] = True
                                    Set PlayerRow[7] = ((Integer A) + 1)
                                    Set TempInt = 7
                                    Set MultiboardPlaceCheck = True
                                  Else - Actions
                                    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                      If - Conditions
                                        MultiboardPlaceCheck Equal to False
                                        MultiboardPlayer[8] Equal to False
                                        (Player 8 (Pink) slot status) Equal to Is playing
                                      Then - Actions
                                        Set MultiboardPlayer[8] = True
                                        Set PlayerRow[8] = ((Integer A) + 1)
                                        Set TempInt = 8
                                        Set MultiboardPlaceCheck = True
                                      Else - Actions
        Multiboard - Set the width for Multiboard item in column 1, row ((Integer A) + 1) to 10.00% of the total screen width
        Multiboard - Set the width for Multiboard item in column 2, row ((Integer A) + 1) to 6.00% of the total screen width
        Multiboard - Set the width for Multiboard item in column 3, row ((Integer A) + 1) to 6.00% of the total screen width
        Multiboard - Set the width for Multiboard item in column 4, row ((Integer A) + 1) to 6.00% of the total screen width
        Multiboard - Set the text for Multiboard item in column 1, row ((Integer A) + 1) to ((PlayerColor[TempInt] + (Name of (Player(TempInt)))) + |r)
        Multiboard - Set the text for Multiboard item in column 2, row ((Integer A) + 1) to PlayerStatus[TempInt]
        Multiboard - Set the text for Multiboard item in column 3, row ((Integer A) + 1) to (String(Reputation[TempInt]))
        Multiboard - Set the text for Multiboard item in column 4, row ((Integer A) + 1) to PlayerAlignment[TempInt]
        Set MultiboardPlaceCheck = False
    Multiboard - Maximize Multiboard
    Multiboard - Minimize Multiboard
    -------- Race Selection --------
    Player Group - Pick every player in BanditPlayers and do (Actions)
      Loop - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            ((Picked player) controller) Equal to Computer
          Then - Actions
            Set TempPlayer = (Picked player)
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                TempPlayer Equal to Player 1 (Red)
              Then - Actions
                Set TempPoint = (Player 1 (Red) start location)
              Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    TempPlayer Equal to Player 2 (Blue)
                  Then - Actions
                    Set TempPoint = (Player 2 (Blue) start location)
                  Else - Actions
                    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                      If - Conditions
                        TempPlayer Equal to Player 3 (Teal)
                      Then - Actions
                        Set TempPoint = (Player 3 (Teal) start location)
                      Else - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                          If - Conditions
                            TempPlayer Equal to Player 4 (Purple)
                          Then - Actions
                            Set TempPoint = (Player 4 (Purple) start location)
                          Else - Actions
                            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                              If - Conditions
                                TempPlayer Equal to Player 5 (Yellow)
                              Then - Actions
                                Set TempPoint = (Player 5 (Yellow) start location)
                              Else - Actions
                                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                  If - Conditions
                                    TempPlayer Equal to Player 6 (Orange)
                                  Then - Actions
                                    Set TempPoint = (Player 6 (Orange) start location)
                                  Else - Actions
                                    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                      If - Conditions
                                        TempPlayer Equal to Player 7 (Green)
                                      Then - Actions
                                        Set TempPoint = (Player 7 (Green) start location)
                                      Else - Actions
                                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                          If - Conditions
                                            TempPlayer Equal to Player 8 (Pink)
                                          Then - Actions
                                            Set TempPoint = (Player 8 (Pink) start location)
                                          Else - Actions
            Unit - Create 1 Thieves' Guild (AI) for TempPlayer at TempPoint facing Default building facing degrees
            Custom script: call RemoveLocation(udg_TempPoint)
            Set IsABandit[(Player number of TempPlayer)] = True
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                Or - Any (Conditions) are true
                  Conditions
                    TempPlayer Equal to Player 1 (Red)
                    TempPlayer Equal to Player 3 (Teal)
                    TempPlayer Equal to Player 5 (Yellow)
                    TempPlayer Equal to Player 7 (Green)
              Then - Actions
                Unit - Order (Last created unit) to train/upgrade to a Warlord
                Multiboard - Set the display style for Multiboard item in column 1, row PlayerRow[(Player number of TempPlayer)] to Show text and Show icons
                Multiboard - Set the icon for Multiboard item in column 1, row PlayerRow[(Player number of TempPlayer)] to ReplaceableTextures\CommandButtons\BTNBeastMaster.blp
              Else - Actions
                Unit - Order (Last created unit) to train/upgrade to a Commander
                Multiboard - Set the display style for Multiboard item in column 1, row PlayerRow[(Player number of TempPlayer)] to Show text and Show icons
                Multiboard - Set the icon for Multiboard item in column 1, row PlayerRow[(Player number of TempPlayer)] to ReplaceableTextures\CommandButtons\BTNArthas.blp
          Else - Actions
    Player Group - Pick every player in NeutralPlayers and do (Actions)
      Loop - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            ((Picked player) slot status) Equal to Is playing
          Then - Actions
            Set TempPlayer = (Picked player)
            -------- Race Selection Dialog --------
            Set TempInt = (Player number of TempPlayer)
            Dialog - Clear General_Dialog[TempInt]
            Dialog - Change the title of General_Dialog[TempInt] to Pick Your RaceHuman:|cff9F9F5F Round-all, diplomatic|rOrc:|cff9F9F5F Strong, uses more food|rElf:|cff9F9F5F Mobile, mostly ranged units|rUndead:|cff9F9F5F Cheap, strong debuffs|rDwarf:|cff9F9F5F Hardy, yet costly units|r
            Dialog - Create a dialog button for General_Dialog[TempInt] labelled |c00FFFFFFHuman (8 Str, 8 Agi, 8 Int)|r
            Set Button_Human[TempInt] = (Last created dialog Button)
            Dialog - Create a dialog button for General_Dialog[TempInt] labelled |c00FFFFFFOrc (9 Str, 8 Agi, 7 Int)|r
            Set Button_Orc[TempInt] = (Last created dialog Button)
            Dialog - Create a dialog button for General_Dialog[TempInt] labelled |c00FFFFFFElf (7 Str, 9 Agi, 8 Int)|r
            Set Button_Elf[TempInt] = (Last created dialog Button)
            Dialog - Create a dialog button for General_Dialog[TempInt] labelled |c00FFFFFFUndead (8 Str, 7 Agi, 9 Int)|r
            Set Button_Undead[TempInt] = (Last created dialog Button)
            Dialog - Create a dialog button for General_Dialog[TempInt] labelled |c00FFFFFFDwarf (9 Str, 7 Agi, 8 Int)|r
            Set Button_Dwarf[TempInt] = (Last created dialog Button)
            Dialog - Show General_Dialog[TempInt] for TempPlayer
          Else - Actions
    Wait 15.00 seconds
    Quest - Display to (All players) the Quest Discovered message: Lost, stranger?Check the "|CFFFF8A08Help|r" menu or "|CFF18BE00Obelisk of Help|r" in town for more info about the game. Use "-help" to learn more about commands and game modes.It's recommended to set up a |cffffcc00Tent|r somewhere, then hire |cffffcc00Thugs|r at a |cffffcc00Tavern|r for lumber
    Quest - Flash the quest dialog button
Includes: Diplomacy, Quests, and Races
General Dialog
  Events
    Dialog - A dialog button is clicked for General_Dialog[1]
    Dialog - A dialog button is clicked for General_Dialog[2]
    Dialog - A dialog button is clicked for General_Dialog[3]
    Dialog - A dialog button is clicked for General_Dialog[4]
    Dialog - A dialog button is clicked for General_Dialog[5]
    Dialog - A dialog button is clicked for General_Dialog[6]
    Dialog - A dialog button is clicked for General_Dialog[7]
    Dialog - A dialog button is clicked for General_Dialog[8]
  Conditions
  Actions
    Set TempInt = (Player number of (Triggering player))
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        (Clicked dialog button) Equal to Button_Cancel[TempInt]
      Then - Actions
        Set Diplomacy_Ally[TempInt] = False
        Set Diplomacy_Truce[TempInt] = False
        Set Diplomacy_DeclareWar[TempInt] = False
        Set Diplomacy_Denounce[TempInt] = False
        Set Diplomacy_Tribute[TempInt] = False
      Else - Actions
        Set TempPlayer = (Triggering player)
        -------- Diplomacy Dialog --------
        -------- Broker Peace --------
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            (Clicked dialog button) Equal to Button_BrokerPeace[TempInt]
          Then - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                Reputation[TempInt] Greater than or equal to 600
              Then - Actions
                Player Group - Pick every player in NeutralPlayers and do (Actions)
                  Loop - Actions
                    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                      If - Conditions
                        ((Picked player) slot status) Equal to Is playing
                        ((Picked player) controller) Equal to User
                      Then - Actions
                        Set TempForce = (Player group((Picked player)))
                        Player Group - Make TempForce treat NeutralPlayers as an Neutral
                        Player Group - Make NeutralPlayers treat TempForce as an Neutral
                        Custom script: call DestroyForce(udg_TempForce)
                        Set Reputation[(Player number of (Picked player))] = 0
                        Multiboard - Set the text for Multiboard item in column 3, row PlayerRow[(Player number of (Picked player))] to (String(Reputation[(Player number of (Picked player))]))
                        Set PlayerAlignment[(Player number of (Picked player))] = |CFF949694Trusted|r
                        Multiboard - Set the text for Multiboard item in column 4, row PlayerRow[(Player number of (Picked player))] to PlayerAlignment[(Player number of (Picked player))]
                      Else - Actions
                Player Group - Pick every player in BanditPlayers and do (Actions)
                  Loop - Actions
                    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                      If - Conditions
                        ((Picked player) slot status) Equal to Is playing
                        ((Picked player) controller) Equal to User
                      Then - Actions
                        Set PlayerAlignment[(Player number of (Picked player))] = |CFFFF0000Bandit|r
                        Multiboard - Set the text for Multiboard item in column 4, row PlayerRow[(Player number of (Picked player))] to PlayerAlignment[(Player number of (Picked player))]
                      Else - Actions
                Game - Display to (All players) the text: ((PlayerColor[TempInt] + (Name of (Triggering player))) + |r has brokered peace between all non-bandit factions. Affected players are neutral, reputation is reset, and participants can't attack each other for 2 minutes.)
                Set PeaceBrokered = True
                Trigger - Run Peace_Out <gen> (ignoring conditions)
              Else - Actions
                Set TempForce = (Player group(TempPlayer))
                Game - Display to TempForce the text: You need to be |CFF18BE00Exalted|r to do this.
                Custom script: call DestroyForce(udg_TempForce)
          Else - Actions
            -------- Make Alliance --------
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                (Clicked dialog button) Equal to Button_Alliance[TempInt]
              Then - Actions
                Set Diplomacy_Ally[TempInt] = True
                Dialog - Clear Selection_Dialog[TempInt]
                Dialog - Change the title of Selection_Dialog[TempInt] to Who do you want to |CFF18BE00Ally|r with?
                Dialog - Create a dialog button for Selection_Dialog[TempInt] labelled Cancel
                Set Button_Cancel[TempInt] = (Last created dialog Button)
                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
                        ((Player((Integer A))) slot status) Equal to Is playing
                        ((Player((Integer A))) controller) Equal to User
                        (Player((Integer A))) Not equal to TempPlayer
                      Then - Actions
                        Dialog - Create a dialog button for Selection_Dialog[TempInt] labelled (PlayerColor[(Integer A)] + ((Name of (Player((Integer A)))) + |r))
                        Set Button_Player[(Integer A)] = (Last created dialog Button)
                      Else - Actions
                Dialog - Show Selection_Dialog[TempInt] for TempPlayer
              Else - Actions
                -------- Make Truce --------
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  If - Conditions
                    (Clicked dialog button) Equal to Button_MakeTruce[TempInt]
                  Then - Actions
                    Set Diplomacy_Truce[TempInt] = True
                    Dialog - Clear Selection_Dialog[TempInt]
                    Dialog - Change the title of Selection_Dialog[TempInt] to Who will you make a |CFF949694Truce|r with?
                    Dialog - Create a dialog button for Selection_Dialog[TempInt] labelled Cancel
                    Set Button_Cancel[TempInt] = (Last created dialog Button)
                    For each (Integer A) from 1 to 8, do (Actions)
                      Loop - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                          If - Conditions
                            ((Player((Integer A))) slot status) Equal to Is playing
                            ((Player((Integer A))) controller) Equal to User
                            (Player((Integer A))) Not equal to TempPlayer
                          Then - Actions
                            Dialog - Create a dialog button for Selection_Dialog[TempInt] labelled (PlayerColor[(Integer A)] + ((Name of (Player((Integer A)))) + |r))
                            Set Button_Player[(Integer A)] = (Last created dialog Button)
                          Else - Actions
                    Dialog - Show Selection_Dialog[TempInt] for TempPlayer
                  Else - Actions
                    -------- Declare War --------
                    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                      If - Conditions
                        (Clicked dialog button) Equal to Button_DeclareWar[TempInt]
                      Then - Actions
                        Set Diplomacy_DeclareWar[TempInt] = True
                        Dialog - Clear Selection_Dialog[TempInt]
                        Dialog - Change the title of Selection_Dialog[TempInt] to Who do you want to |CFFFF0000Declare War|r on?
                        Dialog - Create a dialog button for Selection_Dialog[TempInt] labelled Cancel
                        Set Button_Cancel[TempInt] = (Last created dialog Button)
                        For each (Integer A) from 1 to 8, do (Actions)
                          Loop - Actions
                            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                              If - Conditions
                                ((Player((Integer A))) slot status) Equal to Is playing
                                ((Player((Integer A))) controller) Equal to User
                                (Player((Integer A))) Not equal to TempPlayer
                              Then - Actions
                                Dialog - Create a dialog button for Selection_Dialog[TempInt] labelled (PlayerColor[(Integer A)] + ((Name of (Player((Integer A)))) + |r))
                                Set Button_Player[(Integer A)] = (Last created dialog Button)
                              Else - Actions
                        Dialog - Show Selection_Dialog[TempInt] for TempPlayer
                      Else - Actions
                        -------- Denounce --------
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                          If - Conditions
                            (Clicked dialog button) Equal to Button_Denounce[TempInt]
                          Then - Actions
                            Set Diplomacy_Denounce[TempInt] = True
                            Dialog - Clear Selection_Dialog[TempInt]
                            Dialog - Change the title of Selection_Dialog[TempInt] to Who do you want to Denounce?
                            Dialog - Create a dialog button for Selection_Dialog[TempInt] labelled Cancel
                            Set Button_Cancel[TempInt] = (Last created dialog Button)
                            For each (Integer A) from 1 to 8, do (Actions)
                              Loop - Actions
                                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                  If - Conditions
                                    ((Player((Integer A))) slot status) Equal to Is playing
                                    ((Player((Integer A))) controller) Equal to User
                                    (Player((Integer A))) Not equal to TempPlayer
                                  Then - Actions
                                    Dialog - Create a dialog button for Selection_Dialog[TempInt] labelled (PlayerColor[(Integer A)] + ((Name of (Player((Integer A)))) + |r))
                                    Set Button_Player[(Integer A)] = (Last created dialog Button)
                                  Else - Actions
                            Dialog - Show Selection_Dialog[TempInt] for TempPlayer
                          Else - Actions
                            -------- Quest Dialog --------
                            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                              If - Conditions
                                Or - Any (Conditions) are true
                                  Conditions
                                    (Clicked dialog button) Equal to Button_AcceptMoladune[TempInt]
                                    (Clicked dialog button) Equal to Button_AcceptCleric[TempInt]
                                    (Clicked dialog button) Equal to Button_AcceptBoneCollector[TempInt]
                                    (Clicked dialog button) Equal to Button_AcceptArena[TempInt]
                                    (Clicked dialog button) Equal to Button_AcceptAshford[TempInt]
                                    (Clicked dialog button) Equal to Button_AcceptCavalon[TempInt]
                                    (Clicked dialog button) Equal to Button_AcceptDroknar[TempInt]
                                    (Clicked dialog button) Equal to Button_AcceptTemple[TempInt]
                              Then - Actions
                                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                  If - Conditions
                                    (Clicked dialog button) Equal to Button_AcceptMoladune[TempInt]
                                    QuestActiveMoladune Equal to False
                                  Then - Actions
                                    Set QuestActiveMoladune = True
                                    Quest - Create a Optional quest titled Moladune Ores No More with the description Moladune is seeking 10 Unrefined Ores from the Kobolds in Moladune Mines.|cffffcc00Rewards:|r|cff9F9F5F - 300 gold, [Hero Level x 50] Experience Points|r, using icon path ReplaceableTextures\CommandButtons\BTNGoldMine.blp
                                    Set QuestMoladune = (Last created quest)
                                    Set TempForce = (Player group(TempPlayer))
                                    Quest - Display to TempForce the Quest Discovered message: |cffffcc00Quest Accepted:|rMoladune Ores No More
                                    Quest - Flash the quest dialog button
                                    Custom script: call DestroyForce(udg_TempForce)
                                    Set TempPoint = (Position of |cffffcc00Moladune|r 0256 <gen>)
                                    Sound - Play WhatMoladune <gen> at 75.00% volume, located at TempPoint with Z offset 0
                                    Floating Text - Create floating text that reads "Give them bastards hell!" at TempPoint with Z offset 0, using font size 10.00, color (100%, 100.00%, 100.00%), and 0% transparency
                                    Set TempFloatText = (Last created floating text)
                                    Floating Text - Set the velocity of TempFloatText to 32.00 towards 90 degrees
                                    Floating Text - Change TempFloatText: Disable permanence
                                    Floating Text - Change the lifespan of TempFloatText to 4.00 seconds
                                    Floating Text - Change the fading age of TempFloatText to 3.00 seconds
                                    Custom script: call RemoveLocation(udg_TempPoint)
                                  Else - Actions
                                    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                      If - Conditions
                                        (Clicked dialog button) Equal to Button_AcceptCleric[TempInt]
                                        QuestActiveCleric Equal to False
                                      Then - Actions
                                        Set QuestActiveCleric = True
                                        Quest - Create a Optional quest titled What Troubles The Land with the description The Cleric wants to purify 15 Fae Dustfrom the Fae in Eternal Grove.|cffffcc00Rewards:|r|cff9F9F5F - 300 gold, [Hero Level x 50] Experience Points|r, using icon path ReplaceableTextures\CommandButtons\BTNPriest.blp
                                        Set QuestCleric = (Last created quest)
                                        Set TempForce = (Player group(TempPlayer))
                                        Quest - Display to TempForce the Quest Discovered message: |cffffcc00Quest Accepted:|rWhat Troubles The Land
                                        Quest - Flash the quest dialog button
                                        Custom script: call DestroyForce(udg_TempForce)
                                        Set TempPoint = (Position of |cffffcc00Cleric|r 0261 <gen>)
                                        Sound - Play WhatCleric <gen> at 75.00% volume, located at TempPoint with Z offset 0
                                        Floating Text - Create floating text that reads "Evil is near . . . tread carefully!" at TempPoint with Z offset 0, using font size 10.00, color (100%, 100.00%, 100.00%), and 0% transparency
                                        Set TempFloatText = (Last created floating text)
                                        Floating Text - Set the velocity of TempFloatText to 32.00 towards 90 degrees
                                        Floating Text - Change TempFloatText: Disable permanence
                                        Floating Text - Change the lifespan of TempFloatText to 4.00 seconds
                                        Floating Text - Change the fading age of TempFloatText to 3.00 seconds
                                        Custom script: call RemoveLocation(udg_TempPoint)
                                      Else - Actions
                                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                          If - Conditions
                                            (Clicked dialog button) Equal to Button_AcceptBoneCollector[TempInt]
                                            QuestActiveBoneCollector Equal to False
                                          Then - Actions
                                            Set QuestActiveBoneCollector = True
                                            Quest - Create a Optional quest titled Bones For The Bone God with the description The Bone Collector is looking for 15 bones fromthe skeletons in Seafarer's Rest.|cffffcc00Rewards:|r|cff9F9F5F - 300 gold, [Hero Level x 50] Experience Points|r, using icon path ReplaceableTextures\CommandButtons\BTNGhostOfKelThuzad.blp
                                            Set QuestBoneCollector = (Last created quest)
                                            Set TempForce = (Player group(TempPlayer))
                                            Quest - Display to TempForce the Quest Discovered message: |cffffcc00Quest Accepted:|rBones For The Bone God
                                            Quest - Flash the quest dialog button
                                            Custom script: call DestroyForce(udg_TempForce)
                                            Set TempPoint = (Position of |cffffcc00Bone Collector|r 0290 <gen>)
                                            Sound - Play WhatBoneCollector <gen> at 75.00% volume, located at TempPoint with Z offset 0
                                            Floating Text - Create floating text that reads "This shall be amusing." at TempPoint with Z offset 0, using font size 10.00, color (100%, 100.00%, 100.00%), and 0% transparency
                                            Set TempFloatText = (Last created floating text)
                                            Floating Text - Set the velocity of TempFloatText to 32.00 towards 90 degrees
                                            Floating Text - Change TempFloatText: Disable permanence
                                            Floating Text - Change the lifespan of TempFloatText to 4.00 seconds
                                            Floating Text - Change the fading age of TempFloatText to 3.00 seconds
                                            Custom script: call RemoveLocation(udg_TempPoint)
                                          Else - Actions
                                            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                              If - Conditions
                                                (Clicked dialog button) Equal to Button_AcceptArena[TempInt]
                                                QuestActiveArena Equal to False
                                              Then - Actions
                                                Set QuestActiveArena = True
                                                Set ArenaRound1 = True
                                                Quest - Create a Optional quest titled Trolling The Arena with the description The Arena Master wants you to challenge the arena,and bring him the Troll Warlord's head.|cffffcc00Rewards:|r|cff9F9F5F - 500 gold, [Hero Level x 75] Experience Points|r, using icon path ReplaceableTextures\CommandButtons\BTNHeadHunterBerserker.blp
                                                Set QuestArena = (Last created quest)
                                                Set TempForce = (Player group(TempPlayer))
                                                Quest - Display to TempForce the Quest Discovered message: |cffffcc00Quest Accepted:|rTrolling The Arena
                                                Quest - Flash the quest dialog button
                                                Custom script: call DestroyForce(udg_TempForce)
                                                Set TempPoint = (Position of |cffffcc00Arena Master|r 0035 <gen>)
                                                Sound - Play WhatArenaMaster <gen> at 75.00% volume, located at TempPoint with Z offset 0
                                                Floating Text - Create floating text that reads "Let the tournament begin!" at TempPoint with Z offset 0, using font size 10.00, color (100%, 100.00%, 100.00%), and 0% transparency
                                                Set TempFloatText = (Last created floating text)
                                                Floating Text - Set the velocity of TempFloatText to 32.00 towards 90 degrees
                                                Floating Text - Change TempFloatText: Disable permanence
                                                Floating Text - Change the lifespan of TempFloatText to 4.00 seconds
                                                Floating Text - Change the fading age of TempFloatText to 3.00 seconds
                                                Custom script: call RemoveLocation(udg_TempPoint)
                                                Wait 7.00 seconds
                                                Set TempGroup = (Units in Arena <gen>)
                                                Unit Group - Pick every unit in TempGroup and do (Actions)
                                                  Loop - Actions
                                                    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                      If - Conditions
                                                        ArenaMessage[(Player number of (Owner of (Picked unit)))] Equal to False
                                                      Then - Actions
                                                        Set ArenaMessage[(Player number of (Owner of (Picked unit)))] = True
                                                        Set TempForce = (Player group((Owner of (Picked unit))))
                                                        Quest - Display to TempForce the New Unit Acquired message: |cffffcc00Round 1:|r Cannon Fodder
                                                        Custom script: call DestroyForce(udg_TempForce)
                                                      Else - Actions
                                                Custom script: call DestroyGroup(udg_TempGroup)
                                                For each (Integer A) from 1 to 8, do (Actions)
                                                  Loop - Actions
                                                    Set ArenaMessage[(Integer A)] = False
                                                Set TempPoint = (Center of Arena_Creep_1 <gen>)
                                                Unit - Create 1 Troll Warrior for Player 12 (Brown) at TempPoint facing 225.00 degrees
                                                Special Effect - Create a special effect attached to the chest of (Last created unit) using Abilities\Spells\Orc\FeralSpirit\feralspiritdone.mdl