This is pretty cool to see, I've actually started recently on creating a lighter mafia-esque system that can be loaded into KoL directly via chat commands. My intention with it is to provide a mafia-lite experience that works anywhere, in particular mobile. The fact that KoLMafia will support JS...
I wasn't aware of either the "try;" thing or the capturing the return value to prevent dark magic happening as neither of those are documented in the function's explanation: http://wiki.kolmafia.us/index.php?title=Cli_execute which is what I was following to try to write that script. Based on...
Basically cli_execute can for some commands immediately end the ASH script, this is observable with the following script:
void main() {
cli_execute("Briefcase collect");
cli_execute("terminal extrude booze");
cli_execute("terminal extrude booze");
cli_execute("terminal extrude...