25 lines
488 B
Plaintext
25 lines
488 B
Plaintext
|
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
|