Heyas,
I am having a compile issue with this script. It is telling me the function RegisterForActorAction doesn't exist.
Scriptname PAL_PietyAdjustmentScript extends activemagiceffect {Used to adjust the Piety value for each paladin ability used.}int property PietyCost autoGlobalVariable Property Piety autoEvent OnInit() RegisterForActorAction(4)endEventEvent OnActorAction(int actionType, Actor akActor, Form source, int slot) RegisterForSingleUpdate(1) if PietyCost > 0 int currPiety = Piety.GetValue() as int currPiety = currPiety - PietyCost Piety.SetValue(currPiety) else Piety.SetValue(200) endIfEndEventEvent OnUpdate() Debug.Notification("Piety = " + Piety.GetValue() as int)endEvent
I have SKSE installed and up to date, but it still won't compile.
Thanks.