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

richvh

Preserver of the Light
63 Badges
Dec 1, 2001
14.691
1.999
Visit site
  • Stellaris: Leviathans Story Pack
  • Pillars of Eternity
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Knights of Pen and Paper 2
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Crusader Kings II: Reapers Due
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Tyranny: Gold Edition
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Surviving Mars
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
  • Tyranny - Bastards Wound
  • Age of Wonders III
  • Age of Wonders: Shadow Magic
  • Age of Wonders
  • Age of Wonders II
  • Crusader Kings II: Jade Dragon
  • Crusader Kings III: Royal Edition
  • Europa Universalis IV: Call to arms event
  • 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
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • A Game of Dwarves
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Magicka
  • Majesty 2 Collection
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Rome Gold
  • Rome: Vae Victis
  • 500k Club
  • Cities: Skylines

richvh

Preserver of the Light
63 Badges
Dec 1, 2001
14.691
1.999
Visit site
  • Stellaris: Leviathans Story Pack
  • Pillars of Eternity
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Knights of Pen and Paper 2
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Crusader Kings II: Reapers Due
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Tyranny: Gold Edition
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Surviving Mars
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
  • Tyranny - Bastards Wound
  • Age of Wonders III
  • Age of Wonders: Shadow Magic
  • Age of Wonders
  • Age of Wonders II
  • Crusader Kings II: Jade Dragon
  • Crusader Kings III: Royal Edition
  • Europa Universalis IV: Call to arms event
  • 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
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • A Game of Dwarves
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Magicka
  • Majesty 2 Collection
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Rome Gold
  • Rome: Vae Victis
  • 500k Club
  • Cities: Skylines
Not my mod, and while it's incorporated into Lux Invicta which I am maintaining, it's not a section I've touched, so no, I can't tell you.
 

Meneth

Crusader Kings 3 Programmer
153 Badges
Feb 9, 2011
10.056
5.378
www.paradoxwikis.com
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Holy Knight (pre-order)
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: The Republic
  • Hearts of Iron IV: Expansion Pass
  • Steel Division: Normand 44 Sign-up
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Way of Life
  • Mount & Blade: With Fire and Sword
  • Mount & Blade: Warband
  • Magicka: Wizard Wars Founder Wizard
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: El Dorado
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
  • Surviving Mars: Digital Deluxe Edition
  • BATTLETECH: Flashpoint
  • Crusader Kings II: Conclave
  • Surviving Mars
  • Cities: Skylines Industries
  • Stellaris: Galaxy Edition
  • BATTLETECH
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Stellaris: Humanoids Species Pack
  • Prison Architect
  • Crusader Kings II: The Old Gods
  • Cities: Skylines - Campus
  • Hearts of Iron IV: No Step Back
  • BATTLETECH - Digital Deluxe Edition
  • Crusader Kings Complete
  • Cities: Skylines - Parklife
  • Europa Universalis IV
  • Age of Wonders III
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Cradle of Civilization
  • 500k Club
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis III Complete
  • Cities: Skylines - Mass Transit
  • Europa Universalis III Complete
  • Cities: Skylines - Green Cities
  • Teleglitch: Die More Edition
  • Europa Universalis IV: Rule Britannia
Which file defines mercenaries? I'd like to make some changes and add a few extra merc groups.
The groups themselves are defined in landed titles. Their size and composition are defined in static modifiers.
 

Sleight of Hand

retired modder
On Probation
14 Badges
Feb 14, 2012
12.114
5.868
  • Crusader Kings II
  • Darkest Hour
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • Hearts of Iron III
  • March of the Eagles
  • Europa Universalis IV
  • Victoria 2
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: Pre-order
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Steel Division: Normand 44 Sign-up
Which file defines mercenaries? I'd like to make some changes and add a few extra merc groups.
landed_titles.txt

For example, I myself added Sudanese and Nubian companies for East Africa, so you'd do this:

Code:
d_nubian_band = {
	color = { 90 130 50 }
	color2 = { 255 255 255 }

	capital = 793 # Makuria

	religion = miaphysite
	culture = nubian
	
	mercenary = yes

	title = "CAPTAIN"
	foa = "CAPTAIN_FOA"

	# Always exists
	landless = yes
	
	# Cannot be held as a secondary title
	primary = yes
	
	# Cannot be vassalized
	independent = yes
	
	modifier = d_nubian_band_modifier
	strength_growth_per_century = 0.25
}

And then you need to edit static_modifiers.txt:

Code:
d_nubian_band_modifier = {
	levy_size = 1.5
	light_cavalry = 350
	knights = 75
}

And add some localiation and a coat of arms for them:

d_nubian_band;Nubian Band;Nubian Band;Nubian Band;;Nubian Band;;;;;;;;;x
d_nubian_band_adj;Nubian;Nubian;Nubian;;Nubian;;;;;;;;;x

It's not that difficult, you just need to make sure you've changed every relevant file.
 

ShadowGamer42

Captain
94 Badges
May 9, 2012
347
0
  • Cities: Skylines
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III: Chronicles
  • Victoria: Revolutions
  • Victoria 2: A House Divided
  • Hearts of Iron III
  • Crusader Kings II: Conclave
  • Hearts of Iron IV: Death or Dishonor
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Common Sense
  • Cities: Skylines - Mass Transit
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Cities: Skylines - Green Cities
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Tyranny: Gold Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Shadowrun: Dragonfall
  • Hearts of Iron IV: Expansion Pass
  • Age of Wonders III
  • Stellaris: Distant Stars
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Europa Universalis IV
  • Stellaris: Apocalypse
  • Stellaris: Synthetic Dawn
  • Europa Universalis III Complete
  • Hearts of Iron IV: No Step Back
  • Europa Universalis III Complete
  • Stellaris: Humanoids Species Pack
  • Shadowrun Returns
  • Victoria 2
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Mount & Blade: Warband
  • Mount & Blade: With Fire and Sword
I haven't managed to make retinues link to titles. It seems only culture-based, which is an odd decision by Paradox.
Ok. Hopefully Paradox either changes it in the next patch or I find away to do it.

Edit: It is possible! Just add this tiny bit of code into the retinue and it's created.
Code:
	ROOT = {
		title_holder = *titlenamehere*
Another Edit: It doesn't work. Back to trying to figure it out...
 
Last edited:

ash001

friend&foe
10 Badges
Jun 5, 2009
796
0
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Crusader Kings II
  • Darkest Hour
  • Europa Universalis III Complete
  • Rome Gold
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
I'm trying to add a condition to allow (or not) the bestowing of certain titles - in the case below, I'd like to allow a certain title for those that have relations with their liege equal or above a certain threshold :

Code:
Confidant
title_confidant = {
	dignity = 0.05
	grant_limit = 1
	opinion_effect = 20
	
	## monthly_salary = 0.01
	monthly_prestige = 0.002
	
	allow = {
		age = 16
		OR = {
			opinion = { who = ROOT value = 80 }
			has_opinion_modifier = { who = ROOT modifier = opinion_friend }
			}
		OR = {
			reverse_has_opinion_modifier = { who = ROOT modifier = opinion_friend }
			reverse_opinion = { who = ROOT value = 80 }
			}
		OR = {
			prisoner = no
			host = { NOT = { is_liege_of = ROOT } }
			}
		FROM = {
			is_feudal = yes
			primary_title = {
				OR = {
					tier = king
					tier = emperor
				}
			}
			## NOT = { has_landed_title = e_byzantium }
			## NOT = { religion_group = muslim }
		}
	}
	
	gain_effect = {
	}
	lose_effect = {
	}

	message = yes
}

...but having tested this, it seems like any character can be awarded this title, no matter if they're close, indifferent or even rivals do the ruler/player.
Any way I could fix this? Does anyone spot a mistake in the code?
:unsure:
Any replies much appreciated!
 

Meneth

Crusader Kings 3 Programmer
153 Badges
Feb 9, 2011
10.056
5.378
www.paradoxwikis.com
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Holy Knight (pre-order)
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: The Republic
  • Hearts of Iron IV: Expansion Pass
  • Steel Division: Normand 44 Sign-up
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Way of Life
  • Mount & Blade: With Fire and Sword
  • Mount & Blade: Warband
  • Magicka: Wizard Wars Founder Wizard
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: El Dorado
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
  • Surviving Mars: Digital Deluxe Edition
  • BATTLETECH: Flashpoint
  • Crusader Kings II: Conclave
  • Surviving Mars
  • Cities: Skylines Industries
  • Stellaris: Galaxy Edition
  • BATTLETECH
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Stellaris: Humanoids Species Pack
  • Prison Architect
  • Crusader Kings II: The Old Gods
  • Cities: Skylines - Campus
  • Hearts of Iron IV: No Step Back
  • BATTLETECH - Digital Deluxe Edition
  • Crusader Kings Complete
  • Cities: Skylines - Parklife
  • Europa Universalis IV
  • Age of Wonders III
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Cradle of Civilization
  • 500k Club
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis III Complete
  • Cities: Skylines - Mass Transit
  • Europa Universalis III Complete
  • Cities: Skylines - Green Cities
  • Teleglitch: Die More Edition
  • Europa Universalis IV: Rule Britannia
Right on target, mate!!
Thank you.
I'll keep it in mind for the future.
FROM and ROOT are tricky ones for the inexperienced modder, I can tell you that.
Generally: ROOT is the same scope as a section starts in. Thus scoping to ROOT usually won't do anything. (One exception: In CBs ROOT is always the claimant, who isn't necessarily the attacker. FROMFROM is always the attacker, while ROOT only sometimes is)

How would I go about raising the levy size when at war or with a high martial ruler? (Which I can assure you is balanced out by less tax income)
A triggered modifier would work for the first, though the levies wouldn't automatically reinforce.
For the second, you could add the modifier directly to the static modifier for Martial.
 

ShadowGamer42

Captain
94 Badges
May 9, 2012
347
0
  • Cities: Skylines
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III: Chronicles
  • Victoria: Revolutions
  • Victoria 2: A House Divided
  • Hearts of Iron III
  • Crusader Kings II: Conclave
  • Hearts of Iron IV: Death or Dishonor
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Common Sense
  • Cities: Skylines - Mass Transit
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Cities: Skylines - Green Cities
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Tyranny: Gold Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Shadowrun: Dragonfall
  • Hearts of Iron IV: Expansion Pass
  • Age of Wonders III
  • Stellaris: Distant Stars
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Europa Universalis IV
  • Stellaris: Apocalypse
  • Stellaris: Synthetic Dawn
  • Europa Universalis III Complete
  • Hearts of Iron IV: No Step Back
  • Europa Universalis III Complete
  • Stellaris: Humanoids Species Pack
  • Shadowrun Returns
  • Victoria 2
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Mount & Blade: Warband
  • Mount & Blade: With Fire and Sword
A triggered modifier would work for the first, though the levies wouldn't automatically reinforce.
For the second, you could add the modifier directly to the static modifier for Martial.

I mean, what bit of code would I add? For the martial, I've tried, 'levy_size = *value*' but it doesn't effect the levy size at all. Even if the value is 1 (100%).

And also, if you can have the war one in the static under the 'Realm Static Modifiers' section.