~ubuntu-branches/ubuntu/precise/egoboo-data/precise

« back to all changes in this revision

Viewing changes to modules/palice.mod/objects/inscriptionplate.obj/script.txt

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2010-04-25 10:20:11 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100425102011-1aosouybjkexdg9v
Tags: 1:2.7.7-1
* New Upstream Release
* Switch to debhelper

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// This reads an inscription, if a G'nome is standing on it
 
2
IfTimeOut
 
3
 
 
4
 
 
5
  // Check the plate passages
 
6
  tmpx = 0 // Can't read message
 
7
  tmpdistance = 0 // Set to 1 if a message is to be displayed
 
8
  tmpturn = 0
 
9
 
 
10
 
 
11
  tmpargument = 1
 
12
  SetTargetToWhoeverIsInPassage
 
13
    IfTargetIsAPlayer
 
14
      tmpdistance = 1
 
15
      tmpargument = [GNOM]
 
16
      IfTargetHasID
 
17
        tmpx = 2 // Message
 
18
 
 
19
 
 
20
  tmpargument = 11
 
21
  SetTargetToWhoeverIsInPassage
 
22
    IfTargetIsAPlayer
 
23
      tmpdistance = 1
 
24
      tmpargument = [GNOM]
 
25
      IfTargetHasID
 
26
        tmpx = 3 // Message
 
27
 
 
28
  tmpargument = 21
 
29
  SetTargetToWhoeverIsInPassage
 
30
    IfTargetIsAPlayer
 
31
      tmpdistance = 1
 
32
      tmpargument = [GNOM]
 
33
      IfTargetHasID
 
34
        tmpx = 4 // Message
 
35
 
 
36
  tmpargument = 15
 
37
  SetTargetToWhoeverIsInPassage
 
38
    IfTargetIsAPlayer
 
39
      tmpdistance = 1
 
40
      tmpargument = [GNOM]
 
41
      IfTargetHasID
 
42
        tmpx = 5 // Message
 
43
 
 
44
 
 
45
  IfDistanceIsMoreThanTurn
 
46
    // Display the message
 
47
    tmpargument = 150
 
48
    SetTime
 
49
 
 
50
    tmpy = 0
 
51
    IfXIsMoreThanY
 
52
      tmpargument = 1 // "The inscription reads..."
 
53
      SendMessage
 
54
    tmpargument = tmpx // The message
 
55
    SendMessage
 
56
  Else
 
57
    // No messages
 
58
    tmpargument = 10
 
59
    SetTime
 
60
 
 
61
End                                     // All done