In my battle system you get an instant cast "movement" turn which is limited by a state, then a normal turn. I have it working for actors and enemy AI but not Actor AI for some reason. The Actor AI will only use one skill no matter what.
Enemy even get an extra "thinking" turn before moving that is offloaded to my plugin. I had problems with STB, row movement and instant cast before so I also have my plugin handling movement for actors and enemies. I tried making this auto battle scene work with forced actions in troop events but they get buggy.
Using a Yanfly plugin list, except a few for few not related.
I'll try to list the relevant plugins.
Battle_A.I._Core_(YEP)
Actor_Auto_Battle_A.I._(YEP)
Battle_System_-_STB_(YEP)
Instant_Cast_(YEP)
Row_Formation_(YEP)
Here is my plugin list if you really want to see it.
Here are the AI lists I have. Note the enemy lists (Wolves) work fine.
Looking at the actor AI plugin, it seems it just uses most of the code from the BattleAI plugin so not sure why this doesn't work. This is the only real technical challenge left to solve to have the working demo out for this game.
Enemy even get an extra "thinking" turn before moving that is offloaded to my plugin. I had problems with STB, row movement and instant cast before so I also have my plugin handling movement for actors and enemies. I tried making this auto battle scene work with forced actions in troop events but they get buggy.
Using a Yanfly plugin list, except a few for few not related.
I'll try to list the relevant plugins.
Battle_A.I._Core_(YEP)
Actor_Auto_Battle_A.I._(YEP)
Battle_System_-_STB_(YEP)
Instant_Cast_(YEP)
Row_Formation_(YEP)
Here is my plugin list if you really want to see it.
Here are the AI lists I have. Note the enemy lists (Wolves) work fine.
JavaScript:
//Mae Auto
<AI Level: 100>
<AI Priority>
Eval 2 > user._row: Move Backwards, User
Eval $gameParty.members()[0]._row > user._row: Move Backwards, User
Eval $gameParty.members()[0]._row < user._row: Move Forwards, User
Always: Heal I, Lowest HP%
Eval $gameParty.rowAliveSize(1) >= 1: Attack
Always: Wait
</AI Priority>
//Cory Auto
<AI Level: 100>
<AI Priority>
Eval user._row < 2: Move Backwards, User
Eval user._row > 2: Move Forwards, User
Always: Point Shot
Always: Stun Shot
Always: Attack, Lowest HP%
Always: Wait
</AI Priority>
Caravan Master Auto
<AI Level: 100>
<AI Priority>
Battle Cry
Eval user._row === 1: Horse Run Back, User
Eval user._row === 4: Horse Run Up, User
Always: Horse Charge
Always: Attack
Always: Battle Cry
Always: Wait
</AI Priority>
//Wolves
<Sideview Weapon: 0, swing, 16>
<Default Row: 4>
<Sideview Battler: SV_Wolf>
<AI Level: 100>
<AI Priority>
Always: SKILL 46
Switch 201 On: Enemy Charge
Switch 162 On: Enemy Move Up Line
Switch 163 On: Enemy Move Forward, User
Eval $gameParty.rowAliveSize(1) >= 1: Attack
Always: Wait, User
</AI Priority>
//Werewolf
<Default Row: 3, 2>
<Sideview Battler: WerewolfScratchAttack>
<Sideview Weapon: 10>
<Sideview No Collapse>
<Sideview Attack Motion: Swing>
<Scale Sprite: 150%>
<Sideview Idle Motion: victory>
<AI Level: 100>
<AI Priority>
Always: Enemy Move Forward
Switch 162 On: Enemy Move Up Line
User._row === 1 +++ $gameParty.rowAliveSize(1) >= 1: Death Claw, Highest MaxHP
Eval $gameParty.rowAliveSize(1) >= 1: Attack, Highest MaxHP
Always: Death Growl, User
Always: Wait, User
</AI Priority>
Looking at the actor AI plugin, it seems it just uses most of the code from the BattleAI plugin so not sure why this doesn't work. This is the only real technical challenge left to solve to have the working demo out for this game.
I am finally getting there though!