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

jordarkelf

01_TITLE_STRING
164 Badges
Jul 13, 2005
8.040
648
erbkaiser.nl
  • Impire
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Galactic Assault
  • Gettysburg
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Divine Wind
  • Europa Universalis III Complete
  • Iron Cross
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Lead and Gold
  • Legio
  • Leviathan: Warships
  • The Kings Crusade
  • Lost Empire - Immortals
  • Magicka
  • Majesty 2
  • Victoria 3 Sign Up
  • Crusader Kings II: Sons of Abraham
  • Ancient Space
  • Hearts of Iron Anthology
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Cities in Motion
  • Cities in Motion 2
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • A Game of Dwarves
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Commander: Conquest of the Americas
  • Darkest Hour
  • Deus Vult
  • Diplomacy
  • Dungeonland
  • East India Company
  • East India Company Collection
  • Europa Universalis III
Make minor titles like Lord of the Hunt have gameplay use

Just a little mod I have to make related minor titles required for the feast and minor hunt decisions if the ruler is a duke or above.
For feasts, a duke requires that any courtier or vassal has the title of 'Cupbearer'. Kings and Emperors also require a 'Keeper of Swans' and 'Seneschal', or if Byzantium, a 'Kouropalates'.

Download below, or if you want to edit it yourself read the spoiler.

This goes into (your mod's version of) decisions\minor_decisions.txt.

Code:
	feast_0 = {
		potential = {
			is_ruler = yes
			is_feudal = yes
			prisoner = no
			NOT = {
				religion_group = muslim
				religion_group = pagan_group
			}			
			NOT = { has_character_modifier = holding_large_feast }
			NOT = {
				has_character_modifier = large_feast_timer
			}
			NOT = {
				has_character_modifier = fabulous_feast
			}			
			NOT = {
				has_character_flag = guest_feast_started
			}
			NOT = {
				liege = {
					has_character_modifier = holding_large_feast
				}
			}			
			num_of_vassals = 1
		}
		allow = {
			war = no
			any_demesne_title = {
				is_occupied = no
			}
			prisoner = no
			scaled_wealth = 0.20
			month = 10
			prestige = 100
			[COLOR="#FF8C00"]OR = {
				primary_title = { tier = COUNT }
				AND = {
					primary_title = { tier = DUKE }
					OR = {
						any_courtier = {
							has_minor_title = title_cupbearer
						}
						any_vassal = {
							has_minor_title = title_cupbearer
						}
					}
				}
				AND = {
					primary_title = { higher_tier_than = DUKE }
					NOT = { has_landed_title = e_byzantium }
					NOT = { has_landed_title = e_roman_empire }
					OR = {
						any_courtier = {
							has_minor_title = title_keeper_of_swans
						}
						any_vassal = {
							has_minor_title = title_keeper_of_swans
						}
					}
					OR = {
						any_courtier = {
							has_minor_title = title_cupbearer
						}
						any_vassal = {
							has_minor_title = title_cupbearer
						}
					}
					OR = {
						any_courtier = {
							has_minor_title = title_seneschal
						}
						any_vassal = {
							has_minor_title = title_seneschal
						}
					}
				}
				AND = {
					OR = {
						has_landed_title = e_byzantium
						has_landed_title = e_roman_empire
					}
					OR = {
						any_courtier = {
							has_minor_title = title_kouropalates
						}
						any_vassal = {
							has_minor_title = title_kouropalates
						}
					}
				}
			}[/COLOR]
		}
		effect = {
			scaled_wealth = -0.20
			add_character_modifier = {
				name = holding_large_feast
				duration = 365
			}
			
			hidden_tooltip = {
				character_event = {
					id = 72003
					days = 25
					random = 10
				}
				
				letter_event = { 
					id = 72109  
				}
			}
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 1
			
			modifier = {
				factor = 0
				NOT = {
					scaled_wealth = 3.0
				}
			}
			modifier = {
				factor = 0
				month = 11
			}
			modifier = {
				factor = 0
				NOT = { age = 30 }
			}
		}
	}

For grand hunts, everyone except for the Byzies need a 'Master of the Horse' and 'Master of the Hunt'.

Code:
	hold_grand_hunt = {
		potential = {
			is_ruler = yes
			age = 16
			is_female = no
			prisoner = no
			OR = {
				religion_group = christian
				religion_group = pagan_group
			}
			NOT = {
				OR = {
					has_landed_title = e_mongol_empire
					has_landed_title = e_golden_horde
					has_landed_title = e_il-khanate
				}
			}
			NOT = {	has_character_flag = holding_grand_hunt }
		}
		allow = {
			war = no
			any_demesne_title = {
				is_occupied = no
			}
			month = 8
			scaled_wealth = 0.20
			NOT = { month = 10 }
			NOT = {	health_traits = 1 }
			prisoner = no
			[COLOR="#FF8C00"]OR = {
				primary_title = { tier = COUNT }
				AND = {
					primary_title = { higher_tier_than = COUNT }
						OR = {
						any_courtier = {
							has_minor_title = title_master_of_the_horse
						}
						any_vassal = {
							has_minor_title = title_master_of_the_horse
						}
					}
					OR = {
						any_courtier = {
							has_minor_title = title_master_of_the_hunt
						}
						any_vassal = {
							has_minor_title = title_master_of_the_hunt
						}
					}
				}
				has_landed_title = e_byzantium
				has_landed_title = e_roman_empire
			}[/COLOR]
		}
		effect = {
			scaled_wealth = -0.20
			set_character_flag = holding_grand_hunt			
			hidden_tooltip = { 
				character_event = { id = 36090 days = 16 random = 25 } 
				letter_event = { id = 36080 }
			}
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 1
			
			modifier = {
				factor = 0
				NOT = {
					scaled_wealth = 3.0
				}
			}
			modifier = {
				factor = 0
				NOT = {
					martial = 8
				}
			}
			modifier = {
				factor = 0
				NOT = { month = 9 }
			}
		}
	}

I've no ideas for the other minor titles yet, alas. Court Jester could be put in the feast or summer fair decision, but I can easily see not always having one of these. High Almoner is not really relatable to any decision, and asides from Kouropalates all of the Byzantine titles seem to be specific to actual imperial or honorary offices, not courtly ones.


Feel free to use or adapt in any other mod.
 

Attachments

  • MinorTitlesRequired.zip
    3,1 KB · Views: 125
Last edited:
Now that you bumped this up I might be interested in using it. At the least it'll give incentives for the player to actually hand out these titles rather than saving them for strategic moments, requiring a bit more long-term planning with them.

EDIT: Any particular reason why the If's are capitalized? I know it doesn't make a difference by my OCD side really freaks out.
 
Last edited:
Simple, practical, smart. Who wouldn't want to use it? Nice work. If I ever get close to releasing the new version of my submod, you can bet I'll use it.
 
For some reason this isn't working. I haven't really changed the code, but it won't let me hold feasts unless I'm a duke, and the grand hunt decision is replaced with an "any_vassal" decision that doesn't do anything. I ran this through validator and it says nothing's wrong.
 
one question : doesn't it avoid AI using it ? I have a few doubt on AI's ability wanting to grant a minor in order to then holding a feast or great hunt ?

Do the requirements can be limited to human players ?
Side question, is the AI factor for granting minor titles can be modded ?
 
Any particular reason why the If's are capitalized? I know it doesn't make a difference by my OCD side really freaks out.
I tend to capitalize all my IFs, ANDs, and ORs to make it easier to spot them when I'm scripting Clausewitz engine stuff. Same reason I prefer to capitalize the tiers COUNT, DUKE, etc. and some other keywords.

one question : doesn't it avoid AI using it ? I have a few doubt on AI's ability wanting to grant a minor in order to then holding a feast or great hunt ?

Do the requirements can be limited to human players ?
Side question, is the AI factor for granting minor titles can be modded ?
They can easily be limited to humans by adding an ai = yes to the OR, but I've not seen the AI hold on to these titles ever. They always seem to hand them out.
Code:
			IF = {
				limit = { primary_title = { higher_tier_than = COUNT } }
				OR = {
					AND = {
						OR = {
							any_courtier = {
								has_minor_title = title_master_of_the_horse
							}
							any_vassal = {
								has_minor_title = title_master_of_the_horse
							}
						}
						OR = {
							any_courtier = {
								has_minor_title = title_master_of_the_hunt
							}
							any_vassal = {
								has_minor_title = title_master_of_the_hunt
							}
						}
					}
					has_landed_title = e_byzantium
					has_landed_title = e_roman_empire
					[COLOR="#FF8C00"]ai = yes[/COLOR]
				}
			}
 
Last edited:
For some reason this isn't working. I haven't really changed the code, but it won't let me hold feasts unless I'm a duke, and the grand hunt decision is replaced with an "any_vassal" decision that doesn't do anything. I ran this through validator and it says nothing's wrong.
Hmm. That shouldn't be happening, the IFs with tier checks would not be checked at all if their limits are not matched so there's no reason this would fail for counts etc..
If you use the CK2+ like split of the decision into three or more "ranks" (feast_0/feast_1/feast_2) like I do, there would have to be some changes, did you account for that?

Edit: if you're seeing an empty "any_vassal" decision one of your decisions is broken I'm afraid, it's probably why these decisions aren't working either. I've double-checked and I'm not missing an ending bracket in the decisions posted here, so it must be something else in your mod.
 
Last edited:
Hmm. That shouldn't be happening, the IFs with tier checks would not be checked at all if their limits are not matched so there's no reason this would fail for counts etc..
If you use the CK2+ like split of the decision into three or more "ranks" (feast_0/feast_1/feast_2) like I do, there would have to be some changes, did you account for that?

Edit: if you're seeing an empty "any_vassal" decision one of your decisions is broken I'm afraid, it's probably why these decisions aren't working either. I've double-checked and I'm not missing an ending bracket in the decisions posted here, so it must be something else in your mod.


Hmm. Odd. When I removed your code the issues disappeared. I'll look into it again, thanks.
 
I've no ideas for the other minor titles yet, alas. Court Jester could be put in the feast or summer fair decision, but I can easily see not always having one of these. High Almoner is not really relatable to any decision, and asides from Kouropalates all of the Byzantine titles seem to be specific to actual imperial or honorary offices, not courtly ones.

A long while ago, I did draft up an almsgiving event (could be used as a decision) for which you need a high almoner (who gets to choose whether to keep part of his liege's pious donation or give it all to the poor). Not as fancy as the vanilla feasting events, but nice nonetheless. Modeled on Maundy Thursday in the UK: http://en.wikipedia.org/wiki/Royal_Maundy A 'humble' liege could also choose to wash the feet of the beggars in his capital.