View Single Post
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old August 25th, 2013, 08:31 AM
You have to run a script that will increase the allowed number of Custom Racial Abilities by one on the races. This is actually a script that currently runs on like Humans and stuff.

For Razor Coast I created a Mechanic set to the "Razor Coast" source with the following script:
First/10000
Code:
      ~ If not human get out now
      doneif (#hasrace[rHuman] = 0)

      ~set our focus to the hero's race
      perform hero.findchild[BaseRace].setfocus
      doneif (state.isfocus = 0)
      ~ Give one Ethnicity
      focus.field[rGiveSpec].value = 1
      perform focus.assign[Helper.OptCustom]
      focus.field[rSpecName].text = "Ethnicities"
So now when the Razor Coast source is selected we give humans one Ethnicity to choose from. If you have other races you would need to modify the doneif line to include the other races. In example lets say you wanted to allow Elves to pick an Ethnicties also:
Code:
      ~ If not human or Elf get out now
      doneif (#hasrace[rHuman] + #hasrace[rElf] = 0)

Hero Lab Resources:
Pathfinder - d20pfsrd and Pathfinder Pack Setup
3.5 D&D (d20) - Community Server Setup
5E D&D - Community Server Setup
Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources.
Created by the community for the community
- Realm Works kickstarter backer (Alpha Wolf) and Beta tester.
- d20 HL package volunteer editor.
ShadowChemosh is offline   #5 Reply With Quote