Is it possible to check if a specific (or any) animation is currently playing as a script condition?

This regards animations on the map, not in the battle system which I don't use. This would definitely spruce up my system but if it can't be done it's not crucial to my game.

I'm having some slight issues with animations playing twice or not at all, and without going into too much detail, what would hopefully fix it would be a conditional branch, with a condition of if a certain (or any, preferrably) animation is currently playing as a script.

I'm currently using switches but the animations can sometimes overlap the switch functions, again for complex reasons, if I could simply tell when an animation finishes playing instead it would likely work a lot better.

So basically, I need an If animation X (or any) is currently playing script for a conditional branch, if it's at all possible.

I had a look at the official commands but couldn't tell if it would work or not, so any help from experts would be greatly appreciated.
not really, because that is not how programming works.

Usually you need to set a flag if something starts and remove the flag if it ends, and then check the flag instead of the process itself.
That is because any animation (and alot of other things) are simply lists of commands handled by the main game loop.
If you're interested in more info about that, follow the link "bughunting" in my signature.

The solution to your problem depends on a lot of details and the actual code of the events, so you'll have to show us that code or explain in more detail before we can point you into the correct direction.
OK many thanks, actually managed to fix it in the interim, it was a complex issue more related to how the graphics and animations were lining up, but not a bug, that amazingly seems to be fixed by using the SuperOrangeMovementEx plugin and setting it to 2 movements per 48 size square instead of one. The half square movement has made it look a lot smoother too.

It fixed an issue with overlapping animations and all is good in that regard, but now having an issue with SuperOrangeMovementEx not stopping right next to events on occasion, might be a plugin setting so I'm checking them all out.

Edit: That issue was with Super Orange was seemingly it not waking right up to every side of an event if the event was on an unpassable tile, changing the tile to a fully passable one fixed it perfectly.

Original thread: https://forums.rpgmakerweb.com/threads/is-it-possible-to-check-if-a-specific-or-any-animation-is-currently-playing-as-a-script-condition.79973/