I posted this in the snes9x lua thread, but I thought I ought to post it here as well:
Here's a (hackneyed) script I created, specifically for the Mega Man X 100% run. I really have next to no experience with scripting (other than what I've learned here), so it can definitely be cleaned up... a lot. But it works!
It includes:
- X and Y speeds
- X and Y positions (including subpixel position)
- An approximate hitbox for Mega Man
- Numerical values for health and weapons (in corresponding colors)
- HP values for enemies
- Predictors for Mega Man's buster charge (the colored 0s underneath him)
- An "Upgrade Progress" bar for fun, which increments every time Mega Man gets a heart tank, energy tank, new weapon from a boss, or piece of armor.
- Leftover attempt at a lag counter somewhere in the script