NAME
        set_light - Add to or query the light level of the current object

SYNOPSIS
        int set_light(int n [, object obj])

DESCRIPTION
        An object is by default dark. It can be set to not dark by calling
        set_light(1). The environment will the also get this light.
        The returned value is the total number of lights in this room.
        If the object obj is given, set_light will be called in that object.
        If not given, the calling object will be used.

        You can set the object to be 'more than dark' by using negative
        values.

NOTA BENE
        Note that the value of the argument is added to the light of the
        current argument!

EXAMPLES
        set_light(0) 
             return the current light level

        set_light(1) 
              make this object somewhat lighter
 
        set_light(-set_light(0))
              remove all light

SEE ALSO
        sfun/set_light

Help topics available:
_destruct _isclone _lock _next_clone _query_action
add_action all_inventory call_other call_out call_out_info
clone_object command creator deep_inventory destruct
disable_commands enable_commands environment exec file_name
find_call_out find_living find_object first_inventory function_exists
inherit inherit_list input_to interactive living
move_object next_inventory present previous_object query_verb
remove_call_out restore_object save_object set_heart_beat set_light
set_living_name shadow tell_object tell_room this_object
this_player transfer

[START|BACK ]




[ NannyMuds main page | FAQ | Contact us ]

You are guest number 140 since November 2019.
This file was last modified: June 2000.