Scriptname __LALLSetStageOnReadScript extends ReferenceAlias
{Attach to a reference alias. Used when player reads the book this is attached to}

Quest Property QuestToCheck Auto
Quest Property QuestToSet Auto
Int Property MinStageReq Auto
Int Property MaxStageReq Auto
Int Property StageToSet Auto


Event OnRead()
int stage = QuestToCheck.GetStage()
if stage >= MinStageReq && stage <= MaxStageReq
QuestToSet.SetStage(StageToSet)
endif
EndEvent
