bossfight healthbar trouble

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
bongobeat
Posts: 1076
Joined: Thu May 16, 2013 5:58 pm
Location: France

bossfight healthbar trouble

Post 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:
SpoilerShow
Image
the uncomplete healthbar:
SpoilerShow
Image
My asset pack: viewtopic.php?f=22&t=9320

Log1 mod : Toorum Manor: viewtopic.php?f=14&t=5505
User avatar
Drakkan
Posts: 1318
Joined: Mon Dec 31, 2012 12:25 am

Re: bossfight healthbar trouble

Post 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.
Breath from the unpromising waters.
Eye of the Atlantis
bongobeat
Posts: 1076
Joined: Thu May 16, 2013 5:58 pm
Location: France

Re: bossfight healthbar trouble

Post 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! ;)
My asset pack: viewtopic.php?f=22&t=9320

Log1 mod : Toorum Manor: viewtopic.php?f=14&t=5505
User avatar
Mal85
Posts: 103
Joined: Fri Nov 16, 2012 10:56 am

Re: bossfight healthbar trouble

Post 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.
Post Reply