Thanks for the replies everyone. Since I don't have the energy to write my own system from scratch I'm modifying what comes with NESS, Keron's corpse system. Keron's system works because it places a pointer to the creature's corpse on the placeable "lootable corpse".
One bug which I caught was that if the creature's blueprint is set as lootable, then (1) its corpse doesn't drop any loot to the placeable corpse and (2) when destroyed it lingers indefinitely (leaves a little unidentified glow on the ground when you hold down tab).
The solution is to add a line of code to the functions SetupSpawned and SetupCampSpawned which ensures that the creature does not leave a lootable corpse: SetLootable(oSpawned, FALSE)
To enable the corpse to be raisable you change the line:
AssignCommand(oSpawned, SetIsDestroyable(FALSE, FALSE, FALSE));
to
AssignCommand(oSpawned, SetIsDestroyable(FALSE, TRUE, FALSE));
ShadowM wrote...
animatable?
I am modifying animate dead and similar spells to require the caster to target a corpse or an item with the write flags.
Pattycake1 wrote...
Look at axe murders killer death system http://nwvault.ign.c....Detail&id=2994
That is for a player's death. AFAIK, that set of scripts by Axe doesn't cover NPC corpses and the like.
ShaDoOoW wrote...
I could give you some guesses, but for everyone's sake it would be better if you would do a research on this and tell us results, then we can write them into lexicon or wiki.
I have neither the ability nor the inclination to go after this right now. If I discover anything I'll post it.
Failed.Bard wrote...
Lootable corpses can be animated or raised just like a PC corpse can be, assuming the spell scripts themselves are set up to allow it.
This was how I handled them in my zombie mod. Since it was ravenloft based, it made more sense to have the undead have to be created as opposed to summoned, and the ability to have PCs raise/ressurect NPCs can be a useful one.
Unfortunately, there are conditions where even if they have items still in their inventories they can become unclickable making it impossible to target them with the spells to do so.
Bard, by "lootable" corpse are you referring to the standard Bioware corpse system, or to the custom corpse scripts I linked above? And what was your workaround for the issues you noted above about being unable to target a corpse?