Re: [CODE] Innate spell abilities

From: russ brown (russelltbrown@netzero.net)
Date: 11/09/00


-----Original Message-----
From: Matthew Kuebbeler <flawed@SOUTHWIND.NET>
To: CIRCLE@post.queensu.ca <CIRCLE@post.queensu.ca>

<snip>
>Im wondering if anyone has some kind of fix. All the races on my mud I
>want to have infravision, all except humans.


Gee, how about this:

/* set as default for all chars */
SET_BIT(AFF_FLAGS(ch), AFF_INFRAVISION);

/* then remove it for humans */
if (GET_RACE(ch) == RACE_HUMAN)
  REMOVE_BIT(AFF_FLAGS(ch), AFF_INFRAVISION);

>Thanks in advance for any assistance.


No problem, I hope this helps you out.

Also be aware that there is also a TOGGLE_BIT macro that you
can use to manipulate flags.

Russ Brown


_______________________________________________
Why pay for something you could get for free?
NetZero provides FREE Internet Access and Email
http://www.netzero.net/download/index.html


     +------------------------------------------------------------+
     | 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/11/01 PDT