Result
{% gender = {48%?female|48%?male|non-binary} %}
{%if Character_Race == "Random"%}
{% result = roll_chart name:"Races (weighted) sub" %}
{% roll = result.dice_val %}
{% race = result.1 %}
{% subrace = result.2 %}
{%elif Character_Race == "Exotic or Mixed"%}
{% result = roll_chart dice:EQN(d7+93) name:"Races (weighted) sub" %}
{% roll = result.dice_val %}
{% race = result.1 %}
{% subrace = result.2 %}
{%else%}
{% race = {$Character_Race} %}
{% result = roll_chart cols:"1-2" filter:"{$Character_Race}" name:"Races (weighted) sub" %}
{% subrace = result.2 %}
{% roll = 1 %}
{%end%}
{%if roll < 94%}
{% surname = {{$race} surnames} %}
{% result = roll_chart name:{{$race} names} %}
{%else%}
{% surname = "Pharma names" %}
{% result = roll_chart name:"Custom names" %}
{%end%}
{%if gender == "female"%}
{{result.1}} Roll on "{$surname}"
{%elif gender == "male"%}
{{result.2}} Roll on "{$surname}"
{%elif gender == "non-binary"%}
Resolve: {{{result.2}}|{{result.1}}} Roll on "{$surname}"
{%end%}
Roll on "NPC Age" {{gender}} {{race}} {{subrace}}
Profession: Roll on "NPC Profession"
Personality: Roll on "NPC Personality Traits"
{% pt = roll_chart name:"NPC Physical Traits" %}
Appearance: {{pt.1}} and {{pt.2}}
{% quirks = roll_chart name:"NPC Quirks" %}
Quirks: Roll on "NPC Quirks" 2 times (unique results only)
Relationship status: Roll on "NPC Relationship Status"
Carrying: Roll on "Things in a Stranger's Pocket"
Roll on "NPC Fixations"