This is, hopefully, a simple question. In my game, I've removed the standard "attack" command (Skill 1 in the Database) from my actors' command lists, using Yanfly's Battle Command List script, and my actors only have access to skills/magic/etc. When I trigger Auto Battle through a state, however, they use the standard attack command instead of the skills that they have available. How can I ensure that the Auto Battle AI only uses abilities that the character is actually capable of using or, alternatively, just *doesn't* use the standard attack?
Problem with Auto Battle
RGSSx Script SupportI've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
There are often problems with changing the first two skills. I don't know what Yanfly's script is meant to do with them and if it's even meant to overcome these issues. Please provide a link to the script.
There are often problems with changing the first two skills. I don't know what Yanfly's script is meant to do with them and if it's even meant to overcome these issues. Please provide a link to the script.
This is the script, but I was hoping to divert attention from it:
https://yanflychannel.wordpress.com/rmvxa/battle-scripts/battle-command-list/
...Because ultimately it's just context for the question of "how do I keep the Auto Battle AI from selecting standard attacks?" The answer *shouldn't* have anything to do with that script, I just mentioned it to answer the inevitable question of "how did you disable that ability in the first place?", you know?
https://yanflychannel.wordpress.com/rmvxa/battle-scripts/battle-command-list/
...Because ultimately it's just context for the question of "how do I keep the Auto Battle AI from selecting standard attacks?" The answer *shouldn't* have anything to do with that script, I just mentioned it to answer the inevitable question of "how did you disable that ability in the first place?", you know?
I believe this will require some scripting to change the default behavior, as the default behavior (as far as I can tell) is to only attack when auto battle is added via a state. You may need to explore how Yanfly's autobattle script handles it, as that script does select choices from all the skills, but only when the entire party is selected to go to autobattle (so *not* when via script). Might be possible to merge those? Not sure.
It MUST have something to do with a script, because the default script FORCES skill 1 to be attack for everybody. So if you are getting around that somehow, a script is already involved.
I had assumed you were using the script to allow you to change the default attack option for characters, which is why I said I don't even know if it's intended to do that. If you want to disable attack, you will need a script.
I had assumed you were using the script to allow you to change the default attack option for characters, which is why I said I don't even know if it's intended to do that. If you want to disable attack, you will need a script.
Hmm, it seems this is more in-depth of an issue than I'd hoped. I had just assumed that the default auto battle behavior was to select (using some algorithm or other) from the character's available abilities. If that's not the case, then it kind of undermines my entire game's gimmick. Oh, well, thanks for the responses. If anyone would be so kind as to point me to the default scripts that control this stuff, I'll consider this issue closed and solved, as it'll just be a matter of figuring out how to tweak them from there. 🙂
You probably need to read up a bit in the manual (F1 in the editor) on the battle system. Yes, it does select from their available list of skills. But ATTACK is a default skill that EVERY battler has, and it is skill #1. And things break if you mess around with Skill #1 or #2.
Closing.
Closing.
Original thread: https://forums.rpgmakerweb.com/threads/problem-with-auto-battle.42830/