Re: [Circle] Help_please?

From: Ole Gjerde (
Date: 07/28/96

On Sun, 28 Jul 1996, malcor wrote:

> i can't seem to figure out what is wrong with this check any suggestions?
>   if (GET_POS(ch) = POS_FIGHTING) && (percent < GET_SKILL(ch, SKILL_SECOND))

This is IMO a bit of a "duh."
Try this instead:
if ((GET_POS(ch) == POS_FIGHTING) && (percent < GET_SKILL(ch, SKILL_SECOND)))

Ole Gjerde
Studying Computer Science at North Dakota State University
"Unix _IS_ user friendly... It's just selective about who its friends are."
                                                  -- Unknown/Nem Schlecht

| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   |

From Sun, 28 Jul 96 14:00:58 EDT
X-SystemInfo: MyE-Mail: EMail
X-Message-No: 3201 (database)
From: goamkows <>
To: circle <>
Subject: [Circle] newbie fighting question
Date: Sun, 28 Jul 96 19:00:01
Message-ID: <>
Reply-To: (goamkows)
X-POP3-Rcpt: lk4150@per
Return-Path: <>
Received: from QUCDN.QueensU.CA (QUCDN.QueensU.CA []) by (8.6.12/8.6.12) with SMTP id TAA26750 for <>; Sun, 28 Jul 1996 19:32:38 +0200
Received: from by QUCDN.QueensU.CA (IBM VM SMTP V2R2) with TCP;Sun, 28 Jul 96 14:37:38 EDT
Received: by (SMI-8.6/SMI-SVR4)id NAA04073; Sun, 28 Jul 1996 13:56:00 -0500
Received: from by (SMI-8.6/SMI-SVR4)
Received: from by (4.1/SMI-4.1)
Received: from by (4.1/SMI-4.1)
Precedence: bulk

i'm working on a player skill that let's half-dragons breath (only a
small amount of damage though ;)

it seems to be working, except that it won't let the half-dragon
breath if he is already fighting.  i want them to be able to.
the function used the damage function to do the damage:

    for (i = world[ch->in_room].people; i; i = i->next_in_room)
      if (ch != i)
        damage(ch, i, dam, SKILL_BREATH);


looking at other skills (like bash), there doesn't seem to be any
check for whether or not you are fighting, so i am not sure what i am
doing differently that i can't use it when already in combat.

                the count                  |     "There is no mistake,        |
                                           |   there has been no mistake,     |          | 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: |
|   |

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