MV Row Formation

So I am using YEP Row Formation plugin and am running into an issue. Whenever I give a certain stat to a row of actors, the enemies in those rows gets the stat too. How do I make it so only the actors get the stat for that row?
Plugin: http://www.yanfly.moe/wiki/Row_Formation_(YEP)
1712955526375.png

1712955550552.png

1712955599763.png
I'd assume give your enemies immunity to that state.
if it allow event, you can check if its an actor or not 🙂
I'd assume give your enemies immunity to that state.
The only problem with that is that I would have to make a copy of the stat for the enemy so that if an enemy uses a skill that adds that stat, it would have to be the copied stat.
if it allow event, you can check if its an actor or not 🙂
What do you mean? I don't understand.
Untested, but you may be able to change this method in the original plugin with the following to have it only apply to Actors and not Enemies. Syntax could be totally wrong, though. Like I said, untested.

EDIT: Alright, tested it. Seemed to work for me.

Yanfly.Row.Game_BattlerBase_states = Game_BattlerBase.prototype.states;
Game_BattlerBase.prototype.states = function() {
var array = Yanfly.Row.Game_BattlerBase_states.call(this);
if ($gameParty.inBattle()) {
if (this.isActor()) {
this.addRowStates(array);
this.sortRowStates(array);
}
}
return array;
};
Untested, but you may be able to change this method in the original plugin with the following to have it only apply to Actors and not Enemies. Syntax could be totally wrong, though. Like I said, untested.

EDIT: Alright, tested it. Seemed to work for me.

Yanfly.Row.Game_BattlerBase_states = Game_BattlerBase.prototype.states;
Game_BattlerBase.prototype.states = function() {
var array = Yanfly.Row.Game_BattlerBase_states.call(this);
if ($gameParty.inBattle()) {
if (this.isActor()) {
this.addRowStates(array);
this.sortRowStates(array);
}
}
return array;
};
Saved this as a new .js and this error came up as soon as I started the testplay:
1712961157210.png

Edit: Nevermind. Found the part that needed edited. It worked.
Edit 2: It worked, but now if an enemy uses a skill that should give that status effect, it no longer gives the status.
You have actions that also grant the same states that the party members get for being in a certain row? As a workaround, you could make a second copy of those states in your database, and have the enemies use the other copy of it. Unless of course, it's just breaking enemies gaining states altogether...

Have you tried with a state that isn't also one of the Row Formation states?

I mean, you did ask for it to affect only Actors and not Enemies. Seems like it's doing what it's supposed to now.
What do you mean? I don't understand.
I mean more, if you can eval the parameter, you could do somerthing like:

if($gameParty.actor()) {[state1, state2]}

and maybe something similair to the enemies.
or maybe there is a way to decide the rows different for row 1, 2, 3 so it looks
around:

row -3
row -2
row - 1 (- row = enemy side)
row 1
row 2
row 3 (+ are the actor side)

so the state can be applied more accurately per side.
but this probably require a refactoring the row sections of the plugin.

Original thread: https://forums.rpgmakerweb.com/threads/row-formation.167691/