Re: Non-indexed commands

From: Ron Hensley (ron@CROSS.DMV.COM)
Date: 10/04/97


> Actually, the command interpreter looks for a command.  If it's not in
> the list, it stops.  What I want is for the ability to have spec_procs
> (ANY spec_proc) use commands that are ONLY available to use when you are
> in a position to do so, but never show up in the master command list.  I
> have no concern about linked list, multiple spec_proc mobs.

Well the builtin way for commands that only work in your specials....
Add the command to the interpreter list but as do_not_here

Everywhere but where your mob/obj/room is, player will get the not here
message, or you can edit do_not_here to return a Adfgdfg. message like
typing nonsens gets you.

Then in your special you check for:
  if (CMD_IS("magic_word")) {
    doit .....
    return 1;
  } else {
    return 0;
  }

magic_word being whatever your special command happens to be. Not what
you want im sure, but does what you want and is already a standard part
of circle, like the practice command for example. Anywhere put in front
of a guild mob, do_not_here is called.


    *******************************************************************
    *   Ron Hensley                     ron@dmv.com                   *
    *   Network Administrator           http://www.dmv.com/~ron       *
    *                                   PGP Key at WWW Page           *
    *   DelMarVa OnLine                 749-7898 Ext. 403             *
    *******************************************************************


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST