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, confirm your email, resolve issues, 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.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Multiclass System

Multiclass System

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


Posted by Nystix   (19 posts)  Bio
Date Mon 28 Oct 2002 09:59 PM (UTC)
Message
Hey. I realize that this is a fairly broad request, and that some amount, likely more than a minor change will be needed to be made to the codebase, but how might I go about a multiclass system.

I would like to give options to multiclass into three seperate classes, and then have a hero class where the leveling system is slightly different in that it would be lvl 181:(hero level). Anyone have any suggestions?

First class: 0-60
Second Class: 61-120
Third Class 121-180
Hero: 181:infinity
Immortal: 182-190

Thanks for any help.
Top

Posted by Nystix   (19 posts)  Bio
Date Reply #1 on Tue 29 Oct 2002 10:11 PM (UTC)
Message
To elaborate on my previous message, I believe what I will be doing is setting a level cap at level 60, 120 and 180 to start, so when a player hits level 60 they cannot level up to 61. When they perform the necessary actions (not decided what yet) then they are transferred into a room for multiclassing which will mpadvance them +1 level, and mset their class. How might I set a max-level in 3 sections?
Top

Posted by Chris L   USA  (57 posts)  Bio
Date Reply #2 on Wed 30 Oct 2002 07:43 PM (UTC)

Amended on Wed 30 Oct 2002 07:48 PM (UTC) by Chris L

Message
k this would actually take some work to do.. you will first have to add 2 more places to store the classes, id suggest pcdata->class2 and pcdata->class3 for the levels you can edit gain_exp in update.c to not give exp if you are at one of the stages or if you just mpadvance you can make it so they do not get exp at a specific level
i.e.
if ( ch->level == 60 || ch->level == 120 || ch->level == 180 )
return;

(also withing magic.c and skill.c for the spells and skill) then in magic.c there will be a block of code like

/* Regular mortal spell casting */
if ( get_trust(ch) < LEVEL_GOD )
{
if ( ( sn = find_spell( ch, arg1, TRUE ) ) < 0
|| ( !IS_NPC(ch) && ch->level < skill_table[sn]->skill_level[ch->class] ) )
you need to change the if to also check for the ch->pcdata->class2 skills and do same thing to the can_use_skill bool in skills.c
you would probly want to edit the do_slist,do_practice(act_info.c) and do_score(player.c i think)
then inside mpxset.c(i think) you can add a thing into do_mpmset so progs can change players class2/class3
Top

Posted by Mikey   (4 posts)  Bio
Date Reply #3 on Thu 02 Jan 2003 06:54 PM (UTC)
Message
On the subject of the multiclass system, I have a quick question for those who have knowledge on this...

I want to modify mine so that when you choose your next class (whether it be the second or third class) the player will maintain all the skills of all the previous class(es) completed instead of everything resetting and having just the skills of the class you are on...

Any suggestions?

Thank you.

-Mike
Top

Posted by Meerclar   USA  (733 posts)  Bio
Date Reply #4 on Thu 02 Jan 2003 07:50 PM (UTC)
Message
check Kyndig.com, there are several remort snipets that should be modifiable to your needs after some design considerations.

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
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.


15,299 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.