// This reads an inscription, if a G'nome is standing on it
IfTimeOut


  // Check the plate passages
  tmpx = 0 // Can't read message
  tmpdistance = 0 // Set to 1 if a message is to be displayed
  tmpturn = 0


  tmpargument = 35
  SetTargetToWhoeverIsInPassage
    IfTargetIsAPlayer
      tmpdistance = 1
      tmpargument = [GNOM]
      IfTargetHasID
        tmpx = 2 // Message

  tmpargument = 36
  SetTargetToWhoeverIsInPassage
    IfTargetIsAPlayer
      tmpdistance = 1
      tmpargument = [GNOM]
      IfTargetHasID
        tmpx = 3 // Message

  tmpargument = 37
  SetTargetToWhoeverIsInPassage
    IfTargetIsAPlayer
      tmpdistance = 1
      tmpargument = [GNOM]
      IfTargetHasID
        tmpx = 4 // Message


  IfDistanceIsMoreThanTurn
    // Display the message
    tmpargument = 150
    SetTime

    tmpy = 0
    IfXIsMoreThanY
      tmpargument = 1 // "The inscription reads..."
      SendMessage
    tmpargument = tmpx // The message
    SendMessage
  Else
    // No messages
    tmpargument = 10
    SetTime

End					// All done
