This is just a sample. I would not actually use this specifically but the idea would be simple.
I am wondering if this is the correct format and if it would work.
I know it would be added to the spell effect but don't like adding scripts unless I know they will work as intended.
Scriptname AddItemSpellScript extends activemagiceffect ObjectReference Property MiscObject AutoEVENT OnEffectFinish(Actor akTarget, Actor akCaster)Game.GetPlayer().AddItem(Gold001, 1)EndEvent