Advice on creating 'distance'/'range' states or values in battles?

I am currently working on my first project, and while I am used to the simple features of RPGM:MV, there is something that I would like to implement that I fear may be extremely complicated or convoluted to implement.

I want to create a distance system in my battles so that enemies are either at 'long', 'medium', 'short' and 'close' ranges. I wanted this so that my ranged weapons would feel more dynamic as so far I am unsure how to stop them from becoming melee weapons with ammo. I envision this as: enemies would be able to advance individually to change their distance or the player's party can advance as a whole which would ideally move all enemies one space closer.

I figured that I could do this with states, but that sounds fiddly and probably likely to break. Events or plugins might be more reliable, but I have no idea about these two options. I have looked for similar threads here but I didn't find anything via the search feature. If anyone has any advice on this and knows if I could do this with states or otherwise then please let me know.
You'd probably need a grid or row battler position system, or give battlers states that make it so they can only be hit by certain types of weapons or skills
Welcome!

Yanfly's Row Formation works in conjunction with his Targeting and Selection plugins to do this.

I have looked for similar threads here but I didn't find anything via the search feature.
A general rule for forums - a Web search will almost always work better than any built-in searches.

I Googled "rpg maker mv battle ranges" and other threads from this site mentioning Row Formation come right up 😉
Yanfly's Row Formation works in conjunction with his Targeting and Selection plugins to do this.


A general rule for forums - a Web search will almost always work better than any built-in searches.

I Googled "rpg maker mv battle ranges" and other threads from this site mentioning Row Formation come right up 😉

Thank you very much, it looked very close to what I was thinking of. My only concern is that seems to be a system that works in side-view battles whereas my battles are in first-person/front view (I have already made my enemy sprites in this way). Ah well, I could buy it and just have a play around with it and see what I can do with it.

You'd probably need a grid or row battler position system, or give battlers states that make it so they can only be hit by certain types of weapons or skills

The latter is what I was originally going with. Essentially I have replaced magic with ranged attacks and MP with ammo. Ranged weapons give skills on equip like 'single shot', 'rapid fire' etc. and I could make states that resist or evade those damage types only partially, and completely evade melee damage types. My concern is swapping those states on the fly. I.e do I first remove the previous range state and then add the new state or do I add the new one and then remove the previous state? Additionally when the player's group advances or retreats, how would I make all the enemies with (possibly) different range states to move all down or up one state respective to their previous state.

Ultimately, I think I might have to go with the Row Formation plugin (suffice it can manage front-view battles) as I don't want to bite off more than I can chew for my first project. Thank you for the advice though and I will keep playing around and experimenting with the my original idea.
The instructions don't say that it only works in side view, so I don't see any reason you couldn't use the rows on enemies to place them in a front/back row (like Phantasy Star III or the Etrian Odyssey games), and say you need a ranged weapon to attack the back directly.

Original thread: https://forums.rpgmakerweb.com/threads/advice-on-creating-distance-range-states-or-values-in-battles.162434/