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:
You are guest number 172 since November 2019.
This file was last modified: June 2000.