• 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.
Two questions today:

(1) is it possible to add flags and modifiers to sea provinces? Why you ask? For pirates and kraken of course. ;)

(2) is it possible to add decisions to history, either title or character? This was a nice little get-around in EU3 and EU Rome--giving countries decisions that happened before the game start.

Thanks my comrades in modding.
 
Hello all - I've scrolled through most of the pages in this thread looking for an answer to my question, and haven't seen it yet. It's a pretty basic sort of question so I imagine it's answered somewhere, but so far no luck for me in finding it.

How do you remove cultural/religious requirements for forming a kingdom-level title? For example, Al-Andalus can only be formed by Muslims, or (in All the Way to Timbuktu) African kingdoms can only be formed by native cultures. I'd like to alter this so that anyone can form any kingdom to which they hold the requisite lands. Is there a way (simple or otherwise) to do this?

If this has already been answered I apologize (and would appreciate directions to the answer) - I'm unfamiliar with modding the game and don't trust myself enough yet to draw conclusions from related data and apply it to my specific question! Thanks in advance.
 
Hello all - I've scrolled through most of the pages in this thread looking for an answer to my question, and haven't seen it yet. It's a pretty basic sort of question so I imagine it's answered somewhere, but so far no luck for me in finding it.

How do you remove cultural/religious requirements for forming a kingdom-level title? For example, Al-Andalus can only be formed by Muslims, or (in All the Way to Timbuktu) African kingdoms can only be formed by native cultures. I'd like to alter this so that anyone can form any kingdom to which they hold the requisite lands. Is there a way (simple or otherwise) to do this?

If this has already been answered I apologize (and would appreciate directions to the answer) - I'm unfamiliar with modding the game and don't trust myself enough yet to draw conclusions from related data and apply it to my specific question! Thanks in advance.
They're all in landed_titles, in the common folder. Some titles (E.G., Andalusia, France) have a section called allow, which gives the conditions for creating the title.
Remove the allow section, and anyone will be able to form them.
 
They're all in landed_titles, in the common folder. Some titles (E.G., Andalusia, France) have a section called allow, which gives the conditions for creating the title.
Remove the allow section, and anyone will be able to form them.

Thank you for the quick reply. I tried what you suggested, and it half-worked - Deleting the 'allow' section removed the cultural requirements but not the religious one. I still have 'is Muslim' under requirements for creating the kingdom in-game.

Here is what I have in the common>landed_titles folder presently:
Code:
k_songhai = {#Northeast
		color={ 186 120 74 }
		color2={ 75 50 10 }
		
		

		d_songhai = {
			color={ 136 90 74 }
			color2={ 75 50 10 }
			gain_effect = { character_event = { id = 110017 } }
			c_gao = { #East
				color={ 190 120 110 }
				color2={ 50 75 10 }
				b_gao = {
				}
				b_kukiya = { 
				}	
				b_kawkaw = { 
				}	
				b_gao-saney = { 
				}
				b_gadei = { 
				}				
			}
			c_timbuktu = { #West
				color={ 90 60 54 }
				color2={ 50 75 10 }			
				b_timbuktu = {
				}
				b_kabara = { 
				}					
				b_sankore = { 
				}	
				b_djinguereber = { 
				}	
				b_sidi_yahya = { 
				}
				b_korioume = { 
				}				
			}
		}
		d_wagadou = { #Modern-day Burkina Faso (included in Songha to make the kingdom less small)
			color={ 112 75 13 }
			color2={ 50 75 10 }
			gain_effect = { character_event = { id = 110017 } }
			c_wagadou = { #North
				color={ 148 92 13 }
				color2={ 50 75 10 }
				b_tenkodogo = { 
				}	
				b_koudougou = { 
				}	
				b_wogodogo = { 
				}
				b_loanga = { 
				}				
			}
			c_tenkodogo = { #East
				color={ 222 151 54 }
				color2={ 50 75 10 }
				b_ouallam = { 
				}	
				b_tillaberi = { 
				}
				b_bardouga = { 
				}				
			}
			c_koudougu = { #West
				color={ 249 93 14 }
				color2={ 50 75 10 }
				b_bolgatanga = {
				}
				b_nuarungu = { 
				}	
				b_naa_bwewaa = { 
				}
				b_tongo = { 
				}
				b_dinarha = { 
				}				
			}
		}
	}
}

I can't find any reference to Muslims, or religion at all, in this. Am I doing something wrong?

Thanks again.
 
Last edited:
I want to write a script that'll add traits to characters (namely, generated courtiers) lacking them. AFAIK, it's not firing and it's riddled with syntactical errors. Would you guys mind giving it a perusal?

The script should:
1) Check the age of the character (min_age = 16), that the character has less than three traits (one of those traits not being congenital, i.e., stutter, dwarf, etc), and the archetype (Humour) of the character.
2) Give the character a chance to gain a number of traits associated with his archetype.

Note: Script is written with traits from ash001's Friends and Foes mod

Code:
character_event = {
id = ffhumours.69
min_age = 16	 ##### EXCLUDED MAX AGE = 25 BY ASH

is_triggered_only = yes

trigger = { num_traits < 4 
OR = { num_traits < 5 
AND = {
OR = {
trait = clubfooted
trait = harelip
trait = hunchback
trait = lisp
trait = stutter
trait = fair
trait = ugly 
trait = dwarf
trait = genius
trait = quick
trait = slow 
trait = imbecile 
trait = inbred
trait = strong
trait = weak
}
}
}
}

mean_time_to_happen = {
days = 1
}

random = {
chance = 25

add_trait = analytical
}
random = {
chance = 25

add_trait = meticulous
}
random = {
chance = 25

add_trait = haggler
}
random = {
chance = 25

add_trait = demanding
}
random = {
chance = 25

add_trait = reliable
}
random = {
chance = 25

add_trait = harsh
}
random = {
chance = 25

add_trait = worrier
}
random = {
chance = 25

add_trait = frugal
}
random = {
chance = 25
}
}

Of course, I have added the event to the on_actions.txt, written as such (and probably also wrong),

Code:
		#Ward Events
		100 = 78000
		100 = 78005
		100 = 78010
		100 = 78015
		100 = 78020
		100 = 78025
		100 = 78030
		
		5000 = ffhumours.69
		
		5000 = 0 # Chance of no yearly event
 
But what is the line of text that needs to go in?

Is it something like 'add_courtier="1938485"

It is similar to the decisions to add courtiers (debutante, etc.): you have an event fire for a ruler, then in effects add:

Code:
	option = {
		name = "EVTOPTE4150"
		create_character = {
			learning = 8
			random_traits = yes
			dynasty = random
			age = 65
			female = no
			has_nickname = nick_the_clueless
		}
	}

(I took this from feudal_life_events, the event for an old noble claiming to have returned from Elfland.)

You can adjust whatever you want, setting a particular dynasty, age, gender, attribute.
 
Is there a trigger for gender succession laws?
I know it's possible to check for general succesion laws like 'has_law = succ_feudal_elective' for elective, but neither 'has_law = true_cognatic_succession' nor 'has_law = succ_true_cognatic' work.
 
How can I have details about a character randomly generated by the history files? I know that not having a dynasty will leave a character lowborn, but what about name, or not listing attributes? Will the game randomly assign them?
 
How can I have details about a character randomly generated by the history files? I know that not having a dynasty will leave a character lowborn, but what about name, or not listing attributes? Will the game randomly assign them?

I think that you at least need a name, and a birthdate. Otherwise they won't display. A deathdate is not enough, either, so make something up that seems logical for DOB.
 
I think that you at least need a name, and a birthdate. Otherwise they won't display. A deathdate is not enough, either, so make something up that seems logical for DOB.
I've been using Wikipedia as a random date generator. Years I calculate myself, but for the day and month I go to a random page, look at the history, and pick the first one my eyes fall on.
 
I've been using Wikipedia as a random date generator. Years I calculate myself, but for the day and month I go to a random page, look at the history, and pick the first one my eyes fall on.

You do know that you can just do 1066.1.1 if you don't know the month and day? I do that most of the time nonetheless.