arguments.c

skylib_fluffos_v3/mudlib/cmds/player/arguments.c · 594 B

From the archive skylib_fluffos_v3.zip

Download the archive   « Back to the archive contents

/**
 * This file will print out a nice list of theological arguments that you
 * know.
 * @author Pinkfish
 */
#include <philosophies.h>

inherit COMMAND_BASE;

int cmd() {
   string *args;

   args = PHILOSOPHY_HANDLER->query_all_known(this_player()->query_name());
   if (!sizeof(args)) {
      write("You do not know any theological arguments.\n");
   } else {
      write("You know the following theological arguments:\n" +
            query_multiple_short(args) + ".\n");
   }
   return 1;
} /* cmd() */

mixed *query_patterns() {
   return ({ "", (: cmd() :) });
} /* query_patterns() */

Site Stats

Snippets: 1791
Codebases: 571