MV Yanfly Action Sequence & Moving Rows

This is for MV.

I'm using Yanfly's action sequence pack and Row Formation. I'm attempting to do a skill that, if the enemy can attack... they use a ranged ability, but if the player is using barrier... the enemy is going to move forward 1 row instead. This is part of my action sequence, but the enemy isn't moving forward. I'm guessing I have the "row movement" incorrect, but I can't figure out what it should be. Any ideas (what I'm currently using is the red font below)?

<target action>
if target.isStateAffected(2)
if $gameVariables.value(14) >= 2
SE: VA_Lurker_Battle_05, 100, 100, 0
wait: 90
battler.alterRow(1)
else

Thanks in advance to anyone that can help.
you'll wanna replace battler with something like either... $gameActors.actor(1) or $gameParty.members()[0]... it depends on which battler you want to change rows.

second, you wanna put "eval:" in front of it because it's a script call. so something like...

eval: $gameActors.actor(1).alterRow(1)

that should move actor 1 by 1 row.
you'll wanna replace battler with something like either... $gameActors.actor(1) or $gameParty.members()[0]... it depends on which battler you want to change rows.

second, you wanna put "eval:" in front of it because it's a script call. so something like...

eval: $gameActors.actor(1).alterRow(1)

that should move actor 1 by 1 row.
Thank you for this. I forgot to mention this is an enemy using that. How would I write that out? It's Enemy 3 in this situation.
oh enemy 3, ok that'd be...

eval: $gameTroop.members()[2].alterRow(1)

it's 2 since these start from 0 I think. that should work.
Thank you. I'll give that a try!
@zerobeat032 is close, but it's the wrong idea to try to be using a specific troop member. That means you'd have to rewrite this entire skill and action sequence for each enemy depending on troop position...I don't even know how you'd make that work 😛

Just use the variables provided to you in action sequences.
Code:
user.alterRow(1)
crap lol... dunno why I didn't think to just use user. that way you aren't pigeon holed into needing the troop numbers all the time.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-action-sequence-moving-rows.154724/