MV Battle A.I. & Row Formation

I post in here way too much LOL Anyway... another question, please 🙂

I'm scripting out a battle where the boss can heal his minions when they're <=30%. I have that as follows:

<AI Priority>
Troop Alive Members >= 2 +++ HP% param <= 30%: Skill 52
</AI Priority>

This works perfect.

However; I'm using Row Formation, and I want the boss to only be able to heal minions that are in the same row as him. Right now I have it set up where he can only use the heal skill in Row 1 Only, which is nice. However, if his minions get pushed back to row 2 or 3... he can still heal them while in row 1.

I figured I could pair this with the Selection Control and add to my skill notes:

<Select Conditions>
Row 1 Only
</Select Conditions>

That doesn't pair with it, and seems to take priority over the Row Formation <Row 1 Only>. He can, at that point, heal any target in row 1... even if he's in Row 3 or 2. Here's a screenshot of what I figured would work... but it isn't. Ultimately, I created 3 heal skills. One for <Row 1 Only> <Row 2 Only> & <Row 3 Only> hoping that pairing those with the select conditions, and changing the # to match that row, would work... it doesn't.

I'm guessing this is something I'd need to do through Lunatic Mode?

1633300342446.png


Thanks again.
I dunno why that doesn't work as is, but have you tried referencing the states that you're using to determine rows? And use the A.I. condition State: x?
I dunno why that doesn't work as is, but have you tried referencing the states that you're using to determine rows? And use the A.I. condition State: x?
That worked! OMG. Here's the Battle A.I. I entered in case someone else has a similar issue:

<AI Priority>
Troop Alive Members >= 2 +++ State === State 298 +++ HP% param <= 30%: Skill 52
</AI Priority>


Thanks again 🙂
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/battle-a-i-row-formation.140994/