Scriptname _00E_NQ19_NoteSC extends ObjectReference  

; This script lies on the activator _00E_NQ19_Note (a note hanging on
; some walls in Ark), which provides one way (not the only way) to
; start NQ19.

;=====================================================================================
;              							EVENTS                    					 
;=====================================================================================

Event OnActivate(ObjectReference akActionRef)

	if akActionRef == PlayerREF
	
		_00E_NQ19_ActivationMessage.Show()
		
		if NQ19.GetCurrentStageID() < 10
		
			NQ19.SetCurrentStageID(5)
			NQ19.SetObjectiveDisplayed(5)
			
		endif
		
		Self.GetLinkedRef().Disable()
		Self.Disable()
	
	EndIf

EndEvent

Event OnUnload()
	if NQ19.GetCurrentStageID() >= 10
		Self.GetLinkedRef().Disable()
		Self.Disable()
	EndIf
EndEvent



;=====================================================================================
;              							PROPERTIES                    					 
;=====================================================================================

Actor Property PlayerREF Auto

Message Property _00E_NQ19_ActivationMessage Auto

Quest Property NQ19 Auto