Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Dual class nightmare

Dual class nightmare

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Praylon   (3 posts)  Bio
Date Sat 01 Dec 2001 05:17 AM (UTC)
Message
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
Top

Posted by Kelsid   USA  (35 posts)  Bio
Date Reply #1 on Sun 09 Dec 2001 04:15 AM (UTC)
Message
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

-Kelsid
Top

Posted by Txzeenath   USA  (54 posts)  Bio
Date Reply #2 on Fri 29 Apr 2005 03:23 PM (UTC)

Amended on Fri 29 Apr 2005 03:26 PM (UTC) by Txzeenath

Message
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)

Darkness comes along thy path, searching, wanting, calling wrath,
shadows awaken, release the light, one and only.. here to fight,
challenge the darkness, the shadows they call, hunting the living,
more and all. Roaring thunder, full of hate, a single bound, seals
your fate.

-Txzeenath

telnet://divineright.org:8088
Alumuble Arda -
*Player owned shops, clans, and housing
*Multiclass & Stat training
*Random mob name generation implemented and Overland mapping.
*Realistic equipment statistics
*Interactive enviroment(weather/sectors)
*Weapon sheaths(scabbards), Throwing weapons
*Automatic crash recovery, saving, and reporting without disconnecting
*Fully customizeable color, Automapper, "Smart" mobiles, Hiscore tables, and more!

Currently running AGE v1.9.6(Originated and modified from Smaug 1.4a)
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


13,356 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.