Means of batch-linking via Shaz's Map Edge Transfer

Carduus

Veteran
Veteran
Joined
Feb 28, 2016
Messages
133
Reaction score
74
First Language
English
Primarily Uses
RMMV
I'm a lazy low-level programmer who really really doesn't want to connect 500+ maps. Shaz's Map Edge Transfer makes life so much easier by automating it down to only a handful of variables...but I want more (see: lazy). I want to do all of these maps in a grid-batch and only put in a few variables, like map size, grid length, and grid width. For example, if I put 5x5 map, 3 length, and 3 width, it'd generate blank maps of this format:

AAAAABBBBBCCCCC
AAAAABBBBBCCCCC
AAAAABBBBBCCCCC
AAAAABBBBBCCCCC
AAAAABBBBBCCCCC
DDDDDEEEEEFFFFF
DDDDDEEEEEFFFFF
DDDDDEEEEEFFFFF
DDDDDEEEEEFFFFF
DDDDDEEEEEFFFFF
GGGGGHHHHHIIIII
GGGGGHHHHHIIIII
GGGGGHHHHHIIIII
GGGGGHHHHHIIIII
GGGGGHHHHHIIIII

...and would link the bottom of A to the top of D, B to E, C to F, right side of A to B, B to C, etc. This seems more than possible with how flexible Javascript is nowadays (a lot more flexible than Ruby!). I'd still need to go into each map and put in my parallax and whatnot, but the clunky stuff would be done. Any thoughts?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,358
Reaction score
7,671
First Language
German
Primarily Uses
RMMV
Use the meta function (see helpfile if you don't know it) on a map notetag to get which map number goes into which direction, then load that into a variable and have the transfers be variable-based to target
 

Carduus

Veteran
Veteran
Joined
Feb 28, 2016
Messages
133
Reaction score
74
First Language
English
Primarily Uses
RMMV
I unfortunately don't know enough JS to make that run well. I just figured it had to be possible.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,358
Reaction score
7,671
First Language
German
Primarily Uses
RMMV
you don't need any javascript but the meta function, and you place that in the script line of the control variable command.

Each map notetag needs four notetags, <north:3> <west:7> and so on.
The meta-function will return the number inside the notetag it calles, so if you're going north you'll get 3 in the example.
And the numbers you place in the notetags are of course the ID of the map in that direction, so that you can then use the variable for transfer target.
 

Carduus

Veteran
Veteran
Joined
Feb 28, 2016
Messages
133
Reaction score
74
First Language
English
Primarily Uses
RMMV
Forgive my ignorance, but I'm not sure how that achieves my goal of auto-creation of maps that interlink in a grid. It makes things a little easier, though.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,358
Reaction score
7,671
First Language
German
Primarily Uses
RMMV
no, it won't work with dynamic maps that are created during gaming, it will require precreated maps.

However, if you want maps dynamically created (or precreated maps dynamically linked, you'll need a different approach anyway.

Any dynamic linking will require a formula that will tell exactly what ID will be going where. Which means that you have to set something, full randomization is not really possible here. and without knowing the structure and rules at minimum, no one can help you to write the mathematics needed for this.
So can you tell in detail how many maps you will have and how they are supposed to fit together?
 

Carduus

Veteran
Veteran
Joined
Feb 28, 2016
Messages
133
Reaction score
74
First Language
English
Primarily Uses
RMMV
I'm still not being clear, it seems. I want a 20x20 grid of 10x10 maps. These would be pre-created maps that I would draw. Rather than create 400 maps by hand and hand-link each one, I'd like to do the linking procedurally in some way to cut down on that job.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,358
Reaction score
7,671
First Language
German
Primarily Uses
RMMV
Is the grid 20x20 or 10x10? an what is the number of precreated maps in total?

Basically you'll need a series of mathematical functions that get the map-ID of the correct map for the target based on the ID of the current map.
That can be done as long as the maps are a continuous series of numbers (if you have maps that are not part of the grid, they need to have ID numbers lower or higher than the series).

And just to be sure: each map is used only once? Because if you plan multiple uses, it will be easier to handle it manually...
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:

Forum statistics

Threads
105,854
Messages
1,017,004
Members
137,562
Latest member
tamedeathman
Top