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

« back to all changes in this revision

Viewing changes to modules/paladin.mod/objects/lockdoor.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
IfSpawned
 
2
  tmpargument = passage
 
3
  ClosePassage
 
4
 
 
5
// See if there is a character in the detect passage
 
6
IfTimeOut
 
7
  tmpargument = 10
 
8
  SetTime
 
9
  KeepAction
 
10
  tmpargument = passage
 
11
  IfPassageOpen
 
12
    GetContent // NOP
 
13
  Else
 
14
    GetContent
 
15
    tmpdistance = tmpargument + [KEYB]  // KEYA - KEYZ
 
16
    tmpargument = passage +1
 
17
    SetTargetToPassageID
 
18
      tmpargument = tmpdistance
 
19
      CostTargetItemID
 
20
        // Give EXP
 
21
        tmpargument = 10
 
22
        tmpdistance = EXPSECRET
 
23
        GiveExperienceToTarget
 
24
       
 
25
        // Display text
 
26
        tmpargument = 0
 
27
        SendMessageNear
 
28
         
 
29
        // Open it up
 
30
        tmpargument = passage
 
31
        OpenPassage
 
32
    Else
 
33
      tmpargument = passage +1
 
34
      SetTargetToWhoeverIsInPassage
 
35
        IfTargetIsAPlayer
 
36
          tmpargument = 150
 
37
          SetTime
 
38
          tmpargument = 2
 
39
          SendMessageNear
 
40
 
 
41
 
 
42
// Handle the animation and sound
 
43
tmpargument = passage   // Is the passage clear?
 
44
IfPassageOpen                   // 
 
45
  tmpargument = 0                 //
 
46
  IfStateIs                       // State 0 ( Closed )
 
47
    tmpargument = ACTIONMG          //
 
48
    DoAction                        //
 
49
      tmpargument = 1                 // Open it
 
50
      SetState                        //
 
51
      tmpargument = 0                 //
 
52
      tmpdistance = 11025             //
 
53
      PlaySound                       //
 
54
Else
 
55
  tmpargument = 1                 //
 
56
  IfStateIs                       // State 1 ( Open )
 
57
    tmpargument = ACTIONMJ          //
 
58
    DoAction                        //
 
59
      tmpargument = 0                 // Close it
 
60
      SetState                        //
 
61
      tmpargument = 1                 //
 
62
      tmpdistance = 11025             //
 
63
      PlaySound                       //
 
64
End                             // Finished with this character