1
// Check for a kill order
8
SetContent // Won't come back...
11
//------------------------------------------------------------------------------
12
// ZZ> Most undead have an enchantment sustaining them
14
EnchantTarget // Enchant self...
17
//------------------------------------------------------------------------------
18
// ZZ> Rise from the dead... Takes several times to wake...
24
tmpargument = tmpargument + 1
26
tmpy = selfcounter & 7 + 7
36
RespawnTarget // Same location, RespawnCharacter returns to start...
37
EnchantTarget // Enchant self...
38
tmpargument = 244 // Frame 61...
40
tmpargument = ACTIONMD
47
// No coming back from the pit...
53
//------------------------------------------------------------------------------
54
// ZZ> Handle death by sending a message and other stuff
61
tmpargument = MESSAGEFRAG
64
SetContent // Won't come back...
65
tmpargument = MESSAGEACCIDENT
72
SetContent // Won't come back...
73
SetTargetToWhoeverAttacked //Give exp
75
tmpdistance = EXPREVENGE
76
GiveExperienceToTarget
79
tmpargument = MESSAGEDEATH
93
// Make the character body
99
//------------------------------------------------------------------------------
100
// ZZ> Let the character walk around
105
tmpargument = tmpx & 1 + 2
107
// Randomize the frames...
108
tmpargument = tmpx & 1 + LATCHLEFT
110
SetTargetToNearbyEnemy
111
tmpx = targetdistance
115
tmpargument = rand & 1 + LATCHLEFT
122
tmpturn = targetturnto
125
tmpargument = rand & 31 + 60
127
tmpx = rand & 1023 - 512 + selfspawnx
128
tmpy = rand & 1023 - 512 + selfspawny
136
//------------------------------------------------------------------------------
137
// ZZ> Handle being attacked by blocking or countering or running away
139
// Image changes with damage
151
// Chase the attacker
152
SetTargetToWhoeverAttacked
153
IfTargetIsOnHatedTeam
157
tmpturn = targetturnto
165
//------------------------------------------------------------------------------
167
SetTargetToWhoeverBumped
168
IfTargetIsOnHatedTeam
170
tmpargument = rand & 1 + LATCHLEFT
176
tmpturn = targetturnto
188
//------------------------------------------------------------------------------
190
//------------------------------------------------------------------------------