hiddenoption is an optional way to make a skill stay hidden in the skill screen until it reaches level 1. This allows keeping a skill hidden from the player if its existence is a spoiler until it is unlocked.
skillOptionsobject contains global options about skills in general. For now this only contains the
xpPerLeveloption, which defines how many XP points a player needs to gain to level up in a skill. XP is currently linear and the same for all skills
failureChancevalue, below which any roll will automatically fail.
idwhich allows the engine to save the state of each skill check
skillMultiplieris 10, so 30 gets added to the roll. This means the total roll of the player is 83.
rollfunction inside an
skillCheckId: Each skill check needs its own id so that the game can save whether it was successful or not. This can be any value
skillId: The id of the skill to use in this skill check (as configured in your skills config)
difficulty: The score to beat to pass the skill check, defining how hard it is. With the default settings of rolls being 0 and 100, and a player at level 0, a difficulty of 50 would mean 50% chance of success by default.
choicecommand, as one of the options the player can choose.
roll [skillCheckId] [skillId] [difficulty] [promptText] [optional hideAfterRoll]:
promptTextis the text that will appear as the prompt for that choice
hideAfterRolloption can be added at the end of a the skill check to make this option disappear from the choice if it's been played once. This is useful if the skill check is inside a "menu dialogue" where you want this option to hide after the skill check has been attempted.
successbranch and a
failurebranch inside the roll. The engine will go to one of those depending on the result.