Re: [bpl14] [win98] obj affects

From: Scorn (scorn@rmi.net)
Date: 11/14/98


ok i have olc now set up to list affects of objects and save them.
However when it lists them it uses a counter i was wondering if there
was a way to list the actual bitvector for the affect i.e.
1)blind
2)invis
.........
128)sanc
etc.....

this is the code i currently use to list them with a counter

void oedit_disp_affects(struct descriptor_data *d)
{
  int counter, columns = 0;

  get_char_cols(d->character);

  for (counter = 0; counter < NUM_AFF_FLAGS; counter++) {
    sprintf(buf, "%s%2d%s) %s%-20.20s %s", grn, counter, nrm, yel,
  affected_bits[counter], !(++columns % 3) ? "\r\n" : "");
    send_to_char(buf, d->character);
  }
  sprintf(buf, "\r\n%sEnter affect (0 for none) : ", nrm);
  send_to_char(buf, d->character);
}
and it just lists them from 0 on not actual bits.
Thanks
Scorn


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



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