Class-Race combination

Posted by Davidgan on Sat 10 Aug 2002 11:55 AM — 4 posts, 21,757 views.

Singapore #0
How do I specify what classes a certain race can go?
Quote:

Name _Vampire_~
Race 5
Classes 512
Amended on Sun 11 Aug 2002 06:40 AM by Davidgan
Australia Forum Administrator #1
Looks like classes is a bitmap representing classes a race *cannot* be. Try making it zero to get all classes. Otherwise:

1 - omit class 1
2 - omit class 2
4 - omit class 3
8 - omit class 4

and so on.
Brazil #2
Ok, now another problem..

Those class numbers.. what's the meaning of 931???
It is on the halfling file, has a default value..

And:

How to omit more than one class? Simple mix all the numbers?
for example:
I want to omit classes 3 and 5:
3 = 4
5 = 16

so I use 416? 164?

Thanks in advance! =D
Amended on Wed 06 Jun 2007 10:06 PM by Alkarindil
USA #3
If you're working with a bit table, you add the values.

Your omit 3 and 5 would be 20, 931 would be um.... lets have a chart for reference shall we?

1
2
4
8
16
32
64
128
256
512

931 - 512 = 419 - 256 = 163 - 128 = 35 - 32 = 3 - 2 = 1

So, 931 is 512, 256, 128, 32, 2 and 1. Whichever classes those correspond to on the table are what aren't available to that race.