Scriptname __LALLSetStageOnEquipScript extends ReferenceAlias  
{Add to an equippable item in a reference alias. Quest will progress when item is equipped}


Actor Property PlayerRef Auto
Quest Property QuestToCheck Auto
Quest Property QuestToSet Auto
Int Property StageMin Auto
Int Property StageMax Auto
Int Property StageToSet Auto

Event OnEquipped(Actor akActor)
if akActor == PlayerRef
int stage = QuestToCheck.GetStage()
if stage >= stageMin && stage <= stageMax
QuestToSet.SetStage(StageToSet)
endif
endif
EndEvent