//Shows the map and plays the music
IfSpawned
  EnableExport
  ShowMap
  ShowYouAreHere
  tmpargument = 9
  tmpdistance = 0
  PlayMusic
  
  //A wanted character entered our town!
  tmpargument = passage + 2
  SetTargetToWhoeverIsInPassage
    tmpargument = [EVIL]
    IfTargetHasQuest
      tmpargument = TEAME
      TargetJoinTeam
  
//Check the two exits for runners
IfTimeOut
  tmpargument = 35
  SetTime
  tmpargument = passage
  SetTargetToWhoeverIsInPassage
    IfTargetIsAPlayer
      tmpx = targetteam
      tmpy = TEAME
      IfXIsEqualToY
        EnableExport
        EndModule
        BeatModule
        ClearEndMessage
        tmpargument = 0
        AddEndMessage
        tmpargument = 1
        AddEndMessage
        tmpargument = [EVIL]
        tmpdistance = 0
        AddQuestAllPlayers
  tmpargument = passage + 1
  SetTargetToWhoeverIsInPassage
    IfTargetIsAPlayer
      tmpx = targetteam
      tmpy = TEAME
      IfXIsEqualToY
        EnableExport
        EndModule
        BeatModule
        ClearEndMessage
        tmpargument = 0
        AddEndMessage
        tmpargument = 1
        AddEndMessage
        tmpargument = [EVIL]
        tmpdistance = 0
        AddQuestAllPlayers
        
End					// All done
