character_trait_definition

Soft Override:

Unknown

Defines a character trait.

Hierarchy

This block can be a child of the following blocks:

ID

This block can have an ID.

Optional:

False

Can have spaces:

True

Parameters

CharacterTrait
Type:

string

Required:

True

The registries trait definition ID to link to. see the wiki page about registries for more information.

Cost
Type:

integer

Required:

True

The cost of the trait when selecting a character. Negative values give points, positive values take points.

DisabledInMultiplayer
Type:

boolean

Deprecated:

{‘description’: ‘This parameter is no longer used and now has no effect.’}

Required:

True

Previously was used to mark traits as disabled in multiplayer, but is now deprecated and has no effect.

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:

True

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:

translation

Required:

True

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:

translation

Required:

True

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,