@script
void vSelf = getlocalvar("self");
int iMP = getentityproperty(vSelf, "mp");
if ( frame == 0 && iMP < 10 )
{
//then play can't animation
performattack(vSelf, openborconstant("ANI_CANT"), 1);
}
if ( frame == 4 ){
changeentityproperty(vSelf, "mp", iMP - 10);
}
@end_script
Bloodbane said:CANT animation is , as the name implies, can't be played.
anim freespecial2
delay 6
@script
void vSelf = getlocalvar("self");
int iMP = getentityproperty(vSelf, "mp");
if ( getentityproperty(vSelf,"mp") < 10 )
{
//then play can't animation
performattack(vSelf, openborconstant("ANI_CANT"), 1);
changeentityproperty(vSelf, "mp", iMP + 10);
}
@end_script
offset 35 111
bbox 16 8 41 104
throwframe 4 2
energycost 10 1
sound data/chars/sue/shot.wav
frame data/chars/sue/sh1.pcx
offset 35 113
frame data/chars/sue/sh2.pcx
offset 35 112
frame data/chars/sue/sh3.pcx
offset 41 105
frame data/chars/sue/sh4.pcx
offset 35 105
frame data/chars/sue/sh5.pcx
delay 30
frame data/chars/sue/sh5.pcx
@script
void vSelf = getlocalvar("self");
int iMP = getentityproperty(vSelf, "mp");
if ( frame == 0 && iMP < 10 )
{
//then play can't animation
performattack(vSelf, openborconstant("ANI_CANT"), 1);
}
if ( frame == 4 ){
changeentityproperty(vSelf, "mp", iMP - 10);
}
@end_script