Re: Bitvectors

From: Chuck Reed (rev40oz@charter.net)
Date: 01/03/02


Well, I'll start with the example you gave.  Here's the code saying your
already visible from my src code.

   if IS_AFFECTED(ch, AFF_INVISIBLE) {
     appear(ch);
     send_to_char("You break the spell of invisibility.\r\n", ch);
   } else
     send_to_char("You are already visible.\r\n", ch);
}

If you have different affect slots now, you'll need to make IS_AFFECTED2()
IS_AFFECTED3 macros to handle that.  That's just a guess from what you've
given me though.

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT