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.
 
 
 

27 lines
696 B

Scriptname _00E_SetStageOnActivate extends ObjectReference
Event OnActivate(ObjectReference akActionRef)
If akActionRef == PlayerREF && !Done
If __Config_StageRequiredToUpdate
If (__Config_QuestToSet.GetCurrentStageID() == __Config_RequiredStage)
__Config_QuestToSet.SetCurrentStageID(__Config_DesiredStage)
Done = True
Else
Return
EndIf
Else
__Config_QuestToSet.SetCurrentStageID(__Config_DesiredStage)
Done = True
EndIf
EndIf
EndEvent
bool Done
bool Property __Config_StageRequiredToUpdate = True Auto
int Property __Config_RequiredStage Auto
int Property __Config_DesiredStage Auto
Quest Property __Config_QuestToSet Auto
Actor Property PlayerREF Auto