MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | SYNOPSIS |
| 2 | xcall <object>-><function>(<expression>) |
| 3 | |
| 4 | DESCRIPTION |
| 5 | Calls the lfun <function> of the <object> with <expression> as |
| 6 | argument. The <properties.h> are included. Three objects are allready |
| 7 | defined on invokation. "me" represents the onwer of the Xtool. "here" |
| 8 | is the current room and "obj" is the object which lfun is called. |
| 9 | To use the object access syntax described above, a function called |
| 10 | "get(string)" can be used. If the call returned an object, the variable |
| 11 | "$result" will be set to this object. |
| 12 | xcall includes a private ~/.xtool.h, if it exists, to support user |
| 13 | defined macros. |
| 14 | |
| 15 | EXAMPLES |
| 16 | xcall $me->QueryProp(P_LONG) |
| 17 | xcall /std/thing#145->SetProp(P_SHORT,"a small thing") |
| 18 | xcall /secure/master->add_domain_wiz("hell", "hyp") |
| 19 | xcall $me->move(get("^deepthought"),"go") |
| 20 | (the last one uses the function get() to find the room where our god is) |
| 21 | |