Page 1 of 1

How to check a Monster is dead?

Posted: Mon Oct 27, 2014 1:56 am
by SpacialKatana
Had a few goes to script this, no dice. Any help appreciated,

Cheers.

Re: How to check a Monster is dead?

Posted: Mon Oct 27, 2014 2:40 am
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!