$DAT_Race_Weight

$DAT_Race_Height

DungeonCraft Help Home



The Races.Dat (and Races.txt) files define a 'DICEPLUS' method of defining the weight and height of a member of the race. An example for a human might be:



weight = 7d12+93+((45+1d12)*Male)

height = 2d8+58+((6+1d4)*Male)



These examples define the weight and height depending on the gender and random dice rolls. These values ought to be computed and applied to a character at the time the character is created, but they are not because it was too much work. It was decided that a script that needed to know a characters weight would employ the following method (example names...you might want to use others):

  1. See if the character has an ASL named “Weight”. If so, use the value of the ASL as the character's weight. Else proceed to step 2.

  2. Execute the function $DAT_Race_Weight, using the character as the parameter. The result is the weight of the character.

  3. Add an ASL named “Weight” to the character with the weight as determined by step 2 as the value of the ASL.

The functions ought not to be used multiple times for the same characters since the value would change due to the random dice rolls.



The functions require an actor as a parameter and return a numeric string:



String $DAT_Race_Weight (Actor)

String $DAT_Race_Height(Actor)