• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Adding New Human Ethnicities

Excellent.

Thank you, Mathias.

Now how would I go about setting it to override the standard human height and weight?
 
Just set the height and weight to whatever you want. It might come up with an error saying that your character is outside the norms for the race, but so what. The height and weight that you want is there and prints to your character sheet just fine.
 
I know I can just do that, but I was curious as to whether or not I could set it for an ethnicity without making a whole new species.
 
Have you figured out what fields and tags store the information you want to change? That's your first step - study what fields and tags exist on a race, and identify the ones you want to change.
 
I've looked at the tags for height and weight by creating a new race.

There aren't any tags for minimum height or weight for male or female either one that I can find.
The tags I can find are for Height Die Count, Height Die Size, and Weight Multiplier.
 
New problem. I made the Ethnicities in the R Cust Special, but when I add the fields for Minimum Height and Weight for males and females, I get the errors below.

Here are the Fields I added and then the Error when I tested it.

So it looks like I'll have to make every ethnicity a separate race to alter their height and weight.
 

Attachments

  • ScreenHunter_02 Dec. 18 15.52.jpg
    ScreenHunter_02 Dec. 18 15.52.jpg
    147 KB · Views: 23
  • ScreenHunter_01 Dec. 18 15.51.jpg
    ScreenHunter_01 Dec. 18 15.51.jpg
    94.5 KB · Views: 21
You will need to write an eval script to modify the race. By putting the fields on the R cust special you are trying to modify fields that don't exist on the R Cust Special instead of the race.
 
Great. I don't know why I thought it would be easy.

So how do I script to add the fields rHeightMnM, rHeightMnF, rWeightMnM, and rWeightMnF as well as the tags for HeightDice, HeightSize, and WeightMult to override the racial defaults?
 
Can you find any code anywhere that deals with changing the value of a field?
Can you figure out how to delete an existing tag value and add a new tag value?

Think in terms of abilities in Pathfinder that alter how something else functions - that's the sort of ability that will be altering the fields and tags of other things.

Since I can't think of a good example to lead you to in order to give you this, here's how to reach the race, no matter which race it is:

Code:
perform hero.findchild[Race].setfocus
 
doneif (state.isfocus = 0)

And once the focus has been established, you can use

Code:
focus.

to get there, instead of the hero.child[XXXXX]. you may see in other places.
 
Okay, I've been trying to do this myself and I keep running into various errors. First off, if I put in the findchild code as above, without anything else, I get this error:

Syntax error ... line 8
-> Non-existent component 'Race' used by script

I then change it to [BaseRace] and it compiles fine. But when I add in

Code:
focus.field[rHeightMnM].value = 60

I get the following error:

Syntax error ... line 10
-> Only derived fields can generally be modified via scripts (field 'rHeightMnM')

I've looked through the forums for possible solutions, but can't seem to find any.
 
Last edited:
I'll look into whether switching them to derived fields would break anything. If not I will and then you can modify them.

If you're manipulating the tags that control added die size, those scripts run an First 650, I think. Make sure you run your script before that.
 
Alright, I switched the fields to derived, you should be able to work with them after the next release.
 
Back
Top