I have a potion that runs a script when it is activated in the "physical world" so it's not picked up when activated but I want to make it so I can pick it up(put in my inventory) when it's activated while in sneak mode. I've looked at some other mods but the method they use is basically spaghetti code and I know there has to be a more simple way. I'm thinking roughly the following:
If player.sneak == 1 player.addRefidOfActivatedInstance elseif potionRunScript(blah blah)endif
I just can't find out how to get the refid of the instance. Or if there's just an easier way to add the activated item to inventory then I would appreciate some help. Thanks, -d.