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

Gladdig_kaga

Captain
62 Badges
Sep 20, 2010
479
12
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Third Rome
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mare Nostrum
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Pre-order
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Europa Universalis IV: Res Publica
  • Magicka
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
  • 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: Sword of Islam
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Wealth of Nations
  • Stellaris: Distant Stars
  • Crusader Kings II: Holy Fury
  • Cities: Skylines - Green Cities
  • Europa Universalis IV: Dharma
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Mandate of Heaven
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Rule Britannia
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Together for Victory
  • Cities: Skylines - Natural Disasters
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Stellaris: Megacorp
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Europa Universalis 4: Emperor
  • 500k Club
How does gain effect and allow work for creating titles?
Code:
k_Nitso = {
	allow = {
		FROM = {
			has_horde_culture = no
		}
		OR = {
			k_Nitso = {
				is_titular = no
			}
			AND = {
				FROM = {
					primary_title = { title = d_Nitso }
				}
				OR = {
					FROM = {
						num_of_duke_titles = 4
					}
					d_Nitso = {
						de_jure_liege = k_no_kingdom
					}
				}
			}
		}
	}
	gain_effect = {
		if = {
			limit = {
				k_Nitso = { is_titular = yes }
			}
			FROM = {
				any_demesne_title = {
					limit = {
						tier = DUKE
						de_jure_liege = k_no_kingdom
					}
					de_jure_liege = k_Nitso
				}
			}
		}
	}
	color = { 0.75 0.13 0.30 }
	color2 = { 0.65 0.99 0.70 }
	creation_requires_capital = no
	capital = 1
}
Doing it like that results in two k_Nitso being defined, one with "gain_effect", a barony as a de jure vassal.

Simply switching place of the last lines and putting them first, like this:
Code:
k_Nitso = {
	color = { 0.75 0.13 0.30 }
	color2 = { 0.65 0.99 0.70 }
	creation_requires_capital = no
	capital = 1
	allow = {
		FROM = {
			has_horde_culture = no
		}
		OR = {
			k_Nitso = {
				is_titular = no
			}
			AND = {
				FROM = {
					primary_title = { title = d_Nitso }
				}
				OR = {
					FROM = {
						num_of_duke_titles = 4
					}
					d_Nitso = {
						de_jure_liege = k_no_kingdom
					}
				}
			}
		}
	}
	gain_effect = {
		if = {
			limit = {
				k_Nitso = { is_titular = yes }
			}
			FROM = {
				any_demesne_title = {
					limit = {
						tier = DUKE
						de_jure_liege = k_no_kingdom
					}
					de_jure_liege = k_Nitso
				}
			}
		}
	}
}
results in only one k_Nitso, with a de jure barony called "gain_effect".

All theese three kingdoms "cannot be created normally".
Whye does it behave like this and how can I solve it?
 

Maleficus

Major
89 Badges
Dec 10, 2009
615
6
  • Sengoku
  • For the Motherland
  • Hearts of Iron III
  • Heir to the Throne
  • Majesty 2
  • A Game of Dwarves
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Rome Gold
  • Semper Fi
  • March of the Eagles
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Pre-order
  • Pillars of Eternity
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - Snowfall
  • Crusader Kings II: Rajas of India
  • Cities in Motion
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • For The Glory
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis III
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III Complete
  • War of the Roses
  • Empire of Sin
  • Europa Universalis III Complete
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: El Dorado
  • Mount & Blade: Warband
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis III Complete
  • Crusader Kings II: Conclave
I seem to have a weird problem in my personal mod, whereby Scottish, Welsh and Irish nobles have voting rights for k_england's crown laws. I thought it might be because of e_britannia but

a. The problem doesn't exist in other de jure empires (IE Norwegian nobles don't get to vote on Swedish matters)
b. The problem doesn't exist in Scotland (only rulers of de jure k_scotland lands get to vote in Scotland)
c. Modding out e_britannia actually makes it worse (Gives votes to a bunch of random guys around Europe such as SD of Venice and Coptic Pope, as well as Scottish, Welsh and Irish)

So I'm stumped. Anyone know what's likely to be the problem and how I can fix it?
 

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

RedRooster81

Modding Paladin
34 Badges
Feb 16, 2010
5.673
29
  • Crusader Kings II
  • Rome Gold
  • Heir to the Throne
  • Divine Wind
  • Europa Universalis III Complete
  • Deus Vult
  • Cities in Motion
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Conclave
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Golden Century
  • Mount & Blade: Warband
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
Check for misplaced braces.

That's a wise place to begin without posting your code. I would also recommend getting Notepad++, which will let you see when parentheses don't match.

If you have an imperial title, all de jure vassals do get to vote, including dukes and kings from the kingdoms under that title. So having the vanilla e_britannia means that Scottish, Irish, and any other rulers in the British Isles would get a vote. I noticed this when I created the Kingdom of Burgundy as Duke of Savoy then had to deal with the French Duke of Burgundy trying to get himself elected.
 

Maleficus

Major
89 Badges
Dec 10, 2009
615
6
  • Sengoku
  • For the Motherland
  • Hearts of Iron III
  • Heir to the Throne
  • Majesty 2
  • A Game of Dwarves
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Rome Gold
  • Semper Fi
  • March of the Eagles
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Pre-order
  • Pillars of Eternity
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - Snowfall
  • Crusader Kings II: Rajas of India
  • Cities in Motion
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • For The Glory
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis III
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III Complete
  • War of the Roses
  • Empire of Sin
  • Europa Universalis III Complete
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: El Dorado
  • Mount & Blade: Warband
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis III Complete
  • Crusader Kings II: Conclave
Check for misplaced braces.

Well I already had, but not well enough it seems. Checked again and noticed a bracket missing at the end of k_england, so all good now. Thanks for the pointer ;)


Now... I may be being a bit ambitious here, given my very limited modding experience, but I want to implement a decision for kings to have a coronation decision/event chain (basically a 'spend some money to get a trait that slightly improves vassal's opinions' kind of deal). How would I go about this? (Never modded decisions or even events before)

And while I'm here, is it possible to mod how the AI acts towards factions? ATM it feels very much like everyone's just waiting to jump on every bandwagon, regardless how much they actually their liege, so wanted to see if it could be made more similar to plots in terms of how willing people are to join...
 

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

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
What are the codes for adding guardian or regent in the character file, please?
And is it not possible to add_weak_claim? That command doesn't seem to do anything.
Both of those can be done with the effect command:

effect = { add_weak_claim = k_england }
I think adding a guardian by ID will probably work as well, E.G., guardian = 1.
 

DragonScythe

First Lieutenant
114 Badges
Dec 11, 2002
214
144
Visit site
  • Victoria 2: A House Divided
  • Leviathan: Warships
  • Magicka
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Rome Gold
  • Semper Fi
  • Sengoku
  • Sword of the Stars
  • Teleglitch: Die More Edition
  • Victoria 2
  • Europa Universalis III Complete
  • Victoria 2: Heart of Darkness
  • Warlock: Master of the Arcane
  • 500k Club
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Mount & Blade: Warband
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Victoria 3 Sign Up
  • Europa Universalis III
  • Cities in Motion
  • 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
  • Darkest Hour
  • Deus Vult
  • Hearts of Iron II: Armageddon
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
I'm trying to add a trait similar to Sayyid that is always passed on to children, but is also passed on from both father and mother in order to make tracking descent easier. I have a couple problems: How can I 1) stop the AI from spawning characters with the trait, 2) make it always transferred from parent to child?

I know I could use agnatic, but that would only work for the fathers, I want to track descent from mothers as well.
 

tokle

Captain
6 Badges
Mar 15, 2012
335
0
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • 500k Club
  • Crusader Kings II: Way of Life
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Monks and Mystics
Both of those can be done with the effect command:

effect = { add_weak_claim = k_england }
I think adding a guardian by ID will probably work as well, E.G., guardian = 1.
Thanks. What about regent? Is there a way to set a regent?
The guardian seems to work, though it doesn't show the child as her ward. It looks like he is being tutored by her though.
 

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
Thanks. What about regent? Is there a way to set a regent?
The guardian seems to work, though it doesn't show the child as her ward. It looks like he is being tutored by her though.
give_minor_title = title_regent
Once again in an effect scope, though this time on the character becoming regent. Note that for someone to be regent they've got to either be a vassal or a courtier of the child/incapable person/pilgrim.
Oh and the command for setting a guardian is set_guardian = <target>, not guardian = <target>.
 

cybrxkhan

Going to Scarborough Fair
57 Badges
Jul 14, 2012
8.162
3.938
  • Crusader Kings II: Charlemagne
  • Age of Wonders III
  • Stellaris
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Legacy of Rome
  • Victoria 3 Sign Up
  • Cities: Skylines - Green Cities
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Cities: Skylines Industries
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome Sign Up
  • Cities: Skylines - Campus
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Imperator: Rome - Magna Graecia
  • Crusader Kings III
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Stellaris Sign-up
  • Warlock: Master of the Arcane
  • 500k Club
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV Sign-up
  • Surviving Mars
  • Crusader Kings II: Reapers Due
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Tyranny: Gold Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
I'm trying to add a trait similar to Sayyid that is always passed on to children, but is also passed on from both father and mother in order to make tracking descent easier. I have a couple problems: How can I 1) stop the AI from spawning characters with the trait, 2) make it always transferred from parent to child?

I know I could use agnatic, but that would only work for the fathers, I want to track descent from mothers as well.

To prevent it from spawning on random characters you'll have to add customizer = no, I believe, but that will also prevent it from being usable in ruler designer.
 

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
To prevent it from spawning on random characters you'll have to add customizer = no, I believe, but that will also prevent it from being usable in ruler designer.
potential = { always = no }
That'll prevent random characters from getting it.
 

tokle

Captain
6 Badges
Mar 15, 2012
335
0
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • 500k Club
  • Crusader Kings II: Way of Life
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Monks and Mystics
give_minor_title = title_regent
Once again in an effect scope, though this time on the character becoming regent. Note that for someone to be regent they've got to either be a vassal or a courtier of the child/incapable person/pilgrim.
Oh and the command for setting a guardian is set_guardian = <target>, not guardian = <target>.
The guardian codes seem to do the same thing. What is the difference?

122 = {
name="Harold" # Godwineson, king of England
dynasty=756
dna="medjejoencc"
properties="ae00e0"
martial=8
diplomacy=6
intrigue=5
stewardship=6
religion="catholic"
culture="saxon"
add_trait="arbitrary"
add_trait="proud"
add_trait="skilled_tactician"
father=120
mother=101534
1022.1.1={
birth="1022.1.1"
}
1048.1.1={
add_spouse=131 #Ealdgyth 'Swanneck'
}
1064.1.1={
remove_spouse = 131
}
1065.6.6={
add_spouse=123 #Ealdgyth of Mercia
}
1066.1.1={
effect = {add_weak_claim=k_england}
effect = {give_minor_title = title_regent}
}
1066.9.14 = {
raise_levies = {
location = 62 # Leicester
force_mult = 1.0
}

effect = {
spawn_unit = {
province = 62 # Leicester
owner = ROOT
leader = ROOT
match_character = ROOT
match_mult = 0.40
attrition = 1.0
}
spawn_unit = {
province = 62 # Leicester
owner = ROOT
leader = 130 # Leofwine
match_character = ROOT
match_mult = 0.30
attrition = 1.0
}
spawn_unit = {
province = 62 # Leicester
owner = ROOT
leader = 132 # Gyrth
match_character = ROOT
match_mult = 0.30
attrition = 1.0
}
}
}
1066.10.14={

raise_levies = {
dismiss = yes
location = 62 # Leicester
force_mult = 1.0
}

death = {
death_reason = death_battle
killer = 140
}
}
}
Does this look right?
It doesn't set him up as regent though? The queen is set as regent instead.