How can I make transfers for entire side of 200 x 200 map

Hello again, this time I am curious as to how I can make an entire side of a large map transfer the character to the correlating location of the next map.
 

The map I am designing is a large desert (200 x 200). I'd like to find a way to connect four maps. However, I want it so that if you exit by the north west side of the map, you will enter the south west side of the next map, etc. 

I am trying to wrap my head around how I can do this for an entire wall, because I fear creating 400 events or more will lag everything. There must be a better way.

Thanks!

 
You could try a parallel process for each part of the map you want to teleport from  and by using regions, with a conditional branch that checks if the player is in that region.

For example, set up the conditional branch with the script call 

$game_player.region_id == nas the condition, where n is the number of the region you want to teleport from.. You can use this on the 4th tab in the conditional branch event.

The parallel process should have one branch for each region, so like 1 for north, 2 for south, 3 for west, 4 for east, etc., then proccess a teleport for each branch.

In the conditional branch, if the condition is met, it should teleport the player once they enter the region.

Hope that helps/makes sense ^^
Thank you for advice.  Admittedly I am a bit lost on what you said, as I am quite new to RPG Maker VX Ace. I will pinpoint where I need help:

1st - I read that adding too many parallel processes is a lag concern (http://forums.rpgmakerweb.com/index.php?/topic/10627-parallel-process-how-to-avoid-lag/ ), is this just a matter of "don't believe everything you read on the internet"? How many of these are acceptable on a map? How do I go about installing them into the map? I don't even see this option for parallel processes anywhere.

2nd - I chose the regions tab, selected region 1 and painted across the entire top of the screen, what would be the next step? Do I then create a new event? I don't even know how to "set up the conditional branch with the script call". Where do I add that?

Sorry, I am a beginner. I appreciate the help!
Parallel processes do lag up a game, but only if you're using many or if they're poorly programmed. The advice here was to use a single parallel common event to handle all several hundred coordinates (and use the same process for every side of all similiar maps.

If you're a beginner and don't know where to start, I suggest stopping your primary game idea and start with a secondary idea just to do the tutorials and learn the engine before continuing with your main game.

The link in my signature will guide you to a lot of tutorials and tips on how to start game making - and starting with your best idea in a big project is usually the worst way to start, because you need to learn the program first. Game-making isn't something that produces perfect results on first try...
The link in my signature will guide you to a lot of tutorials and tips on how to start game making - and starting with your best idea in a big project is usually the worst way to start, because you need to learn the program first. Game-making isn't something that produces perfect results on first try...
Thanks! I did many of the tutorials. I am not sure where you got the idea that I am starting with my best idea in a big project? I just said it was going to be a few maps. I also already have a second project on the go with my son, that is where I have done all of my basics and have been learning the program. We built that game over the last few days.  The project I am working on now is still rather small, I am just learning mechanics and asking questions as I go.  

Is there somewhere I can ask questions at my level of experience to get the assistance I need with Parallel Processes and  Regions?

I will fiddle with that more with Parallels though, I found the setting under triggers. Otherwise I can do 400 event creations to transport to the correlating part of the map.

I am only asking about these particular questions above as I am stumped after hours and hours of trial and error. Most things I have been reading and figuring out at a steady rate.

Thanks!
Is there somewhere I can ask questions at my level of experience to get the assistance I need with Parallel Processes and  Regions?

I will fiddle with that more with Parallels though, I found the setting under triggers.
1) This is the correct place for any questions that aren't script-related, so you can ask your questions about parallels and regions here.

2) Not exactly...

You found where to make a parallel process map event, which might be used to solve this.

But if you try to do the same on several maps, it might be better to use a parallel common event as common events work independantly from maps.

Common events are in the database, one of those tabs is for the "common events". You'll need those for a lot of other options as well, because only common events can be called from skills or from other events.

And small projects usually use smaller maps - even the world maps of big projects are often limited to 100x100 or 150x150. Having  200x200-maps connect to each other on the full side is rather - big...
1) This is the correct place for any questions that aren't script-related, so you can ask your questions about parallels and regions here.

2) Not exactly...

You found where to make a parallel process map event, which might be used to solve this.

But if you try to do the same on several maps, it might be better to use a parallel common event as common events work independantly from maps.

Common events are in the database, one of those tabs is for the "common events". You'll need those for a lot of other options as well, because only common events can be called from skills or from other events.

And small projects usually use smaller maps - even the world maps of big projects are often limited to 100x100 or 150x150. Having  200x200-maps connect to each other on the full side is rather - big...
Thanks! I feel that I have already learned quite a bit from this discussion.  I also spent a few more hours reading through links in your signature.

As for 200 x 200 map being big, I see what you mean for sure and I agree.  My initial log was that I figured since the terrain is mostly barren desert that the size would balance out. I wanted to give this level a sense of wandering through the wasteland.  I probably should have started my main characters in smaller maps, but I definitely consider this project all about trial and error.  I am willing to dedicate hours and hours to tediously place 40 small transport events if needed, just to learn the process and make my ideas work in the game environment.  I feel that at this stage I am mainly working on bringing ideas to life in-game, and when a problem presents a road block I am just testing to see how flexible the program really is through scripts, etc. I see this first project as a great way to see my experiences limitations as well as the programs natural limitations.

What I have learned so far:

1/ There are many different ways to "glue" together two maps in a way that does not lose your position.  My most important question regarding this now is, for a larger map at 200 x 200 which method would most RPG VX Ace developers use? I am definitely concerned with lag. I have a high-end PC, so far I have had zero issues with the program and it has been running flawlessly. I am simply trying to ensure that people with lower-end machines will have few issues when playing my game as well.

2/ I have been reading about common events, but I get lost part way through the process of creating a parallel common event. Is there a tutorial you can point me to that covers this thoroughly?  If I go to database and then click on common events, I am then given the "Event Commands"  ---->  In here I can see three tabs, none of which say "parallel common events".  Due to the inability to find such a tab, I can't go further as I can not see what effects/options this would provide.  So I am at a bit of a stalemate.

Thanks a bunch for the assistance. I am trying to learn as much as I can before I have to head back to University in September.
Parallel/Autorun are selections in the event window itself, not a part of the event commands. Go back to Database > Common Events. At the top there'll be room for the event name, the trigger (this is where you look), and the switch (which is necessary for parallel and autorun events).
Parallel/Autorun are selections in the event window itself, not a part of the event commands. Go back to Database > Common Events. At the top there'll be room for the event name, the trigger (this is where you look), and the switch (which is necessary for parallel and autorun events).
Thank you, I was able to find Common Events and took the last while going through the options and reading more. I also read a lot more about transferring between maps, I feel like I have all of the puzzle pieces now, but I can't put them together.  I think the best way would be for me to follow forum guidelines and post some screen shots. This way you can adequately see what I am doing wrong.

Here are the other resources that I have been using as well:

Switches and Variables Tutorial: http://forums.rpgmakerweb.com/index.php?/topic/348-switches-and-variables-part-one/

 

This resource got me close, but there are some vital pieces of information missing, as well as dead links:

 

Transfering from one map to another: http://www.rpgmakervxace.net/topic/6958-transfering-from-one-map-to-another-without-multiple-events/

Here is where I stand now:

I can select the most North Western point from my main map, from there I can select the region tab and change the entire top of the map into a region. I named mine region one. Beyond now naming this region, I see nowhere to add this region code to make the entire top of map transport me to correlating side of next map. So I have basically only selected what region 1 is.

[IMG]http://s18.postimg.org/43bix6xwp/1regions.png[/IMG]

I can also just right click the top left event box and do a new event.

After the new event is created, I then create a switch for 001 called "Border Transport".  I am hoping this will be the switch to transport the character across the region to the next region:

http://postimg.org/image/mfctqzj0x/  

In the Common Events screen I select 001: and set the trigger to Parallel Process, as well as attaching the Condition Switch for Border Transport.

Clearly I am lost at this stage, nothing from the region is selected, and the switch/parallel/process/regions do not seem to be connected.

[IMG]http://s24.postimg.org/hs2muun85/5commonevents_parallelprocess.png[/IMG]
I would not actually worry about the regions at all. You can simply see if you're at the edge of the map by using one of the following in the Script box (last page) of a Conditional Branch:


$game_player.x == 0 # at left of map


$game_player.y == 0 # at top of map


$game_player.x == $game_map.width - 1 # at right of map


$game_player.y == $game_map.height - 1 # at bottom of map


Then set variables for the map to transfer to, the x and y position to transfer to, and call the Transfer Player event command.


The x and y to transfer to will vary:


- if at the top of the map, the x variable will be the player's current x value, and the y variable will be the second row from the bottom of the map to transfer to


- if at the bottom of the map, the x variable will be the player's current x value, and the y variable will be 1


- if at the left of the map, the x variable will be the second last column of the map to transfer to, and the y variable will be the player's current y value


- if at the right of the map, the x variable will be 1, and the y variable will be the player's current y value


All those values should put you one row or column in from the edge of the new map.
I would not actually worry about the regions at all. You can simply see if you're at the edge of the map by using one of the following in the Script box (last page) of a Conditional Branch:

$game_player.x == 0 # at left of map

$game_player.y == 0 # at top of map

$game_player.x == $game_map.width - 1 # at right of map

$game_player.y == $game_map.height - 1 # at bottom of map

Then set variables for the map to transfer to, the x and y position to transfer to, and call the Transfer Player event command.
Thank you! Can you clarify a few things for me, is it okay if I just delete the region "1" that I created by erasing them from the region tab?

Also, thanks a bunch for the script! Do I use all four sentences in the script? ?

In the script box would I use the following script verbatim? Or do I change the width height to those of my game instead? Do I use just one line of the code as you mentioned, or both from a pair, or all four?

$game_player.x == $game_map.width - 1 # at right of map  

$game_player.y == $game_map.height - 1 # at bottom of map 

As for setting the variables for the map to transfer to, etc. how do I go about this?  So far I just right click the tile to the top left of the map and then click New Event and then I see a checkbox for variables. If I checkmark this box a screen pops up for Variables going in [1-20] sequences. I can call one of these a name but it does not seem to do anything.

[IMG]http://s24.postimg.org/kx5tsdmol/6variable.png[/IMG]

Maybe a checklist of what I have an have not done would help me move forward. I am not sure I have even done the "Border Transport" switch properly.

Thanks again, for all the help.

/confused

:headshake:  
I will write something up for you, step by step. It'll be big. Give me some time 🙂
I will write something up for you, step by step. It'll be big. Give me some time 🙂
Thank you so much, I really, really appreciate that!!!!  😀
Okay, so, if I have 4 maps that are all the same size (17x13), where maps 3 and 4 are on the top, and 5 and 6 are below them in a 2x2 layout, I can go left/right between maps 3 and 4, and between maps 5 and 6, and I can go up and down between maps 3 and 5 and between maps 4 and 6.

This is the content of the parallel process event you would have on map 3. It checks if you have reached the right side of the map and takes you to map 4 on the right, or if you have reached the bottom of the map, and takes you to map 5 below:

Spoiler
Conditional Branch: Script: $game_player.x == $game_map.map_width - 1 Control Variables [0010: Map] = 4 (going to map 4) Control Variables [0011: X] = 1 (second column on map 4) Control Variables [0012: Y] = Player's Map Y (this is in Game Data > Character) Transfer Player: Variable [0010][0011][0012]Else Conditional Branch: Script: $game_player.y == $game_map.map_height - 1 Control Variables [0010: Map] = 5 (going to map 5) Control Variables [0011: X] = Player's Map X Control Variables [0012: Y] = 1 (second row on map 5) Transfer Player: Variable [0010][0011][0012] Branch EndBranch EndWait 5 Frames (I always do this on continuously-running parallel process events, because it doesn't HAVE to run every frame, and adding a wait helps to avoid lag)
This is the content of the parallel process event you would have on map 4. It checks if you have reached the left side of the map and takes you to map 3 on the left, or if you have reached the bottom of the map, and takes you to map 6 below:

Spoiler
Conditional Branch: Script: $game_player.x == 0 Control Variables [0010: Map] = 3 (going to map 3) Control Variables [0011: X] = 15 (second last column on map 3) Control Variables [0012: Y] = Player's Map Y (this is in Game Data > Character) Transfer Player: Variable [0010][0011][0012]Else Conditional Branch: Script: $game_player.y == $game_map.map_height - 1 Control Variables [0010: Map] = 6 (going to map 6) Control Variables [0011: X] = Player's Map X Control Variables [0012: Y] = 1 (second row on map 6) Transfer Player: Variable [0010][0011][0012] Branch EndBranch EndWait 5 Frames
This is the content of the parallel process event you would have on map 5. It checks if you have reached the right side of the map and takes you to map 6 on the right, or if you have reached the top of the map, and takes you to map 3 above:

Spoiler
Conditional Branch: Script: $game_player.x == $game_map.map_width - 1 Control Variables [0010: Map] = 6 (going to map 6) Control Variables [0011: X] = 1 (second column on map 6) Control Variables [0012: Y] = Player's Map Y (this is in Game Data > Character) Transfer Player: Variable [0010][0011][0012]Else Conditional Branch: Script: $game_player.y == 0 Control Variables [0010: Map] = 3 (going to map 3) Control Variables [0011: X] = Player's Map X Control Variables [0012: Y] = 11 (second last row on map 3) Transfer Player: Variable [0010][0011][0012] Branch EndBranch EndWait 5 Frames
This is the content of the parallel process event you would have on map 6. It checks if you have reached the left side of the map and takes you to map 5 on the left, or if you have reached the top of the map, and takes you to map 4 above:

Spoiler
Conditional Branch: Script: $game_player.x == 0 Control Variables [0010: Map] = 5 (going to map 5) Control Variables [0011: X] = 15 (second last column on map 5) Control Variables [0012: Y] = Player's Map Y (this is in Game Data > Character) Transfer Player: Variable [0010][0011][0012]Else Conditional Branch: Script: $game_player.y == 0 Control Variables [0010: Map] = 4 (going to map 4) Control Variables [0011: X] = Player's Map X Control Variables [0012: Y] = 11 (second last row on map 4) Transfer Player: Variable [0010][0011][0012] Branch EndBranch EndWait 5 Frames
This COULD all be done with a single common event, but then you'd have to add in conditions for what map you're currently on and what map you want to go to, in each direction.

If your maps are NOT set out in a 2x2 grid, and you can't figure out the correct conditions and variables from the above list, let me know how they're laid out and I'll modify the instructions.
Thank you so much for the detailed instructions and the code! This will help a bunch! I see what you mean by the  2 x 2 grid with maps 3,4,5 & 6.  I am attempting to apply what you said to my grid, but mine works on a sort of rotating grid.  Here is the entire set in this long-term project:

Spoiler
[IMG]http://s21.postimg.org/h86fummh3/Secret_Cloud_Development_Map.png[/IMG]
As you can see, there are four directions all heading off of the Main Map. These directions are North, East, South and West. See the diagram for how I would like these maps to communicate with each other.

So before I start trying to tamper with your code to suit my needs, will there be a better way to "glue" together this map set? Or will I need to go through and edit all of the code for each correlating map?

Thanks!
 
So, if you go off the right of your northern map, you want to come back in from the top of your eastern map? Are they ALL 200x200? Can you redo that diagram, and write the actual map numbers on each one?


It's going to take me a little effort to set up the formula (and I may send you to scripts just to set up the relationship between maps), but I think now it will be better as a single common event.


Are there any OTHER maps in your game, where you DON'T want an automatic transfer upon reaching an edge? (like interior maps)


Are you happy to use a script to do this, if I write one up? And maybe notes on the map to say where each one leads?
*Internet hung when posting and made this message incomplete. See my following message for the details.
Hello again, this time I am curious as to how I can make an entire side of a large map transfer the character to the correlating location of the next map.

The map I am designing is a large desert (200 x 200). I'd like to find a way to connect four maps. However, I want it so that if you exit by the north west side of the map, you will enter the south west side of the next map, etc. 

I am trying to wrap my head around how I can do this for an entire wall, because I fear creating 400 events or more will lag everything. There must be a better way.

Thanks!
Create two variables and call them Player:X and Player:Y.  Then make a new common event and set it to parallel process event so it's always running.  Then go to your event commands and use Control Variables/Game Data and mirror your variables to the game data.

[Player:X] = Player's Map X

[Player:Y] = Player's Map Y

This will keep track of where your player is on the map at all times.  Then you can use that data to create events that trigger over large areas.  For example, let's say you wanted to have your character travel south through a large door way that is 6 tiles wide.  Instead of having to write 6 different events for each tile, just find out the x,y coordinates of those 6 tiles.

17,20 - 18,20 - 19,20, 20,20 - 21,20 - 22, 20

Once you have figured that out, you can add a condition to your event like this:

Conditional Branch: When Player is facing Down

Conditional Branch: [Player:X] >= 17

Conditional Branch: [Player:X] <= 22

Conditional Branch: [Player:Y] = 20

This will allow you to trigger an event when ever a player moves south into the area of the doorway so you can move them to a new map without having to clog your map with so many events that just to do the same thing. 
First I want to say thanks to Berylstone, I appreciate the assistance as well. I was following along with Shaz last night when the forums went down though.

So, if you go off the right of your northern map, you want to come back in from the top of your eastern map? Are they ALL 200x200? Can you redo that diagram, and write the actual map numbers on each one?

It's going to take me a little effort to set up the formula (and I may send you to scripts just to set up the relationship between maps), but I think now it will be better as a single common event.

Are there any OTHER maps in your game, where you DON'T want an automatic transfer upon reaching an edge? (like interior maps)

Are you happy to use a script to do this, if I write one up? And maybe notes on the map to say where each one leads?
Sorry, I tried replying last night, but the page hung. I could not get back on to the forums for several hours and I eventually went to sleep. Were the forums down for everyone? My internet was working otherwise. 

Luckily, I copied everything I had said while the page was hanging:
 

Yes, if you go off the right of the northern map, you will appear from the top of the eastern map. Also, if you go to the furthest north edge, you will appear from the bottom of the south panel. Same thing for East/West. As for the map numbers, those are actually what I have right now.  I just have the Main Map, then I have North 1-4, East 1-4, South 1-4, West 1-4.

There are some maps where I don't want automatic transfer upon reaching the edge, such as interior maps. There are some caves. and shacks, etc. and much later, after this world is done, I would like to build some other, much smaller locations where boss fights will be held etc.

 

I am definitely okay with using scripts, and will gladly give credit for the assistance!

 

These particular maps in my cyclical grid are all 200 x 200. Every map should allow you to transfer off into four directions which connect with the surrounding maps.  Take Map # N3 for example, that map can travel north to N4 (entering map from south), South to N2 (entering map from north), East to E3 (entering map from the north) and West to W3 (entering map from the north), etc. etc.

 

Thanks kindly for the detailed help! 🤘  

 

 
I just about have this working. Just got it going to the wrong place or facing the wrong direction when coming back in on some maps. I will see if I can get it finished in the next couple of hours for you.

It's a smallish script that uses notes on maps and nothing else. So no regions, no common events, no parallel process events. Nice and easy 🙂

Edit: Alright, got it. Seems to be working on a set of 9 maps for me, arranged as in your diagram.

This is the script - just copy and paste into a new slot in Materials. No customization options.

Spoiler
#============================================================================# Map Auto Transfer v1.0# Shaz#============================================================================# This script monitors the player's location, and when the edge of a map# is reached, it auto-transfers to the next map, if an auto-transfer is# set up in map notes#============================================================================# The script works on the assumption that all maps where a transfer is set# up have similar dimensions (transferring right from one map to another,# both maps must have the same height; transferring up/down between maps,# both maps must have the same width; transferring left from one map to the# top of another, the first map's height must be the same as the second# map's width#============================================================================# To set up a transfer between maps, enter a series of exit statements on# the map notes as follows# exit direction map side# direction = left, right, up, down (will transfer when you reach that edge)# map = map id to transfer to# side = left, right, top, bottom (where to transfer to on new map)# # exit right 5 left - go right from current map to left side of map 5# exit up 8 bottom - go up from current map to bottom of map 8# exit left 12 bottom - go left from current map to bottom of map 12# # If exit is not defined for any side of the current map, no auto-transfer# will happen#============================================================================class Game_Map #-------------------------------------------------------------------------- # * Public Instance Variables #-------------------------------------------------------------------------- # map exit directions and links for auto-transfers on edge of map attr_reader :exit_left attr_reader :left_map attr_reader :left_side attr_reader :exit_bottom attr_reader :bottom_map attr_reader :bottom_side attr_reader :exit_right attr_reader :right_map attr_reader :right_side attr_reader :exit_top attr_reader :top_map attr_reader :top_side attr_reader :map_id #-------------------------------------------------------------------------- # * Setup #-------------------------------------------------------------------------- alias shaz_autotransfer_map_setup setup def setup(map_id) shaz_autotransfer_map_setup(map_id) setup_notes end #-------------------------------------------------------------------------- # * Setup Notes #-------------------------------------------------------------------------- def setup_notes @exit_left = @exit_right = @exit_top = @exit_bottom = false @map.note.split(/[\r\n+]/).each do |line| case line when /exit\s*(\w+)\s*(\d+)\s*(\w+)/i case $1 when 'left' @exit_left = true @left_map = $2.to_i @left_side = $3 when 'right' @exit_right = true @right_map = $2.to_i @right_side = $3 when 'down' @exit_bottom = true @bottom_map = $2.to_i @bottom_side = $3 when 'up' @exit_top = true @top_map = $2.to_i @top_side = $3 end end end endendclass Game_Player < Game_Character #-------------------------------------------------------------------------- # * Frame Update #-------------------------------------------------------------------------- alias shaz_autotransfer_game_player_update update def update shaz_autotransfer_game_player_update update_autotransfer end def update_autotransfer return unless $game_map.exit_left && @x == 0 || $game_map.exit_right && @x == $game_map.width - 1 || $game_map.exit_top && @y == 0 || $game_map.exit_bottom && @y == $game_map.height - 1 # we're transferring, so get new coordinate if @x == 0 map = $game_map.left_map old = @y dir = $game_map.left_side elsif @x == $game_map.width - 1 map = $game_map.right_map old = @y dir = $game_map.right_side elsif @y == 0 map = $game_map.top_map old = @x dir = $game_map.top_side else map = $game_map.bottom_map old = @x dir = $game_map.bottom_side end m = load_data(sprintf('Data/Map%03d.rvdata2', map)) if dir == 'left' reserve_transfer(map, 1, old, 6) elsif dir == 'right' reserve_transfer(map, m.width - 2, old, 4) elsif dir == 'top' reserve_transfer(map, old, 1, 2) elsif dir == 'bottom' reserve_transfer(map, old, m.height - 2, 8) end endend
Now, on each map, edit the map properties and list hat automatic exits you want to use. You will have up to 4 on each map. If an exit is not defined, then the script will assume you don't want an automatic exit on that edge of the map.

Exits are listed in this format:

exit direction map side

direction is up, down, left or right - the direction you are leaving the current map.

map is whatever map is going to be loaded next

side is top, bottom, left or right - where you want to come in on the next map.

So:

exit right 2 left will take you from the right side of the current map, to the left side of map 2

exit down 3 top will take you from the bottom of the current map, to the top of map 3

exit left 4 right will take you from the left of the current map, to the right of map 4

exit up 5 bottom will take you from the top of the current map, to the bottom of map 5

exit right 6 top will take you from the right of the current map, to the top of map 6 (this is one of the 'diagonal' exits that takes you from a northern map to an eastern map)

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-make-transfers-for-entire-side-of-200-x-200-map.16737/