enderalse/scripts/source/_00e_a1_arcticwindsc.psc

55 lines
1.6 KiB
Plaintext
Raw Normal View History

Scriptname _00E_A1_ArcticWindSC extends activemagiceffect
Import _00E_TalentLibrary
;=====================================================================================
; EVENTS
;=====================================================================================
Event onEffectStart(Actor akTarget, Actor akCaster)
if ((akTarget.GetLevel() - (PlayerLevel.GetValueInt())) > 4) || (akTarget.HasKeyword(MagicNoFreeze)) ; Debug only!
_00E_A1_ArcticWind_sEnemyTooPowerful.Show()
Else
akTarget.AddSpell(_00E_A1_ArcticWindFrozenAb)
KillMove.SetValueInt(0)
EndIf
EndEvent
Event OnEffectFinish(Actor akTarget, Actor akCaster)
akTarget.RemoveSpell(_00E_A1_ArcticWindFrozenAb)
If Utility.GetINIBool("bVATSDisable:VATS") == 0
KillMove.SetValueInt(1)
EndIf
EndEvent
;=====================================================================================
; FUNCTIONS
;=====================================================================================
;=====================================================================================
; PROPERTIES
;=====================================================================================
_00E_QuestFunctions Property Levelsystem Auto
Actor Property PlayerREF Auto
Spell Property _00E_A1_ArcticWindFrozenAb Auto
Message Property _00E_A1_ArcticWind_sEnemyTooPowerful Auto
GlobalVariable Property KillMove Auto
Keyword Property MagicNoFreeze Auto
GlobalVariable Property PlayerLevel Auto