command.html

final_realms_fluffos_v1/lib/doc/man/html/efuns/interactive/command.html · 884 B

From the archive final_realms_fluffos_v1.zip

Download the archive   « Back to the archive contents

<HEAD> <TITLE> command - execute a command as if given by the object </TITLE> </HEAD> <BODY BACKGROUND=http://www.imaginary.com/~beek/gifs/bg.jpg TEXT=#000000 ALINK=#FFFF00 VLINK=#550000 LINK=#000099> <center> <H1> command - execute a command as if given by the object </H1> </center>
<p>
<b> int command( string str ); </b>
<p>
This efun is only available if NO_ADD_ACTION isn't defined.
<p>
Execute 'str' for the object this_object() as a command (matching against
add_actions and such).  The object must have called enable_commands() for
this to have any effect.
In case of failure, 0 is returned, otherwise a numeric value is returned,
which is the LPC "evaluation cost" of the command.  Bigger numbers mean
higher cost, but the whole scale is subjective and unreliable.
<p>
See also:
<A HREF=add_action.html>  add_action </A>,
<A HREF=enable_commands.html>  enable_commands </A>

Site Stats

Snippets: 1791
Codebases: 571