1
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

46 lines
972 B

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