name delay_dock
health 10
type enemy
shadow 0
nomove 1
load andore
load el_gado_172
load poison
load roxy
load holly_wood_172
animationscript data/scripts/cbusters.c
script @script
void main()
{
void self = getlocalvar("self");
int MTime = getentityproperty(self,"maxhealth");
int Time = getentityproperty(self,"health");
if(Time > 0){
drawstring(140, -16, 3, Time/10);
}
}
@end_script
anim idle
@script
if(frame==0){
void self = getlocalvar("self");
changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);
changeopenborvariant("game_time", +20000);
}
if(frame==1){
void self = getlocalvar("self");
int Health = getentityproperty(self, "health");
changeentityproperty(self, "health", Health-5);
if (Health <= 0){
updateframe(self, 1);
}
}
@end_script
loop 0
delay 800
offset 1 1
frame data/chars/misc/empty.gif
delay 10
frame data/chars/misc/empty.gif
delay 10
frame data/chars/misc/empty.gif
@cmd changeState "follow1"
frame data/chars/misc/empty.gif
anim follow1
loop 0
delay 10
offset 1 1
frame data/chars/misc/empty.gif
delay 120
@cmd spawn01 "andore" 89 0 25
frame data/chars/misc/empty.gif
@cmd changeState "follow2"
frame data/chars/misc/empty.gif
anim follow2
loop 0
delay 10
offset 1 1
frame data/chars/misc/empty.gif
delay 10
@cmd spawn01 "poison" 599 0 25
frame data/chars/misc/empty.gif
@cmd changeState "follow3"
frame data/chars/misc/empty.gif
anim follow3
loop 0
delay 640
offset 1 1
frame data/chars/misc/empty.gif
delay 10
@cmd spawn01 "roxy" 89 0 25
frame data/chars/misc/empty.gif
@cmd changeState "follow4"
frame data/chars/misc/empty.gif
anim follow4
loop 0
delay 60
offset 1 1
frame data/chars/misc/empty.gif
delay 10
@cmd spawn01 "el_gado_172" 599 0 25
frame data/chars/misc/empty.gif
@cmd changeState "follow5"
frame data/chars/misc/empty.gif
anim follow5
loop 0
delay 2400
offset 1 1
frame data/chars/misc/empty.gif
delay 10
frame data/chars/misc/empty.gif
delay 10
frame data/chars/misc/empty.gif
@cmd changeState "follow6"
frame data/chars/misc/empty.gif
anim follow6
loop 0
delay 10
offset 1 1
frame data/chars/misc/empty.gif
delay 120
@cmd spawn01 "roxy" 599 0 25
frame data/chars/misc/empty.gif
@cmd changeState "follow7"
frame data/chars/misc/empty.gif
anim follow7
loop 0
delay 10
offset 1 1
frame data/chars/misc/empty.gif
delay 10
@cmd spawn01 "holly_wood_172" 599 0 25
frame data/chars/misc/empty.gif
@cmd changeState "follow8"
frame data/chars/misc/empty.gif
anim follow8
loop 0
delay 640
offset 1 1
frame data/chars/misc/empty.gif
delay 10
@cmd spawn01 "poison" 89 0 25
frame data/chars/misc/empty.gif
@cmd changeState "follow9"
frame data/chars/misc/empty.gif
anim follow9
loop 0
delay 60
offset 1 1
frame data/chars/misc/empty.gif
delay 10
@cmd spawn01 "el_gado_172" 599 0 25
frame data/chars/misc/empty.gif
@cmd suicide
frame data/chars/misc/empty.gif