The part to affect the char is already in the code. From handler.c void affect_modify(struct char_data * ch, byte loc, sbyte mod, long bitv, bool add) { int maxabil; if (add) { SET_BIT(AFF_FLAGS(ch), bitv); } else { REMOVE_BIT(AFF_FLAGS(ch), bitv); mod = -mod; } < -- SNIP -- > } The variable bitv contains the flags given to the object with the Object Affect snippet. /Johan +------------------------------------------------------------+ | 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