1
//Tactics: Wait until enemy show up, when he does, always follow it until it is
9
//This makes ghosts fly up and down
14
tmpargument = rand & 30 - 15 + targetz
18
SetFlyHeight //Reset to normal
20
//------------------------------------------------------------------------------
23
tmpargument = rand & 20 + 32
26
tmpx = rand & 100 //Moaning sound?
30
IfContentIs //Dont if timer is short becuase
31
tmpargument = rand % 5 + 3 //of attacking
32
tmpdistance = rand & 4000 + 6000
62
tmpy = targety //Move towards enemy
65
tmpx = rand & 100 //Sometimes charge instead
68
tmpargument = 100 //charges are fast
72
tmpturn = targetturnto
78
SetOldTarget //Remember enemy
79
SetTargetToNearestFriend
82
IfXIsLessThanY //To close to friend?
83
tmpx = rand & 500 + targetx - 250
84
tmpy = rand & 500 + targety - 250
85
SetTargetToOldTarget //Enemy
86
tmpturn = targetturnto
87
tmpdistance = rand & 1000
90
AddWaypoint //Move randomly away from him
91
tmpargument = rand & 30 + 30
94
SetTargetToOldTarget //Set target back to enemy
99
tmpx = targetdistance //Close enough?
102
tmpargument = rand % 2 //Randomize attack left or right hand
105
IfContentIs //Attack right
106
tmpargument = LATCHRIGHT
108
tmpargument = LATCHLEFT
115
//------------------------------------------------------------------------------
118
tmpargument = rand & 1280 + 1024 //4-9 damage
119
tmpdistance = DAMAGEHOLY
123
tmpdistance = rand & 8000 + 11000
124
PlaySound //Special feared sound
128
//------------------------------------------------------------------------------
129
//Return to dorment state when enemy is defeated
136
//------------------------------------------------------------------------------
137
//Holy damage makes ghosts scared
145
tmpturn = targetturnto + 36780 //TargetTurnAway
150
tmpargument = rand & 80 + 50
153
tmpdistance = rand & 8000 + 11000
154
PlaySound //Special feared sound
158
tmpargument = rand & 1
159
tmpdistance = rand & 8000 + 11000
160
PlaySound //Ouch sound
162
//------------------------------------------------------------------------------
166
tmpdistance = rand & 8000 + 11000
167
PlaySound //death sound
181
//------------------------------------------------------------------------------
183
//------------------------------------------------------------------------------