Scriptname aHH0ShoggothEndTriggerScript extends ObjectReference  

Actor Property playerref Auto ; Least 'costly' way to refer to the player
Quest property aHH0 auto
Actor property aHHShoggothEndREF auto
 
Event OnTriggerEnter(ObjectReference akActionRef)
	If akActionRef == PlayerREF ; This condition ensures that only the player will trigger this code
		If aHH0.getstage() <= 400
			debug.notification("I heard something")
		ElseIf aHH0.getstage() >= 410
			aHHShoggothEndREF.disable()
		Endif
	EndIf
EndEvent