4
//------------------------------------------------------------------------------
5
// ZZ> Jump over corpses
7
SetTargetToWhoeverBumped
11
tmpargument = LATCHJUMP
14
tmpargument = LATCHJUMP
19
//------------------------------------------------------------------------------
20
//Wait for a rouge to bump
23
SetTargetToWhoeverBumped
24
tmpargument = [ROGU] //Only rogues
32
PlaySound //Ill watch ya back!
34
OpenPassage //Open start door
44
SetTargetToWhoeverBumped
54
//------------------------------------------------------------------------------
58
IfStateIs2 //Wait before talking
62
IfStateIs4 //Wait before talking
67
SetTargetToNearestFriend
68
// Approach the player
71
tmpturn = targetturnto
79
// Walk around in a circle
82
tmpturn = selfturn + 8192
99
SetTargetToTargetLeftHand
101
SetTargetToTargetRightHand
104
tmpargument = LATCHPACKRIGHT
107
tmpargument = LATCHPACKLEFT
110
tmpargument = tmpargument +1
115
SetTargetToDistantEnemy
120
tmpturn = targetturnto
125
tmpx = targetdistance
129
tmpargument = rand & 1 + 1
135
// Follow the Player around
137
tmpx = targetdistance
142
tmpturn = targetturnto + 32768
150
// Run after the player
153
tmpturn = targetturnto
162
tmpx = targetaltitude
165
tmpargument = LATCHJUMP
169
//K'nife is in the assigned passage
170
tmpargument = passage
176
SetState //Stand on button
178
SendMessageNear //I'll wait here!
183
SendMessageNear //We need a key!
190
//Stand on button state
192
SetTurnModeToVelocity
197
SetState //Return to follow
200
tmpy = 3651 //Coordinates for the button
206
tmpx = gotodistance //Close enough to jump?
209
tmpargument = LATCHJUMP //Jump on the button
212
SetTargetToLeader //Turn to the player when standing on the button
213
SetTurnModeToWatchTarget
215
//------------------------------------------------------------------------------
216
// ZZ> Handle death by sending a message and other stuff
219
tmpdistance = rand & 1027 + 11000
232
// Make the character body
237
//------------------------------------------------------------------------------
238
// ZZ> Handle being attacked by blocking or countering or running away
240
SetTargetToWhoeverAttacked
243
tmpdistance = rand & 1027 + 11000
255
tmpargument = rand & 1 + 3
256
tmpdistance = rand & 1027 + 11000
260
//------------------------------------------------------------------------------
262
//------------------------------------------------------------------------------