enderalse/source/scripts/_00e_nq19_notesc.psc

48 lines
1.1 KiB
Plaintext

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.GetStage() < 10
NQ19.SetStage(5)
NQ19.SetObjectiveDisplayed(5)
endif
Self.GetLinkedRef().Disable()
Self.Disable()
EndIf
EndEvent
Event OnUnload()
if NQ19.GetStage() >= 10
Self.GetLinkedRef().Disable()
Self.Disable()
EndIf
EndEvent
;=====================================================================================
; PROPERTIES
;=====================================================================================
Actor Property PlayerREF Auto
Message Property _00E_NQ19_ActivationMessage Auto
Quest Property NQ19 Auto