I keep getting so close on my own, but then hit a conceptual wall with one little piece. I want to let players choose a human homeland (like Varisian) if they are not a human race. The idea is to meet the prerequisites for traits/feats (like Harrow Chosen).
Justification: Although the player may be another race (like Aasimar), they may have grown up in human society and thus consider that land their homeland.
These were some ideas I had:
1) Just add another heritage allowance so player can select 2. Pros: Simple, uses same interface. Cons: would have to modify all human ethnicities so they would show up for other races; nothing to force the player to pick one from their own race and one from human (could pick 2 from their race or 2 human; both wrong)
2) Add another heritage allowance and use the workaround of selecting human first, then the ethnicity, then switch to actual race and select racial heritage from that race (2 selections). Pros: Uses same interface; doesn't require editing all of the ethnicities like above. Cons: complicated for user; exploits a bug that may eventually be patched out
3) **Preferred** make a new trait called "Homeland". Allow selection of a human ethnicity. Add that ethnicity to the hero. Add an extra trait allowance (so the homeland trait is free).
I have most of #3 working, except the most important part. I successfully created the trait, made a menu that is limited to human ethnicities, added a script that adds an extra trait... but it takes more than adding Ability.rcVarisian to count as having the ethnicity.
How do I programmatically add the selected ethnicity to the hero?
Justification: Although the player may be another race (like Aasimar), they may have grown up in human society and thus consider that land their homeland.
These were some ideas I had:
1) Just add another heritage allowance so player can select 2. Pros: Simple, uses same interface. Cons: would have to modify all human ethnicities so they would show up for other races; nothing to force the player to pick one from their own race and one from human (could pick 2 from their race or 2 human; both wrong)
2) Add another heritage allowance and use the workaround of selecting human first, then the ethnicity, then switch to actual race and select racial heritage from that race (2 selections). Pros: Uses same interface; doesn't require editing all of the ethnicities like above. Cons: complicated for user; exploits a bug that may eventually be patched out
3) **Preferred** make a new trait called "Homeland". Allow selection of a human ethnicity. Add that ethnicity to the hero. Add an extra trait allowance (so the homeland trait is free).
I have most of #3 working, except the most important part. I successfully created the trait, made a menu that is limited to human ethnicities, added a script that adds an extra trait... but it takes more than adding Ability.rcVarisian to count as having the ethnicity.
How do I programmatically add the selected ethnicity to the hero?