Adding a class to the selection screen:

Posted by Firedrak on Mon 02 Apr 2001 08:16 PM — 3 posts, 15,511 views.

USA #0
How do I add a class to the class list on the selection screen? I accidentally arased paladin when I tried switching class numbers with a new class to see if that would help.

Sucks to not know it all..hehe
Australia Forum Administrator #1
I would try this, but am not certain how many classes it supports without crashing. If you reach that limit, then recompile SMAUG with more classes.

Looking in mud.h I see this line:


#define MAX_CLASS 9


This appears to indicate that you can only have 9 classes without a recompile.

However, having recompiled to make it, say, 10, then I think you would make a new .class file in the classes directory, and add the name of that file to the class.lst file.


#2
MAX_CLASS is used to define an array, so the number of classes you can have is limited only by your memory and by the integer used to store the index of the array but, I don't see anyone having over 2 billion classes ;)