enderalse/source/scripts/_00_complexsetstageonread.psc

34 lines
848 B
Plaintext
Raw Permalink Normal View History

Scriptname _00_ComplexSetStageOnRead extends ObjectReference
Event OnRead()
if !bDone
If bSetStage
2024-01-10 14:08:24 +00:00
__Config_QuestToSet.SetCurrentStageID(__Config_iStageToSet)
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