enderalse/scripts/source/_00e_a1_shadowtongueoilhazardsc.psc

46 lines
1.4 KiB
Plaintext

Scriptname _00E_A1_ShadowtongueOilHazardSC extends activemagiceffect
Import _00E_TalentLibrary
;=====================================================================================
; EVENTS
;=====================================================================================
Event OnEffectStart(actor akTarget, Actor akCaster)
If !(akTarget.HasMagicEffect(_00E_A1_ShadowtongueoilSlowME)) && !akTarget.IsDead() && !_00E_A1_ShadowtongueOilRaceList.HasForm(akTarget.GetRace())
PlayerREF = Game.GetPlayer()
_00E_A1_ShadowtongueOilHazardSlowSP.RemoteCast(akTarget, PlayerREF, akTarget)
If akTarget.GetRace() == SkeletonRace
PlayerREF.PushActorAway(akTarget, 50.0)
Else
PlayerREF.PushActorAway(akTarget, 0.01)
EndIf
_00E_A1_ShadowtongueoilSlipSoundM.Play(akTarget)
EndIf
EndEvent
;=====================================================================================
; PROPERTIES
;=====================================================================================
bool Done
float ResetSlipTime
Race Property SkeletonRace Auto
FormList Property _00E_A1_ShadowtongueOilRaceList Auto
MagicEffect Property _00E_A1_ShadowtongueoilSlowME Auto
Sound Property _00E_A1_ShadowtongueoilSlipSoundM Auto
Spell Property _00E_A1_ShadowtongueOilHazardSlowSP Auto
Actor PlayerREF