Re: [Circle] Race Doc

From: Alex (fletcher@cspo.queensu.ca)
Date: 07/30/96


> Will the person who sent the step by step instructions to add races, 
> please resend to me, thanks.
> 
Check the FTP site.  Please. (=

--
Erm... Yeah.  Whatever.

+-----------------------------------------------------------+
| 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 Tue, 30 Jul 96 13:05:04 EDT
X-SystemInfo: MyE-Mail: EMail
X-Message-No: 3287 (database)
From: goamkows <goamkows@kirk.geog.sc.edu>
To: circle <circle@cspo.queensu.ca>
Subject: [Circle] [newbie] parse error
Date: Tue, 30 Jul 96 18:05:00
Message-ID: <CMM.0.90.0.838746304.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 SAA31669 for <lk4150@krull.dk>; Tue, 30 Jul 1996 18:37:24 +0200
Received: from cspo.queensu.ca by QUCDN.QueensU.CA (IBM VM SMTP V2R2) with TCP;Tue, 30 Jul 96 13:41:29 EDT
Received: by cspo.queensu.ca (SMI-8.6/SMI-SVR4)id NAA17327; Tue, 30 Jul 1996 13:00:09 -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 getting a 'parse error before return' in my do_breath skill,
and i have no idea what i am doing wrong :P  
the offending line is marked with an arrow, but i include the rest 
of the case for completeness (a bunch of other similar cases are
giving me the same problem).


    case BREATH_FIRE:
	if (!((GET_RACE(ch) == RACE_HALF_DRAGON_GOLD) ||
	      (GET_RACE(ch) == RACE_DRAGON_RED) || 
	      (GET_RACE(ch) == RACE_DRAGON_GOLD))) {
	    send_to_char("You can't breath that!", ch);
	    return;
	}
--->	if (IS_IMMUNE(victim, IMMUNE_FIRE))
	  return;
	if (GET_RACE(ch) == RACE_HALF_DRAGON_GOLD)
	  dam = dice(3, 6);
	if (GET_RACE(ch) == RACE_DRAGON_GOLD)
	  dam = ((dice((GET_LEVEL(ch)), 12)) + GET_LEVEL(ch));
	if (GET_RACE(ch) == RACE_DRAGON_RED)
	  dam = ((dice((GET_LEVEL(ch)), 10)) + GET_LEVEL(ch));
	break;
    
victim is declared as struct char_data *victim
and my IS_IMMUNE macro is:
#define IS_IMMUNE(ch, skill) (IMMUNE_FLAGGED((ch), (skill)))
and, 
#define IMMUNE_FLAGGED(ch, flag) (IS_SET(IMMUNE_FLAGS(ch), (flag)))
and, 
#define IMMUNE_FLAGS(ch) ((ch->char_specials.saved.affected_by2)
(basically, i just copied the IS_AFFECTED macro and related macros :)

and yes, i added that affected_by2 field to the char structure, right 
after char_specials.saved.affected_by :)


also, still having problems with this line:
(i.e. "void value not ignored as it ought to be")

    if (mag_savingthrow(victim, SAVING_BREATH))

:(


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