RPG Maker MV

RPG Maker MV

MAKAIROSI Sep 4, 2018 @ 2:05pm
Change Region IDs / Encounters based on variables?
So i searched the web and people here and there seem to say you can't change Region IDs. But what i want to make might not even need that. I wanted to make it so the difficulty of the encounter can go up or down depending on a variable.

That variable can go up AND down, so the difficulty of the encounters must follow it constantly. To make it simpler, i want the random encounters to have only level 1 troops if the variable is 1, and both level 1 and level 2 troops if the variable is 2, but if the variable falls back to 1 then only level 1 troops again. All this on the same map.

I managed to do this with events (each page is a troop level) however i want it to be a random encounter, rather than an event. I'll just go with slowly approaching events if it's impossible, but it would be cool to know.

I also thought about my first question, changing the entire map's region ID depending on variables. So if it's 1, then i'd assign the level 1 troops there. If it's 2, then i'd assign both lv 1 and 2 there. Then simply change the ID depending on a variable once you are there.

Ideally i would want to just assign different troops like "if var>x, then troop 1".
< >
Showing 1-7 of 7 comments
XIIIthHarbinger Sep 4, 2018 @ 2:51pm 
There is no way to change Region Ids through eventing, to the best of my knowledge it can't be changed via script calls, & I am not aware of any plugins that change a regions id, even among those specifically linked to region id properties.

However, you're desired mechanic doesn't require such a change to begin with.

As for the rest of your question you are looking for a advanced solution to enable you to implement, what is already a default action. The troop types can be limited to specific region ids on any given map, simply limit the troops to the specific regions.
MAKAIROSI Sep 4, 2018 @ 3:59pm 
Originally posted by XIIIthHarbinger:
There is no way to change Region Ids through eventing, to the best of my knowledge it can't be changed via script calls, & I am not aware of any plugins that change a regions id, even among those specifically linked to region id properties.

However, you're desired mechanic doesn't require such a change to begin with.

As for the rest of your question you are looking for a advanced solution to enable you to implement, what is already a default action. The troop types can be limited to specific region ids on any given map, simply limit the troops to the specific regions.

Thanks for replying. However, this is not what i'm looking for.
I don't want the troops to be limited in areas of the map. I want the encounters to change depending on a variable. For example, let's say you turn on a switch and raise var x+1.
If the switch is pressed once, then var x=1. So the troop you will encounter will be y.
If it's pressed twice, then var x=2. So the troop you will encounter will be z.
And so on, and so forth.

That's what i'm looking for.

However, i thought of another way to do that. When you enter the map, before the player is transfered, i will have a condition. Then i will have mutliple maps depending on the variable i want. The sad thing was that i wanted to create 4 different troops, with 10 forms each, according to 4 different variables (and all their combinations), without combining them into one variable. So i will need 160 maps for all the combinations i want. Which is overkill.

Ideally i would also want to add other conditions depending on other things, but the previous figure stopped all other ideas...

I may just have to always combine the variables into 1 and just have 10 maps.

To add some variety, i could have some standard encounters too, so that it LOOKS like i did what i wanted.

But i'd love to make it like i originally thought...
JohnDoeNews Sep 4, 2018 @ 4:08pm 
Originally posted by MAKAIROSI:
So i searched the web and people here and there seem to say you can't change Region IDs. But what i want to make might not even need that. I wanted to make it so the difficulty of the encounter can go up or down depending on a variable.

That variable can go up AND down, so the difficulty of the encounters must follow it constantly. To make it simpler, i want the random encounters to have only level 1 troops if the variable is 1, and both level 1 and level 2 troops if the variable is 2, but if the variable falls back to 1 then only level 1 troops again. All this on the same map.

I managed to do this with events (each page is a troop level) however i want it to be a random encounter, rather than an event. I'll just go with slowly approaching events if it's impossible, but it would be cool to know.

I also thought about my first question, changing the entire map's region ID depending on variables. So if it's 1, then i'd assign the level 1 troops there. If it's 2, then i'd assign both lv 1 and 2 there. Then simply change the ID depending on a variable once you are there.

Ideally i would want to just assign different troops like "if var>x, then troop 1".

How about going up and down depending on level?

Enemy Levels plugin by Yanfly[yanfly.moe]

If you don't want their levels to depend on player level, you can also use this plugin to use a variable instead. Just read the help section.
Use Galv's Random Encounter Conditions
JohnDoeNews Sep 4, 2018 @ 4:11pm 
Oh, the enemy stats go up and down by lvl then, btw. Not the region ID. But that is what you want, right? Make it more or less difficult depending on a variable?
MAKAIROSI Sep 4, 2018 @ 4:27pm 
Originally posted by BigFatX:
Oh, the enemy stats go up and down by lvl then, btw. Not the region ID. But that is what you want, right? Make it more or less difficult depending on a variable?

Exactly. I thought changing the region ID would be simpler (since i could have only one map then, with changing region IDs which would cover the entire map but only one of them would be active each time). I'll try the plugin you said.
MAKAIROSI Sep 4, 2018 @ 4:41pm 
I just downloaded Galv's Random Encounter Conditions and applied it. It does EXACTLY what i wanted. Thanks a TON guys, you just saved me a great deal of time. I'll be back with more questions no doubt...
< >
Showing 1-7 of 7 comments
Per page: 1530 50

Date Posted: Sep 4, 2018 @ 2:05pm
Posts: 7