2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00_ComplexSetStageOnRead extends ObjectReference
|
|
|
|
|
|
|
|
Event OnRead()
|
|
|
|
|
|
|
|
if !bDone
|
|
|
|
|
|
|
|
If bSetStage
|
2024-01-10 14:08:24 +00:00
|
|
|
__Config_QuestToSet.SetCurrentStageID(__Config_iStageToSet)
|
2021-10-05 22:15:58 +00:00
|
|
|
EndIf
|
|
|
|
|
|
|
|
If bDisplayObjective && !__Config_QuestToSet.IsObjectiveCompleted(__Config_iDisplayObjectiveIndex)
|
|
|
|
__Config_QuestToSet.SetObjectiveDisplayed(__Config_iDisplayObjectiveIndex)
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
If bCompleteObjective
|
|
|
|
__Config_QuestToSet.SetObjectiveCompleted(__Config_iDisplayObjectiveIndex)
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
bDone = True
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
bool bDone = False
|
|
|
|
|
|
|
|
bool Property bSetStage = True Auto
|
|
|
|
bool Property bDisplayObjective = True Auto
|
|
|
|
bool Property bCompleteObjective = False Auto
|
|
|
|
|
|
|
|
int Property __Config_iCompleteObjectiveIndex Auto
|
|
|
|
int Property __Config_iDisplayObjectiveIndex Auto
|
|
|
|
int Property __Config_iStageToSet Auto
|
|
|
|
|
|
|
|
Quest Property __Config_QuestToSet Auto
|