Thread: stumped...
View Single Post
  #5  
Old 06-30-2002, 12:11 PM
Lurker_005
Demi-God
 
Join Date: Jan 2002
Location: Tourist town USA
Posts: 1,671
Default

sigh oh well, here is a code idea.

race <- decimal of race value
sudo code, you'll have to wright it to work right for PHP and also get the races correct for the correct bit

Code:
racetext = ""
if race >= 2^15 then
  racetext = racetext + "BAR "
  race = race - 2^15
end if
if race >= 2^14 then
  racetext = racetext + "HUM "
  race = race - 2^14
end if
if race >= 2^13 then
  racetext = racetext + "OGR "
  race = race - 2^13
end if
....
if race >= 2^0 then
  racetext = racetext + "EUR "
  race = race - 2^0
end if
if race <> 0 ERROR somewhere

You can do the same for class and diety.
__________________
Please read the forum rules and look at reacent messages before posting.
Reply With Quote