Abort

From Kolmafia
Revision as of 21:06, 9 May 2009 by imported>MapleMario (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...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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");
}