From: Angus A. Mezick (dodger@WPI.EDU)
Date: 07/31/96

thus on Tue, 30 Jul 1996 23:48:44 -0700 (PDT), Cyber virtually scripted...

> ok, as you all know I am working on a prompt that changes color as your
> stats change, it it 10% it is red, ext. now I am adding a new twist by
> having it show you and the person your fighting's condition, i have this
> working fine for the character, but am unable you get the name of the person
> you are fighting! here is what I have.

> ----snip---- 

>      if (GET_POS(d->character) == 7)
>          sprintf(prompt, "%s%n ", prompt, GET_NAME(FIGHTING(d->character)));

0---------> %n?????
I gave up on this because it filled the prompt... I just went with
sprintf(prompt,"%s [Enemy: %s]",prompt,wound_types[percent]);

maybe check out how do_stat gets the name for this line:
Pos: Sleeping, Fighting: Nobody, Connected: Playing
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |

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