Enderal SE https://mod.pub/enderal-se/38-enderal-se
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.
25 lines
488 B
25 lines
488 B
3 years ago
|
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
|