Abort: Difference between revisions
Jump to navigation
Jump to search
MapleMario (talk | contribs) New page: '''abort([string message])''' <br />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 pe... |
|
(No difference)
| |
Revision as of 13:07, 25 February 2010
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");
}