Jump to content

Spellbook mod Papyrus help


chimeric929

Recommended Posts

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 menu

so 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 auto

Objectreference 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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...