name

Returns the name of the room or nil if the room is nameless.

This function does not generate a change.

Function

room.name()

Arguments

None

Return value

Returns the name of the room or nil.

Example

This code creates a room, gives the room a name and uses the name() function to return the name.

.room = room();
.room.set_name('my_room');

// Return the name
.room.name();

Return value in JSON format

"my_room"