Spontaneous sprite changing. Help?

Here's the problem:

While traveling through a forest, the MCs party walks into an ambush set by a bunch of thugs.

FORRESTROBBRYBEF.PNG

After a lot of threats and arguing, the party and the thugs fight (big surprise, right?) but after they win THIS happens:

FORRESTROBBRYAFT.PNG

All five of the thugs have 3 pages and are set up as such:

1st page = Walking/Standing animation on, SAC priority

2nd page (Activated after a post-battle switch is turned on) = Walking/Standing animation off, Direction Fix on, sprite changed to "damaged" version of original, BC priority.

3rd page (Activated after a "left the forest" switch is turned on) = No sprite, BC priority. This is so the player won't find the defeated thugs still there if they return to the forest later.

I don't know why it's giving me such a hard time. I even deleted the offending sprite entirely, copied one of the other ones, and it's still being difficult. Ideas?
Show us screenshots of your events (especially the one that behaves wrong) and we can tell you your mistake. Most likely it's a wrong directions fix, but that depends on the event logic as well.
This is the event that triggers the ambush:

HELP1.PNG

This is the battle processing:
HELP2.PNG

This is the henchman in question:

HELP3.PNG

HELP4.PNG

HELP5.PNG

Edit: All five thugs are set up the exact same way. The rest of them work perfectly but this specific one does not. I tried swapping sprites to a different character and it worked, but the same problem occurred when I switched back to the original sprite.
Since the henchmen are set up the same, have you tried deleting this event and copy/pasting a working one in its spot?

What event commands do you have in the henchman event, if any? No accidental turn commands or anything?
This is to do with the facing direction of the 'down' sprite. It is not the usual 'direction fix' issue, because the player hasn't interacted with the event.

Ace and MV have this weird thing where an event switching to a new page does not always take the appropriate row (image/direction) specified by the sprite on that page, under certain conditions. It has to do with the original direction of the event, and any movement/facing changes you make on the previously active page. It is so annoying that I wrote scripts to disable it and make them behave like XP does.

The problem with giving us bits of the event page (in this case you cropped it to just the details on the left) is that you've removed other important information. In this case, the event id and name - we have no idea which event that is, or which commands you've applied to it in your 'ambush' event.
This is the entire event, plus a screenshot of what the scene looks like when viewed in event mode.

NEWHELP1.PNG

NEWHELP2.PNG

NEWHELP3.PNG

NEWHELP4.PNG

Edit: This is a shot of the entire henchmen event page.

NEWHELP5.PNG

2nd edit: Just tried deleting the entire "5" event and making a new one from scratch but still got the same problem.
Yes, you would get the same problem, because the problem is not with the event. As I said, it is a weird but apparently deliberate thing in Ace/MV scripts/plugins.

Now that I know it's event 5, I can see you just do a Move Down on it. But its original facing direction is left. Any chance the 'down' sprite is also in the 'left' facing row of the spritesheet (the second or sixth row)? And any chance the sprite that is showing is on the row above that one that should be showing?

Here are the notes I made when I discovered this issue: if 2 tabs have a graphic facing the same direction, and you use a move route to turn an event in a different direction, when the other tab is activated, its direction isn't updated.

So your event is originally facing left, then you issue a 'move down' on it, which leaves it facing downwards. Then you switch to a new tab, and the graphic is in the left-facing row (this is an assumption, until/unless you confirm it), it will not reset the sprite to left-facing.

There are three options:
1. Make the event face left again before you activate the second page
2. Make the event face left again after you activate the second page
3. Modify the script to always make the event face in the correct direction, according to the sprite on the newly-active page

1 and 2 could give you a graphic glitch where you see the wrong image for a brief moment before it changes to the correct one. 3 would affect ALL events, not just this one, and there might be unwanted side effects.

Actually, there is another option, and it might be more suitable than any of the above. Make the event's sprite face down on page 1. Add a new event with no sprite, set to parallel process. On page 1, issue a move route on event 5 to make it turn left. Then do an Erase Event (so the event will face left as soon as the map is loaded, and the player will never see it facing down). Add a page 2 conditioned by switch 9 but don't do anything else on that page. That just stops it repeating after the battle has finished.
Thank you Shaz for the time and effort you put into your reply, but I unexpectedly fixed it last night. What I did was change the initial direction the sprite was facing so that hes down instead of left. I have no idea why the hell that actually worked, but it did. Thanks again for the help.

Original thread: https://forums.rpgmakerweb.com/threads/spontaneous-sprite-changing-help.88955/