lima-1.0b5/
lima-1.0b5/driver/
lima-1.0b5/driver/ChangeLog.old/
lima-1.0b5/driver/Win32/
lima-1.0b5/driver/compat/
lima-1.0b5/driver/include/
lima-1.0b5/driver/testsuite/
lima-1.0b5/driver/testsuite/clone/
lima-1.0b5/driver/testsuite/command/
lima-1.0b5/driver/testsuite/data/
lima-1.0b5/driver/testsuite/etc/
lima-1.0b5/driver/testsuite/include/
lima-1.0b5/driver/testsuite/inherit/
lima-1.0b5/driver/testsuite/inherit/master/
lima-1.0b5/driver/testsuite/log/
lima-1.0b5/driver/testsuite/single/
lima-1.0b5/driver/testsuite/single/tests/compiler/
lima-1.0b5/driver/testsuite/single/tests/efuns/
lima-1.0b5/driver/testsuite/single/tests/operators/
lima-1.0b5/driver/testsuite/u/
lima-1.0b5/driver/tmp/
lima-1.0b5/etc/
lima-1.0b5/lib/WWW/help/
lima-1.0b5/lib/cmds/
lima-1.0b5/lib/cmds/create/
lima-1.0b5/lib/cmds/player/attic/
lima-1.0b5/lib/contrib/bboard/
lima-1.0b5/lib/contrib/boards/
lima-1.0b5/lib/contrib/marriage/
lima-1.0b5/lib/contrib/roommaker/
lima-1.0b5/lib/contrib/transient_effect/
lima-1.0b5/lib/daemons/channel/
lima-1.0b5/lib/daemons/imud/
lima-1.0b5/lib/data/
lima-1.0b5/lib/data/config/
lima-1.0b5/lib/data/links/
lima-1.0b5/lib/data/news/
lima-1.0b5/lib/data/players/
lima-1.0b5/lib/data/secure/
lima-1.0b5/lib/domains/
lima-1.0b5/lib/domains/std/2.4.5/maze1/
lima-1.0b5/lib/domains/std/2.4.5/npc/
lima-1.0b5/lib/domains/std/2.4.5/post_dir/
lima-1.0b5/lib/domains/std/2.4.5/sub/
lima-1.0b5/lib/domains/std/camera/
lima-1.0b5/lib/domains/std/config/
lima-1.0b5/lib/domains/std/cult/
lima-1.0b5/lib/domains/std/effects/
lima-1.0b5/lib/domains/std/misc/
lima-1.0b5/lib/domains/std/monsters/
lima-1.0b5/lib/domains/std/recorder/
lima-1.0b5/lib/domains/std/rooms/
lima-1.0b5/lib/domains/std/rooms/beach/
lima-1.0b5/lib/domains/std/rooms/labyrinth/
lima-1.0b5/lib/domains/std/school/
lima-1.0b5/lib/domains/std/school/O/
lima-1.0b5/lib/domains/std/spells/
lima-1.0b5/lib/domains/std/spells/stock-mage/
lima-1.0b5/lib/domains/std/spells/stock-priest/
lima-1.0b5/lib/help/
lima-1.0b5/lib/help/admin/
lima-1.0b5/lib/help/hints/General_Questions/
lima-1.0b5/lib/help/hints/Pirate_Quest/
lima-1.0b5/lib/help/player/
lima-1.0b5/lib/help/player/bin/
lima-1.0b5/lib/help/player/quests/
lima-1.0b5/lib/help/wizard/
lima-1.0b5/lib/help/wizard/coding/guilds/
lima-1.0b5/lib/help/wizard/coding/rooms/
lima-1.0b5/lib/help/wizard/lib/daemons/
lima-1.0b5/lib/help/wizard/lib/lfun/
lima-1.0b5/lib/help/wizard/lib/std/
lima-1.0b5/lib/help/wizard/mudos_doc/
lima-1.0b5/lib/help/wizard/mudos_doc/applies/
lima-1.0b5/lib/help/wizard/mudos_doc/applies/interactive/
lima-1.0b5/lib/help/wizard/mudos_doc/applies/parsing/
lima-1.0b5/lib/help/wizard/mudos_doc/concepts/
lima-1.0b5/lib/help/wizard/mudos_doc/driver/
lima-1.0b5/lib/help/wizard/mudos_doc/efuns/
lima-1.0b5/lib/help/wizard/mudos_doc/efuns/arrays/
lima-1.0b5/lib/help/wizard/mudos_doc/efuns/buffers/
lima-1.0b5/lib/help/wizard/mudos_doc/efuns/compile/
lima-1.0b5/lib/help/wizard/mudos_doc/efuns/filesystem/
lima-1.0b5/lib/help/wizard/mudos_doc/efuns/floats/
lima-1.0b5/lib/help/wizard/mudos_doc/efuns/functions/
lima-1.0b5/lib/help/wizard/mudos_doc/efuns/general/
lima-1.0b5/lib/help/wizard/mudos_doc/efuns/mappings/
lima-1.0b5/lib/help/wizard/mudos_doc/efuns/mixed/
lima-1.0b5/lib/help/wizard/mudos_doc/efuns/numbers/
lima-1.0b5/lib/help/wizard/mudos_doc/efuns/parsing/
lima-1.0b5/lib/help/wizard/mudos_doc/lpc/constructs/
lima-1.0b5/lib/help/wizard/mudos_doc/lpc/types/
lima-1.0b5/lib/include/driver/
lima-1.0b5/lib/log/
lima-1.0b5/lib/obj/admtool/
lima-1.0b5/lib/obj/admtool/internal/
lima-1.0b5/lib/obj/admtool/mudinfo/
lima-1.0b5/lib/obj/admtool/secure/
lima-1.0b5/lib/obj/secure/
lima-1.0b5/lib/obj/secure/cmd/
lima-1.0b5/lib/obj/secure/mailers/
lima-1.0b5/lib/obj/secure/shell/
lima-1.0b5/lib/obj/secure/shell/classes/
lima-1.0b5/lib/obj/tasktool/
lima-1.0b5/lib/obj/tasktool/internal/
lima-1.0b5/lib/open/
lima-1.0b5/lib/secure/
lima-1.0b5/lib/secure/cgi/
lima-1.0b5/lib/secure/modules/
lima-1.0b5/lib/secure/simul_efun/
lima-1.0b5/lib/std/adversary/
lima-1.0b5/lib/std/adversary/advancement/
lima-1.0b5/lib/std/adversary/armor/
lima-1.0b5/lib/std/adversary/blows/
lima-1.0b5/lib/std/adversary/death/
lima-1.0b5/lib/std/adversary/formula/
lima-1.0b5/lib/std/adversary/health/
lima-1.0b5/lib/std/adversary/pulse/
lima-1.0b5/lib/std/adversary/wield/
lima-1.0b5/lib/std/classes/event_info/
lima-1.0b5/lib/std/container/
lima-1.0b5/lib/std/living/
lima-1.0b5/lib/std/modules/contrib/
lima-1.0b5/lib/std/patterns/
lima-1.0b5/lib/std/race/
lima-1.0b5/lib/std/race/restricted/
lima-1.0b5/lib/std/room/
lima-1.0b5/lib/tmp/
lima-1.0b5/lib/trans/
lima-1.0b5/lib/trans/admincmds/
lima-1.0b5/lib/trans/obj/
lima-1.0b5/lib/wiz/


Page Title

M_LIGHATBLE>

M_LIGHTABLE gives you object the ablitity to be lit, and give off 
light, thus allowing you to see in the dark.  

Functions you put in your setup():

          
    set_light_level(int)     --  This function tells the lib "how much" light your object
                                 gives off.  The higher the number the more light.  You can
                                 also create a light source that gives off negative light, 
                                 radiates darkness bu supplying a negative number to this
                                 function.
    
    set_burned_out_msg(msg)  --  This function allows you to set the message for when the 
                                 a player tried to light a burnt out light source,the default
                                 is, "The (object) is burned out.".

    set_extinguish_msg(msg)  --  This function allows you to set the message for when the 
                                 light source is turned off/extinguished.  The default is
                                 (PLayer) extinguishes a (object).

    set_die_msg(msg)         --  This function allows you to set the message for when the 
                                 light source burns out.  The default is "The light from the 
                                 (object) flickers and dies.".

    set_fuel(amount)         --  This function allows you to set how long the torch can stay lit. 
                                 When the object is lit, a call_out(), is down on that amount, when
                                 the call_out is executed, the light burns out.

    set_source(f)            --  Sets the source by which this object may be lit.  If f is a 
                                 string, only objects that have that string as an id may light it.
                                 If f is 0, anyobject may light it.

        
Important functions:

    query_lit()              --  Returns 1 if the object is lit, and producing light.

    extinguish()             --  Is called by do_extinguish(), when the player tries to 
                                 extinguish the object.  This function also looks to call 2 hooks
                                 in your object the first is "prevent_extinguish", which could stop
                                 the object from being extinuished if it returns 0 or a string.
                                 If the prevent extinguish returns 1, turn the light source off.                             

                                 The second hook called is "extinguish" the return value of this hook
                                 is ignored, The hook gives you a chance to do somethign unique, if 
                                 you desire.
                              
                                     
    do_extinguish()          --  Calls extinguish(), if the return value is 1 display the 
                                 set_extinguish_msg(), otherwise print an error message..

                                     
    check_fuel()             --  Checks to see if there is still fuel in the light source, if not 
                                 it returns the set_burned_out_msg().

    light()                  --  This function is called by do_light(), and checks to see if its 
                                 ok to light this object, is there enough fuel etc.  Also calls 
                                 2 hooks in your object "prevent_light", which gives your object 
                                 a chance to not let itself be lit, and "light" that lets you
                                 do a unique action after the light source is lit.
 
    do_light(with)           --  This function handles the lighting of an object.  The first thing
                                 it does is call light().  If that returns 0 or a string it prints the 
                                 appropriate error message, if not it prints the appropriate message
                                 to show the object is lit, either with an item or without an item.

    burn_out()               --  Handles the burning out of the light source.

    direct_light_obj()       --  This function is a parser callback.  It checks to see if a source
                                 is needed to light the object, if a source is needed  it returns an
                                 error message.
                                 
    direct_extinguish_obj()  --  This function is a parser callback.  It checks to see if the source is
                                 lit or not.  If the source is not lit, return an error message.

    direct_light_obj_with_obj() --  This function is a parser callback.  It checks to see if the with 
                                 object is valid if not return appropriate messages.

    indirect_light_obj_with_obj() --This function is a parser callback.  It checks to see if the object
                                 is lit, if it is the return 1, otherwise return 1.  

                                 *** note that this is called when trying to use this object as a source
                                 *** to light another light source.

          


Last Updated: Friday, April 26, 1996