blob: 43e21ea4bcafd348700a51dc4db35a9b0b7764ee [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS
2 xcall <object>-><function>(<expression>)
3
4DESCRIPTION
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
15EXAMPLES
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