Page 1 of 1
bossfight healthbar trouble
Posted: Sun Jan 11, 2015 12:54 pm
by bongobeat
Hello all,
I'm having trouble whith the health bar of the bossifght when setting monster level >1
if the monsters level is 2 or more, the health bar does not fill completely. Any clues?
this is one of the monster of the bossfight, set to level3:
the uncomplete healthbar:
Re: bossfight healthbar trouble
Posted: Sun Jan 11, 2015 3:31 pm
by Drakkan
happened to me few times as well. solution should be to placing max health according to the creature health inside script triggering the boss.
example
herder_big_1.monster:setMaxHealth(150)
this should prevent this "half" hp bar to show.
Re: bossfight healthbar trouble
Posted: Sun Jan 11, 2015 11:50 pm
by bongobeat
Drakkan wrote:happened to me few times as well. solution should be to placing max health according to the creature health inside script triggering the boss.
example
herder_big_1.monster:setMaxHealth(150)
this should prevent this "half" hp bar to show.
thank you!

Re: bossfight healthbar trouble
Posted: Mon Jan 12, 2015 8:23 am
by Mal85
It's due to the fact upping the monsters level is adding more health to the monster. Unfortunately I believe the engine only reads the health of the base creature, even if you change it inside the editor it will not display the health properly. I fixed it by defining a new creature with the exact health I wanted and the bar displayed properly afterwards.