ES2 MUD LIB :: 東方故事二(ES2) 天朝帝國 mudlib 瀏覽展示

/doc/applies/init

HOME :: doc :: applies :: init

     iiiinnnniiiitttt((((4444))))                MMMMuuuuddddOOOOSSSS ((((5555 SSSSeeeepppp 1111999999994444))))                 iiiinnnniiiitttt((((4444))))

     NNNNAAAAMMMMEEEE
          init - function in an object called by move_object() to
          initialize verb/actions

     SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
          void init( void );

     DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
          When the mudlib moves an object "A" inside another object
          "B", the driver (the move_object() efunction) does the
          following:

          1.   if "A" is living, causes "A" to call the init() in "B"

          2.   causes each living object in the inventory of "B" to
               call init() in "A".  regardless of whether "A" is
               living or not.

          3.   if "A" is living, causes "A" to call the init() in each
               object in the inventory of "B".

          Note: an object is considered to be living if
          enable_commands(3) has been called by that object.

          Typically, the init(4) function in an object is used to call
          add_action(3) for each command that the object offers.

     SSSSEEEEEEEE AAAALLLLSSSSOOOO
          reset(4), move_object(3), enable_commands(3), living(3),
          add_action(3)

     Page 1                                          (printed 3/16/95)

HOME :: doc :: applies :: init