/tg/ Station 13 - Modules - TypesVar Details - Proc Details

condo_room

One active condo room: its loaded reservation, who owns it, who can get in, and its settings. Players never see the id - rooms are picked from a list, not by number.

Vars

brightnessLighting/ambience choices, re-appliable and editable from the door panel.
display_nameDisplay label, e.g. "Furboy's room". Doesn't have to be unique.
idHidden unique key.
invitedInvited players: ckey -> their character name (so the panel can show who's invited).
passwordOptional password for private rooms.
privateFALSE = anyone can enter. TRUE = owner + invited ckeys + (password if one is set).

Procs

access_forHow this mob may enter: OK / needs PASSWORD / DENIED.
apply_ambienceApplies the stored area ambience preset across every room area.
apply_lightsApplies the stored brightness (0 = off, 1..3 = dim->bright) + lamp color to every light.
invite_by_nameAdds an online player (found by character name) to the invite list. Returns their name or null.
is_ownerTRUE if this mob owns the room (used to gate the door management panel).
try_enterTries to warp a mob in, prompting for the password if the room is locked. Returns TRUE if they got in (so the teleporter UI can close). Keeps all CONDO_ACCESS_* use in this file.

Var Details

brightness

Lighting/ambience choices, re-appliable and editable from the door panel.

display_name

Display label, e.g. "Furboy's room". Doesn't have to be unique.

id

Hidden unique key.

invited

Invited players: ckey -> their character name (so the panel can show who's invited).

password

Optional password for private rooms.

private

FALSE = anyone can enter. TRUE = owner + invited ckeys + (password if one is set).

Proc Details

access_for

How this mob may enter: OK / needs PASSWORD / DENIED.

apply_ambience

Applies the stored area ambience preset across every room area.

apply_lights

Applies the stored brightness (0 = off, 1..3 = dim->bright) + lamp color to every light.

invite_by_name

Adds an online player (found by character name) to the invite list. Returns their name or null.

is_owner

TRUE if this mob owns the room (used to gate the door management panel).

try_enter

Tries to warp a mob in, prompting for the password if the room is locked. Returns TRUE if they got in (so the teleporter UI can close). Keeps all CONDO_ACCESS_* use in this file.