Modify Region IDs with Script Commands

Good evening!

Is there a way to delete or spawn regions through script calls, outside of the map editor?

Or does anyone know a plugin which can do that?


A little explanation why I would need this:

I'm working on a boardgame where events get moved automatically depending on what the players dice. I use region IDs to determine how the players events must turn. So, to identify the games board and how the fields are connected with each other. In the example below the region ID 17 means that the players event must turn left and continue it's route.

1z1b6ns.jpg


That works just fine but now I'm thinking of a way to modify those routes/regions on the go. For example an event could happen mid-game where the bridge (top left) crashes and as you see on top left that would make region ID 17 and 34 change to region ID 19 (which would mean "turn right" instead).

Such an ability would make the boards a lot more dynamic and cooler. 😀


So I hope some of you will have an idea! Thank you in advance. 🙂

Best regards.
My copy/change tiles plugin will let you do that. (it's easy to find in search)
My copy/change tiles plugin will let you do that. (it's easy to find in search)

Thank you very much. That will help a lot! I will change my "check regionID" system to "check tileID" for board junctions. That way level design will be easier too. (Instead of just numbers I can place tiles with arrows)
that plugin will let you change regions. It's just a different layer (and I think the plugin description states which layer to use for regions)
That's a really great plugin to have! I will need both use cases for sure. Change tileID and change regionID.

I have two questions though:
1) Will this change persist after saving and loading a savegame?
2) Could you recommend me between which two plugins to put your plugin in Yanfly's recommended load order? (As I use quite some of them)

Thank you again :LZSblush:
Yes, the changes will persist between saving and loading.

I don't know where it would go in Yanfly's list, as I'm not familiar with any of his code. I suggest you put it right at the bottom.
Great! Thank you again.

#Solved
you have to report your topic as solved, not just post it.
you have to report your topic as solved, not just post it.

How can I do this? Edit Title and write [solved] or is there a button?
there a button?
there is a button "report" in every post, directly under what you write
there is a button "report" in every post, directly under what you write

Ahhh k thanks. I was looking for a "solved button". 😀
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/modify-region-ids-with-script-commands.108741/