Code: Select all
xp_classes = 4
xp_subskills = {4, 4, 4, 4}
Code: Select all
xp_classes = 4
xp_subskills = {5, 4, 4, 4}
In order to make restricting classes to characters easier, I have added a something called "forbid_class" to the character exvars recognized by the base code. This forbids characters from gaining levels in certain classes. For example:
Code: Select all
ch_exvar[CHAR_STAMM].forbid_class = { false, false, true, true }
ch_exvar[CHAR_TIGGY].forbid_class = { false, true, false, false }
Since this is implemented as an exvar, the engine actually doesn't know or care about this. It will only work if you use xp_up, as defined in base/xp.lua, to give experience. dsb_give_xp simply blindly adds the xp given to the character's totals and will ignore forbidden classes.
None of this is set in stone yet so any comments, suggestions, etc. are of course welcome.