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

Quote:
Originally Posted by Batfoxkid View Post
- RoundToCeil isn't needed as both values are integers
- Boss max health is only for one life, you can multiply it by the boss's max lives
- You have client in your formatting when it's not needed
- new should be int for new syntax
Allright, but if there's a life loss ability wouldn't it broke those abilities?
I tried to get boss's max lives using FF2_GetBossMaxLives but it need boss's index. So I use FF2_GetBossIndex(FF2_GetBossUserId(0)) but will make a Array index out-of-bounds (index 66, limit 66) in error log and broke the plugin.
And I still don't know why Selfhealth will become 0 when boss has more than 1 live.
My friend make the respawn plugin for me but he don't know much about FF2 so I have to improve it myself.
Hoto Cocoa is offline