Chat macro

From Kolmafia
Revision as of 09:17, 11 February 2011 by imported>Bale (needs code)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
needs(code_samples);

Function Syntax

void chat_macro(string message )

  • message message is the macro you want sent to chat.

message should contain all the information about your macro. Rather than coding a list of things that should be accepted, instead, it will work like an honor system. KoLmafia will continue allowing you to use scripted chat commands until you send something which results in the chat parser believing that you said something in a non-clan channel. Should this happen, all future chat macros (and chat messages, for that matter) executed through script will fail to execute.

CLI Equivalent

In the CLI, simply prefix your command with / and KoLmafia will send that off as a chat message.

See Also

chat_private() | chat_clan()