character_trait_definition#
Defines a character trait.
Hierarchy#
Valid Parent Blocks:
ID Properties#
This block should have an ID.
Parameters#
CharacterTrait#
- Type:
string (required)
The registries trait definition ID to link to. see the wiki page about registries for more information.
Cost#
- Type:
integer (required)
The cost of the trait when selecting a character. Negative values give points, positive values take points.
DisabledInMultiplayer#
- Type:
boolean (required)
If true, this trait will be disabled in multiplayer games.
GrantedRecipes#
- Type:
array (array of string, separator: ‘;’)
A list of craftRecipe IDs that are granted to the character when this trait is selected.
IsProfessionTrait#
- Type:
boolean (required)
Defines whenever the trait is a profession trait or not, meaning it will only be available when selecting a profession.
MutuallyExclusiveTraits#
- Type:
array (array of string, separator: ‘;’)
A list of trait IDs that are mutually exclusive with this trait. If one is selected, the others cannot be selected.
Texture#
- Type:
string
The path to the trait’s icon texture. This should be a .png file located in the textures folder of your mod.
UIDescription#
- Type:
string (required)
The translation key for the trait’s description. The translation key needs to be in the UI translation file. See the wiki page about translations for more information.
UIName#
- Type:
string (required)
The translation key for the trait’s name. The translation key needs to be in the UI translation file. See the wiki page about translations for more information.
XPBoosts#
- Type:
object (object: string->>integer, kv: ‘=’, pairs: ‘;’)
A list of experience boosts granted by this trait. Each entry should contain a skill name and the corresponding boost amount.
For example:
XPBoosts = Axe=1;Blunt=1,