Welcome to the Creatures Wiki! Log in and join the community.
Difference between revisions of "MESG WRT+"
Jump to navigation
Jump to search
m (Formatting fix) |
m (Some formatting) |
||
Line 1: | Line 1: | ||
− | MESG WRT+ is a command that allows to run a script in an agent or creature outside of the currently active script. It sends a message | + | '''MESG WRT+''' is a command that allows to run a script in an agent or creature outside of the currently active script. It sends a message to the agent the script points at. |
==Usage== | ==Usage== | ||
− | Syntax: | + | Syntax: |
+ | MESG WRT+ ''(command)'' AGENT ''(agent)'' MESSAGE_ID ''(integer)'' _p1_ ''(anything)'' _p2_ ''(anything)'' DELAY ''(integer)'' | ||
− | Send a message with the parameters '''_p1_''' and '''_p2_''' to another agent. Waits '''DELAY''' ticks before sending the message. The message_id can be either from the table of | + | Send a message with the parameters '''_p1_''' and '''_p2_''' to another agent. Waits '''DELAY''' ticks before sending the message. The message_id can be either from the table of [[message numbers]] or a custom number. |
==Examples== | ==Examples== |
Revision as of 10:14, 23 June 2018
MESG WRT+ is a command that allows to run a script in an agent or creature outside of the currently active script. It sends a message to the agent the script points at.
Usage
Syntax: MESG WRT+ (command) AGENT (agent) MESSAGE_ID (integer) _p1_ (anything) _p2_ (anything) DELAY (integer)
Send a message with the parameters _p1_ and _p2_ to another agent. Waits DELAY ticks before sending the message. The message_id can be either from the table of message numbers or a custom number.
Examples
This article about a CAOS command or function needs further examples. |