blob: 0f46f4556c0f4982c3b90af6ce2b5541932e21c8 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS:
2 string traceprefix(string prefix)
3 string traceprefix(int dummy)
4
5DESCRIPTION:
6 If called with a string, only objects matching this prefix will
7 be traced. The string must not contain a leading "/" because
8 the object names are stored internally without it. If called
9 with a number, the traceprefix will be ignored and all objects
10 will be traced. Returns the last traceprefix or 0 if there
11 wasn't any.
12
13EXAMPLE:
14 object obj;
15 string prefix;
16 obj = find_player("deepthought");
17 prefix = object_name(obj);
18 prefix = prefix[1..strlen(prefix)-1]; /* cut off the leading "/" */
19 traceprefix(prefix);
20 trace(1|2|4|8);
21 ...
22 trace(0);
23
24SEE ALSO:
25 trace(E)