How to check a Monster is dead?

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
SpacialKatana
Posts: 163
Joined: Fri Sep 14, 2012 6:20 pm

How to check a Monster is dead?

Post by SpacialKatana »

Had a few goes to script this, no dice. Any help appreciated,

Cheers.
SpacialKatana
Posts: 163
Joined: Fri Sep 14, 2012 6:20 pm

Re: How to check a Monster is dead?

Post by SpacialKatana »

No worries cracked it myself in the end:-

Code: Select all

function startVinesBossFight()
   if ancient_vines == nil or vines_bossfight == nil then
   return false
   else
   ancient_vines.monster:setMaxHealth(500)
   vines_bossfight.bossfight:addMonster(ancient_vines.monster)
   vines_bossfight.bossfight:activate()
   end
end
This allowed the repeated use of an altar after I had removed the item to start the bossfight.

Cheers!
Post Reply