//This is a special secret: if the module is beaten within the time limit
//a secret module will be unlocked! Content/50 is seconds left.
IfSpawned

  //Prepeare the victory song
  tmpargument = 58
  tmpdistance = 14
  SetMusicPassage
  
  //Play Music
  tmpargument = 4
  tmpdistance = 0
  PlayMusic
  
  //Start the timer?
  tmpargument = 53
  tmpdistance = [KEYS]
  SetTargetToPassageID
    tmpargument = [KEYS]
    CostTargetItemID
      tmpargument = 1500*difficulty           //Start at exactly 5 minutes
      tmpargument = 15000 - tmpargument       //-0.5 minutes per difficulty level
      SetContent
      
      tmpargument = 0
      PlayFullSound
      tmpargument = [ARCH]
      IssueOrder              //Activate the secret!
  Else
    GoPoof
    
//Update the timer
GetContent
tmpx = tmpargument
tmpy = 0
IfXIsMoreThanY
  tmpargument = tmpargument - 1
  SetContent
  ShowTimer

End					// All done
