MV Question About For Formation

For starters, I am using the Yanfly Row Formation Plugin for my actors, and I have 3 of them in a party.
I wish to have one of the characters use a skill that gives every alive party member that is in row 1 a specific state.
I tried to experiment with certain script calls and common events, such as this


$gameParty.rowAliveMembers(1).addState(3)

And I know that the plugin identifies that there are actors in the front row, but the game identifies them as [object, Object] rather than the actors name.

So I know the plugin identifies that someone is in the first row, but it cant seem to specify who.
Would someone be able to help me out with this, feel free to ask any more questions.
$gameParty.rowAliveMembers(1).addState(3)
That's not valid syntax - rowAliveMembers() will return an array, but addState() is a method of the Game_Actor object.

In order to use addState(), you need to be referencing one specific element of the array, such as $gameParty.rowAliveMembers(1)[0].addState(3)

If you want to apply the state to every actor in that array, you can use JavaScript's built-in array functions.

Code:
$gameParty.rowAliveMembers(1).forEach(actor => actor.addState(3))
That works, thank you so much.
For something else I was wondering, I know that each row can have its own states.
Would it be possible to have a lunatic state event happen from getting these states when you move into these rows?
Yanfly's Buffs and States Core has documentation for Custom Add and Custom Remove Effects.

Original thread: https://forums.rpgmakerweb.com/threads/question-about-for-formation.155990/