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 haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  4. Lead your forces to battle in the 15th Techtree Contest. The call is yours, commander!
    Dismiss Notice
  5. The reforging of the races is complete. Come see the 14th Techtree Contest Results.
    Dismiss Notice
  6. It's time to choose your horse in the race - the 32nd Modeling Contest Poll is up!
    Dismiss Notice
  7. 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

Prop Hunt Reforged.w3x
Variables
PickUpProp
Variables
Music
Music
Music Loop
Main Stuff
HunterTally
HunterPick
Dog
Dog2
Pick Up Prop
Rotate
Update Rounds left
Archer shuffle
Troll shuffle
Priest shuffle
Statue shuffle
Pilar Shuffle
Pyramid Rocks Shuffle
Torch Shuffle
Crop shuffle Barrens
Shuffle Town
Cave shuffle
Nightelf Crate Shuffle
Rock Shuffle
Grave shuffle
Tent shuffle
Words
cavein
caveout
Canyoncavein
Canyoncaveout
Dunesin
Dunesout
Auras
Taunt
Taunteffect
Setnames
VisRegions
Main
Main2
Barrens antizones
Dungeon antizones
Dunes antizones
Dialog
Runesonoroff
Sudden Death
Modetypept2
Modetypept3
ModeType
Arena pick
Restart Arena
Restart Arena Timer
Morph
Random Prop
Take damage
TotalMessagereset
Convert hunter
Hunter die
Revive doodad
Player leaves
Runes
Reveal Rune
Rune Spawning
AntiAfk
Antiafk Runes
Antiafk Sudden Death
Tracking
Pickup
Pickup 2
Pickup 3
Pickup 4
Pickup 5
Pickup 6
Pickup 7
Pickup 8
Pickup 10
Pickup 11
Pickup 13
Pickup 14
Pickup 15
Pickup 16
Pickup 17
Pickup 18
Pickup 19
Pickup 20
Pickup 21
Pickup 22
Pickup 23
Pickup 24
Tracking
Tracking 2
Tracking 3
Tracking 4
Tracking 5
Tracking 6
Tracking 7
Tracking 8
Tracking 10
Tracking 11
Tracking 13
Tracking 14
Tracking 15
Tracking 16
Tracking 17
Tracking 18
Tracking 19
Tracking 20
Tracking 21
Tracking 22
Tracking 23
Tracking 24
Damage Detection
GDD Variable Creator
GUI Friendly Damage Detection
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
AntiAfk_number integer No
CastingUnit unit Yes
Currenttime real No
Dialog dialog No
Dialog_Button button Yes
Dialog_Button_HunterPick button Yes
Dialog_Button_modetype button Yes
Dialog_Button_Points button Yes
Dialog_Button_Rounds button Yes
Dialog_Button_Rune button Yes
Dialog_Button_SD button Yes
Dialog_HunterPick dialog No
Dialog_modetype dialog No
Dialog_Points dialog No
Dialog_Rounds dialog No
Dialog_Runes dialog No
Dialog_SD dialog No
FreezeTimer timer No
FreezeTimer_Window timerdialog No
GAMETYPE string No
GDD__Integers integer Yes
GDD__LeftMapGroup group No
GDD__TriggerArray trigger Yes
GDD__UnitArray unit Yes
GDD_Damage real No
GDD_DamagedUnit unit No
GDD_DamageSource unit No
GDD_Event real No
Givepointunit unit No
gravetype integer No
gravetype2 unitcode No
Group group No
HunterPickTally integer Yes
Hunters integer No
Hunterspawn_timer timer No
Hunterspawn_timer_window timerdialog No
integer integer No
LeaderBoard leaderboard No
LeaderBoard2 leaderboard No
Leavingunit unit No
Message texttag Yes
Morphers integer No
Musictimer timer No
NerfAmount integer No 0
Pickarena_timer timer No
Pickarena_timer_window timerdialog No
PickedUpProp unit Yes
Pickrune_timer timer No
Pickrune_timer_window timerdialog No
PickSD_timer timer No
PickSD_timer_window timerdialog No
Player player No
PlayerHunterReal player No
Playername string Yes
playerscore integer Yes
PlayerThatPickedYes player Yes
PlayerUnit unit No
Point location No
PolymorphUnit unitcode Yes
PropPickupPoint location Yes
Random_arena integer No
RandomBonus boolean Yes
Randomitem itemcode Yes
Randomnumber integer No
Randompick unit No
RandomRune integer No
RandomTallyTotal integer No
RandomTallyUnit unit No
Randomunit unit No
Realname string Yes
Removalunit unit No
Reveal_runeunit unit Yes
RevealTimer timer No
RevealTimer_Window timerdialog No
Rnd integer No
Rnd_10 integer No
Rnd_11 integer No
Rnd_12 integer No
Rnd_13 integer No
Rnd_14 integer No
Rnd_2 integer No
Rnd_3 integer No
Rnd_4 integer No
Rnd_5 integer No
Rnd_6 integer No
Rnd_7 integer No
Rnd_8 integer No
Rnd_9 integer No
RndPoly integer No
Rounds integer No
Runeson boolean No true
Runespawn location No
Selectunit unit No
SilenceTempUnit unit No
SilenceTimer timer No
SilenceTimer_Window timerdialog No
Spawn location No
SuddenDeath boolean No false
Tauntbutton button Yes
TauntDialog dialog No
tauntunit unit No
Timer timer No
Timer_window timerdialog No
TotalMessage integer No 1
Trackingint integer Yes
TriggerPickup trigger Yes
Unit unit No
Music
  Events
    Time - Elapsed game time is 2.50 seconds
  Conditions
  Actions
    Sound - Play prophunt02_lite <gen>
    Sound - Set Music to 70.00%
Music Loop
  Events
    Time - Every 120.00 seconds of game time
  Conditions
  Actions
    Sound - Play prophunt02_lite <gen>
    Sound - Set Music to 70.00%
HunterTally
  Events
    Dialog - A dialog button is clicked for Dialog_HunterPick
  Conditions
  Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        (Clicked dialog button) Equal to Dialog_Button_HunterPick[1]
      Then - Actions
        Set VariableSet HunterPickTally[1] = (HunterPickTally[1] + 1)
        Set VariableSet Point = (Center of Region_194 <gen>)
        Unit - Create 1.TallyDummy for (Triggering player) at Point facing Default building facing degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            (Clicked dialog button) Equal to Dialog_Button_HunterPick[2]
          Then - Actions
            Set VariableSet HunterPickTally[2] = (HunterPickTally[2] + 1)
          Else - Actions
HunterPick
  Events
    Time - Elapsed game time is 2.00 seconds
  Conditions
  Actions
    Dialog - Change the title of Dialog_HunterPick to Do you want to be the hunter?
    Dialog - Create a dialog button for Dialog_HunterPick labelled Yes
    Set VariableSet Dialog_Button_HunterPick[1] = (Last created dialog Button)
    Dialog - Create a dialog button for Dialog_HunterPick labelled No
    Set VariableSet Dialog_Button_HunterPick[2] = (Last created dialog Button)
Dog
  Events
    Unit - A unit Spawns a summoned unit
  Conditions
    (Unit-type of (Summoned unit)) Equal to Hunting Dog
  Actions
    Unit - Change ownership of (Summoned unit) to Neutral Passive and Change color
    Set VariableSet Point = (Position of (Summoned unit))
    Unit - Order (Summoned unit) to Attack.(Random unit from (Units within 1000.00 of Point matching (((Matching unit) is invulnerable) Equal to False).))
    Custom script: call RemoveLocation (udg_Point)
Dog2
  Events
    Unit - A unit Dies
  Conditions
    (Unit-type of (Killing unit)) Equal to Hunting Dog
  Actions
    Set VariableSet Point = (Position of (Summoned unit))
    Unit - Order (Summoned unit) to Attack.(Random unit from (Units within 1000.00 of Point matching (((Matching unit) is invulnerable) Equal to False).))
    Custom script: call RemoveLocation (udg_Point)
Pick Up Prop
  Events
    Unit - A unit Begins casting an ability
  Conditions
  Actions
    Set VariableSet CastingUnit[(Player number of (Owner of (Triggering unit)))] = (Casting unit)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        (Ability being cast) Equal to Pick-Up Prop (D)
      Then - Actions
        Set VariableSet PickedUpProp[(Player number of (Owner of (Triggering unit)))] = (Target unit of ability being cast)
        Unit - Add Invulnerable (Neutral) to PickedUpProp[(Player number of (Owner of (Triggering unit)))]
        Unit - Remove Pick-Up Prop (D) from (Triggering unit)
        Unit - Add Drop Prop (D) to (Triggering unit)
        Unit - Order (Triggering unit) to Stop.
        Trigger - Turn on TriggerPickup[(Player number of (Owner of (Triggering unit)))]
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            (Ability being cast) Equal to Drop Prop (D)
          Then - Actions
            Unit - Remove Invulnerable (Neutral) from PickedUpProp[(Player number of (Owner of (Triggering unit)))]
            Unit - Remove Drop Prop (D) from (Triggering unit)
            Unit - Add Pick-Up Prop (D) to (Triggering unit)
            Unit - Order (Triggering unit) to Stop.
            Trigger - Turn off TriggerPickup[(Player number of (Owner of (Triggering unit)))]
          Else - Actions
Rotate
  Events
    Unit - A unit Begins casting an ability
  Conditions
  Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        (Ability being cast) Equal to Rotate (R)
      Then - Actions
        Unit - Make (Casting unit) face ((Facing of (Casting unit)) - 50.00) over 0.00 seconds
      Else - Actions
Update Rounds left
  Events
    Time - Every 1.00 seconds of game time
  Conditions
  Actions
    Leaderboard - Change the value for Neutral Hostile in LeaderBoard to Rounds
Archer shuffle
  Events
  Conditions
  Actions
    Set VariableSet Group = (Units of type Nightelf Archer)
    Unit Group - Pick every unit in Group and do (Remove (Picked unit) from the game)
    Custom script: call DestroyGroup (udg_Group)
    Set VariableSet Group = (Units of type Nightelf Target)
    Unit Group - Pick every unit in Group and do (Remove (Picked unit) from the game)
    Custom script: call DestroyGroup (udg_Group)
    Set VariableSet Rnd = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd Equal to 1
      Then - Actions
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd Equal to 2
          Then - Actions
            Set VariableSet Point = (Center of Archer1 <gen>)
            Unit - Create 1.Nightelf Archer for Player 9 (Gray) at Point facing 90.00 degrees
            Custom script: call RemoveLocation (udg_Point)
            Set VariableSet Point = (Center of Target1 <gen>)
            Unit - Create 1.Nightelf Target for Player 9 (Gray) at Point facing 270.00 degrees
            Custom script: call RemoveLocation (udg_Point)
          Else - Actions
    Set VariableSet Rnd = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd Equal to 1
      Then - Actions
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd Equal to 2
          Then - Actions
            Set VariableSet Point = (Center of Archer2 <gen>)
            Unit - Create 1.Nightelf Archer for Player 9 (Gray) at Point facing 90.00 degrees
            Custom script: call RemoveLocation (udg_Point)
            Set VariableSet Point = (Center of Target2 <gen>)
            Unit - Create 1.Nightelf Target for Player 9 (Gray) at Point facing 270.00 degrees
            Custom script: call RemoveLocation (udg_Point)
          Else - Actions
    Set VariableSet Rnd = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd Equal to 1
      Then - Actions
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd Equal to 2
          Then - Actions
            Set VariableSet Point = (Center of Archer3 <gen>)
            Unit - Create 1.Nightelf Archer for Player 9 (Gray) at Point facing 90.00 degrees
            Custom script: call RemoveLocation (udg_Point)
            Set VariableSet Point = (Center of Target3 <gen>)
            Unit - Create 1.Nightelf Target for Player 9 (Gray) at Point facing 270.00 degrees
            Custom script: call RemoveLocation (udg_Point)
          Else - Actions
    Set VariableSet Rnd = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd Equal to 1
      Then - Actions
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd Equal to 2
          Then - Actions
            Set VariableSet Point = (Center of Archer4 <gen>)
            Unit - Create 1.Nightelf Archer for Player 9 (Gray) at Point facing 90.00 degrees
            Custom script: call RemoveLocation (udg_Point)
            Set VariableSet Point = (Center of Target4 <gen>)
            Unit - Create 1.Nightelf Target for Player 9 (Gray) at Point facing 270.00 degrees
            Custom script: call RemoveLocation (udg_Point)
          Else - Actions
    Set VariableSet Rnd = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd Equal to 1
      Then - Actions
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd Equal to 2
          Then - Actions
            Set VariableSet Point = (Center of Archer5 <gen>)
            Unit - Create 1.Nightelf Archer for Player 9 (Gray) at Point facing 90.00 degrees
            Custom script: call RemoveLocation (udg_Point)
            Set VariableSet Point = (Center of Target5 <gen>)
            Unit - Create 1.Nightelf Target for Player 9 (Gray) at Point facing 270.00 degrees
            Custom script: call RemoveLocation (udg_Point)
          Else - Actions
    Set VariableSet Removalunit = (Random unit from (Units of type Nightelf Archer))
    Unit - Remove Removalunit from the game
Troll shuffle
  Events
  Conditions
  Actions
    Set VariableSet Group = (Units of type FrozenFlats Troll)
    Unit Group - Pick every unit in Group and do (Remove (Picked unit) from the game)
    Custom script: call DestroyGroup (udg_Group)
    Set VariableSet Rnd_2 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_2 Equal to 1
      Then - Actions
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_2 Equal to 2
          Then - Actions
            Set VariableSet Point = (Center of Troll1 <gen>)
            Unit - Create 1.FrozenFlats Troll for Player 9 (Gray) at Point facing 0.00 degrees
            Custom script: call RemoveLocation (udg_Point)
          Else - Actions
    Set VariableSet Rnd_2 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_2 Equal to 1
      Then - Actions
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_2 Equal to 2
          Then - Actions
            Set VariableSet Point = (Center of Troll2 <gen>)
            Unit - Create 1.FrozenFlats Troll for Player 9 (Gray) at Point facing 321.35 degrees
            Custom script: call RemoveLocation (udg_Point)
          Else - Actions
    Set VariableSet Rnd_2 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_2 Equal to 1
      Then - Actions
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_2 Equal to 2
          Then - Actions
            Set VariableSet Point = (Center of Troll3 <gen>)
            Unit - Create 1.FrozenFlats Troll for Player 9 (Gray) at Point facing 227.34 degrees
            Custom script: call RemoveLocation (udg_Point)
          Else - Actions
    Set VariableSet Rnd_2 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_2 Equal to 1
      Then - Actions
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_2 Equal to 2
          Then - Actions
            Set VariableSet Point = (Center of Troll4 <gen>)
            Unit - Create 1.FrozenFlats Troll for Player 9 (Gray) at Point facing 176.35 degrees
            Custom script: call RemoveLocation (udg_Point)
          Else - Actions
    Set VariableSet Rnd_2 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_2 Equal to 1
      Then - Actions
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_2 Equal to 2
          Then - Actions
            Set VariableSet Point = (Center of Troll5 <gen>)
            Unit - Create 1.FrozenFlats Troll for Player 9 (Gray) at Point facing 90.00 degrees
            Custom script: call RemoveLocation (udg_Point)
          Else - Actions
Priest shuffle
  Events
  Conditions
  Actions
    Set VariableSet Group = (Units of type Pyramid priest)
    Unit Group - Pick every unit in Group and do (Remove (Picked unit) from the game)
    Custom script: call DestroyGroup (udg_Group)
    Set VariableSet Rnd_9 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_9 Equal to 1
      Then - Actions
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_9 Equal to 2
          Then - Actions
            Set VariableSet Point = (Center of Priest1 <gen>)
            Unit - Create 1.Pyramid priest for Player 9 (Gray) at Point facing 270.00 degrees
            Custom script: call RemoveLocation (udg_Point)
          Else - Actions
    Set VariableSet Rnd_9 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_9 Equal to 1
      Then - Actions
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_9 Equal to 2
          Then - Actions
            Set VariableSet Point = (Center of Priest2 <gen>)
            Unit - Create 1.Pyramid priest for Player 9 (Gray) at Point facing 180.00 degrees
            Custom script: call RemoveLocation (udg_Point)
          Else - Actions
    Set VariableSet Rnd_9 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_9 Equal to 1
      Then - Actions
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_9 Equal to 2
          Then - Actions
            Set VariableSet Point = (Center of Priest3 <gen>)
            Unit - Create 1.Pyramid priest for Player 9 (Gray) at Point facing 90.00 degrees
            Custom script: call RemoveLocation (udg_Point)
          Else - Actions
    Set VariableSet Rnd_9 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_9 Equal to 1
      Then - Actions
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_9 Equal to 2
          Then - Actions
            Set VariableSet Point = (Center of Priest4 <gen>)
            Unit - Create 1.Pyramid priest for Player 9 (Gray) at Point facing 360.00 degrees
            Custom script: call RemoveLocation (udg_Point)
          Else - Actions
Statue shuffle
  Events
  Conditions
  Actions
    Set VariableSet Group = (Units of type Town Statue)
    Unit Group - Pick every unit in Group and do (Remove (Picked unit) from the game)
    Custom script: call DestroyGroup (udg_Group)
    Set VariableSet Rnd_7 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_7 Equal to 1
      Then - Actions
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_7 Equal to 2
          Then - Actions
            Set VariableSet Point = (Center of Statue1 <gen>)
            Unit - Create 1.Town Statue for Player 9 (Gray) at Point facing 270.00 degrees
            Custom script: call RemoveLocation (udg_Point)
          Else - Actions
    Set VariableSet Rnd_7 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_7 Equal to 1
      Then - Actions
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_7 Equal to 2
          Then - Actions
            Set VariableSet Point = (Center of Statue2 <gen>)
            Unit - Create 1.Town Statue for Player 9 (Gray) at Point facing 270.00 degrees
            Custom script: call RemoveLocation (udg_Point)
          Else - Actions
    Set VariableSet Rnd_7 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_7 Equal to 1
      Then - Actions
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_7 Equal to 2
          Then - Actions
            Set VariableSet Point = (Center of Statue3 <gen>)
            Unit - Create 1.Town Statue for Player 9 (Gray) at Point facing 241.26 degrees
            Custom script: call RemoveLocation (udg_Point)
          Else - Actions
    Set VariableSet Rnd_7 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_7 Equal to 1
      Then - Actions
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_7 Equal to 2
          Then - Actions
            Set VariableSet Point = (Center of Statue4 <gen>)
            Unit - Create 1.Town Statue for Player 9 (Gray) at Point facing 293.38 degrees
            Custom script: call RemoveLocation (udg_Point)
          Else - Actions
    Set VariableSet Rnd_7 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_7 Equal to 1
      Then - Actions
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_7 Equal to 2
          Then - Actions
            Set VariableSet Point = (Center of Statue5 <gen>)
            Unit - Create 1.Town Statue for Player 9 (Gray) at Point facing 90.00 degrees
            Custom script: call RemoveLocation (udg_Point)
          Else - Actions
    Set VariableSet Rnd_7 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_7 Equal to 1
      Then - Actions
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_7 Equal to 2
          Then - Actions
            Set VariableSet Point = (Center of Statue6 <gen>)
            Unit - Create 1.Town Statue for Player 9 (Gray) at Point facing 270.00 degrees
            Custom script: call RemoveLocation (udg_Point)
          Else - Actions
Pilar Shuffle
  Events
  Conditions
  Actions
    Set VariableSet Group = (Units of type Nightelf Magic Stone)
    Unit Group - Pick every unit in Group and do (Remove (Picked unit) from the game)
    Custom script: call DestroyGroup (udg_Group)
    Set VariableSet Rnd_3 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_3 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Pillar1 <gen>)
        Unit - Create 1.Nightelf Magic Stone for Player 9 (Gray) at Point facing 0.00 degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_3 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_3 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_3 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Pillar2 <gen>)
        Unit - Create 1.Nightelf Magic Stone for Player 9 (Gray) at Point facing 0.00 degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_3 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_3 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_3 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Pillar3 <gen>)
        Unit - Create 1.Nightelf Magic Stone for Player 9 (Gray) at Point facing 0.00 degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_3 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_3 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_3 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Pillar4 <gen>)
        Unit - Create 1.Nightelf Magic Stone for Player 9 (Gray) at Point facing 0.00 degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_3 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_3 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_3 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Pillar5 <gen>)
        Unit - Create 1.Nightelf Magic Stone for Player 9 (Gray) at Point facing 0.00 degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_3 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_3 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_3 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Pillar6 <gen>)
        Unit - Create 1.Nightelf Magic Stone for Player 9 (Gray) at Point facing 0.00 degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_3 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_3 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_3 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Pillar7 <gen>)
        Unit - Create 1.Nightelf Magic Stone for Player 9 (Gray) at Point facing 0.00 degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_3 Equal to 2
          Then - Actions
          Else - Actions
Pyramid Rocks Shuffle
  Events
  Conditions
  Actions
    Set VariableSet Group = (Units of type Pyramid rocks)
    Unit Group - Pick every unit in Group and do (Remove (Picked unit) from the game)
    Custom script: call DestroyGroup (udg_Group)
    For each (Integer A) from 1 to 10, do (Actions)
      Loop - Actions
        Set VariableSet Rnd_12 = (Random integer number between 1 and 2)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_12 Equal to 1
          Then - Actions
            Set VariableSet Point = (Random point in Rocksfallen <gen>)
            Unit - Create 1.Pyramid rocks for Player 9 (Gray) at Point facing (Random angle) degrees
            Custom script: call RemoveLocation (udg_Point)
          Else - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                Rnd_12 Equal to 2
              Then - Actions
              Else - Actions
Torch Shuffle
  Events
  Conditions
  Actions
    Set VariableSet Group = (Units of type Pyramid Torch)
    Unit Group - Pick every unit in Group and do (Remove (Picked unit) from the game)
    Custom script: call DestroyGroup (udg_Group)
    Set VariableSet Rnd_11 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_11 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Torch1 <gen>)
        Unit - Create 1.Pyramid Torch for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_11 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_11 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_11 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Torch2 <gen>)
        Unit - Create 1.Pyramid Torch for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_11 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_11 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_11 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Torch3 <gen>)
        Unit - Create 1.Pyramid Torch for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_11 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_11 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_11 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Torch4 <gen>)
        Unit - Create 1.Pyramid Torch for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_11 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_11 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_11 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Torch5 <gen>)
        Unit - Create 1.Pyramid Torch for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_11 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_11 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_11 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Torch6 <gen>)
        Unit - Create 1.Pyramid Torch for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_11 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_11 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_11 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Torch7 <gen>)
        Unit - Create 1.Pyramid Torch for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_11 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_11 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_11 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Torch8 <gen>)
        Unit - Create 1.Pyramid Torch for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_11 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_11 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_11 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Torch9 <gen>)
        Unit - Create 1.Pyramid Torch for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_11 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_11 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_11 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Torch10 <gen>)
        Unit - Create 1.Pyramid Torch for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_11 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_11 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_11 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Torch11 <gen>)
        Unit - Create 1.Pyramid Torch for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_11 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_11 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_11 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Torch12 <gen>)
        Unit - Create 1.Pyramid Torch for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_11 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_11 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_11 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Torch13 <gen>)
        Unit - Create 1.Pyramid Torch for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_11 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_11 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_11 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Torch14 <gen>)
        Unit - Create 1.Pyramid Torch for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_11 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_11 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_11 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Torch15 <gen>)
        Unit - Create 1.Pyramid Torch for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_11 Equal to 2
          Then - Actions
          Else - Actions
Crop shuffle Barrens
  Events
  Conditions
  Actions
    Set VariableSet Group = (Units of type Barrens Wheelbarrow)
    Unit Group - Pick every unit in Group and do (Remove (Picked unit) from the game)
    Custom script: call DestroyGroup (udg_Group)
    For each (Integer A) from 1 to 2, do (Actions)
      Loop - Actions
        Set VariableSet Rnd_4 = (Random integer number between 1 and 2)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_4 Equal to 1
          Then - Actions
            Set VariableSet Point = (Random point in Haycarts1 <gen>)
            Unit - Create 1.Barrens Wheelbarrow for Player 9 (Gray) at Point facing (Random angle) degrees
            Custom script: call RemoveLocation (udg_Point)
          Else - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                Rnd_4 Equal to 2
              Then - Actions
              Else - Actions
    For each (Integer A) from 1 to 3, do (Actions)
      Loop - Actions
        Set VariableSet Rnd_4 = (Random integer number between 1 and 2)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_4 Equal to 1
          Then - Actions
            Set VariableSet Point = (Random point in Haycarts2 <gen>)
            Unit - Create 1.Barrens Wheelbarrow for Player 9 (Gray) at Point facing (Random angle) degrees
            Custom script: call RemoveLocation (udg_Point)
          Else - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                Rnd_4 Equal to 2
              Then - Actions
              Else - Actions
    Set VariableSet Group = (Units of type Barrens Collected Wheat)
    Unit Group - Pick every unit in Group and do (Remove (Picked unit) from the game)
    Custom script: call DestroyGroup (udg_Group)
    Set VariableSet Rnd_4 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_4 Equal to 1
      Then - Actions
        Set VariableSet Point = (Random point in Crop_area <gen>)
        Unit - Create 1.Barrens Collected Wheat for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_4 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_4 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_4 Equal to 1
      Then - Actions
        Set VariableSet Point = (Random point in Crop_area <gen>)
        Unit - Create 1.Barrens Collected Wheat for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_4 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_4 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_4 Equal to 1
      Then - Actions
        Set VariableSet Point = (Random point in Crop_area <gen>)
        Unit - Create 1.Barrens Collected Wheat for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_4 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_4 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_4 Equal to 1
      Then - Actions
        Set VariableSet Point = (Random point in Crop_area <gen>)
        Unit - Create 1.Barrens Collected Wheat for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_4 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_4 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_4 Equal to 1
      Then - Actions
        Set VariableSet Point = (Random point in Crop_area <gen>)
        Unit - Create 1.Barrens Collected Wheat for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_4 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Group = (Units of type Barrens Post Lantern)
    Unit Group - Pick every unit in Group and do (Remove (Picked unit) from the game)
    Custom script: call DestroyGroup (udg_Group)
    Set VariableSet Rnd_4 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_4 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Lantern12 <gen>)
        Unit - Create 1.Barrens Post Lantern for Player 9 (Gray) at Point facing 360.00 degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_4 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_4 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_4 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Lantern13 <gen>)
        Unit - Create 1.Barrens Post Lantern for Player 9 (Gray) at Point facing 360.00 degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_4 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_4 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_4 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Lantern14 <gen>)
        Unit - Create 1.Barrens Post Lantern for Player 9 (Gray) at Point facing 159.32 degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_4 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_4 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_4 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Lantern15 <gen>)
        Unit - Create 1.Barrens Post Lantern for Player 9 (Gray) at Point facing 220.00 degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_4 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_4 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_4 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Lantern16 <gen>)
        Unit - Create 1.Barrens Post Lantern for Player 9 (Gray) at Point facing 360.00 degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_4 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_4 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_4 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Lantern17 <gen>)
        Unit - Create 1.Barrens Post Lantern for Player 9 (Gray) at Point facing 29.71 degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_4 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_4 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_4 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Lantern18 <gen>)
        Unit - Create 1.Barrens Post Lantern for Player 9 (Gray) at Point facing 360.00 degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_4 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_4 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_4 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Lantern19 <gen>)
        Unit - Create 1.Barrens Post Lantern for Player 9 (Gray) at Point facing 323.32 degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_4 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_4 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_4 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Lantern20 <gen>)
        Unit - Create 1.Barrens Post Lantern for Player 9 (Gray) at Point facing 24.03 degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_4 Equal to 2
          Then - Actions
          Else - Actions
Shuffle Town
  Events
  Conditions
  Actions
    Set VariableSet Group = (Units of type Town Hay Clump)
    Unit Group - Pick every unit in Group and do (Remove (Picked unit) from the game)
    Custom script: call DestroyGroup (udg_Group)
    For each (Integer A) from 1 to 13, do (Actions)
      Loop - Actions
        Set VariableSet Point = (Random point in Town_harvest_region <gen>)
        Unit - Create 1.Town Hay Clump for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
    Set VariableSet Group = (Units of type Town Collected Wheat)
    Unit Group - Pick every unit in Group and do (Remove (Picked unit) from the game)
    Custom script: call DestroyGroup (udg_Group)
    For each (Integer A) from 1 to 13, do (Actions)
      Loop - Actions
        Set VariableSet Point = (Random point in Town_harvest_region <gen>)
        Unit - Create 1.Town Collected Wheat for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
    Set VariableSet Group = (Units of type Town Peasant)
    Unit Group - Pick every unit in Group and do (Remove (Picked unit) from the game)
    Custom script: call DestroyGroup (udg_Group)
    For each (Integer A) from 1 to 6, do (Actions)
      Loop - Actions
        Set VariableSet Rnd_14 = (Random integer number between 1 and 2)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_14 Equal to 1
          Then - Actions
            Set VariableSet Point = (Random point in Town_harvest_region <gen>)
            Unit - Create 1.Town Peasant for Player 9 (Gray) at Point facing (Random angle) degrees
            Custom script: call RemoveLocation (udg_Point)
          Else - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                Rnd_14 Equal to 2
              Then - Actions
              Else - Actions
    Set VariableSet Group = (Units of type Town Haycart)
    Unit Group - Pick every unit in Group and do (Remove (Picked unit) from the game)
    Custom script: call DestroyGroup (udg_Group)
    For each (Integer A) from 1 to 6, do (Actions)
      Loop - Actions
        Set VariableSet Rnd_14 = (Random integer number between 1 and 2)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_14 Equal to 1
          Then - Actions
            Set VariableSet Point = (Random point in Town_harvest_region <gen>)
            Unit - Create 1.Town Haycart for Player 9 (Gray) at Point facing (Random angle) degrees
            Custom script: call RemoveLocation (udg_Point)
          Else - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                Rnd_14 Equal to 2
              Then - Actions
              Else - Actions
    Set VariableSet Group = (Units of type Town Bench)
    Unit Group - Pick every unit in Group and do (Remove (Picked unit) from the game)
    Custom script: call DestroyGroup (udg_Group)
    Set VariableSet Rnd_14 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_14 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Bench1 <gen>)
        Unit - Create 1.Town Bench for Player 9 (Gray) at Point facing 310.00 degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_14 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_14 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_14 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Bench2 <gen>)
        Unit - Create 1.Town Bench for Player 9 (Gray) at Point facing 230.00 degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_14 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_14 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_14 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Bench3 <gen>)
        Unit - Create 1.Town Bench for Player 9 (Gray) at Point facing 50.00 degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_14 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_14 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_14 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Bench4 <gen>)
        Unit - Create 1.Town Bench for Player 9 (Gray) at Point facing 310.00 degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_14 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_14 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_14 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Bench5 <gen>)
        Unit - Create 1.Town Bench for Player 9 (Gray) at Point facing 230.00 degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_14 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_14 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_14 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Bench6 <gen>)
        Unit - Create 1.Town Bench for Player 9 (Gray) at Point facing 140.00 degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_14 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Group = (Units of type Town LightPost)
    Unit Group - Pick every unit in Group and do (Remove (Picked unit) from the game)
    Custom script: call DestroyGroup (udg_Group)
    Set VariableSet Rnd_14 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_14 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Lantern1 <gen>)
        Unit - Create 1.Town LightPost for Player 9 (Gray) at Point facing 30.00 degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_14 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_14 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_14 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Lantern2 <gen>)
        Unit - Create 1.Town LightPost for Player 9 (Gray) at Point facing 230.00 degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_14 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_14 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_14 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Lantern3 <gen>)
        Unit - Create 1.Town LightPost for Player 9 (Gray) at Point facing 328.00 degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_14 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_14 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_14 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Lantern4 <gen>)
        Unit - Create 1.Town LightPost for Player 9 (Gray) at Point facing 230.00 degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_14 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_14 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_14 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Lantern5 <gen>)
        Unit - Create 1.Town LightPost for Player 9 (Gray) at Point facing 134.00 degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_14 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_14 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_14 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Lantern6 <gen>)
        Unit - Create 1.Town LightPost for Player 9 (Gray) at Point facing 30.00 degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_14 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_14 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_14 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Lantern7 <gen>)
        Unit - Create 1.Town LightPost for Player 9 (Gray) at Point facing 328.00 degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_14 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_14 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_14 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Lantern8 <gen>)
        Unit - Create 1.Town LightPost for Player 9 (Gray) at Point facing 134.00 degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_14 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_14 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_14 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Lantern9 <gen>)
        Unit - Create 1.Town LightPost for Player 9 (Gray) at Point facing 134.00 degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_14 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_14 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_14 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Lantern10 <gen>)
        Unit - Create 1.Town LightPost for Player 9 (Gray) at Point facing 30.00 degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_14 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_14 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_14 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Lantern11 <gen>)
        Unit - Create 1.Town LightPost for Player 9 (Gray) at Point facing 230.00 degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_14 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Group = (Units of type Town Necromancer)
    Unit Group - Pick every unit in Group and do (Remove (Picked unit) from the game)
    Custom script: call DestroyGroup (udg_Group)
    Set VariableSet Rnd_14 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_14 Equal to 1
      Then - Actions
        Set VariableSet Point = (Random point in Town_cemetary_region <gen>)
        Unit - Create 1.Town Necromancer for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_14 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_14 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_14 Equal to 1
      Then - Actions
        Set VariableSet Point = (Random point in Town_cemetary_region <gen>)
        Unit - Create 1.Town Necromancer for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_14 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_14 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_14 Equal to 1
      Then - Actions
        Set VariableSet Point = (Random point in Town_cemetary_region <gen>)
        Unit - Create 1.Town Necromancer for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_14 Equal to 2
          Then - Actions
          Else - Actions
Cave shuffle
  Events
  Conditions
  Actions
    Set VariableSet Group = (Units of type Cave rock)
    Unit Group - Pick every unit in Group and do (Remove (Picked unit) from the game)
    Custom script: call DestroyGroup (udg_Group)
    For each (Integer A) from 1 to 30, do (Actions)
      Loop - Actions
        Set VariableSet Point = (Random point in Cave_region <gen>)
        Unit - Create 1.Cave rock for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
    Set VariableSet Group = (Units of type Cave rock 2)
    Unit Group - Pick every unit in Group and do (Remove (Picked unit) from the game)
    Custom script: call DestroyGroup (udg_Group)
    For each (Integer A) from 1 to 15, do (Actions)
      Loop - Actions
        Set VariableSet Point = (Random point in Cave_region <gen>)
        Unit - Create 1.Cave rock 2 for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
    Set VariableSet Group = (Units of type Man killed by bear)
    Unit Group - Pick every unit in Group and do (Remove (Picked unit) from the game)
    Custom script: call DestroyGroup (udg_Group)
    For each (Integer A) from 1 to 4, do (Actions)
      Loop - Actions
        Set VariableSet Point = (Random point in Cave_region <gen>)
        Unit - Create 1.Man killed by bear for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
    Set VariableSet Group = (Units of type Fish killed by bear)
    Unit Group - Pick every unit in Group and do (Remove (Picked unit) from the game)
    Custom script: call DestroyGroup (udg_Group)
    For each (Integer A) from 1 to 6, do (Actions)
      Loop - Actions
        Set VariableSet Point = (Random point in Cave_region <gen>)
        Unit - Create 1.Fish killed by bear for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
Nightelf Crate Shuffle
  Events
  Conditions
  Actions
    Set VariableSet Group = (Units of type Nightelf FloatingBox)
    Unit Group - Pick every unit in Group and do (Remove (Picked unit) from the game)
    Custom script: call DestroyGroup (udg_Group)
    For each (Integer A) from 1 to 4, do (Actions)
      Loop - Actions
        Set VariableSet Rnd_13 = (Random integer number between 1 and 2)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_13 Equal to 1
          Then - Actions
            Set VariableSet Point = (Random point in Lake_Region <gen>)
            Unit - Create 1.Nightelf FloatingBox for Player 9 (Gray) at Point facing (Random angle) degrees
            Custom script: call RemoveLocation (udg_Point)
          Else - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                Rnd_13 Equal to 2
              Then - Actions
              Else - Actions
    For each (Integer A) from 1 to 3, do (Actions)
      Loop - Actions
        Set VariableSet Rnd_13 = (Random integer number between 1 and 2)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_13 Equal to 1
          Then - Actions
            Set VariableSet Point = (Random point in Lake_Region_2 <gen>)
            Unit - Create 1.Nightelf FloatingBox for Player 9 (Gray) at Point facing (Random angle) degrees
            Custom script: call RemoveLocation (udg_Point)
          Else - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                Rnd_13 Equal to 2
              Then - Actions
              Else - Actions
Rock Shuffle
  Events
  Conditions
  Actions
    Set VariableSet Group = (Units of type Town Unwanted Rock)
    Unit Group - Pick every unit in Group and do (Remove (Picked unit) from the game)
    Custom script: call DestroyGroup (udg_Group)
    Set VariableSet Rnd_6 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_6 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Rock1 <gen>)
        Unit - Create 1.Town Unwanted Rock for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_6 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_6 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_6 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Rock2 <gen>)
        Unit - Create 1.Town Unwanted Rock for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_6 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_6 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_6 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Rock3 <gen>)
        Unit - Create 1.Town Unwanted Rock for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_6 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_6 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_6 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Rock4 <gen>)
        Unit - Create 1.Town Unwanted Rock for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_6 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_6 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_6 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Rock5 <gen>)
        Unit - Create 1.Town Unwanted Rock for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_6 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_6 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_6 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Rock6 <gen>)
        Unit - Create 1.Town Unwanted Rock for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_6 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_6 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_6 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Rock7 <gen>)
        Unit - Create 1.Town Unwanted Rock for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_6 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_6 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_6 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Rock8 <gen>)
        Unit - Create 1.Town Unwanted Rock for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_6 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_6 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_6 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Rock9 <gen>)
        Unit - Create 1.Town Unwanted Rock for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_6 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_6 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_6 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Rock10 <gen>)
        Unit - Create 1.Town Unwanted Rock for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_6 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_6 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_6 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Rock11 <gen>)
        Unit - Create 1.Town Unwanted Rock for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_6 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_6 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_6 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Rock12 <gen>)
        Unit - Create 1.Town Unwanted Rock for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_6 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_6 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_6 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Rock13 <gen>)
        Unit - Create 1.Town Unwanted Rock for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_6 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_6 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_6 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Rock14 <gen>)
        Unit - Create 1.Town Unwanted Rock for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_6 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_6 = (Random integer number between 1 and 2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_6 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of Rock15 <gen>)
        Unit - Create 1.Town Unwanted Rock for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_6 Equal to 2
          Then - Actions
          Else - Actions
Grave shuffle
  Events
  Conditions
  Actions
    Set VariableSet Group = (Units of type Town GraveStone)
    Unit Group - Pick every unit in Group and do (Remove (Picked unit) from the game)
    Custom script: call DestroyGroup (udg_Group)
    Set VariableSet Group = (Units of type Town GraveStone 2)
    Unit Group - Pick every unit in Group and do (Remove (Picked unit) from the game)
    Custom script: call DestroyGroup (udg_Group)
    Set VariableSet Group = (Units of type Town GraveStone 3)
    Unit Group - Pick every unit in Group and do (Remove (Picked unit) from the game)
    Custom script: call DestroyGroup (udg_Group)
    Set VariableSet Rnd_5 = (Random integer number between 1 and 2)
    Set VariableSet gravetype = (Random integer number between 1 and 3)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        gravetype Equal to 1
      Then - Actions
        Set VariableSet gravetype2 = Town GraveStone
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            gravetype Equal to 2
          Then - Actions
            Set VariableSet gravetype2 = Town GraveStone 2
          Else - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                gravetype Equal to 3
              Then - Actions
                Set VariableSet gravetype2 = Town GraveStone 3
              Else - Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_5 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of grave1 <gen>)
        Unit - Create 1.gravetype2 for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_5 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_5 = (Random integer number between 1 and 2)
    Set VariableSet gravetype = (Random integer number between 1 and 3)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        gravetype Equal to 1
      Then - Actions
        Set VariableSet gravetype2 = Town GraveStone
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            gravetype Equal to 2
          Then - Actions
            Set VariableSet gravetype2 = Town GraveStone 2
          Else - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                gravetype Equal to 3
              Then - Actions
                Set VariableSet gravetype2 = Town GraveStone 3
              Else - Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_5 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of grave2 <gen>)
        Unit - Create 1.gravetype2 for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_5 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_5 = (Random integer number between 1 and 2)
    Set VariableSet gravetype = (Random integer number between 1 and 3)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        gravetype Equal to 1
      Then - Actions
        Set VariableSet gravetype2 = Town GraveStone
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            gravetype Equal to 2
          Then - Actions
            Set VariableSet gravetype2 = Town GraveStone 2
          Else - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                gravetype Equal to 3
              Then - Actions
                Set VariableSet gravetype2 = Town GraveStone 3
              Else - Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_5 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of grave3 <gen>)
        Unit - Create 1.gravetype2 for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_5 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_5 = (Random integer number between 1 and 2)
    Set VariableSet gravetype = (Random integer number between 1 and 3)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        gravetype Equal to 1
      Then - Actions
        Set VariableSet gravetype2 = Town GraveStone
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            gravetype Equal to 2
          Then - Actions
            Set VariableSet gravetype2 = Town GraveStone 2
          Else - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                gravetype Equal to 3
              Then - Actions
                Set VariableSet gravetype2 = Town GraveStone 3
              Else - Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_5 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of grave4 <gen>)
        Unit - Create 1.gravetype2 for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_5 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_5 = (Random integer number between 1 and 2)
    Set VariableSet gravetype = (Random integer number between 1 and 3)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        gravetype Equal to 1
      Then - Actions
        Set VariableSet gravetype2 = Town GraveStone
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            gravetype Equal to 2
          Then - Actions
            Set VariableSet gravetype2 = Town GraveStone 2
          Else - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                gravetype Equal to 3
              Then - Actions
                Set VariableSet gravetype2 = Town GraveStone 3
              Else - Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_5 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of grave5 <gen>)
        Unit - Create 1.gravetype2 for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_5 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_5 = (Random integer number between 1 and 2)
    Set VariableSet gravetype = (Random integer number between 1 and 3)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        gravetype Equal to 1
      Then - Actions
        Set VariableSet gravetype2 = Town GraveStone
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            gravetype Equal to 2
          Then - Actions
            Set VariableSet gravetype2 = Town GraveStone 2
          Else - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                gravetype Equal to 3
              Then - Actions
                Set VariableSet gravetype2 = Town GraveStone 3
              Else - Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_5 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of grave6 <gen>)
        Unit - Create 1.gravetype2 for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_5 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_5 = (Random integer number between 1 and 2)
    Set VariableSet gravetype = (Random integer number between 1 and 3)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        gravetype Equal to 1
      Then - Actions
        Set VariableSet gravetype2 = Town GraveStone
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            gravetype Equal to 2
          Then - Actions
            Set VariableSet gravetype2 = Town GraveStone 2
          Else - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                gravetype Equal to 3
              Then - Actions
                Set VariableSet gravetype2 = Town GraveStone 3
              Else - Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_5 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of grave7 <gen>)
        Unit - Create 1.gravetype2 for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_5 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_5 = (Random integer number between 1 and 2)
    Set VariableSet gravetype = (Random integer number between 1 and 3)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        gravetype Equal to 1
      Then - Actions
        Set VariableSet gravetype2 = Town GraveStone
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            gravetype Equal to 2
          Then - Actions
            Set VariableSet gravetype2 = Town GraveStone 2
          Else - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                gravetype Equal to 3
              Then - Actions
                Set VariableSet gravetype2 = Town GraveStone 3
              Else - Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_5 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of grave8 <gen>)
        Unit - Create 1.gravetype2 for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_5 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_5 = (Random integer number between 1 and 2)
    Set VariableSet gravetype = (Random integer number between 1 and 3)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        gravetype Equal to 1
      Then - Actions
        Set VariableSet gravetype2 = Town GraveStone
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            gravetype Equal to 2
          Then - Actions
            Set VariableSet gravetype2 = Town GraveStone 2
          Else - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                gravetype Equal to 3
              Then - Actions
                Set VariableSet gravetype2 = Town GraveStone 3
              Else - Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_5 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of grave9 <gen>)
        Unit - Create 1.gravetype2 for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_5 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_5 = (Random integer number between 1 and 2)
    Set VariableSet gravetype = (Random integer number between 1 and 3)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        gravetype Equal to 1
      Then - Actions
        Set VariableSet gravetype2 = Town GraveStone
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            gravetype Equal to 2
          Then - Actions
            Set VariableSet gravetype2 = Town GraveStone 2
          Else - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                gravetype Equal to 3
              Then - Actions
                Set VariableSet gravetype2 = Town GraveStone 3
              Else - Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_5 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of grave10 <gen>)
        Unit - Create 1.gravetype2 for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_5 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_5 = (Random integer number between 1 and 2)
    Set VariableSet gravetype = (Random integer number between 1 and 3)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        gravetype Equal to 1
      Then - Actions
        Set VariableSet gravetype2 = Town GraveStone
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            gravetype Equal to 2
          Then - Actions
            Set VariableSet gravetype2 = Town GraveStone 2
          Else - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                gravetype Equal to 3
              Then - Actions
                Set VariableSet gravetype2 = Town GraveStone 3
              Else - Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_5 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of grave11 <gen>)
        Unit - Create 1.gravetype2 for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_5 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_5 = (Random integer number between 1 and 2)
    Set VariableSet gravetype = (Random integer number between 1 and 3)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        gravetype Equal to 1
      Then - Actions
        Set VariableSet gravetype2 = Town GraveStone
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            gravetype Equal to 2
          Then - Actions
            Set VariableSet gravetype2 = Town GraveStone 2
          Else - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                gravetype Equal to 3
              Then - Actions
                Set VariableSet gravetype2 = Town GraveStone 3
              Else - Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_5 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of grave12 <gen>)
        Unit - Create 1.gravetype2 for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_5 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_5 = (Random integer number between 1 and 2)
    Set VariableSet gravetype = (Random integer number between 1 and 3)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        gravetype Equal to 1
      Then - Actions
        Set VariableSet gravetype2 = Town GraveStone
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            gravetype Equal to 2
          Then - Actions
            Set VariableSet gravetype2 = Town GraveStone 2
          Else - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                gravetype Equal to 3
              Then - Actions
                Set VariableSet gravetype2 = Town GraveStone 3
              Else - Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_5 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of grave13 <gen>)
        Unit - Create 1.gravetype2 for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_5 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_5 = (Random integer number between 1 and 2)
    Set VariableSet gravetype = (Random integer number between 1 and 3)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        gravetype Equal to 1
      Then - Actions
        Set VariableSet gravetype2 = Town GraveStone
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            gravetype Equal to 2
          Then - Actions
            Set VariableSet gravetype2 = Town GraveStone 2
          Else - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                gravetype Equal to 3
              Then - Actions
                Set VariableSet gravetype2 = Town GraveStone 3
              Else - Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_5 Equal to 1
      Then - Actions
        Set VariableSet Point = (Center of grave14 <gen>)
        Unit - Create 1.gravetype2 for Player 9 (Gray) at Point facing (Random angle) degrees
        Custom script: call RemoveLocation (udg_Point)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Rnd_5 Equal to 2
          Then - Actions
          Else - Actions
    Set VariableSet Rnd_5 = (Random integer number between 1 and 2)
    Set VariableSet gravetype = (Random integer number between 1 and 3)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        gravetype Equal to 1
      Then - Actions
        Set VariableSet gravetype2 = Town GraveStone
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            gravetype Equal to 2
          Then - Actions
            Set VariableSet gravetype2 = Town GraveStone 2
          Else - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                gravetype Equal to 3
              Then - Actions
                Set VariableSet gravetype2 = Town GraveStone 3
              Else - Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Rnd_5 Equal to 1
      Then - Actions