NAME
        party_follow_verb - Let the partyob work with odd verbs.
 
SYNOPSIS
        int party_follow_verb(string verb,string args);
 
LOCATION
        In rooms that may be entered by livings.
 
DESCRIPTION
        It may sometimes happen that your room has an exit or command
        that causes movement (something like 'climb ladder' perhaps).
        If this command does not work with party follow -
        ('launch fishing boat', for example) you can add this lfun to
        your room to make it work.
        verb is the verb the player used when he did the command;
        query_verb() when the player typed the command, probably.
        (for example, 'climb' in 'climb ladder' or 'launch' in
        'launch fishing boat')
        args is the argument to the command.
        (for example, 'ladder' in 'climb ladder' or 'fishing boat' in
        ('launch fishing boat')
        A return value of true means that the party object should
        make anyone that's following the leader do the command as
        well.
 
EXAMPLE
        inherit "/std/basic_room";
         
        void reset(int arg)
        {
          ::reset(arg);
          if(arg)
            return;
          set_light(1);
          add_property("outdoors");
          set_short("testroom");
          set_long("Testing room.\n");
          add_command("launch fishing boat","@cmd_launch()");
        }
 
        int cmd_launch()
        {
          this_player()->move_player("into the boat",
                                     "/examples/room1");
          return 1;
        }
 
        int party_follow_verb(string verb,string args)
        {
          if(verb == "launch" && args == "fishing boat")
            return 1;
        }

Help topics available:
dark exit living_died party_follow_verb query_contents

[START|BACK ]




[ NannyMuds main page | FAQ | Contact us ]

You are guest number 72 since April 2020.
This file was last modified: June 2000.