Abort
abort([string message])
Aborts the current script, printing the message passed in red. If no message is passed, it will display the all-too-familiar "KoLMafia declares world peace."
Note: "abort" is also usable as a CLI command, and will not be queued.
# useless function, but serves as a code snippet void do_ns_maze() if (item_amount($item[hedge maze puzzle]) < 1) abort("You have no puzzle pieces, man."); else cli_execute("maze"); }