Add/Equip Item on death

Post » Sun Jan 30, 2011 4:32 pm

I'm making a small Mod (for myself) that uses CloneForm to add an item to NPCs on Death-- it's meant to be their Skull, complete with their Name. What I'd like to do, is make it so that when you take this item, the NPC's Head disappears. I KNOW you can Equip Items after Death, as I have done it before-- but nothing I do is working.

I do not believe I can check for the Skull's ID, since it is a Clone, and I assume has it's own ID that is different from the Base-- so I have been trying to Script it from the Skull, using Get Container Checks.

Does anyone have any suggestions?
User avatar
victoria johnstone
 
Posts: 3424
Joined: Sat Oct 14, 2006 9:56 am

Post » Sun Jan 30, 2011 7:04 am

Done the NPC get cloned and then dies? Or dies and then cloned?

Just throwing ideas in the air here...

I know it's possible to add a Death Item to an NPC in the CS. Another way might be to disable the clone and replace it with specially prepared dead body.

For the missing head, just make it equip a non-playable helmet with an invisible texture.
User avatar
Rex Help
 
Posts: 3380
Joined: Mon Jun 18, 2007 6:52 pm

Post » Sun Jan 30, 2011 7:44 am

The function CloneForm returns the base object reference. So you can capture it with set rMySkull to CloneForm Skull
User avatar
Amysaurusrex
 
Posts: 3432
Joined: Wed Aug 09, 2006 2:45 pm

Post » Sun Jan 30, 2011 5:29 am

Thanks for the suggestions :) It won't be until to-morrow I get to check them out, but hopefully they'll help :D
User avatar
xxLindsAffec
 
Posts: 3604
Joined: Sun Jan 14, 2007 10:39 pm


Return to IV - Oblivion