2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_A2_EyeOfTheStormSC extends activemagiceffect
|
|
|
|
|
|
|
|
Import _00E_TalentLibrary
|
|
|
|
|
|
|
|
;=====================================================================================
|
|
|
|
; EVENTS
|
|
|
|
;=====================================================================================
|
|
|
|
|
|
|
|
Event OnUpdate()
|
|
|
|
|
|
|
|
Self.Dispel()
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Event OnEffectStart(Actor akTarget, Actor akCaster)
|
|
|
|
|
|
|
|
if !(PlayerREF.HasSpell(_00E_A2_EyeOfTheStormAb))
|
|
|
|
|
|
|
|
int iDurationIndex = GetPlayerTalentLevel(_00E_Class_Trickery_P09b_Talent_EyeOfTheStorm,_00E_Class_Trickery_P09b_Talent_EyeOfTheStorm2, _00E_Class_Trickery_P09b_Talent_EyeOfTheStorm3) - 1
|
|
|
|
_00E_A2_EyeOfTheStormFailsaveEnch.SetNthEffectDuration(0, _00E_A2_EyeOfTheStormSP.GetNthEffectDuration(iDurationIndex))
|
|
|
|
fDurationFailsave = _00E_A2_EyeOfTheStormSP.GetNthEffectDuration(iDurationIndex)
|
|
|
|
iSound = MAGShoutSlowTimeActive02LP.Play(PlayerREF)
|
|
|
|
PlayerREF.PlaceAtMe(_00E_A2_EyeOfTheStormFailsaveExp, 1)
|
2024-01-18 00:21:07 +00:00
|
|
|
iKillMoveConfig = _00E_KillMove.Off()
|
2021-10-05 22:15:58 +00:00
|
|
|
akCaster.AddSpell(_00E_A2_EyeOfTheStormAb, False)
|
|
|
|
RegisterForSingleUpdate(fDurationFailsave)
|
|
|
|
|
|
|
|
If PlayerREF.HasSpell(_00E_A2_DanceOfBladesSP)
|
|
|
|
If _00E_Synergy_EyeOfTheStormBladedance.GetValueInt() == 0
|
|
|
|
_00E_Synergy_EyeOfTheStormBladedance.SetValueInt(1)
|
2024-01-09 22:00:18 +00:00
|
|
|
_00E_PlayerFunctions.GetSkillControl().ShowSynergyMessage()
|
2021-10-05 22:15:58 +00:00
|
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Event OnEffectFinish(Actor akTarget, Actor akCaster)
|
|
|
|
|
|
|
|
if (PlayerREF.HasSpell(_00E_A2_EyeOfTheStormAb))
|
|
|
|
Sound.StopInstance(iSound)
|
2024-01-18 00:21:07 +00:00
|
|
|
_00E_KillMove.SetValue(iKillMoveConfig)
|
2021-10-05 22:15:58 +00:00
|
|
|
akCaster.RemoveSpell(_00E_A2_EyeOfTheStormAb)
|
|
|
|
endif
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Event OnPlayerBowShot(Weapon akWeapon, Ammo akAmmo, float afPower, bool abSunGazing)
|
|
|
|
|
|
|
|
if PlayerREF.HasSpell(_00E_Affinity_AbArcaneArcher)
|
|
|
|
Utility.Wait(0.03)
|
|
|
|
_00E_AltIshmartepElectroShotSound.Play(PlayerREF)
|
|
|
|
_00E_Affinity_AbSpectralArrowSP.Cast(PlayerREF)
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
;=====================================================================================
|
|
|
|
; PROPERTIES
|
|
|
|
;=====================================================================================
|
|
|
|
|
|
|
|
int iKillMoveConfig
|
|
|
|
int iSound
|
|
|
|
|
|
|
|
float Property fDurationFailsave Auto Hidden
|
|
|
|
|
|
|
|
GlobalVariable Property KillMove Auto
|
|
|
|
GlobalVariable Property _00E_Synergy_EyeOfTheStormBladedance Auto
|
|
|
|
|
|
|
|
Spell Property _00E_A2_EyeOfTheStormAb Auto
|
|
|
|
Spell Property _00E_A2_EyeOfTheStormSP Auto
|
|
|
|
Spell Property _00E_Affinity_AbSpectralArrowSP Auto
|
|
|
|
Spell Property _00E_Affinity_AbArcaneArcher Auto
|
|
|
|
Spell Property _00E_A2_DanceOfBladesSP Auto
|
|
|
|
|
|
|
|
Perk Property _00E_Class_Trickery_P09b_Talent_EyeOfTheStorm Auto
|
|
|
|
Perk Property _00E_Class_Trickery_P09b_Talent_EyeOfTheStorm2 Auto
|
|
|
|
Perk Property _00E_Class_Trickery_P09b_Talent_EyeOfTheStorm3 Auto
|
|
|
|
|
|
|
|
Enchantment Property _00E_A2_EyeOfTheStormFailsaveEnch Auto
|
|
|
|
|
|
|
|
Sound Property _00E_AltIshmartepElectroShotSound Auto
|
|
|
|
Sound Property MAGShoutSlowTimeActive02LP Auto
|
|
|
|
|
|
|
|
Actor Property PlayerREF Auto
|
|
|
|
|
|
|
|
Explosion Property _00E_A2_EyeOfTheStormFailsaveExp Auto
|