Abort

From Kolmafia
Revision as of 13:07, 25 February 2010 by imported>StDoodle (moved Abort() to Abort)
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");
}