• 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.
I have this code:
Code:
any_independent_ruler = {
	any_realm_character = {
		#do stuff
	}
}

I want to do stuff for everybody in the world. In the mod I'm contributing this doesn´t fire for all realm characters. Well, the question is that if this code will do stuff to all rulers or there is some limitation (for example I thought of rulers in a bid for independence). I want to check if this is something mod related or vanilla related. Any help would be really appreciated.
 
Hello everyone, I have a problem with modding landed_title file. I'm trying to modify it to add special conditions of creating empires (I'm playing on mod with many creatable empires). Every ruler who wants to create empire should posess certain titles, for example Emperor of Poland-Lithuania should own kingdom of Poland and kingdom of Lithuania. Unfortunetely after modding CK2 only shows cultural and religious conditions, not 'titles conditions'. Here's my entry:

e_poland = {
color={ 196 33 55 }
color2={ 255 255 255 }

capital = 527 # Krakowskie
allow = {
OR = {
culture = polish
culture = lithuanian
religion_group = christian
AND = {
has_landed_title = k_poland
has_landed_title = k_lithuania }
}
}


Can anyone help me? What do I wrong?
 
I have this code:
Code:
any_independent_ruler = {
	any_realm_character = {
		#do stuff
	}
}

I want to do stuff for everybody in the world. In the mod I'm contributing this doesn´t fire for all realm characters. Well, the question is that if this code will do stuff to all rulers or there is some limitation (for example I thought of rulers in a bid for independence). I want to check if this is something mod related or vanilla related. Any help would be really appreciated.

Set a global flag and create event that has the global flag as trigger.
 
Hello everyone, I have a problem with modding landed_title file. I'm trying to modify it to add special conditions of creating empires (I'm playing on mod with many creatable empires). Every ruler who wants to create empire should posess certain titles, for example Emperor of Poland-Lithuania should own kingdom of Poland and kingdom of Lithuania. Unfortunetely after modding CK2 only shows cultural and religious conditions, not 'titles conditions'. Here's my entry:

e_poland = {
color={ 196 33 55 }
color2={ 255 255 255 }

capital = 527 # Krakowskie
allow = {
OR = {
culture = polish
culture = lithuanian
religion_group = christian
AND = {
has_landed_title = k_poland
has_landed_title = k_lithuania }
}
}


Can anyone help me? What do I wrong?

You don't need the "AND".

Code:
allow = {
      OR = {
          culture = polish
          culture = lithuanian
          religion_group = christian
      }
      has_landed_title = k_poland
      has_landed_title = k_lithuania
}
 
Hello everyone, I have a problem with modding landed_title file. I'm trying to modify it to add special conditions of creating empires (I'm playing on mod with many creatable empires). Every ruler who wants to create empire should posess certain titles, for example Emperor of Poland-Lithuania should own kingdom of Poland and kingdom of Lithuania. Unfortunetely after modding CK2 only shows cultural and religious conditions, not 'titles conditions'. Here's my entry:

e_poland = {
color={ 196 33 55 }
color2={ 255 255 255 }

capital = 527 # Krakowskie
allow = {
OR = {
culture = polish
culture = lithuanian
religion_group = christian
AND = {
has_landed_title = k_poland
has_landed_title = k_lithuania }
}
}


Can anyone help me? What do I wrong?
Whenever you use title requirements, the requirement has to be specified after the titles in question. So make sure e_poland is below both k_poland and k_lithuania in the landed_titles file.
 
Set a global flag and create event that has the global flag as trigger.

But I need it inside an option, not as a trigger. I don't want so many events, as only 1 would serve.

Anyway, it seems that any_independent_ruler doesn't target the ROOT, is this WAD or some kind of bug?

This code:

Code:
any_independent_ruler = {
	any_realm_character = {
		#do stuff
	}
}

will do stuff for all realm characters except for the characters of ROOT's realm.
 
Does anyone know of any way to destroy an entire holding in a province or failing that to change the holding type either by event or decision??

To elaborate: I know that in the history files it is possible to remove holdings with the 'remove_settlement' command but so far I have been unable to make that work once a game has started. Hence my earlier question. Is there an entirely different syntax required to do this in-game? Or if it isn't allowed, can we at least change the holding type somehow, i.e. change a castle into a city, etc.?? Does anyone know of any way to accomplish that short of save-game editing??
 
Does anyone know what the "culture = {}" list in portraits.gfx does? I think it's a new addition in 1.05, but can't figure out how it works!

EDIT: This line from the patch notes seems to be key, but...
"- Portrait clothes are now uncoupled from ethnicity"

I just can't figure out how that bit in the file changes anything!
 
Last edited:
Two questions!

1) How do you change the name of a county? The localisation files do not have entries like c_tunis. When I add a c_tunis entry in my mod's localisation file, it appears to have no impact. I am only able to change duchies, baronies, empires, and kingdoms...

2) How do you define a province to be a wasteland?
 
Two questions!

1) How do you change the name of a county? The localisation files do not have entries like c_tunis. When I add a c_tunis entry in my mod's localisation file, it appears to have no impact. I am only able to change duchies, baronies, empires, and kingdoms...

2) How do you define a province to be a wasteland?
1) They're often defined by province number instead, E.G., PROV123;
 
Two questions!

1) How do you change the name of a county? The localisation files do not have entries like c_tunis. When I add a c_tunis entry in my mod's localisation file, it appears to have no impact. I am only able to change duchies, baronies, empires, and kingdoms...

2) How do you define a province to be a wasteland?

For counties, change the name of the province, like <PROV199;Burgos;. . . . .>

Wastelands are just provinces without titleholders or history. You could carve up those into smaller counties if you wanted to and give them characters to rule over them.
 
Has anybody got any idea what happend to the flags since patch 1.05c? with the new patch my mod has missing flags, and there were no issues before the patch(ran a check around 15 minutes before the patch and all worked well then(and I made zero changes in between):blink:
 
Is there any way to make a higher rank than Empire ? fx, if i hold 2 empires, instead of having 2 titles of Emperor i can make a single entity out of them and only have 1 title instead. (i plan on running a family for 20-30.000 years...... dont wanna have endless king / emperor titles :p)
 
Wastelands are just provinces without titleholders or history. You could carve up those into smaller counties if you wanted to and give them characters to rule over them.
Thanks for the province tip. I'll look into it. As for wastelands, I want to perform the opposite, like say, make Iceland uninhabited. If I understand what you're saying, I'd have to remove the titles from landed_titles, titular history file, and province history file? That means I couldn't use an extend option for the mod, right? I'd have to copy over all province/title histories to my mod's directory...except the ones I don't want. Yuck...
 
Thanks for the province tip. I'll look into it. As for wastelands, I want to perform the opposite, like say, make Iceland uninhabited. If I understand what you're saying, I'd have to remove the titles from landed_titles, titular history file, and province history file? That means I couldn't use an extend option for the mod, right? I'd have to copy over all province/title histories to my mod's directory...except the ones I don't want. Yuck...

Do what paradox does. Create a text file of the same name and delete everything. The only character in the file should be an '#'. Delete all the content in the Icelandic history files with this method. And all mention of the Duchy of Iceland from landed_titles.txt. The rest should be okay. Iceland should then be a big grey lump of coal, and the tooltip over it should say 'Iceland ANY/ALL character'

Now, if you want to make it so that Iceland can be colonized later, I have a method for that, too.