4
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

77 lines
2.1 KiB

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()
If QuestScript.GetStage() < 60 && QuestScript.GetStage() >= 50
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