&arg
From Tapestries MUCK
(Difference between revisions)
(defined the &arg special variable) |
m (Categorized) |
||
Line 1: | Line 1: | ||
+ | [[Category:functions (MPI)]][[Category:Variable Handling Functions (MPI)]] | ||
+ | |||
==&arg== | ==&arg== | ||
Line 5: | Line 7: | ||
For example: | For example: | ||
<mpi>{null:{tell:***{name:me} looked at {&cmd} {&arg},{owner:this}}}</mpi> | <mpi>{null:{tell:***{name:me} looked at {&cmd} {&arg},{owner:this}}}</mpi> | ||
+ | |||
The above string of [[MPI]] could be placed in your description, various [[cinfo]] fields, the descriptions of things in _details, so on and so forth, and always print out ''So-and-So looked at whatever-command-they-ran''. | The above string of [[MPI]] could be placed in your description, various [[cinfo]] fields, the descriptions of things in _details, so on and so forth, and always print out ''So-and-So looked at whatever-command-they-ran''. |
Latest revision as of 10:43, 20 August 2010
&arg
You can use {&arg} and {&cmd} in MPI to reference the command and the argument that triggered the MPI. The {&arg} variable references everything from the second word to the end.
For example:
{null:{tell:***{name:me} looked at {&cmd} {&arg},{owner:this}}}
The above string of MPI could be placed in your description, various cinfo fields, the descriptions of things in _details, so on and so forth, and always print out So-and-So looked at whatever-command-they-ran.