37 lines
971 B
Plaintext
37 lines
971 B
Plaintext
|
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.Getstage() == QuestStageBeforeTriggering)
|
||
|
bDone = True
|
||
|
QuestID.SetStage(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
|
||
|
|