enderalse/source/scripts/_00e_nq19_notesc.psc

48 lines
1.2 KiB
Plaintext
Raw Normal View History

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()
2024-01-10 14:08:24 +00:00
if NQ19.GetCurrentStageID() < 10
2024-01-10 14:08:24 +00:00
NQ19.SetCurrentStageID(5)
NQ19.SetObjectiveDisplayed(5)
endif
Self.GetLinkedRef().Disable()
Self.Disable()
EndIf
EndEvent
Event OnUnload()
2024-01-10 14:08:24 +00:00
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