Mob races

Posted by Firedraconian on Sun 01 Aug 2004 05:45 PM — 10 posts, 39,978 views.

USA #0
Is there a way to add new races that you have made to the options for making mobs in the Editor?
Australia Forum Administrator #1
In the smaugconfig.dat file (or romconfig.dat) is a list of races, like this:


#RACE
Human
Elf
Dwarf
Halfling
Pixie
Vampire
Half-ogre
Half-orc
Half-troll
Half-elf
Gith
Ant
Ape
Baboon

...

End


Just edit that. However you need to have a registered copy before it will read that file.
#2
I can't seem to find smaugconfig.dat in the system folder, I tried looking for something similair to what you had on the list, but I had no luck. And I'm using SmaugFUSS + Area Editor is registered.

[EDIT] Nvm. Thought the .dat file was located somewhere in the smaug folder, but its actually in the AE folder.
Amended on Sun 26 Sep 2004 04:16 AM by USER007
#3
Whilst we are on the topic, a friend and I are trying to implement our own races, and so far it works really well. However, when we deleted all the other races except human we could no longer see any class to choose while making a new character. After fiddling around we got Thief to work, but we couldn't get Warrior or Ranger to show up. Then we added a new class called Scholar and the Warrior class showed up but Scholar didn't!

My question is how do we make any and all classes show up for our races?

Thanks and Godbless,
Longbow
USA #4
There is a field for races called "classes".

Syntax: setrace <race> <field> <value>
Syntax: setrace <race> create        

Field being one of:
  name classes strplus dexplus wisplus
  intplus conplus chaplus lckplus hit
  mana affected resist suscept language
  attack defense alignment acplus 
  minalign maxalign height weight      
  hungermod thirstmod expmultiplier    
  saving_poison_death saving_wand      
  saving_para_petri saving_breath      
  saving_spell_staff                   
  mana_regen hp_regen    


Use that to set the allowed classes. I believe you have to use the class number.

So for example (from my MUD):
showrace human
RACE: Human
Disallowed Classes:  
Allowed Classes: None Blacksmith Ninja Combatant Guardian Slayer 
Amended on Sat 05 Feb 2005 04:16 PM by Zeno
#5
Ok, I've got the races working I believe. Praise the Lord and thanks yall for the help!

Now, I've got a new class we've made. When you go to the class selection it does not show up, but you can still pick it. WHY? I want to be able to see it!


Longbow
USA #6
Hmm. How many classes you have? There is a coded limit in mud.h, MAX_CLASS. Or that may be in where the code for class selection is.
#7
The only classes I have are Thief, Warrior, Ranger, and Scholar(in that order in the class.lst file)

I can pick my Scholar and Ranger classes, but they don't show up when you are at the class selection screen. The thief and warrior show up fine.



Longbow
USA #8
Did you make sure that the class number in the class file is the same in class.lst? Search the forums for your problem, I've seen it before. It should help you a bit more.
USA #9
This is a well documented issue with smaug actually. For some fairly bazare reason, the class_total is set to 2 lower than what the actual class_list contains and the last 2 classes in the list are ignored. Your choices are to "backdoor" everything you want visible by adding junk classes to pad the list or to edit the total to accurately match the list.