6
//SPECIAL Knife's Heist Module stuff
13
SpawnExactCharacterXYZ
17
//---------------------------------------------------------------------------------
18
//What to do if warned
22
IfStateIsNot //Dont if backstabbed
30
//---------------------------------------------------------------------------------
33
tmpargument = rand & 15 + 30
39
SetTargetToWideEnemy //Enemy nearby?
40
IfFacingTarget //See the enemy
43
IfXIsLessThanY //Target not flying or jumping out of sight?
44
tmpargument = 1 //Enter combat mode
47
SetTurnModeToSpin //Spin around
55
SetTargetToWideEnemy //Enemy nearby?
59
tmpargument = rand & 25 + 25 //Time between shots
61
tmpargument = rand % 3 + 1 //Randomize ray
64
tmpdistance = selfz + 50
66
// tmpargument = 256 //1 ray costs 1 mana
70
tmpy = targety //Move towards him or her
78
//---------------------------------------------------------------------------------
80
IfStateIs0 //When watching
82
tmpx = selfspawnx //Return to start
86
IfStateIs1 //Or in combat
89
IfTargetIsAlive //and when killed
96
//---------------------------------------------------------------------------------
97
//Return to watch mode
98
IfStateIs1 //Only if already in combat
100
SetTargetToNearestEnemy
104
tmpargument = 0 //Watch mode
108
//---------------------------------------------------------------------------------
109
//How to react if bumped
110
IfBumped // Attack whoever it bumped
111
SetTargetToWhoeverBumped
112
IfTargetIsOnHatedTeam // Make sure it's an enemy
114
IfStateIsNot //Dont if backstabbed
115
tmpargument = 1 //Enter combat mode
117
CallForHelp //Warn others (Only if not backstabbed)
118
tmpx = targetx //Move away from melee
121
tmpturn = targetturnto + 36000
125
Else //Move out of the way of friendlies
126
tmpx = rand & 255 + targetx - 128
127
tmpy = rand & 255 + targety - 128
132
//---------------------------------------------------------------------------------
133
//How to react if attacked
135
SetTargetToWhoeverAttacked
138
IfStateIs0 //Hasn't seen a enemy yet
140
tmpargument = [DISA] //Is it a rouge?
143
KillTarget //Yep, instant kill
144
SetTargetToWhoeverAttacked
146
tmpdistance = EXPMURDER
147
GiveExperienceToTarget //Give some bonus xp
149
SetState //Backstabs are undetected
150
SetContent //For death message
154
IfTargetIsOnHatedTeam
155
tmpargument = 3 //Backstabbed?
157
tmpargument = 1 //Nope, enter combat mode
159
CallForHelp //Warn others (Only if not backstabbed)
163
tmpargument = rand % 3 //Play damaged sound
164
tmpdistance = rand & 4095 + 8000
168
//---------------------------------------------------------------------------------
169
//What to do if killed
172
tmpargument = 3 //Backstabbed?
176
tmpargument = 0 //Normal death
196
tmpdistance = rand & 2047 + 10000
207
//---------------------------------------------------------------------------------
208
End // Finished with this character
209
//---------------------------------------------------------------------------------
b'\\ No newline at end of file'