.. _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 ^^^^^^^^^^^^^^^^^^^ :Type: string The `registries `_ profession ID to link to. .. _character_profession_definition-cost: 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 ^^^^^^^^^^^^^^ :Type: array (array of string, separator: ';') A list of `craftRecipe `_ IDs that are granted to the character when this profession is selected. .. _character_profession_definition-grantedtraits: GrantedTraits ^^^^^^^^^^^^^ :Type: array (array of string, separator: ';') A list of character trait IDs that are granted to the character when this profession is selected. .. _character_profession_definition-iconpathname: IconPathName ^^^^^^^^^^^^ :Type: string No description .. _character_profession_definition-uidescription: 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 ^^^^^^ :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 ^^^^^^^^ :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: .. code-block:: cpp XPBoosts = Axe=1;Blunt=1,