Thanks, that helps a bit.
Here's my WIP of a script I'm working on to help me with the next version of the Boulder Dash TAS. It's mostly only useful when playing at slow speeds.
http://www.rphaven.org/cad/TAS/boulderdash.lua
Features:
- Counts amoebas on stages that have them.
- Shows whether falling objects are about to fall, are falling, are at rest, or will topple to the left or the right side off something else.
- Indicates the next direction enemies will move, or if they can't move, shows the direction they will attempt to move. (The arrow turns blue when the enemy will wait a turn. The enemy will still move that turn if their path is unblocked before then.)
- Tries to draw a red X on every tile that will kill you if you are standing on it at the beginning of the next turn. (Note: an X can still appear on top of you as you are moving into a tile, and you will be safe as long as you immediately move off that tile.)
- Draws the invisible "placeholder" barriers that block movement when certain objects (like the player) move.
- Marks the exit tile.
Bugs:
- Red Xs are only about 95% accurate. I'm still weeding out stuff.
- Draws junk on the screen when not in a level.
This is my first lua script, I'm pretty satisfied with it so far.