• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.
Feb 20, 2022
3
0
Is it possible to make for example minor title salary come from the ruler's treasury, not from thin air(like in vanilla)?
And yea I know that this could be done by making somewhat complexly connected events, and that would be much harder with very little diversity for different minor titles, and could this be done by some variable like that for vanilla minor title salary(monthly_salary = 0.1), I saw that some variables were not displayed in modding section at ck2wiki so could there be the same for this particular problem? Is there already a mod that deals with this that I'm not aware of?
 
I'd suggest using gain_effect/lose_effect for the relevant minor (and possibly job) titles to apply/remove a modifier (different for each minor title) for the liege (FROM; ROOT is the person getting the title) subtracting the relevant amount of money with e.g. monthly_character_wealth = -0.05. However, just how the AI budgets for things and how it hands out minor titles (aside from titles with is_voter = yes, which it tends to give to powerful vassals that are eligible) is very unclear (aside from it not really doing long-term planning), so I suggest keeping the costs fairly low since not every character makes a lot of money.
 
  • 1
Reactions:
I'd suggest using gain_effect/lose_effect for the relevant minor (and possibly job) titles to apply/remove a modifier (different for each minor title) for the liege (FROM; ROOT is the person getting the title) subtracting the relevant amount of money with e.g. monthly_character_wealth = -0.05. However, just how the AI budgets for things and how it hands out minor titles (aside from titles with is_voter = yes, which it tends to give to powerful vassals that are eligible) is very unclear (aside from it not really doing long-term planning), so I suggest keeping the costs fairly low since not every character makes a lot of money.
Can u give an example how that particular minor title would look like in files when given modifer "monthly_character_wealth"? I tried but it didn't work
 
Something like this

Minor title (in whichever .txt file in [mod path]\common\minor_titles (or [mod path]\common\job_titles, for the council jobs) it is found in)):
Code:
<...>
my_minor_title = {
    <...>
    gain_effect = {
        FROM = {
            add_character_modifier = {
                modifier = my_minor_title_cost
                duration = -1 # Does not expire on its own
            }
        }
    }
    lose_effect = {
        FROM = {
            remove_character_modifier = my_minor_title_cost
        }
    }
    <...>
}
<...>

Modifier (in a .txt file in [mod path]\common\event_modifiers):
Code:
my_minor_title_cost = {
    icon = 1 # Can be changed to whichever icon you prefer
    monthly_character_wealth = -0.05
}
 
Code:
title_sebastokrator = {
    dignity = 0.2
    realm_in_name = yes
    grant_limit = 1
    opinion_effect = 10
    
    monthly_salary = 0.1
    monthly_prestige = 0.25
    
    show_as_title = yes
    
    is_unique = yes
    
    allowed_to_hold = {
        NOT = {
            primary_title = { temporary = yes }
        }
        is_close_relative = FROM
    }
    
    allowed_to_grant = {
        is_feudal = yes
        OR = {
            has_landed_title = e_byzantium
            has_landed_title = e_roman_empire
        }
        OR = {
            religion_group = christian
            religion_group = jewish_group
            religion_group = pagan_group
        }
    }
    
    gain_effect = {
      FROM = {
            add_character_modifier = {
                modifier = title_cost
                duration = -1 # Does not expire on its own
            }
        }
    }
    lose_effect = {
        FROM = {
            remove_character_modifier = title_cost
        }
    }

    message = yes
}


Code:
title_cost = {
    icon = 1 # Can be changed to whichever icon you prefer
    monthly_character_wealth = -10
}


Not sure what i did wrong here.. (i used 10 just to test this)