4
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
488 B

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