After hearing someone tell me about the remort snippet, I decided to download and try it out. I like the idea, but I need to alter it to my own need. Here's my dilema: I need to set it up so once players can only evolve (remort as I call it) into a class specific to their own class. For example, a cavalier would be able to evolve into either a paladin or an anti-paladin based on their alignment after reaching level 50.
The way it's set up now is once you're able to evolve, you can evolve into any of the classes in the game. So for starters I know I need to set the code up into a switch for each class, problem is, as a novice I don't know how to set up a set switch. :p
the current code for the class selection looks like this:
Can someone push me off this cliff in the right direction?
-Toy
The way it's set up now is once you're able to evolve, you can evolve into any of the classes in the game. So for starters I know I need to set the code up into a switch for each class, problem is, as a novice I don't know how to set up a set switch. :p
the current code for the class selection looks like this:
else
{
if (ch->level == LEVEL_HERO)
ch->pcdata->tier++;
for ( iClass = 0; iClass < MAX_PC_CLASS; iClass++ )
{
if ( class_table[iClass]->who_name[0] != '\0' && class_table[iClass]->evolve_class <= ch->pcdata->tier-1)
{
if (!str_cmp(arg, class_table[iClass]->who_name))
break;
}
}
if (iClass == MAX_PC_CLASS)
{
if (ch->level == LEVEL_HERO)
ch->pcdata->tier--;
send_to_char("That is not a valid class.\n\r", ch);
return;
}
} Can someone push me off this cliff in the right direction?
-Toy