RegisterForActorAction problem, need 2nd set of eyes pls

Post » Tue Jan 28, 2014 5:46 am

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.

User avatar
Etta Hargrave
 
Posts: 3452
Joined: Fri Sep 01, 2006 1:27 am

Return to V - Skyrim