YEP-Row Formation Lunatic Mode help

Hello everyone, I am trying to do a military-style game, so formation managment would be a great help, but I'm not very got with javascript yet, so I would like to know if there's a script to imput into the Yanfly's Row Formation Plugin's Lunatic mode to to the following:

-Apply a state only if a certain enemy is in the fron row (I want to make some enemy shielded troops that prevents my actors to shoot at people behind them)

-Apply a state only if a certain actor is in a certain row (for example, I want to give my sniper actor a buff if they are in the last row)

-Have some abilities ignore rows all along (granades for example, but probably the AoE plug in would take care of that)

Thank you so much!!
I might be wrong here, but I think you can do all of that with the base settings of the row plugin and the use of the AoE and Taunt plugins.
If you open the parameters of the row plugin and scroll down you can find settings for the different rows you can change (like description, states to automatically apply when an actor is in a certain row etc.)

To have certain states only be available to specific actors you could try giving the other actors resistances against these states.

All of the above also works for enemies as far as I know.
I might be wrong here, but I think you can do all of that with the base settings of the row plugin and the use of the AoE and Taunt plugins.
If you open the parameters of the row plugin and scroll down you can find settings for the different rows you can change (like description, states to automatically apply when an actor is in a certain row etc.)

To have certain states only be available to specific actors you could try giving the other actors resistances against these states.

All of the above also works for enemies as far as I know.

Yeah, but you need lunatic mode to bind the states to different Actors with the "condition" portion of that code.
That's why I was asking the help of somebody with javascript abilities
I can't test it right now but I think you should be able to add a resistance to actors in the database to prevent them from getting the states in the rows.
Just like you would do to prevent them from becoming blinded for example.
I can't test it right now but I think you should be able to add a resistance to actors in the database to prevent them from getting the states in the rows.
Just like you would do to prevent them from becoming blinded for example.

This is actually a great idea to go around my second problem.

Thank you.

Now I just have to solve the other two xD
There's that "condtion" part of lunatic mode that would help, but I need to wait for someone who can give me the right "eval" strings to put there..

Original thread: https://forums.rpgmakerweb.com/threads/yep-row-formation-lunatic-mode-help.77916/