Battle System Enemies different ranges.

I'm not someone who is good at programming in any way at all, but I tend to get ideas that would require such a skill such as this battle system idea I have with Enemies being at different ranges, and moves being for specific ranges.

Enemies can be in three positions/ranges. Close by, far away, or somewhere in the middle. I’d like it if possible for enemies to be able to change proximity to you. Like “Enemy stepped closer” or “Enemy stepped back”.

With this in mind, attacks have specific ranges. Close range, Middle/Medium range, Long Range, and I might want to have some rangeless attacks. I think rangeless would be something that ignores the position and might be worked by ignoring defense/m.defense.

The other attacks vary in strength depending on what ranged enemy is targeted.

Close ranged attacks are strong against enemies close by, lose a bit of strength against enemies at a medium distance, and then lose a lot of power against enemies far away.

Medium ranged attacks have a reliable strength at any range.

Long ranged attacks I’m thinking are either going to be weak in general, or they have to travel distance in order to be stronger, I might go with the latter option though.

I don’t really have a preference for whether to use front-view or side-view. I guess either would work.

I've attempted to make a sort of mock-up thing, hope it helps.
Battle system mockup.png


Anyways, thank you very much in advance.
For SideView, you could use Yanfly Row Formation, applying it to the enemies. For the Front View, I think States could do the work:
Three states (Far, Near, Close), enemies always start with the Far state. Some attacks can only be made while Far, and the enemy have a "Approach" attack that removes the Far state and applies the Near one. Some attacks can only be made with the Near state active, and there's a "Engage" attack that removes Near to apply Close state, and a "Retreat" attack that applies the Far state.
Hm, interesting. Guess I didn't think about this all the way.
I'm still trying to get used to how all of this works. I am curious though to how to transform the enemy picture if they get closer or farther though.
Thank you!
You can do a condition whenever the enemy has moved to transform it depending on the distance state.
Hm, interesting. Guess I didn't think about this all the way.
I'm still trying to get used to how all of this works. I am curious though to how to transform the enemy picture if they get closer or farther though.
Thank you!

I think that creating three versions of the enemy (Near, Mid, Far) and using the "Enemy Transform" command (usually Page 3 of the Event Commands dialog) to swap between them will do the trick, so long as the Near/Mid/Far versions all have the same starting HP & starting MP.
Alright. I think I have it now! Thank you everyone.

Original thread: https://forums.rpgmakerweb.com/threads/battle-system-enemies-different-ranges.77622/