You could keep the following defines: #define CLASS_WARRIOR 0 #define CLASS_MAGIC_USER 1 etc. Then change the level of the player from int level; to int level[NUM_CLASSES]; To get a player's thief level, do level[CLASS_THIEF]; And then you could change class from int class; to int class[NUM_CLASSES]; class[0] would be primary class (say, CLASS_WARRIOR if they're a fighter), class[1] secondary, etc. To get their primary level, use this: level[class[0]]; Hope this helps... what you also need to do is figure out what IS_THIEF should really mean.. everyone is a thief if everyone is multi-class.. the IS_THIEF macro would become obsolete, to be replaced by appropriate checks on their thief level.
This archive was generated by hypermail 2b30 : 12/07/00 PST