"Target Rate" does not work when using "Yanfly Row formation"

Honeycam 2024-06-27 20-01-46.gif


We used Yanfly Row Formation to designate the rows of party members. In order, they are Row 1, Row 2, Row 3, and Row 4.

The Target Rate is set to 100%, 80%, and 70% for each line, but like the GIF, enemies only attack allies in the front.

If you remove the Yanfly Row Formation plugin, it seems that the attack target is specified according to the “Target Rate” you set.

What's the problem? When using Yanfly Row formation, how do I adjust my ally's hit probability using Target Rate?
Due to how the row formation works, Melee attacks can only target the first most row to them and can not target other targets behind that row.

So I think you need to change the skill to long range to be able to attack other party members.

Have you got the target core?
Due to how the row formation works, Melee attacks can only target the first most row to them and can not target other targets behind that row.
That is true IFF the OP has intentionally added those notetags to the enemies and skills from the Selection Control plugin.

Just installing the Row Formation plugin does not do any of this. By default, there's no such thing as a Melee attack.

@DakeCraft You might want to post screenshots of the enemy and the skill they're using. I assume you would know if you'd added any notetags that tell it to target specific rows, but might as well check. The Row Formation does not have any code that touches target rate.
I can't check right now, but my first thought would be the row formation hitting the front character first. That would be a main feature of a row formation, I assume.

This sounds counter productive, but could you try turning it around? Give those up front a low target rate, and those in the back a high target rate.

If the plugin selects the first one first and is set to 100%, it might always hit, but what if it is set to 70%? Maybe if it has a chance of not getting targeted, it goed to the next target.

If I'm right, you can set them all to 70%, instead of giving those in the back 100%

I have no idea if this would work, but it probably takes 5 minutes to try.

When I get home, I'll look at the plugin, cause now I'm curious.
That is true IFF the OP has intentionally added those notetags to the enemies and skills from the Selection Control plugin.

Just installing the Row Formation plugin does not do any of this. By default, there's no such thing as a Melee attack.

@DakeCraft You might want to post screenshots of the enemy and the skill they're using. I assume you would know if you'd added any notetags that tell it to target specific rows, but might as well check. The Row Formation does not have any code that touches target rate.


1.png


Code:
<Turn Order Icon: 1136>
<Sideview Collapse>
<No Breathing>

<Enemy Drops>
Item 207: 40%
Armor 410: 0.3%

Item 104: 5%
Item 102: 3%
Item 106: 3%

Item 142: 7%
Item 143: 7%
</Enemy Drops>

<Sideview Battler: E_SV_City1>
<Sideview Battler Frames: 3>
<Sideview Battler Speed: 8>
<Sideview Battler Size: 650, 400>
<Sideview Width: 200>
<Sideview Height: 250>

<Sideview Battler Motion>
Name: Walk
Index: 0
Frames: 1
Speed: 24
</Sideview Battler Motion>

<Sideview Battler Motion>
Name: Guard
Index: 9
Frames: 1
Speed: 24
</Sideview Battler Motion>

<Sideview Battler Motion>
Name: Damage
Index: 1
Frames: 1
Speed: 24
</Sideview Battler Motion>

<Sideview Battler Motion>
Name: Evade
Index: 3
Frames: 1
Speed: 24
</Sideview Battler Motion>

<Sideview Battler Motion>
Name: Escape
Index: 2
Frames: 1
Speed: 24
</Sideview Battler Motion>

<Sideview Battler Motion>
Name: Thrust
Index: 4
Frames: 4
Speed: 5
</Sideview Battler Motion>

<Sideview Battler Motion>
Name: ShieldHit
Index: 5
Frames: 5
Speed: 5
</Sideview Battler Motion>

<Sideview Battler Motion>
Name: ShieldSkill
Index: 6
Frames: 6
Speed: 5
</Sideview Battler Motion>

<Sideview Battler Motion>
Name: Skill
Index: 0
Frames: 1
Speed: 24
</Sideview Battler Motion>

<Sideview Battler Motion>
Name: Spell
Index: 0
Frames: 1
Speed: 24
</Sideview Battler Motion>

<Sideview Battler Motion>
Name: Item
Index: 0
Frames: 1
Speed: 24
</Sideview Battler Motion>

<Sideview Battler Motion>
Name: Dead
Index: 1
Frames: 1
Speed: 24
</Sideview Battler Motion>

<Sideview Battler Motion>
Name: Thrust_H
Index: 7
Frames: 1
Speed: 24
</Sideview Battler Motion>

<Sideview Battler Motion>
Name: ShieldHit_H
Index: 8
Frames: 1
Speed: 24
</Sideview Battler Motion>

<Sideview Battler Motion>
Name: ShieldSkill_H
Index: 9
Frames: 1
Speed: 24
</Sideview Battler Motion>



2.png



Code:
<setup action>
DISPLAY ACTION
CAMERA FOCUS: targets
ZOOM: 110%, 10
motion Escape: user
move type: user, OutQuint
MOVE user: targets, FRONT BASE, 10
WAIT: 10
</setup action>
<whole action>
</whole action>
<target action>
MOVE user: FORWARD, 100, 7
motion Thrust: user
animation 123: user, mirror
WAIT: 5
action animation
action effect
WAIT: 10
custom motion Thrust_H: user
WAIT: 20
</target action>
<finish action>
MOTION Evade: user
move type: user, OutQuint
MOVE user: RETURN, 25
WAIT: 25
MOTION WALK: user
CLEAR BATTLE LOG
RESET ZOOM: 30
</finish action>


3.png



I am sorry for the late reply.
Korean words are names for Skill/State.
Just in case, I am also attaching the plugin I am using. (Quite a lot...)



I can't check right now, but my first thought would be the row formation hitting the front character first. That would be a main feature of a row formation, I assume.

This sounds counter productive, but could you try turning it around? Give those up front a low target rate, and those in the back a high target rate.

If the plugin selects the first one first and is set to 100%, it might always hit, but what if it is set to 70%? Maybe if it has a chance of not getting targeted, it goed to the next target.

If I'm right, you can set them all to 70%, instead of giving those in the back 100%

I have no idea if this would work, but it probably takes 5 minutes to try.

When I get home, I'll look at the plugin, cause now I'm curious.



I set a Target Rate of 999% for the character in the last row, but the character in Row 1 was hit...
Holy cow, that is a ton of plugins.

I know you said your experience changes when you turn off the Row Formation, but have you tried turning off everything else?

A basic first troubleshooting step - especially when you have as many plugins as that - is to turn off everything except the plugin you care about. Save your project. Start a new play test (don't load a save).

If you see the same things there, then we need to look into it further - although I've messed with Row Formation before, and just took another quick look at the code, and I don't see anything that changes targeting.

But if that does work, then you need to figure out which combination of plugins is causing this.

I have not read through your list, have you checked that all of your Yanfly plugins are in the order they're listed on the Yanfly Engine Plugins Web site? And they're the latest version? As are your MV core scripts?
I set a Target Rate of 999% for the character in the last row, but the character in Row 1 was hit...
Spoiler: Original Reply:
Yeah, that is the exact opposite of what I told you to try. 😛 If the first one has a 100% targetrate, than no matter what the last one in the row has as a targetrate, it it will always hit the first one. If my theory is even correct.

I don't think you understand my intentions... Let me try it again:

We have 4 actors, and we put them in a row:
[1] , [2] , [3] , [4]


If the plugin will target [1] first because it is in the first row, and it is set to 100%, it will never hit [2], or [3], or [4]


But if [1] has a hitrate of 50%, it would have 50% to hit [1] and 50% to move on to [2]


And if [2] also has 50%, it will have 25% (=50%x50%) chance to hit [2] and 25% to move on to [3]


---


If you try as I proposed, and it doesn't work, than it was worth the shot. But if you try something completely different, than you can't say my idea didn't work. 😛 Because it was a completely different idea that didn't work, and my idea is still untested.
😛

Okay, so I got a bit time to pick up and study the plugin myself, and it seems like it shouldn't just pick the 1st one all the time.

I also see it binds states to the rows. Is by any chance a state bound to the first row? Does that state maybe have a high target rate? Or maybe even a taunt note-tag, if you use a taunt plugin. Or does any of your gear have high target rate/taunt? Or your weapons? Or... idk... Class? Could be hidden anywhere, if you once added it to test something out, and then forgot about it. 😛 Happens to me all the time, so I thought I'd suggest it.

Original thread: https://forums.rpgmakerweb.com/threads/target-rate-does-not-work-when-using-yanfly-row-formation.169836/