2021-10-05 22:15:58 +00:00
|
|
|
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")
|
2024-01-10 14:08:24 +00:00
|
|
|
; QuestToSet.SetCurrentStageID(55)
|
2021-10-05 22:15:58 +00:00
|
|
|
; QuestToSet.SetObjectiveCompleted(15)
|
|
|
|
; QuestToSet.SetObjectiveDisplayed(20)
|
|
|
|
GoToState("NormalCombat")
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Event OnDeath(Actor akKiller)
|
|
|
|
GoToState("Death")
|
2024-01-10 14:08:24 +00:00
|
|
|
; QuestToSet.SetCurrentStageID(60)
|
2021-10-05 22:15:58 +00:00
|
|
|
; 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
|