enderalse/source/scripts/_00e_abwispbusytrackerscript.psc

25 lines
492 B
Plaintext
Raw Normal View History

Scriptname _00E_AbWispBusyTrackerScript extends activemagiceffect
Faction Property WispBusyFaction Auto
Actor Property PlayerRef Auto
Actor TargetRef
Event OnEffectStart(Actor akTarget, Actor akCaster)
TargetRef = akCaster
If TargetRef == PlayerRef
TargetRef = None
EndIf
If TargetRef
TargetRef.SetFactionRank(WispBusyFaction, 0)
EndIf
EndEvent
Event OnEffectFinish(Actor akTarget, Actor akCaster)
If TargetRef
TargetRef.RemoveFromFaction(WispBusyFaction)
EndIf
EndEvent