Here's an example what the generated text file looks like: https://pastebin.com/raw/D8BskNW8
You can edit the data however you like: change script commands, add new ones, remove existing ones, etc. It might even be possible to add all-new animation scripts (note that a name always has to start with a unique number), though I'm not sure if there's much point in doing that since we can't easily modify the gameplay logic.
Some notes:
- Animation scripts are executed instantly with the exception of the "ShowFrame" command. The game will always wait one gameplay tick after each "ShowFrame" command.
- Some commands have unknown usage. Though, I suspect UnknownOp23 means looping the current active frame.
- I've made the tool automatically assign names to a bunch of the animations that I was able to identify, but most of them will only be a number.
Download and usage information: https://github.com/FluffyQuack/POPtool/releases
Video showcase: