Chat macro: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>Bale
add category
imported>Bale
m needs code
 
Line 19: Line 19:
function_description={{pspan|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.|
function_description={{pspan|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.|


needscode=yes|


see_also={{SeeAlso|chat_private|chat_clan}}|
see_also={{SeeAlso|chat_private|chat_clan}}|

Latest revision as of 09:17, 11 February 2011

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()