enderalse/source/scripts/_00e_complex_portnpcsforquestsc.psc

37 lines
940 B
Plaintext

Scriptname _00E_Complex_PortNPCsForQuestSC extends ObjectReference
;=====================================================================================
; EVENTS
;=====================================================================================
Event OnTriggerEnter(ObjectReference akActionRef)
if akActionRef == PlayerREF && !bDone
if QuestToSet.GetStage() >= iStageMin && QuestToSet.GetStage() <= iStageMax
bDone = True
Actor01Ref.MoveTo(PlayerREF)
Actor02Ref.MoveTo(PlayerREF)
EndIf
EndIf
EndEvent
;=====================================================================================
; PROPERTIES
;=====================================================================================
bool bDone
int Property iStageMin Auto
int Property iStageMax Auto
Quest Property QuestToSet Auto
Actor Property Actor01Ref Auto
Actor Property Actor02Ref Auto
Actor Property PlayerREF Auto