This AI is still in early stages of development.
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 4 Current »
var babelMessage = chat.toBabel(message[, dialect[, data[, replacer]]]);
The dialect of your Babel message – this is usually an abbreviation of the name of your AI, or "ai" if using the Standard Dialect.
Default: "ai" (standard dialect)
"ai"
Optionally send data of any type with the message. Try and keep it small, it's being squeezed in to a chat message after all
For more information on what is supported, see Data types.
Default: undefined
undefined
Function
Array
Optionally specify a JSON replacer array or function to change values or filter out unwanted properties.
Default: Don't change or remove any properties.
Not applied to the following data types:
The message, dialect and data compiled in to a Babel-formatted string, ready for sending to a friendly AI via chat().
Error
var babelMessage = chat.toBabel("defend", "ai", someStructureObj); chat(someAIplayer, babelMessage);
Requires:
Jump to:
Topics: