enderalse/source/scripts/_00e_abcansaynotincombatscript.psc

25 lines
488 B
Plaintext
Raw Normal View History

Scriptname _00E_AbCanSayNotInCombatScript extends activemagiceffect
Actor Property PlayerRef Auto
Faction Property CanSayFaction Auto
Actor TargetRef
Event OnEffectStart(Actor akTarget, Actor akCaster)
TargetRef = akCaster
If TargetRef == PlayerRef
Dispel()
Return
EndIf
If TargetRef
TargetRef.SetFactionRank(CanSayFaction, 0)
EndIf
EndEvent
Event OnEffectFinish(Actor akTarget, Actor akCaster)
If TargetRef
TargetRef.RemoveFromFaction(CanSayFaction)
EndIf
EndEvent