Creating an area on demand if its not already existing

Hi there,
So those following along now, now have a sqlite script that regularly saves the players position, and it will load the player into the room … but only if someone is in the area already.

For the purposes of performance, I unload areas when there’s no one left in them, so if they’re loading back into an area that was unloaded, I need to create it or they get dumped back to the module start.

So I’m looking at the area creation function and I need a resref to create an area with it, when what I have is a tag. Now I can create a lookup table for the tag to the resref, but it seems to me like there should be a better way to do that. Am off in left field here, or?

Might be worth looking into what can be done using JSON for that.