Tile Swap

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Someone wrote a map swapping script, where you could copy an area of tiles from one map to another. I think that would be better than this script for your purposes, as if you wanted to do a detailed map, it would take quite a lot of calls to change groups of tiles as well as individual tiles with this method.
 

Bex

Veteran
Veteran
Joined
Aug 2, 2013
Messages
1,492
Reaction score
408
First Language
German
Primarily Uses
RMMV
Hello, this Script looks Amazing.

But i found a BUG.

The "pos_swap Command" is working perfect, but the "pos_revert Command" is acting very strange.

I changed all Tiles on my map and now i have the Problem that

it does not revert  the chosen Position.

Insteed it changes back the last tile tile on the y axis.

If i repeat the command, it keeps reverting the tiles on that line until the chosen coordinate is reached.

if i choose pos_revert(0, 4, 2, 1)

so if i have a x=0 than it also pulls up the swapped tiles from the line beneth.graps y=5 line and puts it into y=4 and than continues to revert the line tile by tile everytime i call the command.

That is strange.

My english isnt the best so i hope i could explain it well enough.

I would be happy if this function could be repaired.

Edit: your explanation in topic1 is a little incorrect:

pos_revert(x, y, tid, layer, map_id)

it is actually:

pos_revert(x, y, layer, map_id)

???

EDIT: Thank you Hime for Answering in your Block within 1Day and Repairing it too.

You are amazing, thank you very much. This is great suport.

If iam able to make a little Fog of War Event Function, i will share it here with you.
 
Last edited by a moderator:

kreedves

Veteran
Veteran
Joined
Apr 13, 2016
Messages
73
Reaction score
5
First Language
English
Primarily Uses
@


Tsukihime



i know this is an old thread but i hav e to ask does this work on rpg maker MV, i mean tis script is for ace i just want ot know if it works on MV
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,367
Reaction score
7,676
First Language
German
Primarily Uses
RMMV
@kreedves no script for Ace will ever work on MV as those use completely different languages.
 

CodeHunterEx

Hunter of the Perfect Code
Veteran
Joined
Nov 26, 2016
Messages
133
Reaction score
64
First Language
English
Primarily Uses
RMVXA
This script was working before for me but now it gives an error and I cannot figure it out.

Script Call: region_swap(16, B33, 0, 1)

Error Message: unitialized constant Game_Interpreter::B33

If I remove B I get an error about ucase.

What am I doing wrong?

[I shall try to hide my embarrasment and shame as I write a reply:]

As a programmer I should know better when dealing with characters like A, B, C, D, and E. They are called 'strings'. Strings are enclosed in quotes "". For this to work properly you need to have quotes aroung the B33 as in "B33". Brain out of bounds error there.

I could remove this, but in case there are others who has OutOfBound brain errors, I will let it stay to remmind them.
 
Last edited:

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

Latest Threads

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,083
Members
137,583
Latest member
write2dgray
Top