Either Here or There

I need to alter the typical Transfer Player command to send the player to one of three locations. Once the location is chosen, I need it to remain the given choice until that session of gameplay expires, allowing it to be the other next time the map is played on.

The intention is to make it seem like a single map (the center of an island) can branch out in different directions that consist of randomized maps.

Would the best approach for this be to code in a variable to determine which map variation one might be on? Or is there a way to actually make the maps randomize to a series of modular designs.

Putting it into words is hard, so here's an example timeline:
1)Session begins, you will be dropped at the island hub. every island has the same hub. there are hundreds of islands.
2)you choose the northern path, which is three maps long in that direction.
3)you are transported to north1a, north1b, or north1c.
4)if you continue north, you go to north2a, north2b or north2c, and so on until you reach a northern dead end in the north3a/b/c
5)if you travel back south, you'll arrive at the same map that was previously chosen, which makes the island appear to have a specific, unchanging topography during this session.
6)next time you play, you are dropped at the island hub. this is meant to not be assumed as the same island.
7)if you choose north again, it no longer saves that you originally landed on north1b, instead giving you one of the three options at random once again, creating the feeling that you are on a similar, but distinct island.

Thoughts, ideas? I can just make dozens of similar maps, but if the process can be automated, that's obviously preferable.
You could tie each choice to a switch, so that when direction x is chosen, the teleporter on either map will teleport the player based on which switch is currently active. The way to do that is to add a line before the teleport happens that flips said switch on. So if choice x is a1, then the switch for a1 gets switched on, and using conditional branches, you can make the teleporter go to and from the locations tied to said switch. This will make each teleporter capable of "remembering" where the player has been, since arriving on a map activates a switch, and the switch works as the piece of data that tells the teleporter where to go. And once the playthrough is finished, make sure that all of the switches are turned back off so the next playthrough will have a different route that can be randomized once more.

Explaining it in words can be rather confusing, so if you would like to see images of what I'm trying to say, then I'll go ahead and do that for you.

I hope this helps you to figure out how to do what you're trying to do.
You could tie each choice to a switch, so that when direction x is chosen, the teleporter on either map will teleport the player based on which switch is currently active. The way to do that is to add a line before the teleport happens that flips said switch on. So if choice x is a1, then the switch for a1 gets switched on, and using conditional branches, you can make the teleporter go to and from the locations tied to said switch. This will make each teleporter capable of "remembering" where the player has been, since arriving on a map activates a switch, and the switch works as the piece of data that tells the teleporter where to go. And once the playthrough is finished, make sure that all of the switches are turned back off so the next playthrough will have a different route that can be randomized once more.

Explaining it in words can be rather confusing, so if you would like to see images of what I'm trying to say, then I'll go ahead and do that for you.

I hope this helps you to figure out how to do what you're trying to do.

I hadn't considered conditional branches like this, but what a great idea! I appreciate the help =)

Original thread: https://forums.rpgmakerweb.com/threads/either-here-or-there.131487/