New class

Posted by Malti on Tue 02 May 2006 03:17 AM — 5 posts, 21,095 views.

USA #0
I added a new class and I am trying to update the race files..I am assuming the classes use the following bit layout


1 1 1 1 1 1 1 1 1 1 1
- - - - - - - - - - -
1 5 2 1 6 3 1 8 4 2 1
0 1 5 2 4 2 6
2 2 6 8
4

10 9 8 7 6 5 4 3 2 1 0 - Classes


so if I wanted class 0, 9, and 10...the number I would put would be 1537? is this correct? and would all the classes be 2047? and does the first class (class 0) start at the second bit(2) or first (1)?

I know this is all covered in the forum, but i still don't understand.



USA #1
That sounds reasonably close to right, but I always just use the setrace command online to adjust that.. that way I don't have to do the bit value math.. it's not straight binary, it's bit values, btw, so mage is (by default) 1, then cleric is 2, thief is 4, warrior is 8, etc, so a race that could be just those four would be 15, but if you get enough classes and only want certain ones the math can be a pain in the rear.
USA #2
ok then, I will do it online since i am not really getting the bitvalue math. When you use the setrace <race> classes <class> does that overwrite what is already there? or does it add that class to the list of accepted classes?
USA #3
I dont understand how any of this works. I am very very confused. When I use setrace <half-elf> classes <bard> then it automatically makes every class available. I have 10 classes (0 through 9) and bard is my 9th class (all the others are the standard classes). Can anyone explain how to do this bit math?


USA #4
Haha, this was kind of a wasted post because I figured it out. Here is the answer and I think this can help anyone who doesn't understand the other posts...


1 1 1 1 1 1 1 1 1 1
- - - - - - - - - -
5 2 1 6 3 1 8 4 2 1
1 5 2 4 2 6
2 6 8

9 8 7 6 5 4 3 2 1 0


This is a bit table for a standard 9 class system. The class numbers are in bold. If you wanted every class except class 0, then you make the class line in the file like so:

Classes 1

If you wanted every class except for 0 and 4 then you would do the following:

Classes 17

using 513 or 0 will allow all classes since they are both beyond the bit range. I could be wrong about this, but I am pretty sure I am not since this worked for me.