Random mini-map encounters?

Hello, all!

  What I'm trying to do is have random encounters transfer the player to a map, and bring the players back to the location of the random encounter when they exit that map.

  I'm hoping to have the player, while wandering around the world map, randomly get transported to an exterior map with moving enemies that trigger battles. Basically the player, rather than randomly being thrown into battle, randomly finds themselves in an area with enemies they can try to elude, getting transported back to their world map location when they reach the exit.

  Any insight? Thanks for your time!
You can do all this via variables, if I'm reading your question correctly; however doing this may not be easy for a new-comer. I kind of envision what you're asking almost like a Zelda 2 battle system, minus the platformer aspect?

The easiest way I can think to do this is set a variable to remember your current position. After that create an event that approaches the player, 'on player touch' have the event teleport you to the desired map. Once on your battle map, just have it so after all enemies are defeated you can call your variable and it should teleport you back to where you started.

(I'm probably one of the worst when it comes to descriptions) 🙁

If you are able to figure out variables, though, it should be a cake walk for you.
I've done a decent little bit of programming for VX Ace, but there are still some aspects that confound me.  Zelda 2 is a good example! I couldn't think of one myself (Baldur's Gate is too far off.) The only real difference between Zelda 2 and what I'm looking for is the enemies wouldn't be visible on my world map.

How do I set a variable to remember my location?

The idea is to create mobile, graphic-less events that Transfer Player to the encounter map (the platformer part of Z2), and events along the exits within that map to Transfer Player to Designation with Variables set to my remembered location?  Further, with this method is there a way to designate which encounter map the player would be transferred to based on region, so that I can have a forest map, desert map, etc?

Thanks again!
That's a lot of "randomly" in your first post, and it makes it a bit hard to read.


Are you talking about random battles (the ones you set on the map properties box, that trigger a battle when you can't see the enemy)? Do you NEED to use random battles to do it? Can you just have a parallel process common event that is enabled on this main map, picks a random time X seconds into the future, waits for the playtime to be that value, saves your map, x and y details then sends you to the monster map? The monster map can then return you to your starting place when it's done.


Control Variables can be used to save your current map number, x and y position. You can then use those in the Transfer command.
That's a lot of "randomly" in your first post, and it makes it a bit hard to read.

Are you talking about random battles (the ones you set on the map properties box, that trigger a battle when you can't see the enemy)? Do you NEED to use random battles to do it? Can you just have a parallel process common event that is enabled on this main map, picks a random time X seconds into the future, waits for the playtime to be that value, saves your map, x and y details then sends you to the monster map? The monster map can then return you to your starting place when it's done.

Control Variables can be used to save your current map number, x and y position. You can then use those in the Transfer command.
I like this idea, but rather than time, I think steps taken might be a better idea simply to keep an idle player from hitting battles if they have to run to the bathroom and forget to pause.
How do I set a variable to remember my location?
This might actually help you a little more, if you want to go around variables.

http://www.rpgmakervxace.net/topic/1518-remember-event-position/
heroscratch, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


And no, that script is to make EVENTS remember their positions. You cannot use it for the player.
Whoops, thought that was an edit. Been boozin' a bit tonight,

Original thread: https://forums.rpgmakerweb.com/threads/random-mini-map-encounters.35897/