There's a story call that can do this. You could do this on CharacterEnteredRegion events for NPCs in regular game levels. You will probably want to check the NPCs for certain tags before doing that, such as MAGISTER, so that regular civilians don't increase levels too.