New classes dont have skills or spells

Posted by Iamauser on Sun 24 Jun 2001 08:01 PM — 3 posts, 14,574 views.

#0
I made some new classes and when I make a new character and don't customize, the character has every skill and spell at 1% when I do the practice command but it says I have no spells or skills when I try to see them with the spell and skill command. How would I fix that in the code?

I also have no clue as to how to set what weapons they can choose from when creating a new character.

Australia Forum Administrator #1
I'm not a big expert on ROM and can't answer your first question.

As for the weapons, I found this in const.c:


/* weapon selection table */
const struct weapon_type weapon_table [] =
{
{ "sword", OBJ_VNUM_SCHOOL_SWORD, WEAPON_SWORD, &gsn_sword },
{ "mace", OBJ_VNUM_SCHOOL_MACE, WEAPON_MACE, &gsn_mace },
{ "dagger", OBJ_VNUM_SCHOOL_DAGGER, WEAPON_DAGGER, &gsn_dagger },
{ "axe", OBJ_VNUM_SCHOOL_AXE, WEAPON_AXE, &gsn_axe },
{ "staff", OBJ_VNUM_SCHOOL_STAFF, WEAPON_SPEAR, &gsn_spear },
{ "flail", OBJ_VNUM_SCHOOL_FLAIL, WEAPON_FLAIL, &gsn_flail },
{ "whip", OBJ_VNUM_SCHOOL_WHIP, WEAPON_WHIP, &gsn_whip },
{ "polearm", OBJ_VNUM_SCHOOL_POLEARM,WEAPON_POLEARM, &gsn_polearm },
{ NULL, 0, 0, NULL }
};
Australia Forum Administrator #2
You might find more information in the help file doc/class.txt that came with ROM. Here is what it has to say about adding a new class:

Adding a new class

Here's how to add a new class:

  1. Increment 'MAX_CLASS' in 'merc.h'
  2. Add a new entry to 'class_table' in 'const.c'.
  3. Add sn level numbers to 'skill_table' in 'const.c' for the new class. Set the level to 37 for all skills or spells which the class is unable to use.
  4. Add an entire new block of titles to 'title_table' in 'const.c'.
  5. Add new lines to 'pose_table' in act_comm.c. You need two lines at each level for that class. To keep the 'pose' messages from looking like 'emote' messages, avoid putting the name of the character (the '$n' construct) at the beginning of the line.