How do I control what frames/sprite the sideview actor uses while affected by a state?

I want to make the sideview enemies change their sprite based on what state they're affected by.

I'm trying to use Yanfly's action sequences to do this, but I don't think I can affect how the sprite looks while it's not using a skill. Does anyone have a good solution for this?
Try this:
perhaps check this thread?

there's also plenty of similar thread regarding changing enemy SV with state.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-control-what-frames-sprite-the-sideview-actor-uses-while-affected-by-a-state.153053/