blob: a3041b0dfd514fef11ab6b0ed13fc01be093476a [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS:
2 void write(mixed msg)
3
4DESCRIPTION:
5 Write out something to the current player. What exactly will
6 be printed in the end depends of the type of msg.
7 Please mind: if there is no current player (this_player()), the
8 function will output directly to the driver debug log. Please check
9 before!
10
11 If it is a string or a number then just prints it out.
12
13 If it is an object then the object will be printed in the
14 form: "OBJ("+object_name((object)mix)+")"
15
16 If it is an array just "<ARRAY>" will be printed.
17
18 If the write() function is invoked by a command of an living
19 but not interactive object and the given argument is a string
20 then the lfun catch_tell() of the living will be invoked with
21 the message as argument.
22
23EXAMPLES:
24 write("Hello world!\n");
25
26 Just print out a string.
27
28 write(this_player());
29
30 This will print out something like "OBJ(std/player#1234)".
31
32 write( ({ "blub" }) );
33
34 Will print out "<ARRAY>".
35
36SEE ALSO:
37 say(E), tell_object(E), tell_room(E), shout(E), catch_tell(L)