Modify Region IDs with Script Commands

Status
Not open for further replies.

Nilom

Veteran
Veteran
Joined
Sep 9, 2013
Messages
178
Reaction score
40
First Language
German
Primarily Uses
RMMV
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.



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. :biggrin:


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

Best regards.
 
Last edited:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,055
Reaction score
13,685
First Language
English
Primarily Uses
RMMV
My copy/change tiles plugin will let you do that. (it's easy to find in search)
 

Nilom

Veteran
Veteran
Joined
Sep 9, 2013
Messages
178
Reaction score
40
First Language
German
Primarily Uses
RMMV
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)
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,055
Reaction score
13,685
First Language
English
Primarily Uses
RMMV
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)
 

Nilom

Veteran
Veteran
Joined
Sep 9, 2013
Messages
178
Reaction score
40
First Language
German
Primarily Uses
RMMV
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:
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,055
Reaction score
13,685
First Language
English
Primarily Uses
RMMV
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.
 

Nilom

Veteran
Veteran
Joined
Sep 9, 2013
Messages
178
Reaction score
40
First Language
German
Primarily Uses
RMMV
Great! Thank you again.

#Solved
 

Nilom

Veteran
Veteran
Joined
Sep 9, 2013
Messages
178
Reaction score
40
First Language
German
Primarily Uses
RMMV
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?
 

Nilom

Veteran
Veteran
Joined
Sep 9, 2013
Messages
178
Reaction score
40
First Language
German
Primarily Uses
RMMV
there is a button "report" in every post, directly under what you write
Ahhh k thanks. I was looking for a "solved button". :biggrin:
 
Status
Not open for further replies.

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

Latest Threads

Latest Profile Posts

Do you have an audio you want me to animate? If so send me the youtube link and I’ll animate it.
Okay, so I'm working on Draft 2 of my game's script.
Will try to keep you guys posted, if you're interested!

This is vid of my new game, Crystalgazers. A demo is available on my Gamejolt

I just thought of the best achievement for my game: "'I Didn't Know You Were a Developer!' Find and enter one or more dev room(s)."
I made this animation to apply to a job, what do you think?

Forum statistics

Threads
105,590
Messages
1,014,837
Members
137,253
Latest member
Koshibari
Top