IfSpawned
  tmpargument = 2
  tmpdistance = 0
  tmpx = selfx
  tmpy = selfy
  SpawnExactParticle
  SpawnExactParticle
  SpawnExactParticle
  SpawnExactParticle
  SpawnExactParticle
  SpawnExactParticle
  SpawnExactParticle
  SpawnExactParticle
  SpawnExactParticle
  SpawnExactParticle
  SpawnExactParticle
  SpawnExactParticle
IfTimeOut
  GetContent
  tmpx = tmpargument
  tmpy = 1
  IfXIsEqualToY
    // Go away
    tmpargument = 0
    SetContent
    GoPoof
  IfXIsLessThanY
    // Check the passage
    tmpargument = passage
    SetTargetToWhoeverIsInPassage
      IfTargetIsOnOtherTeam
        // The trap has been tripped
        tmpargument = 15
        tmpdistance = EXPDARE
        GiveExperienceToTarget

        tmpargument = 0
        SendMessageNear
        tmpdistance = 11025
        PlaySound
        tmpargument = 7
        SetContent
  IfXIsMoreThanY
    // Down the counter
    tmpargument = tmpx - 1
    SetContent


    // Drop a boulder
    tmpargument = 0
    tmpdistance = 600
    tmpx = selfx
    tmpy = selfy
    SpawnExactParticle
    SpawnExactParticle
    SpawnExactParticle


  // Wait a while
  tmpargument = 3
  SetTime


// All done
End
