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

« back to all changes in this revision

Viewing changes to modules/wizard.mod/objects/wizard.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
//-----------------------------------------------------------------------------
 
2
// Alchemy special abillity
 
3
SetTargetToSelf
 
4
IfTargetIsAlive
 
5
  SetTargetToTargetLeftHand     //Check left hand first
 
6
    tmpargument = [POTI]
 
7
    IfTargetHasID
 
8
      IdentifyTarget            //Identify potions
 
9
      SetTargetToSelf
 
10
    tmpargument = [FLAS]
 
11
    IfTargetHasID
 
12
      IdentifyTarget            //And flasks
 
13
  SetTargetToTargetRightHand    //Repeat with other hand
 
14
    tmpargument = [POTI]
 
15
    IfTargetHasID
 
16
      IdentifyTarget            //Identify potions
 
17
    tmpargument = [FLAS]
 
18
    IfTargetHasID
 
19
      IdentifyTarget            //And flasks
 
20
 
 
21
//-----------------------------------------------------------------------------
 
22
// ZZ> Gong sound
 
23
IfCleanedUp
 
24
  tmpargument = 2
 
25
  tmpdistance = 8000
 
26
  PlayFullSound
 
27
 
 
28
 
 
29
//------------------------------------------------------------------------------
 
30
// ZZ> Scream and shout
 
31
IfUsed
 
32
  tmpdistance = rand & 2047 + 15000
 
33
  tmpargument = 10
 
34
  PlaySound
 
35
 
 
36
 
 
37
//------------------------------------------------------------------------------
 
38
// ZZ> Handle being bored by cheering or sneezing
 
39
IfBored
 
40
  tmpargument = 7
 
41
  SendMessageNear
 
42
  tmpargument = 11
 
43
  tmpdistance = rand & 2047 + 15000
 
44
  PlaySound
 
45
  tmpargument = ACTIONMC
 
46
  DoAction
 
47
 
 
48
 
 
49
 
 
50
//------------------------------------------------------------------------------
 
51
// ZZ> Handle death by sending a message and other stuff
 
52
IfKilled
 
53
  // Sound
 
54
  IfTargetIsOnHatedTeam
 
55
    tmpargument = 4
 
56
  Else
 
57
    tmpargument = 3
 
58
  tmpdistance = rand & 2047 + 15000
 
59
  PlaySound
 
60
 
 
61
 
 
62
  // Message
 
63
  tmpargument = 3
 
64
  IfArmorIs
 
65
    tmpargument = MESSAGECOSTUME
 
66
  Else
 
67
    tmpargument = MESSAGEDEATH
 
68
  IfTargetIsOnSameTeam
 
69
    tmpargument = MESSAGEFRAG
 
70
    IfTargetIsSelf
 
71
      tmpargument = MESSAGEACCIDENT
 
72
  SendMessage
 
73
 
 
74
 
 
75
  // Drop goodies
 
76
  tmpargument = selflevel*selflevel*100         //The money loss formula
 
77
  DropMoney
 
78
  DropKeys
 
79
 
 
80
 
 
81
  // Make the character body
 
82
  tmpargument = 45
 
83
  SetBumpHeight
 
84
 
 
85
//------------------------------------------------------------------------------
 
86
// ZZ> For helper AIs
 
87
IfLeaderKilled
 
88
  BecomeLeader
 
89
 
 
90
 
 
91
//------------------------------------------------------------------------------
 
92
// ZZ> Handle being attacked by blocking or countering or running away
 
93
IfAttacked
 
94
  SetTargetToWhoeverAttacked
 
95
  IfTargetIsOnSameTeam
 
96
    tmpargument = 8
 
97
    tmpdistance = rand & 2047 + 15000
 
98
    PlaySound
 
99
    tmpargument = MESSAGEOUCH
 
100
    SendMessageNear
 
101
  Else
 
102
    tmpargument = rand & 1 + 5
 
103
    tmpdistance = rand & 2047 + 15000
 
104
    PlaySound
 
105
 
 
106
 
 
107
//------------------------------------------------------------------------------
 
108
// ZZ> Handle being healed by spitting out a message and stopping retreat
 
109
IfHealed
 
110
  tmpargument = 6
 
111
  SendMessageNear
 
112
  tmpargument = 9
 
113
  tmpdistance = rand & 2047 + 15000
 
114
  PlaySound
 
115
 
 
116
 
 
117
//------------------------------------------------------------------------------
 
118
// ZZ> Handle not being able to carry something
 
119
IfTooMuchBaggage
 
120
  tmpargument = 8
 
121
  SendMessageNear
 
122
  tmpargument = 7
 
123
  tmpdistance = rand & 2047 + 15000
 
124
  PlaySound
 
125
 
 
126
//------------------------------------------------------------------------------
 
127
//Invoke special power if enough xp gained
 
128
SetTargetToSelf
 
129
tmpx = targetexp
 
130
tmpy = 9998
 
131
IfXIsMoreThanY
 
132
  UndoEnchant           //Hinder looping of same enchant
 
133
  SetOwnerToTarget
 
134
  EnchantTarget         //Give the special bonus
 
135
  tmpargument = 2       //Spawn some fancy sparklies
 
136
  tmpx = selfx
 
137
  tmpy = selfy
 
138
  tmpdistance = selfz
 
139
  SpawnExactParticle
 
140
Else
 
141
  UndoEnchant           //Remove if needed xp is lost
 
142
  
 
143
//------------------------------------------------------------------------------
 
144
End
 
145
//------------------------------------------------------------------------------