Scriptname __LALLShowMSGOnTrigEnterScript   extends ReferenceAlias
{Use on a reference alias. When checked quest is within stages, will display a message when triggerbox is entered}

Actor Property PlayerRef Auto
Quest Property QuestToCheck Auto
Int Property StageMin Auto
Int Property StageMax Auto
Message Property MessageToShow Auto
Int Property MessageShown Auto Hidden


Event OnTriggerEnter(ObjectReference akActionRef)
if akActionRef == PlayerRef
int stage = QuestToCheck.GetStage()
if MessageShown == 0 && (stage >= stageMin && stage <= stageMax)
MessageToShow.Show()
MessageShown = 1
endif
endif
EndEvent
