1
//Different monster types determined by skin:
2
//0: Normal bat (No special abillities)
3
//1: Vampyric bat (Steals life)
4
//2: Undead bat (Very tough, weak vs. holy)
6
//------------------------------------------------------------------------------
9
tmpargument = rand % 2 + 2 //Random ouch sound (sound 2 or 3)
10
tmpdistance = rand & 3400 + 9000
15
IfXIsEqualToY //Holy damage is instant kill
18
SetTargetToWhoeverAttacked
19
tmpargument = 10 //Give some bonus xp
20
tmpdistance = EXPREVENGE
21
GiveExperienceToTarget
22
tmpargument = 1 //Banishment sound
23
tmpdistance = rand & 4600 + 11000
26
//------------------------------------------------------------------------------
27
//Tell others its healed
32
//------------------------------------------------------------------------------
35
SetTargetToWhoeverAttacked
38
tmpargument = 1 //Killed self
42
tmpargument = 0 //Normal bat
46
tmpargument = 3 //Vampyric bat
48
tmpargument = 4 //Killed normally
51
tmpargument = 1 //Bonus xp
54
GiveExperienceToTargetTeam
56
tmpargument = 2 //Bonus xp
59
GiveExperienceToTargetTeam
68
tmpdistance = rand & 3800 + 11000
71
//------------------------------------------------------------------------------
72
//What to do if bumped
74
SetTargetToWhoeverBumped
76
tmpargument = rand & 75 + 74
78
tmpx = rand & 1500 + targetx - 750
79
tmpy = rand & 1500 + targety - 750
83
//Bite the enemy //Must look at him
84
IfTargetIsAlive //Cant attack dead ones
85
tmpargument = rand & 256 + 348 //1.50-2.50 damage
86
tmpdistance = DAMAGEPOKE
90
tmpargument = rand & 128 + 64 //Heal 0.25 - 0.60 life
95
//Move out of way of friends
97
tmpx = rand & 511 - 256 + targetx
98
tmpy = rand & 511 - 256 + targety
102
tmpargument = rand & 20 + 20
105
//------------------------------------------------------------------------------
110
BecomeLeader //Always have at least 1 leader
113
//------------------------------------------------------------------------------
114
//What to do each round
116
tmpargument = rand & 15 + 40
118
SetTargetToWideEnemy //Locate enemy
121
tmpturn = rand & 4095 - 2048 + targetturnto
124
Else //No enemies, flock around leader
125
tmpx = rand & 1500 + selfspawnx - 750
126
tmpy = rand & 1500 + selfspawny - 750
128
// tmpx = rand & 1500 + leaderx - 750
129
// tmpy = rand & 1500 + leadery - 750
130
tmpargument = 100 //Bats are fast
140
tmpdistance = rand & 3000 + 14000
143
//------------------------------------------------------------------------------
144
End // Finished with this character
145
//------------------------------------------------------------------------------
b'\\ No newline at end of file'