.. _character_profession_definition: character_profession_definition =============================== Defines a character profession. .. code-block:: cpp 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:** - :ref:`module` ID Properties ------------- This block should have an ID. Parameters ---------- .. _character_profession_definition-characterprofession: **CharacterProfession** `🔗 <#character_profession_definition-characterprofession>`_ Type: ``string`` The `registries `_ profession ID to link to. .. _character_profession_definition-cost: **Cost** `🔗 <#character_profession_definition-cost>`_ Type: ``integer`` The cost of the profession when selecting a character. Negative values remove points, positive values add points. .. _character_profession_definition-grantedrecipes: **GrantedRecipes** `🔗 <#character_profession_definition-grantedrecipes>`_ Type: ``array`` A list of `craftRecipe `_ IDs that are granted to the character when this profession is selected. .. _character_profession_definition-grantedtraits: **GrantedTraits** `🔗 <#character_profession_definition-grantedtraits>`_ Type: ``array`` A list of character trait IDs that are granted to the character when this profession is selected. .. _character_profession_definition-iconpathname: **IconPathName** `🔗 <#character_profession_definition-iconpathname>`_ Type: ``string`` No description .. _character_profession_definition-uidescription: **UIDescription** `🔗 <#character_profession_definition-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. .. _character_profession_definition-uiname: **UIName** `🔗 <#character_profession_definition-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. .. _character_profession_definition-xpboosts: **XPBoosts** `🔗 <#character_profession_definition-xpboosts>`_ Type: ``object`` A list of experience boosts granted by this profession. Each entry should contain a skill name and the corresponding boost amount. For example: .. code-block:: cpp XPBoosts = Axe=1;Blunt=1,