• 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?
 

Silversweeeper

Ichi no Hito
58 Badges
Aug 24, 2012
3.936
2.839
  • Stellaris - Path to Destruction bundle
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Magicka: Wizard Wars Founder Wizard
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris: Distant Stars
  • Stellaris: Nemesis
  • Stellaris: Necroids
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Imperator: Rome Sign Up
  • Imperator: Rome Deluxe Edition
  • Crusader Kings II: Holy Fury
  • Stellaris: Megacorp
  • Europa Universalis IV
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Mare Nostrum
  • Crusader Kings II: Charlemagne
  • Stellaris Sign-up
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Res Publica
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III Complete
  • Magicka
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:
Feb 20, 2022
3
0
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
 

Silversweeeper

Ichi no Hito
58 Badges
Aug 24, 2012
3.936
2.839
  • Stellaris - Path to Destruction bundle
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Magicka: Wizard Wars Founder Wizard
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris: Distant Stars
  • Stellaris: Nemesis
  • Stellaris: Necroids
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Imperator: Rome Sign Up
  • Imperator: Rome Deluxe Edition
  • Crusader Kings II: Holy Fury
  • Stellaris: Megacorp
  • Europa Universalis IV
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Mare Nostrum
  • Crusader Kings II: Charlemagne
  • Stellaris Sign-up
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Res Publica
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III Complete
  • Magicka
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
}
 
Feb 20, 2022
3
0
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)