NAME
dark - Make a room dark regardless of light level.
SYNOPSIS
int dark(string condition, int brief_mode);
LOCATION
In rooms that may be entered by livings.
DESCRIPTION
condition can currently only be "move_player" if called from
real_move_player() in /obj/living_functions.c or 0 if called
for commands like "look".
brief_mode is true if player is in brief mode. Use this to
modify your texts.
A return value of true means don't print _anything_. Any text
written will be written by the dark() function.
EXAMPLE
inherit "/std/basic_room";
reset(int arg)
{
::reset(arg);
if (arg)
return;
set_short("testroom");
set_long("Testing room.\n");
}
int dark(string condition, int brief_mode)
{
if (condition=="move_player")
if (brief_mode)
write("Complete darkness.\n");
else
write("You enter a completely dark place where lamps "+
"does not help.\n");
else
write("It is so dark in here that no light can "+
"penetrate the darkness.\n");
return 1;
}
Help topics available:
| dark | exit | living_died | party_follow_verb | query_contents |
You are guest number 101 since April 2020.
This file was last modified: June 2000.