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.

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


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

Best regards.
 
Last edited:

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,200
Reaction score
15,547
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

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,200
Reaction score
15,547
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

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,200
Reaction score
15,547
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.

Latest Threads

Latest Posts

Latest Profile Posts

Guys, I made a trailer! And, I also launched the Steam page! If you would like to support the game, please Wishlist it :ahappy: ->
working on some tilesets _ノ乙(、ン、)_

CIBl8xT.png


Oq8WKHX.png
aww man, color hex code #C4C4C4 doesn't work for the tint value in this scene I need something darker, which stinks just because I liked that one it was my favorite plastic explosive three times...#696969 (nice) should work better (WHY IS MY BRAIN LIKE THIS)
Tell it to me straight, doc. If I've been trying to piece together a "shorter" game to learn stuff outside of game jams... am I just running away from my WIP? :v

Forum statistics

Threads
117,284
Messages
1,106,125
Members
153,467
Latest member
Kip_
Top