character_profession_definition#
Defines a character profession.
character_profession_definition yourmod:example_profession
{
CharacterProfession = yourmod:example_profession,
Cost = -6,
UIName = UI_prof_MetalWorker,
UIDescription = UI_profdesc_metalworker,
IconPathName = profession_metalworker,
XPBoosts = MetalWelding=4,
GrantedRecipes = Advanced_Forge;Blast_Furnace,
}
Hierarchy#
Valid Parent Blocks:
ID Properties#
This block should have an ID.
Parameters#
CharacterProfession#
- Type:
string
The registries profession ID to link to.
Cost#
- Type:
integer
The cost of the profession when selecting a character. Negative values remove points, positive values add points.
GrantedRecipes#
- Type:
array (array of string, separator: ‘;’)
A list of craftRecipe IDs that are granted to the character when this profession is selected.
GrantedTraits#
- Type:
array (array of string, separator: ‘;’)
A list of character trait IDs that are granted to the character when this profession is selected.
IconPathName#
- Type:
string
No description
UIDescription#
- Type:
string
The translation key for the profession’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
The translation key for the profession’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 profession. Each entry should contain a skill name and the corresponding boost amount.
For example:
XPBoosts = Axe=1;Blunt=1,