Significantly improved native battle system (including AI upgrade)

Description of the Feature:
  • The battle system has been untouched since the RM95 era with the exception of including side battles. It's time for an overhaul.
  • The AI makes really dumb decisions, even with good scripting it still makes really dumb decisions. I'm not saying put in a machine learning engine, but it definitely needs to be able to think to some degree of how to win the fight (give us settings - easy, meidum, hard).
  • I think auto-battle needs to be implemented too. I know some people live for good battle systems, but the grind needs a computer hero sometimes.

Code for Implementation:
I have nothing to contribute, this would definitely require many lines of code but it is much needed to make the tool feel less antiquated.

Mockups:
I can't mockup an overhaul. It needs a lot of work, a revisioning. We can discuss it in the comments after you vote "Yes".

Why is this feature good?
This feature is great because of the following:
  • Most games I've played stray away from random encounters FF/DQ style and have less frequent times to fight an enemy due to lowered frequency or touch encounters, so the AI needs to be really strong if it is going to be one of the only fights you have for a while. And the enemies/monsters needs to feel unique and fresh without extensive plugins and scripting. Many people want control over their game and this aspect players have the LEAST control over it.
  • Because it would drive more business to purchase RMMV from RMVXA.
  • Because many people play RPG games for the mechanics, not for the plot. It needs to be more powerful and have more stronger options.

Possible issues with this feature?
Issues that might arise from this feature:
  • Cost of rolling RMMV to 2.0 to encorporate the new native battle system and AI
  • It would have to have a "Retro" version to work with existing projects and be backwards compatible. Or at least give the option to use the new AI with the old battle system.
Here's my ideas for the AI upgrade:

[Easy] The current AI, unchanged.
[Medium] Each monster/enemy "instance" has it's own AI that takes the other players HP/DEF/ATK/etc into consideration and calculates which of its own abilities sets would do the best damage given the situation of individualized actors.
[Hard] Same as Medium only now it strategies with the other instances. Example: Warrior knight has icesword, mage has reduce ice defense. Mage casts spell to reduce ice defense, warrior follows up and does ice damage to that same actor instance.

We can even take it to the next level and have it have [Insane] or some other level to make the AI have more awareness into the player (just not know what the player picked, we don't want cheating AI).

It would be even cooler if the more you fought an enemy the enemies learned a "Meta" of how you play and strategize against it. Obviously this would be an Insane upgrade instead of Medium to Hard.

There should still be conditional branching for allowing events to occur during battle against the AI's wishes, but just having a smarter AI is important.
This part doesn't make sense:
Most games stray away from random encounters FF/DQ style,

While I understand that you want a stronger AI control to the battle system, it does not correlate at all to Random Encounters. Are you saying you want Touch Encounters or what?
  • It would have to have a "Retro" version to work with existing projects and be backwards compatible. Or at least give the option to use the new AI with the old battle system.
IMHO, improving the current AI system can be done even with just extension of the current setup which won't need extensive rewrite that can cause incompatibilities. More options to determine which skill to use would be a start.

But right now, what we are really lacking is a way to make AI select a target. We can set how they choose skills to use, but not how they choose targets which kinda makes the whole system bad. No matter how much options we have for making the enemy choose the skill it will use, if we cannot set how it selects the target, then it's useless.

I really think if we cannot put this all (more skill select options + target select options) in one go, we could start by implementing control over target selection coz that will already allow us to make the AI more interesting.

Possibly add a box in the skill selection which gives us options as to set how enemies will select the target if he use that skill. For starters we can have options like:

Random (default, TRG based)
Battler with Highest Param
Battler with Lowest Param
Battler that has state
Battler that doesn't have state
Think a few more good ones adding on to @Engr. Adiktuzmiko would be:
Battler of class (for example: Battler of class healer)
Battler with equipped (for example: Battler with equipped shield)
Voted Yes But Not Important
- In nearly every Project Ive had with RPGmaker I've done something different if the Battle System. this would contradict the point of this suggestion
- The AI in MV isn't just dumb... its random that takes in no factors nor can make a variety deterministic actions. which is why it feels dumb but also unpredictable. Its a very Bare bones system. I've already made a system that counteracts this.
- Difficulty levels I think should be scripted in. Its quite a subjective feature.
- the people who play for the mechanics of an RPG game do so to explore unique and interesting mechanics that endulge them to play more, not something that's been done 12 times over. That said, the current mechanics aren't to laugh home about.
- the unique monster thing is all depends on how far you go. but it is a good concept. (i distinctly remember how annoying that damned one eye spamming L.vl 3 Flare and the place it spawns is guaranteed to leave you at lvl 99. ) Annoying enemies get remembered.
This part doesn't make sense:
Most games stray away from random encounters FF/DQ style,

While I understand that you want a stronger AI control to the battle system, it does not correlate at all to Random Encounters. Are you saying you want Touch Encounters or what?
Fixed
The AI appears to be dumb because people don't use the given options (states, skills and attack patterns) to create a better AI. Plugins may help, but even without plugins a lot is possible with troop events and real planning of the enemies.
And a lot of the AI depends on what skills are available to it, it is much easier to set a specific AI after you know for which enemy with which options than to create a general AI that can handle every enemy with every skill possible.
My thoughts?

We need a better AI for target selection. Who here hasn't had the computer cast heal on someone who isn't hurt, on the default engine? Or try to cast Revive one someone who isn't dead? What I'd like to see is more conditions on the skill use myself, which can be used for better AI. For instance, maybe a 'use only if someone needs it' condition. Or 'use only if someone is dead'. That way you could have the AI use revive only when it matters, or, even give it better abilities for when the enemy party is down a person.

As for a built in AI? Can work. But remember, if the AI is made too good, then everyone is going to complain that the AI is cheating in your game, and you will lose customers. It would have to be kept to a reasonable level. The levels suggested by the OP can work though as suggested, so I see no reason to add onto those.

@Andar : The current settings can help, but the fact that the computer can only check for conditions on the enemy itself is part of the problem. We could really use a condition to check the status of the enemy party/status of player party, and a default don't cast a buff on someone who is already buffed check too. Also, the ratings only allow for a limited # of patterns. I got around it in my game by upping all damage so that fights were 2 - 3 turns max (boss battles 4 - 10 turns max except for the midboss and the final boss). But for those who want longer battles, a better target system and/or more patterns would go a long way.
Please vote with the general masses in mind and not your specific plans with the engine. With over 80k installations, is the battle engine sufficient as it Is? Or could we make it better for the dirty casuals so they can better enjoy their product from Steam?

I love the targeting idea, it's the only way my medium, hard, and insane would work. But the scripting needs to be improved too with multiple conditional choices to determine what skill to use and when.

We also need a reaction trigger "if player cast X do Y" or "If player attacked with sword do Y". AI is just as much reaction as it is action.

I would love to see skill learn options too in battle. Like "the enemy observed you and now knows how to resist physical attacks" and enemy learns "physical guard" from the magic list.
I would love to see skill learn options too in battle. Like "the enemy observed you and now knows how to resist physical attacks" and enemy learns "physical guard" from the magic list.
Absolutely no problem, that was possible even in default Ace six years ago.
Give the enemy an attack pattern that includes the "physical guard skill", but have that skill conditioned to a switch "enemy learned physical guard". Then either have that switch turned on by skills from the actor (that won't get you a message however) or have a troop event checking when which skills are used and then place the message and turn on the switch.

The only thing missing for a really good AI is the option to filter for targets. And no, the current target managers are all falling short on that (even yanfly's variant) in my opinion. I already had a script for that for Ace before I switched to MV and I plan to commission a similiar script for MV later.
https://forums.rpgmakerweb.com/index.php?threads/target-manager-v1-0-initial-release.30722/
Unfortunately that script was seldom used because it takes a bit of logic knowledge to use it, but that will always be the case no matter how you want to program an AI, and the better you want it to be the better you have to be on logic.

That is also the main problem with this proposal to improve an automatic AI - you cannot program a general AI for something like this (even big studios have failed there and switched back to specific scripts depending on specific enemies).
And specific AI's can't be done by the editor/engine, because those depend on which skills and values you give to the enemies.

What we really need are the tools to create those specific AI patterns instead of a pre-fabricated AI that will still be dumb when it uses skills that were not created for it.
What we really need are the tools to create those specific AI patterns instead of a pre-fabricated AI that will still be dumb when it uses skills that were not created for it.
Exactly... Making the AI is the game developers work and is actually better off staying that way (so that we can design the enemy exactly the way we want it to). So what we need is for the engine to allow us to do so, which (right now) without the presence of the option to select how enemies choose a target is too limited.
Exactly... Making the AI is the game developers work and is actually better off staying that way (so that we can design the enemy exactly the way we want it to). So what we need is for the engine to allow us to do so, which without the presence of the option to select how enemies choose a target is too limited.
Listen to both of you. This is why I very much dislike these forums, everyone is so damn Libertarian about making changes to the editor. No one wants to make it easier for the dirty/gritty/petty casual user; only the people who know JavaScript should be able to make great games.

Look, I agree that it is up to the game developers to make the AI super amazing, but look at the garbage we give away with the product for the people who have no coding skills. Have you ever used it? Ever? No, go to the editor and do a test battle right now. DO IT! Because when you play it, and it reminds you of a Game Boy Color battle system, you will see just how antiquated the battle system is. It seriously lacks SOUL.

This isn't about your development studios gentleman. This is about casual users having a better battle system so the default battle system could be useful instead of a piece of trash. Many people buy the software to do story writing, not game making. So let's make the product better for THEM.

Look at the voting polls. You smart devs aren't even using the built in battler. 3 of you are making your own and (had I of not put that version of "no" in the voting booth) would have just voted "No" because you can't think of players other than yourself.

So again, think of the product as a whole. Do we want to make this product better for everyone? Or just ourselves?
@BubbleMatrix82 what you're misunderstanding here is that your wish for an general AI is simply impossible. Which part of "even big game studios have failed on that" is difficult to understand?
Because we already put a lot of thought into this - that is exactly the reason why we KNOW that your wish can't be fulfilled. And we are targeting those parts that can be done to improve what is possible.

If you think that it is easy to program a real AI, even for something as limited as a turn-based-game then please tell us how - and prepare to get a noble prize for solving that problem, because that is the level we're talking about here. NO ONE has EVER succeeded in AI programming so far, if you really check all games (or even including non-gaming expert systems out there) then you'll allways see that they only pretend to have an AI and are instead a mess of prescripted decisions. That goes up to the chess programs, which are a lot less complex than a turn-based battlesystem, because you only have six different pieces (and a maximum of 16 pieces in total) that each can only use a single skill/move and only a single hitpoint per piece. And even they need pre-filled libraries of possible strategies to compare to be able to withstand a human player that has even halfway training in chess.
everyone is so dayum Libertarian about making changes to the editor.
We did asked for changes for the editor which as it seems you didn't see.

I even placed suggestions as to what options they could add to make the AI creation easier for people to use.

Possibly add a box in the skill selection which gives us options as to set how enemies will select the target if he use that skill. For starters we can have options like:

Random (default, TRG based)
Battler with Highest Param
Battler with Lowest Param
Battler that has state
Battler that doesn't have state
Those are options that I suggested to be added into the GUI so that even casual users could use them to make less stupid AI with just a few clicks.
Right. Do keep in mind that programming AI is one of THE most complex problems out there. It is still unsolved in many cases. In fact, there might be a million dollar prize for the first to solve it (I know there is for the first to solve the P = NP problem, or to disprove it, which is related to AI and algorithms). So a perfect AI is impossible today, as NO one has figured out how to make it, anywhere. And if you can and actually implement it yourself, you will be rich beyond your wildest dreams.

That being said, I do think there's room for improvement in the AI still, as the current system is about as random as a squirrel in decision making (especially target selection).
I'm not suggesting machine learning here folks, I did say in my post to just build something that can be scaled between easy, medium, and hard. Right now, the standard/casual user is using a really garbage battler. Is the battler even picking its attacks using any logic or is it a dice roll? That's the thing, this battler (if people are even going to use it) needs to have an "easy" mode for dice rolling, "medium" for more planned and targeted attacks, and "hard" for more strategic attacks (think boss fights). How we achieve that to build into the battler is up to you guys. The point is, this is a feature that should come free with the engine/editor; even if the power behind it was a plugin that married the editor/engine.

Let's put it this way, the battler is not up to par to even base level. We absolutely must brainstorm on how to make it better for the dirty casual (I'm open to calling them something else if people have a better way to reference them - but clearly there's a definite disdain for them, so I will continue to use it like an insult to stay on the "in" crowd here).

The point is, we must improve the battle system so people who don't use Yanfly's plugins (or has no clue they exist since they don't go to forums) can make a game just using the engine/editor.
@BubbleMatrix82 : I have an idea on this, but it is a little different from your idea. Different enough I'll probably post it myself once I see if someone else has already done so (and once I'm not at work either). Hope you have a productive debate on this idea though! I'll duck out though unless I have to moderate as I have nothing more to add to this.
Well, it's not like you can't make a game just using the editor.
This is definitely something I'd love to see. Yanfly, and others, have made some nice plug-ins to help make the A.I a bit more controllable and sensible in battle, but it's something which should be in the base program. Even if it's something as simple as telling individual enemies to only use skills on party members when certain conditions are met (low health, missing status effect, etc) rather than having to event every single troop to try and achieve these things.

Original thread: https://forums.rpgmakerweb.com/threads/significantly-improved-native-battle-system-including-ai-upgrade.77474/