Re: Hit bar

From: Shane Lee (tacodog21@yahoo.com)
Date: 10/24/00


I'm going to assume that you mean you wish to replace the
player's prompt with a bar that reads like a meter.
I'm also going to assume that by rounds you mean how many
rounds that fight has progressed to.
The first one is relatively hard, but I did it myself.
First, make a player flag (maybe PRF_METERBAR) and check for it
in make_prompt() (found in comm.c).
Second, read the meterbar2.txt (circle's ftp site snippet) and hack
the char *make_bar() function, to send in the prompt to people
with the flag.
I'm not going to tell you exactly what to do, that's all part
of learning to code circle.
The second one SEEMS easy enough, just use one of the sparen's
in the playerfile like so:
In perform_violence() (found in fight.c) make sure the player is
fighting and add one number to that sparen for every round.
Send that player the value of it every round of the fight
in make_prompt. If the sparen = 0, then don't send it.
Make sure to reset it to 0 at the end of the fight.
Hope I didn't confuse you too much, maybe some of these other
guys on the list can clarify and correct me if I'm wrong...

-FIRE



+------------------------------------------------------------------+------+
| Get your MUD on @ Euridia.com!                                   |  __  |
| http://www.euridia.com -- Your ultimate MUD resource             | (oO) |
| telnet://euridia.com:4545 -- Euridia MUD                         | /||\ |
| telnet://euridia.com:4000 -- The E2K Project                     |      |
+------------------------------------------------------------------+------+


     +------------------------------------------------------------+
     | 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 : 04/10/01 PDT