Scriptname __LALLSetStageOnDeathRAScript extends ReferenceAlias  
{When this actor is killed, set quest stage}

Quest Property toSet Auto
Int Property StageToSet Auto
Int Property StageMin Auto
Int Property StageMax Auto
bool Property BypassReq Auto



Event OnDying(Actor akKiller)
int stage = toSet.GetStage()
if (Stage >= StageMin) && (Stage <= StageMax) && (BypassReq != true)
toSet.SetStage(StageToSet)
elseif (BypassReq == true)
toSet.SetStage(StageToSet)
endif
EndEvent