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

« back to all changes in this revision

Viewing changes to modules/palice.mod/objects/smite.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
//Make it Glow
 
2
ReaffirmCharacter
 
3
 
 
4
//Blacken Status bars
 
5
SetTargetToWhoeverIsHolding
 
6
  UndoEnchant
 
7
  SetOwnerToTarget
 
8
  EnchantTarget
 
9
Else
 
10
  UndoEnchant
 
11
 
 
12
// ZZ> This function makes an item fall to the floor when spawned
 
13
IfSpawned                               //
 
14
  tmpargument = ACTIONJB                  //
 
15
  DoAction                                //
 
16
  KeepAction                              //
 
17
  MakeCrushValid
 
18
 
 
19
//Poof if crushed
 
20
IfCrushed
 
21
  tmpx = selfx
 
22
  tmpy = selfy
 
23
  tmpdistance = selfz
 
24
  tmpargument = 1
 
25
  SpawnExactParticle
 
26
  SpawnExactParticle
 
27
  SpawnExactParticle
 
28
  SpawnExactParticle
 
29
  GoPoof
 
30
  tmpargument = 1
 
31
  SendMessageNear
 
32
 
 
33
//Scream every so often
 
34
IfTimeOut
 
35
  tmpargument = rand & 63 + 90
 
36
  SetTime
 
37
  SetTargetToWhoeverIsHolding
 
38
    IfTargetIsAPlayer
 
39
      tmpx = 20
 
40
      tmpy = rand & 100
 
41
      IfXIsMoreThanY
 
42
        tmpargument = 5
 
43
        SendMessageNear
 
44
        PlaySound
 
45
 
 
46
IfDropped                               // Make it lie on floor
 
47
  KeepAction                              //
 
48
  UndoEnchant
 
49
 
 
50
IfGrabbed                               // Tell them what they've won...
 
51
  SetTargetToWhoeverIsHolding             //
 
52
  IfTargetIsAPlayer                       //
 
53
    tmpargument = 0                       //
 
54
    SendMessageNear                       //
 
55
 
 
56
//Make a sound if dropped on ground
 
57
IfHitGround                             // Make a sound
 
58
  tmpargument = 1                         //
 
59
  tmpdistance = rand & 2047 + 10000       //
 
60
  PlaySound                               //
 
61
 
 
62
//Tell its cursed
 
63
IfNotDropped
 
64
  tmpargument = 2
 
65
  SendMessageNear
 
66
IfNotPutAway
 
67
  tmpargument = 3
 
68
  SendMessageNear
 
69
 
 
70
 
 
71
//Tell the players what they got
 
72
IfTakenOut
 
73
  SetTargetToWhoeverIsHolding
 
74
  IfTargetIsAPlayer
 
75
    tmpargument = 4
 
76
    SendMessageNear
 
77
 
 
78
//Remove enchant if not holding
 
79
IfPutAway
 
80
  UndoEnchant
 
81
 
 
82
End                                     // All done