Game logic for RANDOMIZED MAPPING

Hi ALL,

I discovered months ago the card solitaire game ZIMP (Zombies In My Pocket). I already know that there is the downloadable version for mobiles. Yet, just for knowledge, I was trying to make a game based on ZIMP.
Link for detailed info HERE.​

So, the game is based, the feature that I want to make functional is to randomly point what the next map that the player in going to go. MAP (in RM) = TILE (in ZIMP). Like drawing a card, when the Player goes through a door, I want to set the next map to be Kitchen or Bedroom, and so on. But, it need to have the option to go back to previous room, so I need a remembering system for the MAP's ID's.
Right now, I got this far:
and it works like this:
It works, the randomize system to go to new rooms.​
Yet, when trying to make the comeback to previous room, it transfers me to a black map with the Ships of the games on top of one another, like a debug map or, I think, it's the MAP ID 0 (zero). The logic is like this:
Note: The Text in the middle, 'OI JULIETA!' was to check if the Commands were happening. The Text was not show/command were not happening. So the Else was not happening, still, a transferring player occurred, even when on other Room (C or D) there were NOT the B Room.

I want to discover where is the logic ERROR and make it work without using Plugins.
Either way, if you know any Plugin that can help make that system, i would like to try it.
Also, is there a game, made with RM's that use this system? I would like to see.
Can you help me?
:95:

I've moved this thread to Plugin Requests. Thank you.

I don't understand why you need a plugin for this. I haven't looked at your images (too lazy to open half a dozen other windows then switch between them trying to find the one I'm looking for).

Before you teleport to the random location, use Control Variables to set three variables to the current map ID, player X and player Y coordinates. When you are ready to transfer back, just use those variables in the Transfer command.

Original thread: https://forums.rpgmakerweb.com/threads/game-logic-for-randomized-mapping.93073/