Selectable plugin commands are an MZ thing. For MV, you have to write
them out as a script. Since it has no interface elements, there are good
odds that it will work. You'll want to check the plugin's docs on how to
make the plugin calls.
set region make a tile on X,Y to 10 (in this case), than if a flip a switch
or variable it changed, you can use the same X,Y to 20 (just change number).
I dont know if it works in MZ, so its best to check that, as I dont know if there
is any plugin like that in MZ avaiable, unless its ported over.
I use it on my own for my HUD, and remove it when its not needed anymore
with a selfSwitch.
you could do also something like this:
if: SelfSwitch B = ON
// scriptcall to set region on X,Y to 10 (or range).
else
//scriptcall to set region on X,U to 20 (or range).
end
what will happen on that region can be set below or new parallel event
if: region == 10
do stuff
else
if region == 20
do other stuff
end
end
Sorry for being confusing 😅
The point I was getting at is that obviously changing some tile's region id is not your end goal as that by itself doesn't do anything. I presumed that you are going to check the region id in a common event or something and do different stuff if the region id is 10 or 20. That's why I suggested to simply not worry about changing the region id (because that is not an intended feature and therefore causes headaches) but rather check where you wanted to check for region id 10 or 20 and instead check for region id 10 and if your switch is on or off.
Of course, if you need the region id for a plugin instead of your own eventing, then my suggested approach doesn't work.
Just curious, are the Region changes permanent? I mean do they persist Map changes?
Are they safed in the Safefile? If yes, this would be an absolutly awesome Plugin.
another way (if possible) can be far easier though that come to mind,
as there is a plugin for MZ (can give later).
if the maps are the same, and the region on the tiles are the same,
than you can use 2 duplicates of the map, 1 with region 10, other region 20.
you can switch map by flipping a switch (instantly) and not really transfering.
the plugin can do the same, but I think exit points can have the same exit (depending
on the switch) to what map to transfer.
if the X and Y become differently, than it might be possible too with the same approach,
chests and other stuff can be harder, but if you can port RED_setRegionId, than you
are mostly good to go.