Re: help

From: Xual (xual@danathara.dhs.org)
Date: 11/22/99


On Wed, 24 Nov 1999, Victor Wennberg wrote:

> when i'm making a prompt for showing the opponent you are fightings HP
> should i use get_hit(victim) and how should i type it do i has to make
> thoose PRF_DISPMOVE, DISPMANA, DISPHIT make one of thoose with that.. or
> how do i write it up

It depends on how you want it to work...  PRF_x flags are for player
preferences, which can be toggled with various commands.  In this case, it
is the 'display' command which lets you set which values are in your prompt.
It would be pretty simple to add this to the display command.  Or you could
have it done automatically if the player is PRF_DISPHP, like this:

    if (PRF_FLAGGED(d->character, PRF_DISPHP))
      sprintf(prompt + strlen(prompt), "%dH ", GET_HIT(d->character));
+     if (FIGHTING(d->character))
+       sprintf(prompt + strlen(prompt), "(opponent) %dH ",
+               GET_HIT(FIGHTING(d->character)));



-- Xual


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



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