MV "Acting Next" Addon to YEP_BattleAICore

I was hoping there is someone out there that can make a little addon to YEP_BattleAICore. I would like for a new target indicator to be added to the list of indicators. The actor, or enemy, who is making an action next in the rotation.

Something like "Next Actor" or something.

I have a skill that stops the target from taking action, essentially skipping their turn. I would like it be more targeted than what is given in the plugin at the moment.
if you use either Turan's or DreamX's extensions to the battle ai plugin's target eval, then you should be able to use something like
Code:
target == BattleManager._actionBattlers.find(b => b.isActor()) || !BattleManager._actionBattlers.find(b => b.isActor())
as the eval condition and then use the highest agi setting.
it should make it so that the target is the the next actor to act that turn, and if there isnt an actor remaining in the turn order, itd target the fastest one as theyd be the first to act the next.
if you use either Turan's or DreamX's extensions to the battle ai plugin's target eval, then you should be able to use something like
Code:
target == BattleManager._actionBattlers.find(b => b.isActor()) || !BattleManager._actionBattlers.find(b => b.isActor())
as the eval condition and then use the highest agi setting.
it should make it so that the target is the the next actor to act that turn, and if there isnt an actor remaining in the turn order, itd target the fastest one as theyd be the first to act the next.
Thanks for this, but it didn't work I get an error.... "target not defined"
Which of the two plugins did you use? And if its DreamX's, share the exact line for the skill in the ai notetag
I also use Olivia's OTB Battle System so that might be interfering. But for now here is the error screen and the enemy's notetag.

Error.png


The Enemy's Notetag is this (I bolded the line in question):
<JP: 50>
<HideEnemyHPBar>
<HideEnemyMPBar>
<DragonBone Battler: MimicCommon>
<DragonBone Replace Sprite>
<DragonBone ScaleX: -0.7>
<attack animation: 2>
<Element Absorb: 9, 11>
<Battle Select Cursor Position Y: Top>
<Custom Enemy Parameters>
maxhp = Math.min(Math.max($gameVariables.value(228), $gameVariables.value(273) * $gameVariables.value(124)), 2500);
maxmp = Math.min(Math.max($gameVariables.value(229), $gameVariables.value(274) * $gameVariables.value(123)), 2000);
atk = Math.min($gameVariables.value(230) + $gameVariables.value(122), 400);
def = Math.min($gameVariables.value(231) + $gameVariables.value(125), 400);
mat = Math.min($gameVariables.value(232) + $gameVariables.value(126), 400);
mdf = Math.min($gameVariables.value(233) + $gameVariables.value(127), 400);
agi = Math.min($gameVariables.value(234) + $gameVariables.value(128), 400);
luk = $gameVariables.value(280);
exp = 0
gold = 50 * $gameVariables.value(129);
</Custom Enemy Parameters>
<AI Level: 100>
<AI Priority>
USER HP% param <= 50% +++ STATE !== State 12 +++ Random 50%: Skill 124, RANDOM
Variable 61 >= 1 +++ USER HP% param <= 40% +++ Always: SKILL 136, Lowest HP%
RANDOM 40% +++ STATE !== State 6 +++ USER HP% param <= 90%: Skill 142, RANDOM
USER HP% param <= 90% +++ Random 85% +++ EVAL target == BattleManager._actionBattlers.find(b => b.isActor()) || !BattleManager._actionBattlers.find(b => b.isActor()): Skill 162, Highest AGI
</AI Priority>
<Item 36 - 39: 25%>
<Enemy Drops>
Skill Points: 1%
Cure-All: 3%
Elixir: 3%
Panacea: 3%
Angel Feather: 5%
</Enemy Drops>
<Item 15 - 23: 2%>
<enemy drop>
item_code: "i1",
amount: $gameVariables.value(61)
</enemy drop>
<enemy drop>
item_code: "i4",
amount: $gameVariables.value(80),
chance: "2 * v.value(216)"
</enemy drop>
<enemy drop>
item_code: "i7",
amount: $gameVariables.value(80),
chance: "2 * v.value(216)"
</enemy drop>
<enemy drop>
item_code: "i193",
amount: $gameVariables.value(80),
chance: "2 * v.value(216)"
</enemy drop>
you still have to follow the instructions for the dreamX plugin
* Use AIManager.targetCondition("x") when using an eval condition.
* Examples:
* AIManager.targetCondition("target.name() === \"Harold\"")
* AIManager.targetCondition("target.actorId() === 2")
*
* If you're using quotes in your condition, you need to escape them with \
* like I did for Harold (\"Harold\")
*
* Example of a whole ai pattern:
* <AI Priority>
* Eval user.name() === 'Bat' && AIManager.targetCondition("target.name() === \"Harold\""): Skill 25, Highest HP%
* </AI Priority>
you still have to follow the instructions for the dreamX plugin
I'll admit that I have no idea what I'm doing... How do I use that plugin to do what i want? Maybe if I could get the EVAL code and an explanation of what each part of it does? So, I can possibly try and comprehend better and maybe do it myself in the future?
How do I use that plugin to do what i want?
per the instructions and examples, put the code within quotations to make it a string and then use AIManager.targetCondition("x") to run it. it also has examples of it

Maybe if I could get the EVAL code and an explanation of what each part of it does?
The help section had an example of it in use inside of an ai pattern notetag
per the instructions and examples, put the code within quotations to make it a string and then use AIManager.targetCondition("x") to run it. it also has examples of it


The help section had an example of it in use inside of an ai pattern notetag
I was not reading the instruction right... I thought you only put a STRING in the quotes not the whole thing. I have fixed that mistake and it's working like it should be now.

Thank you for helping me out.

Original thread: https://forums.rpgmakerweb.com/threads/acting-next-addon-to-yep_battleaicore.179298/