Re: [Circle] Help_please?

From: Ole Gjerde (gjerde@plains.nodak.edu)
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))
> IT SAYS NEED ) AND ERROR BEFORE HIT BUT WHERE?????

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
Homepage: http://www.pconline.com/~gjerde
Email: gjerde@plains.nodak.edu, gjerde@pconline.com
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: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+


From goamkows@kirk.geog.sc.edu Sun, 28 Jul 96 14:00:58 EDT
X-SystemInfo: MyE-Mail: EMail
X-Message-No: 3201 (database)
From: goamkows <goamkows@kirk.geog.sc.edu>
To: circle <circle@cspo.queensu.ca>
Subject: [Circle] newbie fighting question
Date: Sun, 28 Jul 96 19:00:01
Message-ID: <CMM.0.90.0.838576858.goamkows@janeway.geog.sc.edu>
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 [130.15.126.2]) by per.cybercity.dk (8.6.12/8.6.12) with SMTP id TAA26750 for <lk4150@krull.dk>; Sun, 28 Jul 1996 19:32:38 +0200
Received: from cspo.queensu.ca by QUCDN.QueensU.CA (IBM VM SMTP V2R2) with TCP;Sun, 28 Jul 96 14:37:38 EDT
Received: by cspo.queensu.ca (SMI-8.6/SMI-SVR4)id NAA04073; Sun, 28 Jul 1996 13:56:00 -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

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);

    WAIT_STATE(ch, PULSE_VIOLENCE * 3);


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,     |
        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