First, I have a timer that is deactivated. This timer, when activated, runs a script every minute. This script has been many variations on:
Code: Select all
function CheckOperatingRoomClear()
if findEntity("operatingRoomPatrol1") == nil and findEntity("operatingRoomPatrol2") == nil then
operatingRoomExitDoor:open()
operatingRoomTimer:deactivate()
end
end
Code: Select all
function CheckOperatingRoomClear()
if not findEntity("operatingRoomPatrol1") and not findEntity("operatingRoomPatrol2") then
operatingRoomExitDoor:open()
operatingRoomTimer:deactivate()
end
end
I've also tried a custom monster that hooks into onDie to decrement a counter. That fails as well. So my question is, what can I do to accomplish this, and, is this all failing because I use "K" to kill the monsters (I'm testing a high level room with level 1 debug party).