Dual class nightmare

Posted by Praylon on Sat 01 Dec 2001 05:17 AM — 3 posts, 17,780 views.

#0
OK, to make a long story short, been mudding for (lets just say too many) years, Immed a ROM mud for 2, quit school 1 year shy of BA in Comp Sci, but havn't even looked at code for over 7 years now. Just telling you this so you have some idea of what my skill level is. RUSTY, very RUSTY!

I downloaded SMAUG, got it up and running, changed races, edited the helpfiles, raised the levels to 180, even installed a few snippets already, and it all works great.

However, this mud is not going to work till I get a dual class system up and running. I found a snippet for it and instructions, but at this point I fall flat on my face. I am so lost! In addition, there is no credits showing who created this snippet, and it's comments are rather vague like customize to fit your needs.

Any suggestions short of I should just give up would be appreciated.

Thanks,
Praylon
USA #1
Praylon,

Id Love to help you with your problem, but I didnt see any specific questions in your posting. By dual class, I assume you mean multi-class characters. If thats the case... I can help ya. If you are talking about the AD&D 2nd Edition Dual Class.... I can still help you. I have a working 3rd Edition Multi-Classing system (With Presteige Classes), unfortunately, my code isnt smaug based anymore, so it wouldnt work for you. But on the plus side... if you tell me what you have... I should be able to point you in the right direction smaug/wise.


-Kelsid
USA #2
The most simple thing i've found, is just add another class entry to CHAR_DATA, and just make it so a command by the name of multiclass or remort, puts an entry into it, than sets them back to level 2. Than just modify the can_cast, and several other spots to check their second class and first( a case of copy+paste).

I've got a multiclass code but it would be no use to you, as it is very complicated :-p Especially to try and copy+paste (Randomly distributed EXP between classes, individual class leveling, retaining of original class attributes, realistic class combination effects e.g warrior+mage = bad mana+spells plus it uses three classes rather than two).


So.. basically
#1 Add another class entry to CHAR_DATA
#2 Make a multiclass function to:
ch->classtwo = ch->class;
ch->class = iClass;
ch->level = 2;
than reset all their stats to a newbie-like form.
(You can use comm.c where the classes are set as a template to get iClass(which is simply their argument))
#3 Modify all the spots where the mud checks the character's class and add a check so that it takes into account their dualclass as well.



This should give you a basic setup of multiclass... there is more work to it but that's the basic outline and you can work from there. This setup will work to add as many multiclass options as you want, by expanding and modifying slightly. (Notice how many times I said basic :-p)