User:Misty
Revision as of 10:41, 11 May 2006 by imported>Nezroy
Hi, i'm wondering if you can set a summoned creature to be set unconscious and wake back up like certin npc's can. I've noticed that npc's death animations may the lay on the ground until you leave that dungeon or town and sometimes they dissappear, but the skeleton breaks apart and vanishes, so i'm not sure if you can or not. Any feedback would be appreciated. Or maybe a step in the right direction.
- The behavior you want is the "essential" flag, which is set on NPCs that cannot die but merely get knocked out and then back up again. However, I'm pretty sure that you can only set this on a base NPC, and not a specific reference, so it would probably end up applying to ALL skeletal summons. What you really want is a way to set it on your specific summoned skeleton reference. You might be able to reproduce the behavior using an OnDeath handler that ressurrects the skeleton immediately and puts it in an unconscious state, but I'm also not sure if the OnDeath actually gets a chance to fire for summoned creatures or not before they disappear. An alternative might be to do an OnHit handler that constantly checks the health of the summon and, when it falls below a certain point, sets it to unconscious and invulnerable for some amount of time. -- Nezroy 11:41, 11 May 2006 (EDT)