Event called when an avatar says something.
In order to receive this event, you must first announce your position by calling aw_state_change at least once.
The following attributes are defined during this event:
AW_AVATAR_NAME
AW_CHAT_MESSAGE
AW_CHAT_TYPE
AW_CHAT_SESSION
static char* chat_type[] = {"said", "broadcasted", "whispered"};
void chat (void)
{
printf ("%s %s %s\n", aw_string (AW_AVATAR_NAME),
chat_type[aw_int (AW_CHAT_TYPE)], aw_string (AW_CHAT_MESSAGE));
}
aw_event_set (AW_EVENT_CHAT, chat);