New clues - now I can't even make the most basic .cap with setting a sprite's variable to a global variable even with a fresh .cap. I think it might have started happening after changing a local variable's scope level and then undoing.
Deleting the registry key didn't fix it. Reinstalling didn't fix it. Opening up an event sheet in a text editor and manually entering the variable there, then reloading, works.