47 lines
972 B
Plaintext
47 lines
972 B
Plaintext
Scriptname _00E_SetStageOnTriggerEnter extends ObjectReference
|
|
|
|
Quest Property QuestToSet auto
|
|
int Property DesiredStage Auto
|
|
bool Property UpdateObjective Auto
|
|
int Property DesiredObjective Auto
|
|
bool Property CompleteObjective Auto
|
|
int Property DesiredCompletedOrFailedObjective Auto
|
|
bool Property FailObjective Auto
|
|
Actor Property PlayerREF Auto
|
|
bool Property CompleteQuest Auto
|
|
|
|
int doOnce
|
|
|
|
Event OnTriggerEnter (ObjectReference akActionRef)
|
|
|
|
if akActionRef == PlayerREF
|
|
if doOnce == 0
|
|
|
|
QuestToSet.SetStage(DesiredStage)
|
|
Debug.Notification("Stage updated")
|
|
|
|
if CompleteQuest == true
|
|
QuestToSet.CompleteQuest()
|
|
endif
|
|
|
|
if UpdateObjective == true
|
|
QuestToSet.SetObjectiveDisplayed(DesiredObjective)
|
|
endif
|
|
|
|
if CompleteObjective == true
|
|
QuestToSet.SetObjectiveCompleted(DesiredCompletedOrFailedObjective)
|
|
elseif FailObjective == true
|
|
QuestToSet.SetObjectiveFailed(DesiredCompletedOrFailedObjective)
|
|
else
|
|
return
|
|
endif
|
|
endif
|
|
else
|
|
return
|
|
endif
|
|
|
|
endEvent
|
|
|
|
|
|
|