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

VoodooEconomist

General
107 Badges
Mar 20, 2009
2.050
2.781
  • Impire
  • Europa Universalis IV: Res Publica
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Victoria 2
  • 500k Club
  • Stellaris: Digital Anniversary Edition
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: El Dorado
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Way of Life
  • Magicka 2 - Signup Campaign
  • Magicka 2
  • Sengoku
  • Cities: Skylines - Natural Disasters
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Victoria 3 Sign Up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Tyranny: Archon Edition
  • Divine Wind
  • BATTLETECH
  • Hearts of Iron IV: Together for Victory
  • Cities: Skylines - Mass Transit
  • Stellaris: Humanoids Species Pack
  • Cities: Skylines - Green Cities
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Surviving Mars
  • Stellaris: Apocalypse
  • Europa Universalis III Complete
  • Sword of the Stars
  • Europa Universalis IV
  • Tyranny: Archon Edition
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Rule Britannia
  • Tyranny: Gold Edition
  • Heir to the Throne
  • Europa Universalis III Complete
  • Tyranny - Bastards Wound
  • Europa Universalis III Complete
  • Victoria: Revolutions
Does anyone know a way to mod a succession law?

Or in case is it possible to have a landed title without a de jure capital?

Succession laws are not moddable. All landed empire, kingdom and duchy level titles seem to have capitals in the files but I'm not sure what would happen upon removal.

EDIT: Correction, seems like not all do. The Kingdom of Anatolia for one seems to be capital-less. So it seems they can.
 

wolf_brother

Second Lieutenant
44 Badges
Apr 13, 2013
133
1
  • Crusader Kings II: Charlemagne
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Europa Universalis IV: Res Publica
  • Knights of Pen and Paper +1 Edition
  • Crusader Kings II
  • Heir to the Throne
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • 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
  • Europa Universalis III Complete
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Hearts of Iron IV: Cadet
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Stellaris: Humanoids Species Pack
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Crusader Kings II: Holy Fury
  • Stellaris: Federations
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Hearts of Iron IV Sign-up
  • Stellaris
  • 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
  • Cities: Skylines
  • Victoria 2
  • Europa Universalis III Complete
  • Europa Universalis III Complete
So, how do Tribal Titles work? I removed tribal = yes from d_khazars, and now all of the flags and CoAs are screwed up, some use the wrong ones, some don't have one at all and just display a black shield. I tried doing a search in my Crusader Kings 2 directory to see what files d_khazars references that would affect CoAs, but I didn't find anything, so I guess it's hardcoded? Is there any way to change a title from tribal to not without causing this issue?
 

VoodooEconomist

General
107 Badges
Mar 20, 2009
2.050
2.781
  • Impire
  • Europa Universalis IV: Res Publica
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Victoria 2
  • 500k Club
  • Stellaris: Digital Anniversary Edition
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: El Dorado
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Way of Life
  • Magicka 2 - Signup Campaign
  • Magicka 2
  • Sengoku
  • Cities: Skylines - Natural Disasters
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Victoria 3 Sign Up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Tyranny: Archon Edition
  • Divine Wind
  • BATTLETECH
  • Hearts of Iron IV: Together for Victory
  • Cities: Skylines - Mass Transit
  • Stellaris: Humanoids Species Pack
  • Cities: Skylines - Green Cities
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Surviving Mars
  • Stellaris: Apocalypse
  • Europa Universalis III Complete
  • Sword of the Stars
  • Europa Universalis IV
  • Tyranny: Archon Edition
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Rule Britannia
  • Tyranny: Gold Edition
  • Heir to the Throne
  • Europa Universalis III Complete
  • Tyranny - Bastards Wound
  • Europa Universalis III Complete
  • Victoria: Revolutions
So, how do Tribal Titles work? I removed tribal = yes from d_khazars, and now all of the flags and CoAs are screwed up, some use the wrong ones, some don't have one at all and just display a black shield. I tried doing a search in my Crusader Kings 2 directory to see what files d_khazars references that would affect CoAs, but I didn't find anything, so I guess it's hardcoded? Is there any way to change a title from tribal to not without causing this issue?

I think the misplaced CoA's are the effect of the game not calculating flags each time. Go to the CK2 folder in My Documents and clear the gfx\flags directory, then restart. Should help.
 

Robbob

Corporal
64 Badges
May 22, 2010
27
0
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Pre-order
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Heir to the Throne
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Europa Universalis III Complete
  • 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
  • Divine Wind
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Cradle of Civilization
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV Sign-up
  • Stellaris
  • Hearts of Iron IV: Death or Dishonor
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Victoria 2
  • Crusader Kings II: Holy Fury
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis 4: Emperor
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
First question:
I would like to add a special trait for merchant republic courtiers and rulers which changes their clothes depending on their culture.
(the trait would a thing like Western merchant, Eastern merchant, Arabic merchant and so on)
Is it possible? Which files should I edit?

Second question:
Can a culture use more than one dds file for its portraits?
 

Stolidicus

Captain
97 Badges
Jun 11, 2012
301
7
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Res Publica
  • Majesty 2 Collection
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • 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
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV: Cossacks
  • War of the Roses
  • Europa Universalis IV: Rights of Man
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Conclave
  • Crusader Kings II: Reapers Due
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • BATTLETECH
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Humanoids Species Pack
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV
  • Crusader Kings Complete
  • Hearts of Iron IV: Death or Dishonor
  • Surviving Mars
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Distant Stars
  • Victoria 3 Sign Up
  • Surviving Mars: Digital Deluxe Edition
  • Europa Universalis IV: Cradle of Civilization
  • Victoria 2
Is it possible to add additional education traits and what file should I look at?

Additionally, what file should I look at if I wish to mod what random education traits are received at the beginning of the game (I wish to remove the scholarly educations from the options for castle and town rulers).

Also, how to create a dependancy mod?
 
Last edited:

Maestro Ugo

Charlie Brown's disciple
49 Badges
May 26, 2010
805
192
  • Crusader Kings II
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Europa Universalis III Complete
  • Sengoku
  • Semper Fi
  • Hearts of Iron III
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • 500k Club
  • BATTLETECH
  • Surviving Mars
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Stellaris: Megacorp
  • Imperator: Rome
  • Prison Architect
  • Stellaris: Federations
  • Crusader Kings III
  • Europa Universalis 4: Emperor
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Holy Knight (pre-order)
  • Victoria 2
  • Europa Universalis III Complete
  • Majesty 2
  • Europa Universalis III Complete
  • Europa Universalis IV
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Pre-order
  • 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: Sword of Islam
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
Is it possible to award minor titles to people in foreign prisons if they're otherwise your vassals/family/courtiers?

I believe so, yes. None of them have the "is_prisoner" under allowed.
 

ZachPruckowski

First Lieutenant
103 Badges
Jun 17, 2012
280
39
  • Crusader Kings II
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Europa Universalis III Complete
  • Victoria 3 Sign Up
  • Stellaris: Ancient Relics
  • Europa Universalis 4: Emperor
  • Prison Architect
  • Hearts of Iron IV: Cadet
  • Europa Universalis III Complete
  • Cities: Skylines - Mass Transit
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV Sign-up
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Synthetic Dawn
  • Victoria 2
  • Stellaris: Galaxy Edition
  • War of the Roses
  • 500k Club
  • Imperator: Rome
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Magicka 2
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Stellaris
  • Crusader Kings II: Conclave
  • Hearts of Iron IV: La Resistance
  • Cities: Skylines - Green Cities
  • Hearts of Iron IV: Death or Dishonor
  • Empire of Sin - Deluxe Edition
  • Battle for Bosporus
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Holy Fury
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris: Federations
  • Stellaris: Nemesis
  • Europa Universalis III Complete
  • Hearts of Iron IV: Together for Victory
  • Age of Wonders
  • Europa Universalis IV
  • Europa Universalis IV: Golden Century
  • Cities: Skylines - Parklife
  • Age of Wonders III
  • Stellaris: Leviathans Story Pack
  • Crusader Kings III
  • Imperator: Rome Sign Up
  • Empire of Sin
  • Crusader Kings II: Sword of Islam
Is it possible to award minor titles to people in foreign prisons if they're otherwise your vassals/family/courtiers?
I believe so, yes. None of them have the "is_prisoner" under allowed.

I was perhaps imprecise. I didn't mean is it possible to assign current minor titles to foreign prisoners but if it's possible to write minor titles to assign to them.
 

pingupower

Major
139 Badges
Dec 1, 2009
630
46
  • Iron Cross
  • 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
  • Impire
  • Europa Universalis III Complete
  • Europa Universalis IV: Art of War
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Lead and Gold
  • Legio
  • The Kings Crusade
  • Lost Empire - Immortals
  • Magicka
  • Majesty 2
  • March of the Eagles
  • Europa Universalis III Complete
  • Naval War: Arctic Circle
  • Penumbra - Black Plague
  • Crusader Kings II: Sword of Islam
  • Hearts of Iron Anthology
  • Arsenal of Democracy
  • 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
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • A Game of Dwarves
  • Commander: Conquest of the Americas
  • Darkest Hour
  • Deus Vult
  • Diplomacy
  • Dungeonland
  • East India Company Collection
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Divine Wind
I plan to make an education overhaul. So I have a few questions:
- can I change the skill increase rate or alter it with factors for a child?
- if I create an event from scratch with trigger conditions (so no actions) and a mean time to happen, can I just write the event or do I need to change the on action file? I think I don't but I'm not sure.
 

Dhop84

Major
4 Badges
Dec 28, 2012
790
0
  • Crusader Kings II
  • 500k Club
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
I want to trigger an event where by if you marry into a specific dynasty ive found out the ID for the dynasty but i dont really no how would i put it into the event . What would be the correct wording for the event ??
 

Randarkmaan

Sergeant
100 Badges
Jun 23, 2009
62
30
  • Stellaris: Synthetic Dawn
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Rome Gold
  • Semper Fi
  • Crusader Kings II: Jade Dragon
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Crusader Kings II: Charlemagne
  • Cities: Skylines - Natural Disasters
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Third Rome
  • Cities: Skylines - After Dark
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Crusader Kings II: Reapers Due
  • Stellaris: Galaxy Edition
  • For the Motherland
  • 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
  • Darkest Hour
  • Europa Universalis III
  • Europa Universalis III Complete
  • Divine Wind
  • Hearts of Iron III
  • 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
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Stellaris: Galaxy Edition
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Stellaris: Necroids
  • Europa Universalis IV: El Dorado
So I am looking through the events files to get some kind of measure of what I can do and such. Then I can come across rumours_events.txt, it's full of cool events like courtiers being suspected of sodomy, occultism (even giving you the option of dabbling in the occult) and an incest event chain that is pulled pretty much wholesale out of GoT. However I don't think I have EVER seen any of these events fire in any of my games. They all seem to be ultimately connected to the character flag "rumour_spreader" which leads me to believe that it has something to do with the with the "build spy network" job that the spymaster can perform, which sometimes gives me an event that the spymaster has uncovered rumours that a local noble is homosexual or corrupt (but never any of the other events in the file).

However as I've never gotten any prompt about a local noble being gay or corrupt and being blackmailed or having rumours spread about him, this leads me to believe that maybe the AI simply doesn't have its spymaster perform this job... which is somewhat disconcerting, there are some cool events in there.

EDIT: Yeah, I forgot to frame this as a question. The question is whether anyone has any knowledge on this or something?
 

mudcrabmerchant

Deputy of the People
65 Badges
Nov 12, 2010
3.348
3.558
  • Rome Gold
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Magicka
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Crusader Kings II: Charlemagne
  • Semper Fi
  • Sengoku
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Mare Nostrum
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Rajas of India
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV: Call to arms event
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III Complete
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Europa Universalis III
  • Divine Wind
  • Europa Universalis IV: Common Sense
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Stellaris
  • Europa Universalis III Complete
  • Crusader Kings III: Royal Edition
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • Mount & Blade: Warband
  • Pride of Nations
  • Victoria 2
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Europa Universalis IV
I've already restricted the subjugation CB to only be usable on those within your same culture group, but I'd like to expand it again to let you use it to take any land within the same de jure kingdom as your capital, provided you have the "become king" ambition, or hold that kingdom. For the become king part, I figure I need to set up something like:

Code:
			OR = {
				culture_group = FROM
				AND = {
					has_ambition = obj_become_king
					capital_scope = {
						kingdom = {
							title = ?
						}
					}
				}
			}

...but I don't know how to have it require that the target hold land in the same de jure kingdom as the attacker's capital.

EDIT: I think I can leave that part out, as it'd be nice if the Rurikids had to wait until their Russian cultured heirs take over before they go on a conquering spree of Russia (though it'd still be cool to know the answer, for general modding knowledge). However, I still want to mod in the ability to declare subjugation wars against any pagan for titles within a kingdom that you own. I really don't understand the "can_use_title" and "is_valid_title" parameters or how they work. Can anyone explain?

I'd also appreciate it if someone could explain which referents count for calculating what PREV, PREVPREV, and PREVPREVPREV refer to.
 
Last edited:

Math2

Major
22 Badges
Apr 2, 2012
556
0
  • Crusader Kings II
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sengoku
  • Semper Fi
  • Rome Gold
  • Victoria: Revolutions
  • March of the Eagles
  • Heir to the Throne
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III Complete
  • Hearts of Iron II: Armageddon
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
  • Europa Universalis IV: Pre-order
I've already restricted the subjugation CB to only be usable on those within your same culture group, but I'd like to expand it again to let you use it to take any land within the same de jure kingdom as your capital, provided you have the "become king" ambition, or hold that kingdom. For the become king part, I figure I need to set up something like:

Code:
			OR = {
				culture_group = FROM
				AND = {
					has_ambition = obj_become_king
					capital_scope = {
						kingdom = {
							title = ?
						}
					}
				}
			}

...but I don't know how to have it require that the target hold land in the same de jure kingdom as the attacker's capital.

EDIT: I think I can leave that part out, as it'd be nice if the Rurikids had to wait until their Russian cultured heirs take over before they go on a conquering spree of Russia (though it'd still be cool to know the answer, for general modding knowledge). However, I still want to mod in the ability to declare subjugation wars against any pagan for titles within a kingdom that you own. I really don't understand the "can_use_title" and "is_valid_title" parameters or how they work. Can anyone explain?

I'd also appreciate it if someone could explain which referents count for calculating what PREV, PREVPREV, and PREVPREVPREV refer to.

I have a similar question so I'd love if people could answer mine as well...

IN response to you, from what I gather ( I can't answer your main question BTW), can_use_title refers to what conditions have to be met regarding the ittle of the province, whether it is a certain type, it's location, etc. is_valid_title checks to see, after you declare war, if the CB still works, so if you lose the claim on the province in a claim war, it ends the war. Basically it sets the conditions that must remain true.

I think PREV would refer to capital_scope iin your problem, and I think it skips ANDs, ORs, or IFs. Whereever you see a "= {" that's a new scope unless it's AND OR or IF I think...I could be wrong though...


How can I make this usable in only the dejure kingdom inwhich I reside...I believe the PREVPREVPREVPREVPREV doesn't work as I think there's a limit of 4, but can anyone see how to make that work?

Code:
 	can_use_title = {
		OR = {
			ROOT = {
				OR = {
					culture = FROM
					religion = FROM
					has_ambition = obj_become_king
				}
			}
			FROM = {
				any_realm_title = {
					ROOT = {
						capital_scope = {
							kingdom = {
								title = PREVPREVPREVPREVPREV
							}
						}
					}
				}
			}
		}
	}
 

lordmichael95

Major
44 Badges
Feb 18, 2013
643
355
  • Victoria 2: A House Divided
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Reapers Due
  • Victoria 2: Heart of Darkness
  • Cities in Motion
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Crusader Kings II: Sons of Abraham
  • Imperator: Rome Deluxe Edition
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Megacorp
  • Imperator: Rome
  • Imperator: Rome Sign Up
  • Stellaris: Federations
  • Crusader Kings III
  • Europa Universalis 4: Emperor
  • Victoria 3 Sign Up
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Hearts of Iron IV Sign-up
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Pre-order
  • 500k Club
  • Victoria 2
For my mod, I want to start adding events so, using the modding guide here, I created my very own event.

However, I ran into some problems.

First, the event would fire but not the option, then the event wouldn't fire at all.

The location folder is taken care of, it's just something with my code. Can someone see the problem?

Code:

Code:
character_event = {
	id = 1000129000
	title = "Converted to Orthodoxy"
	desc = "EVTDESC1000129000"
	picture = GFX_evt_throne_room
	is_triggered_only = yes
	trigger = {
		has_decisions = { convert_to_orthodoxy }
	}
	mean_time_to_happen = {
	days = 1
	}
	option = {
		name = "EVTOPTA1000129000"
	}
}