34 lines
839 B
Plaintext
34 lines
839 B
Plaintext
|
Scriptname _00_ComplexSetStageOnRead extends ObjectReference
|
||
|
|
||
|
Event OnRead()
|
||
|
|
||
|
if !bDone
|
||
|
|
||
|
If bSetStage
|
||
|
__Config_QuestToSet.SetStage(__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
|