chimeric929 Posted June 9, 2012 Share Posted June 9, 2012 i'm trying to script a spellbook mod to more easily manage player spells through a crafting system.i've got the way to add spells simply by adding thier spellbook to your inventory. but to remove a spell has been more complicated. i'm trying to create a crafting recipe that adds an item with a script attatched to it.i want it to remove the item itself along with the spell when it is added from crafting station menuso i have this. it compiles but doesn't behave the way i intended. i just get the item and the script doesn't run.so here's the script and any help would be appreciated. Scriptname zzzforgetsoularrow extends ObjectReference Spell property zzzsoularrow autoObjectreference property zzzforgetspellsoularrow auto Event OnAdd(Actor AkActor) if (Game.GetPlayer().GetItemCount(zzzforgetspellsoularrow) < 100) Game.GetPlayer().removespell(zzzsoularrow) Game.GetPlayer().removeitem(zzzforgetspellsoularrow) endif Endevent Link to comment Share on other sites More sharing options...
Recommended Posts