I have attached the property to the RefAlias in the ck. The formlist exists. But the effect are not triggering.
Scriptname _01_RefAliasScript extends ReferenceAliasformlist property RandomSpellList autoSpell Function RandomSpellList() int listSize = RandomSpellList.GetSize() return RandomSpellList.GetAt(RandomInt(0,listSize))endFunctionEvent OnItemRemoved(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akDestContainer) actor player = GetReference() as Actor RandomSpellList.Cast(none, player) endifendEvent
