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!
function CheckHealth()
if bedivere_skeleton_commander_1.monster:getHealth() <= 500
then
bedivere_skeleton_commander_1.monster:setCooldown(1)
end
end
Thats what I have in place at the moment, and it broke once it got to that part of the fight. So I'm not sure what would be needed changed to have its attack cooldown go from 3 to 1.
MonsterComponent has no method named "setCooldown". See the scripting reference. You probably wanted to call that method on one of the object's MonsterActionComponents instead.