Welcome to the Creatures Wiki! Log in and join the community.

Difference between revisions of "MESG WRT+"

From Creatures Wiki
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 (from the [[message numbers]]) to the agent the script points at.
+
'''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: '''MESG WRT+''' ''(command)'' '''AGENT''' ''(agent)'' '''MESSAGE_ID''' ''(integer)'' '''_p1_''' ''(anything)'' '''_p2_''' ''(anything)'' '''DELAY''' ''(integer)''
+
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.
+
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

Editnorn.png This article about a CAOS command or function needs further examples.

See also