enderalse/scripts/source/_00e_nq_g_02_mushroomonhit.psc

31 lines
1.2 KiB
Plaintext

Scriptname _00E_NQ_G_02_MushroomOnHit extends ObjectReference
Import _00E_QuestFunctions
;=====================================================================================
; FUNCTIONS
;=====================================================================================
Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)
if bDone == False
; If you hit the mushroom with a staff, Mehnir refuses to forcegreet the player without this particular line before the next block and breaks the scene. Go figure.
Debug.Notification(akSource.GetName())
endif
If (akAggressor == PlayerREF) && (bDone == False) && ((NQ_G_02.GetStage() == 20 || NQ_G_02.GetStage() == 30))
bDone = True
NQ_G_02.SetObjectiveCompleted(21)
NQ_G_02.StartSC02()
EndIf
EndEvent
;=====================================================================================
; PROPERTIES
;=====================================================================================
bool bDone
Actor Property PlayerREF Auto
_00E_NQ_G_02_Functions Property NQ_G_02 Auto