Copy map tiles to another map

Rpg Guy

Complex Eventer
Veteran
Joined
Sep 29, 2015
Messages
92
Reaction score
12
First Language
English
Primarily Uses
RMMV
On RPG Maker VXA, I ran across a very cool script that allowed me to copy a tile from one map to another based on map coordinates. I tried to find that script and post a link so that you'd be able to see it, but I was unable to find it.


For example a script call of it would be something like: (Copy Map 2, 23, 41) And it would copy the tile on "map 2" at "X 23", and "Y 41". Then you would use a script call like: (Past map 14, 12, 13) And it would past that tile on "map 14", at "X 12", and "Y 13". It was even flexible enough that I could replace the X & Y with variables. For example (Copy Map 2, variable 7, variable 8) & (Past Map 14, variable 9, variable 10). It was a very cool script and it could even copy Auto Tiles.


Another; possibly more clear example would be: If Map 2, had a water tile at X 23, & Y 24, it would copy that water tile, and when I used the Past Map script call, it would permanently place a water tile at X 12, Y 13, on Map 14.


Or say next to the water tile on Map 2 was a tree tile, so I used (Copy Map 2, 24, 41), instead of (Map Copy 2, 23, 41), it would copy the tree, and allow me to past it with (Past Map 14, 12, 13).


Final thing, if possible it also needs to copy region data. For example: If that water tile from the previous example was set to region 2, when I past it in the new map it would also make that tile region 2.


I hope this is clear enough, if not please let me know and I'll do my best to clarify it.


I looked through all the MV plugins I could find but didn't see any like this; I found one that copied events, useful but not what I'm looking for. Using a plugin like this it's possible to make a full map editor for the player to use in game and allow them to literally build a town, and I wanted to make one for my game.


If there is any scripter out there who knows how to and is willing to make a plugin like this for MV I would greatly appreciate it.
 

GreyStone84

Sic Gorgiamus Allos Subjectatus Nunc
Veteran
Joined
Jun 24, 2015
Messages
295
Reaction score
95
First Language
English
Primarily Uses
RMVXA
Just wondering, what use is a script like this? The only thing I could think of is you have one map with tiles set "Field" and another map with tile set "Dungeon" and you needed a tile from "Field" in your second map, or vice versa. But in that instance, you could simply copy and paste the tile in the other tile set or make a whole new one the way you need it to be.
 

Rpg Guy

Complex Eventer
Veteran
Joined
Sep 29, 2015
Messages
92
Reaction score
12
First Language
English
Primarily Uses
RMMV
Just wondering, what use is a script like this? The only thing I could think of is you have one map with tiles set "Field" and another map with tile set "Dungeon" and you needed a tile from "Field" in your second map, or vice versa. But in that instance, you could simply copy and paste the tile in the other tile set or make a whole new one the way you need it to be.
The main use I have for it would be to allow a Map Builder event in the game. For example, allow the player to go to a blank map(Except for the ground tile of course) and have a semi-complex event use variables; based on the players choice, to copy tiles, and paste them in their town. So say I gave the player a very large list of items to choose from using the choice menu, (A few simple examples would be: Big Tree, Bush, Water, Bridge, Dirt, Rock, ect...) basically an option for nearly every tile.


After they've chosen the tile they want I replace the players image with a temporary mouse image and let them move to where on the map they wish to place the tile.


Once they've chosen the plugin would let me use variable to know what tile they chose and where they wanted to place it. I use regions to make sure the tile can be placed there, and if it can I let the event place the tile.


There are other uses as well. If you like to make a map looked destroyed, or repaired, you can easily copy and paste the tiles you need without having to use a lot of events to cover the original tile.
 
Last edited by a moderator:

GreyStone84

Sic Gorgiamus Allos Subjectatus Nunc
Veteran
Joined
Jun 24, 2015
Messages
295
Reaction score
95
First Language
English
Primarily Uses
RMVXA
Oh I see. I was thinking of doing something like that where the player could build simple stuff like houses or walls or something, nothing as intricate as yours, and not in my current game. I was going to look into all that at some point in the future. I will have to keep this idea in mind. Thanks for the info!
 

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

Latest Threads

Latest Posts

Latest Profile Posts

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:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,986
Members
137,561
Latest member
visploo100
Top