[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  Compiling the server
. . -> [Subject]  Class-Race combination
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Class-Race combination

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Davidgan   Singapore  (5 posts)  [Biography] bio
Date Sat 10 Aug 2002 11:55 AM (UTC)

Amended on Sun 11 Aug 2002 06:40 AM (UTC) by Davidgan

Message
How do I specify what classes a certain race can go?
Quote:

Name _Vampire_~
Race 5
Classes 512
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Fri 16 Aug 2002 10:40 PM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Alkarindil   Brazil  (70 posts)  [Biography] bio
Date Reply #2 on Wed 06 Jun 2007 10:02 PM (UTC)

Amended on Wed 06 Jun 2007 10:06 PM (UTC) by Alkarindil

Message
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
[Go to top] top

Posted by Meerclar   USA  (733 posts)  [Biography] bio
Date Reply #3 on Wed 06 Jun 2007 10:37 PM (UTC)
Message
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.

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


5,883 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]