ACMD(do_desc)

From: Joe Mann (LightKnight@aol.com)
Date: 05/12/02


Hey, I am trying to write a piece of code that will allow players to change their description in game using a command like:
desc You see a tall person with dark hair.
Here's what I have:

ACMD(do_desc)
{
  skip_spaces(&argument);
  if (!*argument) {
    if (!ch->player.description)
      send_to_char("You have no description!\r\n", ch);
    else {
      sprintf(buf, "Your current description is:\r\n%s", ch->player.description);
      send_to_char(buf, ch);
      }
    }
  else {
    ch->player.description = argument;
    sprintf(buf, "Your description has been changed to:\r\n%s", ch->player.description);
    send_to_char(buf, ch);
    }
}

I also have the prototypes in the appropriate places...but something weird happens, like if I try to use desc, then say I tried to:
look self
It says something like
TarosTaros is in perfect health.
Even though the character name is just Taros...this is not an echo problem, because I commented out the code, re-compiled and it ran fine. And then when I quit, I got a core dumped error. Can anyone help?

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT