On Tue, 10 Sep 1996, Homer Simpson wrote: > Hi all, > I have just added weapon prof skills, eg 1h slashing, 1h piercing, > etc and now want to use the unused value0 in the weapon object type. This > will be used to determine what skill the weapon uses. Eg 1 = 1h slashing > etc. How do I go about using this value? GET_OBJ_VAL(<pointer to object>, x) (x will be 0-3, you want 0 for first) ex: if (GET_OBJ_VAL(obj, 0)) < 1) -George +-----------------------------------------------------------+ | 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/18/00 PST