便利なスクリプトの紹介です。
@script
void self = getlocalvar("self");
if(frame==0){
float MHealth = getentityproperty(self,"maxhealth");
float Health = getentityproperty(self,"health");
if(Health <= MHealth/2){
changeentityproperty(self, "animation", openborconstant("ANI_xxx"));
}
}
@end_script
これをキャラのModel.txtのAnim_Specialなどに続けて記述すると
自分の体力が満タンから2分の1以下になると”Anim_XXX”を実行するというものです。
途中のMHealth/2を/3などにすれば3分の1にできます。