MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | SYNOPSIS: |
| 2 | string traceprefix(string prefix) |
| 3 | string traceprefix(int dummy) |
| 4 | |
| 5 | DESCRIPTION: |
| 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 | |
| 13 | EXAMPLE: |
| 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 | |
| 24 | SEE ALSO: |
| 25 | trace(E) |