2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_MQ04_Firescript extends ObjectReference
|
|
|
|
{Disables a fire and saves a stone upon being hit by Lishari's Spell}
|
|
|
|
|
|
|
|
;=====================================================================================
|
|
|
|
; EVENTS
|
|
|
|
;=====================================================================================
|
|
|
|
|
|
|
|
Event OnReset()
|
|
|
|
|
|
|
|
; RegisterForSingleUpdate(1)
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Event OnUpdate()
|
|
|
|
|
2024-01-10 14:08:24 +00:00
|
|
|
If QuestScript.GetCurrentStageID() < 60 && QuestScript.GetCurrentStageID() >= 50
|
2021-10-05 22:15:58 +00:00
|
|
|
If Self.IsEnabled()
|
|
|
|
objFireRef.Reset()
|
|
|
|
objLightRef.Reset()
|
|
|
|
EndIf
|
|
|
|
RegisterForSingleUpdate(1.5)
|
|
|
|
Else
|
|
|
|
UnregisterForUpdate()
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)
|
|
|
|
|
|
|
|
if (akAggressor == PlayerREF) && (akSource == _00E_MQ04_FeuerloescherSpell) && (bDone == False)
|
|
|
|
bDone = True
|
|
|
|
QuestScript.SaveStone(Self, objFireRef, objLightRef)
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Event OnActivate(ObjectReference akActionRef)
|
|
|
|
|
|
|
|
if akActionRef == Self
|
|
|
|
QuestScript.DestroyStone(Self, objStoneRef)
|
|
|
|
Self.PlaceAtMe(_00E_GiantShockExplosionHarmless, 1)
|
|
|
|
Self.Disable()
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
;=====================================================================================
|
|
|
|
; FUNCTIONS
|
|
|
|
;=====================================================================================
|
|
|
|
|
|
|
|
Bool Function CheckSaved()
|
|
|
|
if bDone
|
|
|
|
Return True
|
|
|
|
Else
|
|
|
|
Return False
|
|
|
|
EndIf
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
;=====================================================================================
|
|
|
|
; PROPERTIES
|
|
|
|
;=====================================================================================
|
|
|
|
|
|
|
|
Bool bDone
|
|
|
|
|
|
|
|
ObjectReference Property objFireRef Auto
|
|
|
|
ObjectReference Property objLightRef Auto
|
|
|
|
ObjectReference Property objStoneRef Auto
|
|
|
|
|
|
|
|
MQ03_Functions Property QuestScript Auto
|
|
|
|
|
|
|
|
Actor Property PlayerREF Auto
|
|
|
|
|
|
|
|
ImageSpaceModifier Property _00E_MQ03FireISM Auto
|
|
|
|
|
|
|
|
Spell Property _00E_MQ04_FeuerloescherSpell Auto
|
|
|
|
|
|
|
|
Explosion Property _00E_GiantShockExplosionHarmless Auto
|