Alright, I've got some of this mod figured out, but I don't know how to do the rest. I plan to make an amulet that, as long as you wear it, will register the deaths of nearby NPC's (not creatures) and add a "Captured Soul" that can then be either used like a normal soul gem, devoured to recover magicka, sent to attack enemies, used in a necromantic ritual or simply released (randomly fortifying one of the player's attributes). I think I have most of it down, but I'm having trouble with the amulet detection part. I was using OBSE's GetFirstRef/NextRef thing together with a "getdead" and a "short dead" to tell if it has already been counted, but I can't get it to work. I'm also unsure which would be better to use on the amulet, a script effect enchantment or an object script. Thanks for any help you give.
P.S. I'm kinda new to the whole scripting thing, so be gentle-ish.