Port is the porticulis gate for the cell you first enter into and Secret is the hidden door inside the room with the enemy.alois wrote:If you want, you may change the onDie routine for the skeleton toAleitheo wrote:Everything up until the part where the death of the skeleton patrol is supposed to open both the gate and the hidden door does not work. This I do not understand.Here I'm assuming that "LvlOneCellPort" and "LvlOneCellSecret" are the ids of the two doors you want to open.Code: Select all
cloneObject{ name = "LvlOneCellSkeletonPatrol", baseObject = "skeleton_patrol", onDie = function(self) LvlOneCellPort:open() LvlOneCellSecret:open() end, }
alois
I copied your script in place of the original, saved, loaded up the editor and tried it out several times but no success. I deleted the instance of the enemy I had placed in the editor and replaced it, I deleted the counter and I reloaded a few times inbetween, no luck.
Right now, if anyone has a dungeon of theirs with more than one "on die" monsters in it, would they mind posting the monsters.lua for me to see?