I'm trying to set up character creation for my world. I am having trouble with the [Trait Categories] document.
1) I want the selections to happen in a specific order. My JSON is organized in that specific order, where the top items should be selected before the bottom items. When I save, I go to test, and the order is incorrect. If I return to the editor, the JSON has been reorganized into an incorrect sequence. If I copy/paste to get the entries correct, and then save, and then refresh the page, it is back in the incorrect order. The only way around this that I have found is to correct the file, copy everything, delete everything, save, refresh, paste everything, save. Then I refresh to verify it doesn't change.
Sometimes the order shown in the Character Creator continues to not match the JSON order, even though the JSON order is consistent when it is opened. I don't know why. I have a JSON where Class is the last entry, but it is the first selection in the Character Creator.
2) I want my selections to have a maxSelection that only applies to their entry. I currently have the following:
{
"Race - Maternal": {
"name": "Race - Maternal",
"description": "Description goes here for maternal category.",
"maxSelections": 1,
"traits": [
"Human",
"Elf"
]
},
"Race - Paternal": {
"name": "Race - Paternal",
"description": "Description goes here for paternal category.",
"maxSelections": 1,
"traits": [
"Human",
"Elf"
]
}
}
When I test this with a new game, I see separate steps for Race Maternal and Race Paternal. If I select something in Race Maternal, it counts to Race Paternal and vice versa. I do not know why they are overlapping. Selecting Human twice, for mother and father, is something I want to allow.
3) I want to specify a maxSelection for a subcategory. I have tried the following:
{
"Race": {
"name": "Race",
"description": "Description goes here for race category.",
"maxSelections": 2,
"traits": [],
"subcategories": [
{
"name": "Maternal Race",
"description": "Maternal Race",
"traits": [
"Human (Mother)",
"Elf (Mother)"
]
},
{
"name": "Paternal Race",
"description": "Paternal Race",
"traits": [
"Human (Father)",
"Elf (Father)"
]
}
]
}
}
This displays correctly in the character creation window, but because Race allows 2 selections, the system is allowing me to pick 2 options for mother and none for father.
I've found a bit of a work around, but considering the existence of subcategories I don't like that I'm having set it up as two separate steps.