29 lines
972 B
Plaintext
29 lines
972 B
Plaintext
|
Scriptname _00E_FS_Affinity_NightwolfSC extends activemagiceffect
|
||
|
|
||
|
Perk Property _00E_Affinity_AbNightwolfPerk_IncreaseSneakDamage Auto
|
||
|
_FS_TheriantrophistControlQuest Property ControlQuest Auto
|
||
|
Spell Property _00E_FS_Affinity_AbNightwolf_InvisibilitySP Auto
|
||
|
|
||
|
bool sneakBoostCooldowned = true
|
||
|
|
||
|
Event OnEffectStart(Actor akTarget, Actor akCaster)
|
||
|
akTarget.addPerk(_00E_Affinity_AbNightwolfPerk_IncreaseSneakDamage)
|
||
|
ControlQuest.GetAffinityControl().RegisterForNightwolfAffinityEvents(self)
|
||
|
EndEvent
|
||
|
|
||
|
Event OnEffectFinish(Actor akTarget, Actor akCaster)
|
||
|
akTarget.RemovePerk(_00E_Affinity_AbNightwolfPerk_IncreaseSneakDamage)
|
||
|
ControlQuest.GetAffinityControl().UnRegisterForNightwolfAffinityEvents()
|
||
|
EndEvent
|
||
|
|
||
|
Function OnSneakStart()
|
||
|
if (sneakBoostCooldowned)
|
||
|
_00E_FS_Affinity_AbNightwolf_InvisibilitySP.Cast(self.getTargetActor())
|
||
|
sneakBoostCooldowned = false
|
||
|
RegisterForSingleUpdate(60)
|
||
|
Endif
|
||
|
EndFunction
|
||
|
|
||
|
Event OnUpdate()
|
||
|
sneakBoostCooldowned = true
|
||
|
EndEvent
|