[Circle] NEWBIE: names and stuff. or fighting for life! =:)

From: Terry Valladon (Reaper@cyber.reno.nv.us)
Date: 07/28/96

I am trying to get it so that during a fight it prints some info like my
name for one.
but this does not seem to work. what is wrong? any HINTS?

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

see what I am trying to do is make it so that when you are fighting it prints

|killer (good)|rabid dog (bad)|25H|25M|45V|>
         ^   ^            ^  ^
         green             red

so I figure I need to test if the chr is fighting first, then I get his name
and print it, then I get both HIT and MAX_HIT and do a test like in my color
stat prompt program, then I get the vict name and then his HIT and MAX_HIT
and do a simular check, but I cant figure out how to get the names, I know
about GET_HIT(d->vict) and all, so once I can get the names I am k00l.
thanks for the hints in advance.
Cyber Reaper
Realms of Reality
telnet://login.greatbasin.net 4000

| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |

From goamkows@kirk.geog.sc.edu Sun, 28 Jul 96 15:53:01 EDT
X-SystemInfo: MyE-Mail: EMail
X-Message-No: 3209 (database)
From: goamkows <goamkows@kirk.geog.sc.edu>
To: circle <circle@cspo.queensu.ca>
Subject: [Circle] void value not ignored as it ought to be :P
Date: Sun, 28 Jul 96 20:53:00
Message-ID: <CMM.>
Reply-To: goamkows@kirk.geog.sc.edu (goamkows)
X-POP3-Rcpt: lk4150@per
Return-Path: <@QUCDN.QueensU.CA:owner-circle@cspo.queensu.ca>
Received: from QUCDN.QueensU.CA (QUCDN.QueensU.CA []) by per.cybercity.dk (8.6.12/8.6.12) with SMTP id VAA26887 for <lk4150@krull.dk>; Sun, 28 Jul 1996 21:22:47 +0200
Received: from cspo.queensu.ca by QUCDN.QueensU.CA (IBM VM SMTP V2R2) with TCP;Sun, 28 Jul 96 16:27:44 EDT
Received: by cspo.queensu.ca (SMI-8.6/SMI-SVR4)id PAA05474; Sun, 28 Jul 1996 15:48:04 -0500
Received: from otis.cla.sc.edu by cspo.queensu.ca (SMI-8.6/SMI-SVR4)
Received: from kirk.geog.sc.edu by otis.cla.sc.edu (4.1/SMI-4.1)
Received: from janeway.geog.sc.edu by kirk.geog.sc.edu (4.1/SMI-4.1)
Sender: owner-circle@cspo.queensu.ca
Precedence: bulk

act.offensive.c: In function `do_fear':
act.offensive.c: 1018: void value not ignored as it ought to be

*** Error code 1

and the offending line (and previous line) is:

        if (mag_savingthrow(i, SAVING_BREATH, modifier)) {
            sprintf(buf, "%s is unaffected by the fear!\r\n", GET_NAME(i));

that modifier argument is legit - i changed mag_savingthrow to accept
an integer as a third parameter.
i is declared as struct char_data *i;
and i check earlier if (i == NULL) return;
so i should always be a player or mob.

the above expression is appearing in a for loop:
   for (i = world[ch->in_room].people; i; i = i->next_in_room) {

(and this control loop worked fine in my do_breath skill :)

everything looks ok to me, but then, i don't even fully understand the
error message :P

can anybody help me out here? :)

                the count                  |     "There is no mistake,        |
                                           |   there has been no mistake,     |
        goamkows@kirk.geog.sc.edu          | and there shall be no mistake."  |
No, my mail reader cannot handle MIME stuff| -Duke of Wellington (1769-1852)  |
so please don't send me any MIME stuff :P  |                                  |
        "The best way to keep one's word is not to give it" - Napoleon        |
              Please, please provide me with my daily helping of             
               preposterous and prentitious platitudes.. waiter.
| 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