Empty Healthbar within Bossfight

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
Fantastic
Posts: 11
Joined: Wed Nov 05, 2014 6:45 pm

Empty Healthbar within Bossfight

Post by Fantastic »

Why is the usually red healthbar empty (black) when starting a bossfight i created like shown in the tutorial ? there is no effect to the bar when i change the health of my monster.
User avatar
Zo Kath Ra
Posts: 940
Joined: Sat Apr 21, 2012 9:57 am
Location: Germany

Re: Empty Healthbar within Bossfight

Post by Zo Kath Ra »

Fantastic wrote:Why is the usually red healthbar empty (black) when starting a bossfight i created like shown in the tutorial ? there is no effect to the bar when i change the health of my monster.
At the start of a boss fight in LoG2, the bar goes from black (empty) to red (full) in a second or so.
Maybe there's a function you need to call that makes this happen.
Fantastic
Posts: 11
Joined: Wed Nov 05, 2014 6:45 pm

Re: Empty Healthbar within Bossfight

Post by Fantastic »

No, the bar does not get red. Whats the commando to fill it ?
Decayer
Posts: 65
Joined: Sat Oct 13, 2012 3:19 pm

Re: Empty Healthbar within Bossfight

Post by Decayer »

Did you use addMonster() before activating the fight?
Fantastic
Posts: 11
Joined: Wed Nov 05, 2014 6:45 pm

Re: Empty Healthbar within Bossfight

Post by Fantastic »

Yes:

function startMedusaBossFight()
boss_fight_medusa.bossfight:addMonster(forest_ogre_1.monster)
boss_fight_medusa.bossfight:activate()

end
GoldenShadowGS
Posts: 168
Joined: Thu Oct 30, 2014 1:56 am

Re: Empty Healthbar within Bossfight

Post by GoldenShadowGS »

The default HP of the monster determines how large the red bar is. the ogre's default HP is 1,000 so if you set his HP much lower, it won't start with a full bar.
Decayer
Posts: 65
Joined: Sat Oct 13, 2012 3:19 pm

Re: Empty Healthbar within Bossfight

Post by Decayer »

How are you triggering the fight? What connectors are you using?
Fantastic
Posts: 11
Joined: Wed Nov 05, 2014 6:45 pm

Re: Empty Healthbar within Bossfight

Post by Fantastic »

Got it. Forgot to connect the pressure plate with boss icon AND lua icon :/ so that was the reason why the boss fight did start - but without a red healthbar. nice to know. in germany we say : aus fehlern lernt man ;) (make mistakes - then u will learn to do it right)
Post Reply