Bossfight health bar? and setting automap to unexplored?

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
Scotty
Posts: 69
Joined: Fri Nov 07, 2014 2:59 pm

Bossfight health bar? and setting automap to unexplored?

Post by Scotty »

Two completely unrelated questions.

First off, I'm having trouble getting my boss fight health bars to show up properly if the bosses health is set to less than the default. I'm assuming recomputeTotal() is there to fix this issue, but it doesn't appear to have any effect no matter where I put that function (after addMonster, before activate(), after activate()), the health bar is never filling up fully.

And secondly, has anyone figured out how to set sections of the automap to explored/unexplored? You can manipulate the tile type for the automap with setAutomapTile but I can't seem to find any way to change the explored or unexplored state.

Thanks in advance!
Scotty
Posts: 69
Joined: Fri Nov 07, 2014 2:59 pm

Re: Bossfight health bar? and setting automap to unexplored?

Post by Scotty »

Ah! Solved the boss fight health problem. If you use setMaxHealth() instead of setHealth() the bar will show correctly.
Post Reply