//Shows the map and plays the music
IfSpawned
  EnableExport
  ShowMap
  ShowYouAreHere
  tmpargument = 9
  tmpdistance = 0
  PlayMusic
  
  //Check if any outlaws have entered town
  tmpargument = passage + 2
  tmpturn = [EVIL]
  tmpdistance = BLAHQUEST + BLAHFRIENDS
  SetTargetToBlahInPassage
    tmpargument = TEAME
    TargetJoinTeam
    CallForHelp
      
  
  //Spawn santa! Easter egg
  tmpx = datemonth
  tmpy = 12
  IfXIsEqualToY
    tmpx = dateday
    tmpy = 15
    IfXIsMoreThanY
      tmpargument = 95
      tmpturn = 55000
      tmpx = 26 * 128
      tmpy = 23 * 128
      tmpdistance = selfz
      SpawnExactCharacterXYZ
  
//Check the two exits for runners
IfTimeOut
  tmpargument = 35
  SetTime

   //If tmpx == 0, then someone escaped!
    tmpx = 1
    tmpargument = passage
    tmpturn = [NONE]
    tmpdistance = BLAHPLAYERS + BLAHENEMIES
    SetTargetToBlahInPassage
      tmpx = 0  
    Else
      tmpargument = passage + 1
      tmpturn = [NONE]
      tmpdistance = BLAHPLAYERS + BLAHENEMIES
      SetTargetToBlahInPassage
        tmpx = 0
        
    tmpy = 0
    IfXIsEqualToY
      EnableExport
      EndModule
      BeatModule
      ClearEndMessage
      tmpargument = 0
      AddEndMessage
      tmpargument = 1
      AddEndMessage
      
      //Remember them for next time
      tmpargument = [EVIL]
      tmpdistance = 0
      AddQuestAllPlayers
        
End					// All done
