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
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?
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
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...