4
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.
 
 
 

36 lines
989 B

Scriptname _00E_StageTriggerboxSCN extends ObjectReference
Quest Property QuestID Auto
Int Property QuestStageAfterTriggering Auto
bool Property NeccessaryStage = false Auto
bool Property UpdateObjectives Auto
bool Property CompletePreviousObjective Auto
Int Property QuestStageBeforeTriggering Auto
int Property PreviousObjective Auto
int Property NextObjective Auto
int Property NextObjective02 Auto
bool bDone
Event OnTriggerEnter(ObjectReference akActionRef)
if akActionRef == Game.GetPlayer() && !bDone
if (NeccessaryStage == False) || (QuestID.GetCurrentStageID() == QuestStageBeforeTriggering)
bDone = True
QuestID.SetCurrentStageID(QuestStageAfterTriggering)
endif
if UpdateObjectives == true
if CompletePreviousObjective == true
QuestID.SetObjectiveCompleted(PreviousObjective)
endif
QuestID.SetObjectiveDisplayed(NextObjective)
If NextObjective02 > 0
QuestID.SetObjectiveDisplayed(NextObjective02)
EndIf
endif
EndIf
endevent