enderalse/source/scripts/_00e_a1_arcticwindsc.psc

45 lines
1.3 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)
iKillMove = _00E_KillMove.Off()
EndIf
EndEvent
Event OnEffectFinish(Actor akTarget, Actor akCaster)
akTarget.RemoveSpell(_00E_A1_ArcticWindFrozenAb)
_00E_KillMove.SetValue(iKillMove)
EndEvent
;=====================================================================================
; PROPERTIES
;=====================================================================================
int iKillMove
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