On Wed, 5 Feb 1997, pjh wrote: > I am not much of one who has studied all the philosophies behind memory > usage and efficiency in code. Pretty much if it works I smile. But when > i thinking about coding in 'class_switching' in which it checks for what > class the guildmaster is a part of (or master to) in a routine I got > stumped and in my ever-vescent ability have decided that making 8 > seperated SPECIAL(guild_thief) SPECIAL(guild_fighter) etc masters is the > easiest and most obvious way of doing this. BUttttttt it doesn't seem to > be the most efficient. Any ideas on a superior way of doing it? I just > simply want it so that the guildmaster will check to see what class_type > that it is. Thanks for any help. Preciate it. You could do it the same way that SPECIAL(guild_guard) is done. Just make a list of room vnums and which class that corresponds to and then check it against the person trying to practice. It should be very similar to the code/structures used in the guild_guard procedure. I can't give specific code, as I don't have my mud code right in front of me. :) hopefully helpful, Ray +-----------------------------------------------------------+ | 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