string Name="测试兵";
int Model= 8;
int Weapon= 9;
int Team=0;
int View=10000;
int Think=32767;
int Attack1=0;
int Attack2=0;
int Attack3=0;
int Guard=100;
int Dodge=0;
int Jump=0;
int Look=10;
int Burst=10;
int Aim=0;
int GetItem=0;
int Spawn=0;
int HP=0;
int g_selfAddr;
int g_self;
int HPlast=0;
int Stat=0;
int realHP=0;
int timer=0;
OnInit(int this){g_selfAddr=this;}
OnStart(){g_self=GetSelf(g_selfAddr);ChangeBehavior(g_self,"run");}
OnUpdate(){
if(Stat==0){Stat++;return 0;}
if(Stat==1){Stat++;realHP=GetHP(g_self);HPlast=realHP;Say(g_self,"出手吧！我不怕死的！");
Say(1,"辛苦你了");return 0;}
timer++;
int HPnow=GetHP(g_self);
if(HPnow==realHP&&HPlast<realHP){
HPlast=realHP;
Say(g_self,"继续吧！");Say(1,"辛苦了！");
}
if(HPnow<HPlast){
StopPerform(g_self);
Perform(g_self,"guard",2);
int AtkP=HPlast-HPnow;
Say(g_self,"[HP:] ",HPnow/10,".",HPnow%10,"   [攻击强度:] ",AtkP/10,".",AtkP%10);
HPlast=HPnow;
}
}
