View Single Post
Hoto Cocoa
Senior Member
Join Date: Jun 2018
Location: Somewhere
Old 02-07-2020 , 03:23   Re: Restore boss plugin trouble
Reply With Quote #6

Quote:
Originally Posted by Batfoxkid View Post
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

Last edited by Hoto Cocoa; 02-07-2020 at 03:47.
Hoto Cocoa is offline