Minor title modding

From Crusader Kings II Wiki
Revision as of 02:43, 27 December 2016 by Fw190a8 (talk | contribs) (Created page with "Minor titles can be given out for prestige or opinion modifiers. They are defined in the files contained in the '''/common/minor_titles/''' folder. == Basic minor title == Y...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Minor titles can be given out for prestige or opinion modifiers. They are defined in the files contained in the /common/minor_titles/ folder.

Basic minor title

You can make a basic minor title in a really easy way. Add a .txt file to your mod's /common/minor_titles/ folder. As long as it does not have the same name as the files in the base game's /common/minor_titles/ folder it will add to the list of minor titles.

title_houndmaster = {
    dignity = 0.10
    grant_limit = 1
    opinion_effect = 5

    monthly_salary = 0.1
    monthly_prestige = 0.15

    is_unique = yes

    allowed_to_hold = {
        is_adult = yes
        NOT = { trait = incapable }
    }
    allowed_to_grant = {
        AND = {
            is_feudal = yes
            OR = {
                has_landed_title = k_lalaland
                has_landed_title = k_timbuktu
            }
        }
    }
}

The example above will add a minor title that can be granted to any adult who is not incapable. It can only be granted in the kingdoms of lalaland and timbuktu, and they must be feudal.

Properties

Name Value Effect Example
dignity number Adds the specified amount of dignity to the title holder. dignity = 0.10
grant_limit integer How many times this minor title may be granted. grant_limit = 1
opinion_effect integer The opinion of others towards holders of this minor title. 5 would be a +5 opinion. opinion_effect = 5
monthly_salary number The amount the holder will earn by holding this minor title in one month. monthly_salary = 0.1
monthly_prestige number The amount of prestige accrued each month by the holder of this minor title. monthly_prestige = 0.15
is_unique bool Whether this title is unique. is_unique = yes
allowed_to_hold condition Determines which characters are eligible to hold this minor title.
allowed_to_hold = {
    is_adult = yes
    NOT = { trait = incapable }
}
allowed_to_grant condition Determines who is allowed to grant this title. This might be restricted by religion, culture, traits, or simply limited to one kingdom or duchy.
allowed_to_grant = {
    has_landed_title = k_lalaland
}
gain_effect not sure Not sure what this is for.
lose_effect not sure Not sure what this is for.
message bool Not sure what this is for.

Localisation

You want the minor title to be named and described properly in the game, so we need to add some localisation. So create a new file in the /localisation/ folder of your mod. It must be a CSV file, so the name could be something like 00_Minor_titles.csv.

#CODE;ENGLISH;FRENCH;GERMAN;;SPANISH;;;;;;;;;x
title_houndmaster;Houndmaster;;;;;;;;;;;;;x
title_houndmaster_desc;An honorary title granted to the finest master of canines in the land.;;;;;;;;;;;;;x

Note that the code for the description is simply the code for the minor title with _desc at the end.