Xelagot action script

Events: (3.5) Botgram

Refer to Events for general information about events.

Xelagot version 3.501 or higher


OnBotgramEvent <eventlabel>
Event type: 5500
is triggered by bot sending a botgram in a 3.5 universe build 51 or higher that has enabled botgrams.

To send such a botgram to other bots, you can use these statements:
Botgram %citnum $message
BotgramConcat %citnum elements
Botgram &p $message
BotgramConcat &p elements
note that the citizen number of person &p will be used to send a botgram to the bots having that citizen number. Variable &p may be a bot or a citizen, not a tourist.

Specific statements (must be inside the event handler):

GetEventType %a stores the event type code in variable %a
GetEventResult %a stores the event result code in variable %a. In this specific event, this is the botgram type (0 by default), not an error code.
GetAvatarPerson &p
GetChatPerson &p
Retrieves some of the data of the bot that sent this botgram. CAUTION! this person variable does not represent a full entity. Only the name, citizen number and universe are valid, the other data (session, etc.) are invalid!
GetMessage $m
GetChatline $m
Retrieves the message sent by the bot. This message can be up to 1000 bytes long, and contain line-breaks and other non-printable characters.