Scriptname __LALLSetStageOnActivate extends ReferenceAlias  
{Use on an alias. Sets stage when activated if stage is between min and max}

Quest Property QuestToCheck Auto
Quest Property QuestToSet Auto
Int Property MinStageReq Auto
Int Property MaxStageReq Auto
Int Property StageToSet Auto
Actor Property PlayerRef Auto
Float Property WaitTime Auto


Event OnActivate(objectReference akActivatorRef)
int CurrentStage = QuestToCheck.GetStage()
if CurrentStage <= MaxStageReq && CurrentStage >= MinStageReq
Utility.Wait(WaitTime)
QuestToSet.SetStage(StageToSet)
endif
EndEvent
