AW EVENT CONSOLE MESSAGE

From ActiveWiki
Jump to navigation Jump to search


Minimum requirements
Added in version 3.3
SDKbuild 24


AW_EVENT_CONSOLE_MESSAGE

Description

User sent a console message.

Notes

A console message is generated whenever a bot calls the aw_console_message method.

Generally console messages are intended to be sent by bots to users in the world. Console messages give the bot the ability to control the full content of a message that appears in the chat window, including italics, bold, and color. Console messages are distinct from chat messages in that they do not need to appear to come "from" anyone in particular.

Note that among the attributes sent, the session number is not provided. There is no way for a bot to know which other bot within the world sent a particular console message. In fact, the message may come from a bot which has never called aw_state_change, which means the sender will not even be visible.

Attributes

AW_CONSOLE_RED
AW_CONSOLE_GREEN
AW_CONSOLE_BLUE
AW_CONSOLE_MESSAGE
AW_CONSOLE_BOLD
AW_CONSOLE_ITALICS

Usage

static void event_console_message (void)
{
  printf ("Console Message: %s", aw_string (AW_CONSOLE_MESSAGE));
}

Triggered by

See also