Well, assuming you intend it for all, here is how I would approach it.
Go to the Mechanic tab in the editor and create a new one. Name it and give it a unique ID. Scroll down and give it a new source as well. When defining the new source, in the box for Parent Source type in "HouseRules" so it sorts under the house rules stuff, and name it whatever you like. Perhaps "Ravenloft Common Replacement" with a unique ID of RavCommRep.
Then click on the eval script button in the upper right, and add the following eval script:
First 400
You can't use Test Now with mechanics, so save the file and reload the program. Then start up a new character, and test turning on your house rule, making sure it behaves as expected.
Go to the Mechanic tab in the editor and create a new one. Name it and give it a unique ID. Scroll down and give it a new source as well. When defining the new source, in the box for Parent Source type in "HouseRules" so it sorts under the house rules stuff, and name it whatever you like. Perhaps "Ravenloft Common Replacement" with a unique ID of RavCommRep.
Then click on the eval script button in the upper right, and add the following eval script:
First 400
Code:
~First, set the focus to whatever race we have added
perform hero.findchild[BaseRace].setfocus
~If there is no race, then there will be no focus and we can go no further
doneif (state.isfocus = 0)
~If the race already has the NoDefComm tag there is nothing to replace
doneif (focus.tagis[Hero.NoDefComm] <> 0)
~If we've gotten this far, assign the tag to remove the default common, and add 1 starting language slot to replace it.
perform focus.assign[Hero.NoDefComm]
herofield[tLangsSta].value += 1
You can't use Test Now with mechanics, so save the file and reload the program. Then start up a new character, and test turning on your house rule, making sure it behaves as expected.
Last edited: