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

Difference between revisions of "MESG WRT+"

From Creatures Wiki
Jump to: navigation, search
(Created mesg wrt+ page)
 
m (Formatting fix)
Line 3: Line 3:
 
==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.
  

Revision as of 06:10, 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 (from the message numbers) 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