enderalse/source/scripts/_00e_oldsherath_zucombatscript.psc

73 lines
1.6 KiB
Plaintext

Scriptname _00E_OldSherath_ZuCombatScript extends ObjectReference
ObjectReference Property ManaimplosionVisualFX Auto
Sound Property ChargeSound Auto
;Sound Property _00E_OldSherath_ZuCombatCry Auto
;Spell Property DeadlySpell Auto
Actor Property PlayerREF Auto
Actor Property ZuSherath Auto
;Quest Property QuestToSet Auto
;ObjectReference Property DoorREF Auto
ObjectReference Property BeamLight Auto
int Death
int LightSize
Event OnCombatStateChanged(Actor akTarget, int aeCombatState)
;Debug.Notification("setting state")
; QuestToSet.SetCurrentStageID(55)
; QuestToSet.SetObjectiveCompleted(15)
; QuestToSet.SetObjectiveDisplayed(20)
GoToState("NormalCombat")
EndEvent
Event OnDeath(Actor akKiller)
GoToState("Death")
; QuestToSet.SetCurrentStageID(60)
; QuestToSet.SetObjectiveCompleted(20)
; QuestToSet.CompleteQuest()
;Debug.Notification("Death state entered")
;DoorREF.Lock(false, true)
Death = 1
EndEvent
state NormalCombat
Event OnBeginState()
BeamLight.Disable()
;Debug.Notification("Normal combat started.")
Utility.Wait(10)
GoToState("CastingSpell")
EndEvent
endstate
state CastingSpell
Event OnBeginState()
if Death == 0
ManaimplosionVisualFX.PlayAnimation("PlayAnim02")
ChargeSound.Play(ManaimplosionVisualFX)
;_00E_OldSherath_ZuCombatCry.Play(PlayerREF)
BeamLight.Enable()
;Debug.Notification("Fire!")
Utility.Wait(2.5)
ManaimplosionVisualFX.PlayAnimation("PlayAnim01")
;DeadlySpell.Cast(ManaimplosionVisualFX, PlayerREF)
GoToState("NormalCombat")
else
return
endif
EndEvent
endstate
state Death
Event OnBeginState()
;Do nothing
EndEvent
EndState