Quote:
Originally Posted by Batfoxkid
If you want to get the primary boss, the boss always is 0. So FF2_GetBossMaxLives(0)
|
I am f*ck. Still cannot get the result I want.
Code:
Selfhealth = Selfhealth + playerdamage
Selflive = Selflive - 1.0
Selfhealth = Selfhealth + playerdamage + Selfmaxhealth * Selflive
Selfmaxhealth = Selfmaxhealth * Selfmaxlive
if(Selfhealth > Selfmaxhealth)
{
Selfhealth = Selfmaxhealth;
}
FF2_SetBossHealth(0,Selfhealth);
Somtime it trigger the if(Selfhealth > Selfmaxhealth) so that boss get a full health of 2 lives. Sometime boss's health become 0 wtf....
Sometime selfhelth is negative wtf. And boss got instant dead