MV Yanfly Action Sequences help

Hey all,
I'm trying to get my characters to face the enemy they're attacking. Generally this isn't a problem unless they're attacking an ally. In a 3 person team, if actor 1 (top character) attacks actor 3 (bottom character), he'll step out to actor 3 and turn to face them before attacking. If actor 1 attacks actor 2 (middle character), he'll step out to actor 2, but face away from them for the attack. I have a similar issue with the enemies, but it seems that they won't face their target (if it's an ally of theirs) at all, they just step out, swing, step back. When anyone targets an enemy, there are no issues, this only affects attacks on allies.

I have 2 attack skills - one for the actors, one for the enemies:
For the actors to use (skill 1):
Spoiler
<setup action>
display action
immortal: targets, true
if user.isActor() == true && user.attackMotion() != 'missile'
motion walk: user
move user: targets, front, 30
wait for movement
end
if user.isActor() == true && user.attackMotion() == 'missile'
perform start
wait for movement
end
if user.isActor() != true
enemy effect: user, whiten
end
</setup action>

<target action>
if user.isActor() == true
motion attack: user
wait: 10
attack animation: target
wait for animation
else
wait: 10
attack animation: target
wait for animation
end
action effect
if target.isActor() !== true
enemy effect: target, blink
end
wait: 10
</target action>

<finish action>
clear battle log
immortal: targets, false
if user.isActor() == true && user.attackMotion() !== 'missile'
face user: home
motion walk: user
move user: home, 20
wait for movement
end
perform finish
wait for movement
</finish action>
<Select Conditions>
Not State: 13
</Select Conditions>

And for the enemies to use (skill 25):
Spoiler
<target action>
wait for movement
if user.attackMotion() !== 'missile'
move user: target, front base, 20
wait for movement
end
motion attack: user
motion wait: user
action animation: target
action effect: target
death break
wait: 30
</target action>

The enemy attack skill is called in the notetags for Yanfly's AI Core if it matters.
Rather than spoiler tags, you should use the code tags (the </> button on the top) for this kind of thing. It will preserve indenting and make sure that anything in brackets is displayed.

Your problem is pretty simple...you want the actors to face their targets, but I don't see any "face" commands. In the finish action, you put a "face user: home", but I don't see where you've put it anyplace else to try to do what you say you want.

So in your setup action, after you do the "move user" and "wait for movement," just add "face user: target"
I'll give that a shot in just a second, but I guess I need to ask why some characters will face some other characters sometimes and not others?
Unless you use commands to change it, you should find that battlers face the direction they last moved/are moving in.

So, in the default actor positioning, actor 1 moving to actor 3 will go down and right, which means they're facing right from the movement. Going to actor 2, depending on the offset you defined in the movement, may not move right at all, only down.

(it also means that, as far as I know, that "face user: home" command in your finish action is pointless)
Unless you use commands to change it, you should find that battlers face the direction they last moved/are moving in.

So, in the default actor positioning, actor 1 moving to actor 3 will go down and right, which means they're facing right from the movement. Going to actor 2, depending on the offset you defined in the movement, may not move right at all, only down.

(it also means that, as far as I know, that "face user: home" command in your finish action is pointless)
Making the change you suggested fixed my problem with it. The "face user: home" command may indeed be pointless but I lack sufficient knowledge to say for sure one way or the other and since it doesn't seem to be hurting anything, I'll leave it be.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-action-sequences-help.147033/