scn pettysoulgemscript1ref meref containershort doonceBegin Gamemode || menumodeif getcontainerset me to getselfIf getsoullevel me == 1 && doonce == 0set container to getcontainercontainer.additem soulgem1petty1pettysoul 1set doonce to 1removemeendifendifend
scn pettysoulgemscriptref meref pickBegin OnActivateset pick to getactionrefset me to getselfIf getsoullevel me == 1pick.additem soulgem1petty1pettysoul 1me.disableme.deletereferenceendifend ;Now I know this next part won't work because it probably will fail to get the references correctly in inventories, otherwise ;I'd only use this. But atleast even if the ref's change the script should still be valid, even if the getrefs don't return specific ;values.Begin Onaddset pick to getactionrefset me to getselfIf getsoullevel me == 1pick.additem soulgem1petty1pettysoul 1removemeendifend