[Package Index | Mudlib Index | Effect Index]
Written by Gruper
Started 11th of May, 1998
.
string current_fuel_message()
int query_brightness()
string query_empty_mess()
int query_fuel()
mixed query_fuel_messages()
int query_hold_required()
int query_lit()
int query_max_fuel()
void set_brightness(int i)The brightness is the number used in set_light(), ie how brightly the lightable shines when lit.
void set_empty_mess(string msg)The empty message is a string used to describe the lightable when it is out of fuel. It should be on the form "is burnt to a stub." to fit both the_short() +" "+ msg and "It "+ msg.
void set_fuel(int i)Sets the current amount of fuel. One fuel unit equals one second of burning time. If fuel > max_fuel, fuel = max_fuel, so it is important to set max_fuel before fuel.
void set_fuel_messages(mixed msgs)This function is used to set the different messages shown depending on how much fuel is left in the lightable. The fuel messages should be on a form suitable to be appended to the_short() +" is lit/not lit. " The argument msgs can either be an array of strings or an array of string, int pairs. In the first case, the fuel messages will be evenly spaced. In the second case, the int is a percentage (fuel_left*100/max_fuel) below which the string will be used. If no message for 100 is given, it will default to the last string element in the array.
set_fuel_messages( ({ "There is almost no fuel left.", 10 "It is more than halfway empty.", 50, "It is not yet halfway empty.", 80, "It is almost full.", 100 }) );
void set_hold_required(int hands)
int set_lit(int i)This function is used to light or dowse the lightable. Two properties are checked: unextinguishable means that the lightable cannot be extinguished and unlightable that it cannot be lit.
void set_max_fuel(int i)Sets the maximum amount of fuel. One fuel unit equals one second of burning time.