I'm at my wit's end with this bug! So to start, the scenario and what I'm expecting to happen:
I'm making an autobattler, so all actors get a state that gives them the Auto Battle flag at the start of a fight. Auto Battle AI lets you fine tune what actions actors take (with the default auto battle, it just won't use healing skills if everyone's at full health, or non damaging skills if they only apply a state, for instance, doing nothing instead.)
Note that I SEAL the basic attack command with the state that applies auto battle, characters will always use a unique skill instead of basic attacks.
For single actions, this works fine. If I use the Action Times+ trait, it just doesn't work. Actors get one action per turn no matter what. I intend to have a character that acts twice, and maybe an item to bestow that ability on any character.
Plugin list for reference:
BattleEngineCore is set to dtb. I did try a couple of other plugins, namely Yanfly's stb and DreamX's itb (https://forums.rpgmakerweb.com/index.php?threads/instant-turn-battle.58464/) but went back to dtb after neither worked.
What I've tried:
-Using Yanfly's Instant Cast. Any actors with auto battle simply ignore it, getting one action per turn no matter what, even with the Action Times+ trait. This happens when both ActorAutoBattleAI and InstantCast are on.
-Not using the auto battle flag on the actor I want to act twice. The Action Times+ trait DOES work here. She can manually input two commands, AND Instant Cast works if I add <Instant Cast> to her skill (this also makes it infinitely spammable when inputting manually, but all actors should be autobattling in this case)
-Turning OFF ActorAutoBattleAI, but still using the auto battle flag. This makes Action Times+ work again, causing her to correctly use her skill twice. However, she seems to STILL ignore Instant Cast; remember how with two actions, her skill with the <Instant Cast> tag could be used infinitely if you manually input it as her first action? It only happens twice! That also makes a previous problem reappear though: Healers will skip their turn if everyone's at full health and actors with skills that only apply states (and no damage or healing) will skip their turn always.
Note: The same thing applies to enemies; if they have <AI Priority> conditions from BattleAICore, Action Times+ doesn't work for them, they only get one action per turn. If they DON'T have <AI Priority> and are using the built in action patterns, Action Times+ DOES work for that enemy.
In a new project with JUST the related plugins enabled:
Actors with <AI Priority> still ignore Action Times+, as do enemies, just like before. So it's likely not a plugin conflict with anything else I have in the main project, and is an issue with Yanfly's plugins themselves.
All I can think of is for someone to code a patch that lets Action Times+ work with Yanfly's BattleAICore. I'm not sure how it disables it or interacts with autobattle. Yanfly has moved on from MV and from plugin dev in general if I recall, so there's little hope for any kind of official patch. Anyone have any ideas? Either for making Action Times+ work, or patching the default auto battle so it just randomly picks from skills the actor knows, even if it would choose a "suboptimal" option?
EDIT: For now I removed BattleAICore and ActorAutoBattleAI from the project and just tweaked the default autobattle in the following ways:
This steps through the action list starting at j=1. Sometimes actors would do nothing, and I'm pretty sure index 0 is always Attack, which I've sealed via the autobattle state, so they do nothing.
Commented out how it evaluates actions and just returns a random number from 1-100. This will effectively pick a random skill from all the skills an actor knows. I'm not sure if decideRandomTarget() is actually influencing anything, they seem to focus one enemy still. So I just made my single target skills target one random enemy instead of one enemy.
EDIT 2: Reverted this comment, it was making single target healing always target the first actor in the party. Having the party focus one enemy seems to feel better anyhow, and I can target X random enemies if I don't want that.
So...I wouldn't call this "solved" per se, but I made a decision and forged a workaround.
I'm making an autobattler, so all actors get a state that gives them the Auto Battle flag at the start of a fight. Auto Battle AI lets you fine tune what actions actors take (with the default auto battle, it just won't use healing skills if everyone's at full health, or non damaging skills if they only apply a state, for instance, doing nothing instead.)
Note that I SEAL the basic attack command with the state that applies auto battle, characters will always use a unique skill instead of basic attacks.
For single actions, this works fine. If I use the Action Times+ trait, it just doesn't work. Actors get one action per turn no matter what. I intend to have a character that acts twice, and maybe an item to bestow that ability on any character.
Plugin list for reference:
BattleEngineCore is set to dtb. I did try a couple of other plugins, namely Yanfly's stb and DreamX's itb (https://forums.rpgmakerweb.com/index.php?threads/instant-turn-battle.58464/) but went back to dtb after neither worked.
What I've tried:
-Using Yanfly's Instant Cast. Any actors with auto battle simply ignore it, getting one action per turn no matter what, even with the Action Times+ trait. This happens when both ActorAutoBattleAI and InstantCast are on.
-Not using the auto battle flag on the actor I want to act twice. The Action Times+ trait DOES work here. She can manually input two commands, AND Instant Cast works if I add <Instant Cast> to her skill (this also makes it infinitely spammable when inputting manually, but all actors should be autobattling in this case)
-Turning OFF ActorAutoBattleAI, but still using the auto battle flag. This makes Action Times+ work again, causing her to correctly use her skill twice. However, she seems to STILL ignore Instant Cast; remember how with two actions, her skill with the <Instant Cast> tag could be used infinitely if you manually input it as her first action? It only happens twice! That also makes a previous problem reappear though: Healers will skip their turn if everyone's at full health and actors with skills that only apply states (and no damage or healing) will skip their turn always.
Note: The same thing applies to enemies; if they have <AI Priority> conditions from BattleAICore, Action Times+ doesn't work for them, they only get one action per turn. If they DON'T have <AI Priority> and are using the built in action patterns, Action Times+ DOES work for that enemy.
In a new project with JUST the related plugins enabled:
Actors with <AI Priority> still ignore Action Times+, as do enemies, just like before. So it's likely not a plugin conflict with anything else I have in the main project, and is an issue with Yanfly's plugins themselves.
All I can think of is for someone to code a patch that lets Action Times+ work with Yanfly's BattleAICore. I'm not sure how it disables it or interacts with autobattle. Yanfly has moved on from MV and from plugin dev in general if I recall, so there's little hope for any kind of official patch. Anyone have any ideas? Either for making Action Times+ work, or patching the default auto battle so it just randomly picks from skills the actor knows, even if it would choose a "suboptimal" option?
EDIT: For now I removed BattleAICore and ActorAutoBattleAI from the project and just tweaked the default autobattle in the following ways:
This steps through the action list starting at j=1. Sometimes actors would do nothing, and I'm pretty sure index 0 is always Attack, which I've sealed via the autobattle state, so they do nothing.
Commented out how it evaluates actions and just returns a random number from 1-100. This will effectively pick a random skill from all the skills an actor knows. I'm not sure if decideRandomTarget() is actually influencing anything, they seem to focus one enemy still. So I just made my single target skills target one random enemy instead of one enemy.
EDIT 2: Reverted this comment, it was making single target healing always target the first actor in the party. Having the party focus one enemy seems to feel better anyhow, and I can target X random enemies if I don't want that.
So...I wouldn't call this "solved" per se, but I made a decision and forged a workaround.