/r/EU4modding

Photograph via snooOG

Welcome to Eu4Modding

This is a sub-reddit for discussion, links, etc. about the game EU4 published by Paradox Interactive or their partners. Topics in relation to EU4 may also be discussed.


Our Official Server is : https://discord.gg/6chGGvF


  • Hover your mouse over any of the boxes below to view relevant information.

Rules

  1. Posts must be related to the topic of the subreddit, just the title of the post being relevant does not qualify

  2. No memes, reaction pictures, this also applies to comments; comments that are composed entirely of memes will be removed.

  3. at the discretion of the moderators

  4. Provide background information whenever you post a screenshot

  5. Follow reddiquette.

  6. All posts must have the appropriate flair

  7. No advertising unless moderator approved

The Network

Affiliated Subreddit

  • Placeholder
  • Placeholder

Non-Modding Subreddits

Game Specific Subreddits

Extras

Official Websites


Lists


Guides

/r/EU4modding

190 Subscribers

1

How to get rid of the Vanilla tags in total conversion mod

Or how to get around it

3 Comments
2024/10/04
09:36 UTC

1

Modding Help

2 Comments
2024/09/02
15:09 UTC

3

Making a Star Wars Mod

I am currently putting together a team to make a Star Wars mod for EU4. It will be set largely during the old republic era similar to the legacy of the old republic mod for stellaris since the colonization and war/peace times of this era fit the EU4 gameplay loop much better in my opinion than the movie era.

We have already put approx 20 hrs into the mod creating the map, countries, etc. but need help right now with actual province history and stats and of course the actual content of the mod once this setup piece is complete.

Also while I care about Star Wars and know a lot about the universe I'm not exactly a lore expert so it would be nice if someone who literally knows everything about Star Wars joins the team.

My discord is mitkiester. DM me if interested.

1 Comment
2024/08/03
17:12 UTC

3

Resources mod

Hi, I'm creating a mod that makes better use of the resources already present in the game, adding a cost to them for the construction of buildings and other bonuses, as well as an import/export system. At the moment I have added province flags that bring more resources into the world, mines that can only be built one per state and only if there is a province flag and deposits in which the resources will be processed. I was also thinking of adding more province flags to be able to randomize the amount of them in the mines like in VIC3. My doubt concerns the balancing of resources, how much to make each nation earn, how to develop it at a calculation level, how much to make constructions cost in resources and which Europe values ​​to take into consideration for the calculation of resources (dev, number of provinces etc. ).

0 Comments
2024/07/21
23:18 UTC

1

Random Province reward on conquer?

I'm trying to make an event were a random neighboring province is selected and you get a claim on it. Then later if you conquer that province while you still have a claim on it you gain an additional reward? I think I have a few ways to solve it if the event would only happen to a single tag, but if more then two tags can get the event most of my solutions fall apart.

0 Comments
2024/07/03
19:19 UTC

2

Buildings Problems

I'm making a mod that adds buildings that can only be built for one province per area, as well as other conditions which are more standard (modifier provinces, etc.), however I'm having difficulties.

This is the code I wrote:

grain_mine_lvl_one = {

`cost = 20`

`time = 1`





`build_trigger = {`

		`ROOT = {` 

has_province_modifier = grain_deposit

is_unique_in_area = { BUILD = grain_mine_lvl_one }

NOT = {

OR = {

has_province_modifier = grain_mine_lvl_1

has_province_modifier = grain_mine_lvl_2

has_province_modifier = grain_mine_lvl_3

has_province_modifier = grain_mine_lvl_4

has_province_modifier = grain_mine_lvl_5

has_province_modifier = grain_mine_lvl_6

}

}

		`}`

		`FROM = {`

adm_power = 50

		`}`

`}`



`modifier = {`

	

`}`

`on_built = {`

FROM = {

change_variable = { which = WW_grain_mine_lvl_1 value = 1 }

add_adm_power = -50

}

	`remove_province_modifier = grain_deposit`

	`add_province_modifier = {` 

name = grain_mine_lvl_1

duration = -1

	`}`

}

on_obsolete = {

FROM = {

subtract_variable = { which = WW_grain_mine_lvl_1 value = 1 }

}

}

`ai_will_do = {`

	`factor = 1`

`}`

}

is_unique_in_area = {

	area = { 

		NOT = {

has_building = $BUILD$

		}

	}

}

0 Comments
2024/06/16
22:23 UTC

1

Maybe impossible captured ships mod

I'm looking to make a mod that redefines/edits the captured ship tree to send the captured ship to port so my fleet's important wartime mission isn't interrupted for seven months for the sake of repairing one captured transport.

Decompiling in ghidra, I think I've found the relevant strings but I'm not convinced that the namespace/subspaces are exposed to eu4's external modding framework (and ghidra has thus far failed to find them as all the logic in eu4.exe is optimised to smithereens).

Can anyone confirm if this mod is in fact an impossible goal for a non-expert coder/modder to make? Any help/guidance would be greatly appreciated.

1 Comment
2024/06/08
12:48 UTC

1

Improving polish event - Successor of Wladyslaw III

https://eu4.paradoxwikis.com/Polish_events#Successor_of_Wladyslaw_III

Hi, I would like to add 2 things, to make the event more history friendly . Firstly, the second option should always give duke Boleslav IV of Masovia as a king, instead of a noble from a random dynasty. Secondly, Masovia should be annexed immediately and for free.

Problem is, I can't find the file with the code.

Does anyone know where is it?

0 Comments
2024/04/22
16:23 UTC

2

Need map modding advice

Okey, so I want to create a completely different map, (star wars themed). I had made some RNW tiles a while back, and I can remember that during the file editing you had to select some options etc. in a nutshell. What are these specialities? I am working on gymp.

Also any other advice would be much appreciated

1 Comment
2024/04/11
10:41 UTC

2

Gui help.

Okay, so I want to make a mod that displays two different pictures here, I've yet to create the second texture strip but I can't get it to work and I'm wondering if its even possible. Is the approach of having two strips plausible? Or is there perhaps a way of making the textures 82px lengthwise so I can include both icons?

https://preview.redd.it/en47w2m4musc1.png?width=465&format=png&auto=webp&s=b5ffd9cf27e77551b41c0e5cd9ac8d34c615c96f

1 Comment
2024/04/06
12:00 UTC

2

Has anyone tried porting CK3 map into EU4?

4 Comments
2024/03/16
15:35 UTC

1

Trouble getting unique gov reforms and gui for gov mechanics to show up in game.

I've been trying figure out how to mod governments, I've figured out how to add new gov reforms and mechanics but I'm still having trouble getting things to actually show up in game.

Unique gov mechanic, doesn't actually do anything.

native_modernization_mechanic = {
	alert_icon_gfx = GFX_alerticons_government_mechanics
	alert_icon_index = 9
	available = {
		has_dlc = "Conquest of Paradise"
	}
	powers = {
		native_modernization = {
			max = 20
			reset_on_new_ruler = no
			base_monthly_growth = -0.1
		}
	}
}

In order to enable countries with native governments to use this mechanic I put this code in each of the sections for the tier 1 tribal reform, when I did this only one of the tier 1 reforms showed up in game. The gui for the mechanic did show up however.

conditional = {
		government_abilities = {
			native_modernization_mechanic
		}
	}
}

see the github repo below for all of the mods code, and download the mod at paradoxplaza (search for north america overhaul in the search bar) to test in game.

https://github.com/Hydrolox7/NorthAmerica_overhaul

1 Comment
2024/03/12
03:12 UTC

2

Reduce warscore from naval blockading a province

would there be any way to do this? Nothing in the defines.lua file seems to relate to blockade warscore and i can't seem to find a modifier anywhere else.

0 Comments
2024/02/02
10:15 UTC

1

Mission Trigger Help

I am trying to have a mission where every owned province that has either Spice or Silk trade goods has 6 base production. But no matter what combination of scopes and triggers, I can't get it to be true only when 6 production has been reached. Here's what I have that I thought would work, I have two versions I've been trying to get to work, one with the all_owned_provinces scope and one in the region scope. Both are just true at game start. Any help would be great.

trigger = {
	coromandel_region = {
		type = all
		OR = {
			AND = {
				owned_by = ROOT
				OR = {
					AND = {
						OR = {
							trade_goods = spices
							trade_goods = silk
						}
						base_production = 6
					}
					OR = {
						NOT = { trade_goods = spices }
						NOT = { trade_goods = silk }
					}
				}
			}
			NOT = { owned_by = ROOT }
		}
	}
	ROOT = {
		all_owned_province = {
			OR = {
				AND = {
					OR = {
						trade_goods = spices
						trade_goods = silk
					}
					base_production = 6
				}
				NOT = { trade_goods = spices }
				NOT = { trade_goods = silk }
			}
		}
	}
}

2 Comments
2024/02/02
00:32 UTC

1

Parliament not showing issues

I ported over one of my old mod from 1.30.4 to 1.36.2 and I'm having issues with parliaments not showing issues. I've looked in on_action / defines / parliament issues files and nothing is wrong with those files. Any clue what could be the problem?

Thanks

2 Comments
2024/01/31
23:41 UTC

2

Mutate GUI files Tool

Hi!

I'm new here but I started playing around with EUIV mods recently. The first thing I wanted to do was to create a mod that would somehow show you when a province will be colonized.

However - it looks like to do it (and tweak with original interfaces) - my mod would have to copy quite a big entry from ``colonisationpanel.gui``. Which made me annoyed. I didn't manage to find any sensible tool that would allow me to modify just the specific fields I'm interested in (and based on trial and error - I need to copy quite a lot of data from it) - I figured I will create a tool that would:

  1. Get the base ``.gui`` file
  2. Get my "mutation" ``.gui`` file (which only has the changes present)
  3. Merge the data from my file to base GUI file (in-memory, not tweaking with original file in any way)
  4. Save that "merged" GUI file into the ``mod`` folder.

I actually already have a program that does it (I'm a python programmer professionally. It took me a while but I was able to parse the paradox GUI files properly).

However - I'm wondering if such a tool would be useful to the community? Or is there something else that you're using? If it will be useful, I will probably release it publically (I will add some nice tests though, as right now it's targeting my specific need).

It does have some benefits to do it like that:

  1. You only work on a file that has changes in it. Not the whole original .gui file.
  2. When an EU4 upgrade is made - it will be quite easy to regenerate the files (just re-run the command)
  3. The original .gui files are not formatted consistently. My script auto-formats the file in such a way that everything looks "consistent" (yes. I am a person which is annoyed that file formatting is a bit off, so it is a benefit :P)
  4. I would be able to work on it a bit more and add some nice features (like - right now I will need to add an option to add new entires to the original .gui file for elements that were not there before)

Yeah. I do know that I should probably ask that question before I wrote the whole script for it (xD) but - oh well - I got hyperfixated on it :D. So I'm now trying to figure out if my work would be useful somehow ;).

3 Comments
2024/01/23
12:02 UTC

3

Oddity with scopes and variable_arithmetic_trigger

Just putting this out there - but it seems like variable_arithmetic_trigger doesn't actually retain the scope of whatever trigger it's getting used in.

So, for instance, you can't use set_variable = { which = MinDev which = ROOT } to create&set the value of the MinDev variable based on the variable of the same name in ROOT, because variable_arithmetic_trigger doesn't appear to know what ROOT is. Can make it annoying if you are trying to compare provinces, or use a country scope variable in a province scope trigger.

0 Comments
2024/01/19
15:36 UTC

2

Is there anyway to trigger an event when doomsday occurs?

There doesn't appear to be an on-action for this, and the consequences seem hard coded. I'm trying to track the number of religious reforms a country has. There's not a trigger for this natively, but I can track when reforms are bought. But that only triggers when a reform is gained, not when one is lost.

0 Comments
2024/01/08
03:36 UTC

2

How to combine culture groups

So, I've been trying to combine all the northern indian culture groups into one big one, and I ended up throwing them together in the cultures text file. When I load up the game, nothing changes and all the separate groups are still there. What am I doing wrong?

aryan = {
	graphical_culture = indiangfx

	assamese = {
		primary = KMR
		dynasty_names = {
			"Khen" "Nagas" "Chutiya" "Raikat" "Koch" "Sutiya" "Kachari" "Barobhyan"
		}
		male_names = {
			Balavarman Bhaskarvarman Bhattamahabahu Bhutivarman Birapala Brahmapala Chandramukhavarman 
			Dharmapala Ganapativarman Gopala Harjjaravarman Harshadeva Harshapala Harshavarman 
			Indrapala Jayamala Jayapala Kalyanavarman Kumarapala Mahendravarman Narayanavarman 
			Pralambha Purandelapala Pushyavarman Ratnadhwajpala Ratnapala 
			Salasthamba Samudravarman Sthitavarman Supratisthitavarman Susthitavarman 
			Timgyadeva Tyagasimha Ummoka Vanamalavarmadeva Vigrahastambha Vijaya Virabahu
		}
		female_names = {
			Ahiavadevi Bhogavati Dattadevi Devavati Durlabha Gandharavati Kuladevi Nayanadevi
			Ratnavati Suvrata Syamadevi Vasumati Vijnanavati Vijnayavati Yajiyavati Yajnavati
		}
	}
	bengali = {
		primary = BNG
		dynasty_names = {
			"Ilyas Shahi" "Ganesha" "Hussein Shahi" "Najafi" "Afshari" "Nasiri" "Karrani"
			# CKII
			"Sur"
		}
		male_names = {
			"Sikandar" "Sher" "Ala-ud-Din Firuz" "Rukn ad-Din Barbak" "Jalal ad-Din Fateh" "Nasir-ud-Din Mahmud" "Nasir ad-Din 			Nasrat"
			"Jalaluddin Mohammed" "Islam" "Mirza Muhammad" "Shams-ud-Din Yusuf" "Shams-ud-Din Ahmad" 
			"Shams-ud-Din Muhammad" "Mir Muhammad Ja'far" "Shihab-ud-Din Bayazid" "Mir Qasim 'Ali" "Sayf-ud-Din Hamza" 
			"Ghiyasuddin Azam" "Ghiyasuddin Mahmud" "Ghiyat ad-Din Bahadur" "Ghiyat ad-Din Jalal" "Da'ud" "Sulayman" 
			"Murshid Quli" "Shuja' ad-Din Muhammad" "Azam" "Ahmad" "Abu Nasr" "Barbak" "Farid" "Yusuf" "Husain" "Firuz" 
			"Nasrat" "Fateh" "Bayazid" "Nasir" "Ghiyasuddin" "Mirza" "Raja" "Hamza"
			Amritnarayan Balabhata Balinarayan Ballalsen Basudevnayaran 
			Bhagadatta Bhairabendranarayan Bhatta Bhavashankari Bhimsingha Birnayaran 
			Chandrasen Chandranarayan Chaturanan Chilarai 
			Danujmadhava Dasharathadeva Devakhadga Devapala Devendranarayan 
			Dhairjendranayaran Dharendranarayan Dharmapala Dhirsingha 
			Gajnarayan Gopala Govindachandra Govindapala 
			Hajo Harendranarayan Haridevnarayan Hariyamandal Hemantasen Indranarayan 
			Jadu Jagaddipendranarayan Jatakhadga Jayanarayan Jayapala Jitendranarayan 
			Kalyanachandra Kamalnarayan Keshabsen Khadgodyama Krishanmishra Krishnaroy 
			Kumarapala Kumudnarayan Ladahachandra Lakshmansen Lakshmichandra Lakshminarayan Lomapada 
			Madanapala Mahendrapala Mahendrasingha Mahindranarayan Mahipala Manava Mukundanarayan 
			Naranarayan Narasingha Narayanapala Narendranarayan Nayapala Nripendranarayan 
			Parikshitnayaran Prananarayan Prannath Pratapnarayan Pratapnarayanroy Pushkaranadhipa 
			Raghudev Rajabhata Rajadinaj Rajaganesha Rajendranarayan Rajrajendranarayan Rajyapala 
			Ramapala Ramnath Ranasura Ranjitsingha Roopnarayan Rudranarayan 
			Samudrasen Shanibhangar Shashanka Shivanarayan Shivendranarayan Shukladhwaj Shurapala 
			Srichandra Srimanta Subarnachandra Sukhdev Suryanarayan Traillokyachandra 
			Udirnakhadga Uditanarayan Upendranayaran Vakapala Vapyata Vigrahapala 
			Vijaynarayan Vijaysen Vijaysingha Virajdendranarayan Vishwarupsen Vishwasingha
			"Bhairav Singh" "Bhavesh" "Bhogishwar" "Dev Singh" "Dhir Singh" Dhireshwar 
			"Ganeshwar Singh" "Gang Dev" Harasimhadeva "Hari Singh" "Hemant Sen" 
			"Kameshwar" "Kirti Singh" Jyotirishwar "Laxman Sen" "Laxminath Singh Dev" Madanpal 
			"Nanya Dev" "Nar Singh" "Narsingh Dev" "Padma Singh" "Rambhadra Singh Dev" Rameshwar 
			"Samant Sen" "Shakrasingh Dev" "Shiv Singh" "Vallal Sen" "Vijay Sen"
			Agnimitra Andhraka Ayus Bhagabhadra Bhikhari Bhumimitra Devabhuti Ghosha Gopal Govindapal 
			Khsetravridha Maharshi Mahendra Maurayadhwaj Narayana Pulindaka Pusyamitra 
			Sahtiya Susarman Vajramitra Vasudeva Vasujyeshtha Vasumitra 
		}
		female_names = {
			Amrapali Amritakala Asima Bhavashankari Bishwas Bhogavati Bibibai Dattadevi Devavati Devi 
			Ahiylya Gandharavati "Malika Bibi" "Sharat" "Kamala"
			Gayatri Himadrija Hira Jira Kanchani Mahendrani Malavyadevi Nayanadevi Rani Ratnadevi Suvrata
			Syamadevi Vijnayavati Vina Yajnavati
		}
	}
	bihari = {
		primary = TRT
		dynasty_names = {
			"Sugauna" "Sharqi" "Suri" "Oinwara"
		}
		male_names = {
			"Shiv Singh" "Padma Singh" "Hari Singh" "Nar Singh" "Dhir Singh" "Bhairav Singh" "Rambhadra Singh" 
			"Laxminath Singh"
		}
		female_names = {
			"Bishwas Devi" "Bhanumati" "Sharat" Amrapali Amritakala Asima Bhavashankari Bishwas Bhogavati Bibibai Dattadevi 
			Devavati Devi Ahiylya Gandharavati "Malika Bibi" "Kamala"
		}
	}
	oriya = {
		primary = ORI
	}
	garjati = {
		primary = GRJ
		dynasty_names = {
			"Nagavamsi" "Sankara" "Bhuyavamsha" "Gangabansi" "Bhanja" "Karan" "Keshari" "Suryavanshi" "Baghal"
		}
		male_names = {
			"Haria" "Jugasai" "Pratapnayan" "Harirudra" "Anku" "Raghunath" "Biswambhar" "Raisingh" "Dusmant" 
			"Pratap Deo" "Padman" "Khadag Rai" "Yuvaraj" "Birabar" "Harichandra" "Gopinath" "Raghuraj"
			"Bishwanath" 
			"Rai" "Sunder" "Krishna" "Barman" "Biwarta" "Jagannath" "Narayana" "Bebarta" "Chandra" "Damodar" "Jadunath" 
			"Pradeep"
		}
		female_names = {
			"Giriraj" "Suratarangini Devi" "Malavika Devi"
		}
	}
	avadhi = {
		primary = ODH
		dynasty_names = {
			"ud Daula" "Awadhi" "Chand" "Bundela" "Malikzada" "Tomara" "Raghuvansi" "Parmari"
		}
		male_names = {
			"Muhammad Sa'adat Khan" "Muhammad Safdar Jang" "Shujah ad-Daula" "Asaf ad-Daula" "Wazir 'Ali" 
			"Sa'adat 'Ali Khan" "Ghazi ud-Din Haidar" "Saadat" "Safdarjung" "Hyder" "Birjis Qadra" "Ali" 
			"Alauddin" "Bhi" "Malik" "Narendra" "Bismillah" "Obaid" "Iqbal" 
		}
		female_names = {
			"Hazrat Mahal" "Farzana" "Fakhr-un-Nisa"
		}
	}
	kanauji = { #Hindvi
		primary = DLH
		dynasty_names = {
			"Tughluq" "Lodi" "Khilji"
		}
		male_names = {
			"Nusrat" "Sayyid Khidr" "Daulat Khan" "Khidr Khan" "Mubarrak Shah" "Mohammed Shah" "Aladdin Alam Shah" 
			"Bahlûl" "Saikander" "Ibrahim" "Sher" "Islam Shah" "Saadat" "Safdarjung" "Hyder" "Birjis Qadra" "Ali" 
			"Iqbal" "Alauddin" "Bhi" "Malik" "Narendra" "Bismillah" "Obaid" "Hemu" "Ghazi"
		}
		female_names = {
			"Raziyya" "Bahar" "Roshanara" "Fakhr-un-Nisa"
		}
	}
	vindhyan = { #Bundeli
		primary = BND
		dynasty_names = {
			Baghela Malikzada Bundela Tomara Karkare Newalkar 
		}
	}
	bagheli = {
		primary = BGL
		dynasty_names = {
			Baghela Malikzada Bundela Tomara Karkare Newalkar 
		}
	}
	jharkhandi = { #Chhattisgarhi
		primary = RTT
		dynasty_names = {
			Baghela Malikzada Bundela Tomara Karkare Newalkar 
		}
	}
	panjabi = {
		primary = PUN
		dynasty_names = {
			"Kohkkar" "Gakhkhar" "Phulkian" "Bhullara" "Dhaliwala" "Sandhawalia" "Ahluwalia" "Langa" 
			"Mirrani" "Abbasi"
			"Janda" "Jhuti" "Kahlon" "Banu Sama"
		}
		male_names = {
			"Jassa Ahuwalia" "Lahina" "Bhag" "Duleep" "Maha" "Sobha" "Narnak" 
			"Ram" "Arjan" "Rai" "Krishan" "Bahadur" "Sardar Badar" "Balbir" "Bhalla" "Daya" 
			"Gahunia" "Gian" "Nihang " "Granth" "Bhai Bachittar" "Himmat" "Hoora" "Ishnar" "Jhol" "Jhotti" 
			"Mokham" "Nand" "Parmanand" "Rajsingh" "Sanlib" "Sardul" "Shabeg" "Shergill" "Sodhi" "Sohal" 
			"Tara" "Udasi" "Lohaar" "Dharem" "Fakir" Ranjor
			Ajit Amar "Amar Dasi" Amir Angad Arjun Atar Basawa Bhagwant Bhaimani Budh Chand Charat 
			Damodar Dasu Datu Dayaram Didar Farid Fateh Gobind Gurdita 
			Hargobind Hari "Har Krishan" "Har Rai" "Jai Ram" Jetha Jujhar 
			Kalyan Kapur Kehar Kharak Khushal Lahna Lakhmichand Laxman 
			Mahadev Mohan Mohri Nanak Narayan Nodha Partap Pheru Prithichand Prithvi "Ram Rai" Ranjit 
			Sahdev Shamsher Sher Srichand "Tegh Bahadur" "Tej Bhan" Thakur Zorawar
		}
		female_names = {
			Amro Anokhi Anup Begum Bhani Dani Gujri Jodhabai Khivi Kishan 
			Lachmi Nanaki Nihal Ramo Sabhirai Sahib Sulakhni Sundari Tripta
			"Chand Kaur" "Ratan Kaur" "Kanwal Kaur" "Datar Kaur" "Nand Kaur" "Mahtab"
		}
	}
	sindhi = {
		primary = SND
		dynasty_names = {
			"Samma" "Kalhora" "Soomra"
			# CKII
			"Ghanshani" "Doolani" "Khetpal" "Lohi" "Notani" "Sawai" "Bhambhani" 
		}
		male_names = {
			"Fath Khan" "Tughluq" "Nizam ad-Din" "Furuz Salah ad-Din" "Shah Shuja' Beg" "Nanda" 
			"Shah Husayn" "Mirza Muhammad 'Isa" "Mirza Muhammad Baqi" "Mirza Jani Beg" "Yar Muhammad Khan" 
			"Muhammad Murad" "Gulam Shah" "Sarfaraz Khan" "Gulam Nabi Khan" "'Abd an-Nabi Khan" 
			"'Abd Allah Khan Talpur" "Mir Fath Ali" "Thara" "Mohammed 'Isa" "Mohammed Baqi" "Nur Mahammad" "Mohammad" 
			"Muzzafar" "Ali" "Khalil" "Bhenji" "Hamirji" "Bhav" "Natwar" "Sidhraj" "Ghulam" "Hussain"
			Abdullah Abdurrashid Abdurrahman Alauddin "Ali Sher" Amar Arnel Asamuddin Aziz 
			Banhbina Bhungar "Bhungar Rao" Chanesar Doda "Dadu Phattu" "Dalu Rai" "Deva Rai" 
			"Fateh Khan" Feruzuddin Genhra Hafif Khafif Hamir Ismail Junah Kahah Karan Khaira 
			Khinrah Mahmud Mubarak Muhammad Muhammed-Tur Munzir Nangar Nizamuddin Pahtu Punhun Raidhan 
			Sabar Salahuddin Sanghar Sanjar Shahabuddin Sikandar Sumrah Syed Tai Tamachi Taghlak Umar Unar
		}
		female_names = {
			Bhagi Hamide Himu Sad Tari "Zainab Tari" "Noor" "Chaguli" "Khair"
		}
	}
	kashmiri = {
		primary = KSH
		dynasty_names = {
			"Shah Miri" "Sayyidi" "Mirrani"
			#CK2
			"Ladakhi"
		}
		male_names = {
			"Sikandar" "Ali Shah" "Zayn al-'Abidin" "Haydar Shah" "Hasan Shah" "Muhammad Shah" "Sayyid Hassan" "Fath Shah"                         "Ibrahim Shah"
			"Nazuk Shah" "Shams ad-Din" "Ismail Shah" "Ghazi Shah" "Husayn Shah" "Yusuf Shah" 
			"Lohir Shah" "Nabib Shah" "Ya'qub Shah" "Ibrahim" "Hassan" "Nazuk" "Yusuf" "Ya'qub" "Muhammad" "Ali" 
			"Ismail" "Gulab" "Ranbir" "Hari" "Pratap" "Kishore" "Zorawar" "Jonaraja" "Prajna" "Hamza"
		}
		female_names = {
			"Kota" "Sibaia" "Tara Devi"
		}
	}
	pahari = {
		primary = GHR
		dynasty_names = {
			Chand Parmar Prakash Katoch
		}
	}
	nepali = {
		primary = NPL
		dynasty_names = {
			"Malla" "Ghorka" Limbu
		}
		male_names = {
			Jayajyotimalla Jayayakshamalla Ratmamalla Suryamalla Amaramalla Narendramalla Mahendramalla Sadashivamalla 
			Shivasimhamalla Lakshminarasimhamalla Pratapamalla Jayanripendramalla Parthivendramalla Bhupendramalla 
			Bhaskaramalla Mahendrasimhamalla Jayaprakasamalla Bhimsen Amar Singh Ranjur Bhakti
		}
		female_names = {
			Devaladevi Kaushalyawati Rajendralakshmi Maiya Nanu Nani Maya Pragya Anu Chameli Nirmala Anushka Sarmila Komal 
			Rita Kamala Goma Srijana Bhawana Pramila Saraswati Laxmi Ganga Radha Radhika Krishna Bishnu Sarita Kalpana 
			Shanti Aayusha Ramita Gita Sita Sangita Mira Ranjita Ranju Manju Punam Maili Kaili Saili Jamuna Shova Pratiksha 
			Sanjila Anita Nilam Nira Urmila Kopila Pavitra Iswari Khusbhu Rina Junu Tika Kali Rasmi Rupa Puja Aarati 
			Mankumari Dhankumari Bechani Mangita Uru Lalita Rekha Prabha Shushila Laila Renu Muna Amrita Seti Gauri 
			Kaushilya Rama Madhu Madhurima Renuka Chandrakala Fulkumari Indrakala Sabitri Archana Kamana Puspa Putali 
			Suntali Dipa Ambika Dipshika Sabita Suravi Ramabati Mainabati Kabita Champa Kusum Rampyari
		}
	}
	gujarati = {
		primary = GUJ
		dynasty_names = {
			"Muzaffarid" "Ahmad Shahi" "Vadher" "Babi" "Rawal" "Jadeja" "Calukya" "Bhil" "Kathi"
		}
	}
	parsi = {
		dynasty_names = {
			"Vakil" "Wadia" "Pithawala" "Subedar" "Sanjana" "Surti" "Bulsara" "Damania" "Gandhi" "Marzban"
			"Jejeebhoy" "Tata"  
		}
	}
	saurashtri = {
		primary = CMP
		dynasty_names = {
			"Yadava" "Gohil" "Vadher" "Babi" "Rawal" "Jadeja" "Calukya" "Bhil" "Kathi"
		}
	}
	marathi = {
		primary = MAR
		dynasty_names = {
			"Bhonsle" "Gaikwar" "Bhat" "Sindhia" "Koli" "Sinda" "Kamadeva" "Gaitonde" "Malviya" "Ruddha"
		}
		male_names = {
			Shambaji Sahuji Baji Rao Madhu Narayan Ragunath Pratap Singh Firangoji 
			Kanhoji Netaji Prabhu Suryaji Tanaji Chimaji Ranoji Malhar Haripant
			Abaji Amutrao Bahadur Bahiroji Balaji Bajirao Chimnaji Dattaji Daulatrao Dhanaji Dhondu 
			Ekoji Fatehsinh Gopalrao Hambirao Harirao Jayajirao Jayappa Janakappa Jivajirao 
			Khanderao Krishnarao Madhavrao Mahadji Malerao Malharrao Mankoji Martandrao 
			Moropant Murarirao Nanasaheb Narayanrao Pandurangrao Pratapsinh 
			Raghunathrao Rajaram Ramaswami Ramchandrapant Ramshastri Ranojirao 
			Sadashivrao Sambhaji Sayajirao Serfoji Shahuji Shivaji Shivajirao 
			Tryambakrao Tukkoji Tukojirao Tulojirao Venkatrao Vishwanathpant Yashwantrao
			Adityavarman Aiyaparaja Anantadeva Aparaditya Aparajita Arikesarin Arthapathi Avasara 
			Bhavadatta Bhima Bhoja Bijjala Chandra Chandraditya Chhadvaideva Chhittaraja 
			Daharasena Dhammayira Gandaraditya Goggiraja Gonka Guhala Guhalladeva Haripaladeva 
			Indradatta Indraraja Jatiga Jayakeshi Jhanjha Kamadeva Kapardin Keshideva Kirtiraja 
			Mallikarjuna Marsimha Mummuniraja Nagarjuna Nagavarma Naivarman Pullashakti Rattaraja 
			Sanaphulla Shashthadeva Shivachitta Skandavarman Soddhala Someshvara Sovideva Suketuvarman 
			Taila Tejahkantha Vappuvanna Vijayaditya Viravarmadeva Vishnuchitta Vyaghrasena 
		}
		female_names = {
			Ahilyabai Ambikabai Anandibai Anubai Bhiubai Deepabai Durgabai Gangabai Gunvantibai 
			Jankibai Jijibai Kamlabai Kashibai Laxmibai Mahadik Mastani Putalabai 
			Rajasbai Rajkunvarbai Ramabai Ranubai Saibai Sagunabai Sakavaarbai Sayeebai Sujanbai 
			Yesubai Anjanibai Anuradha Durga Kamadevi Kamaladevi Kesarbai Kishori Kundaladevi 
			Lasthiyavva Maya Mogubai Radhabai Radhika Shevanti Shudhamati Sovidevi Sudha Sumati Sunita
			Tarabai Soyarabai Tukabai
		}
	}
	rajput = {
		primary = MER
		dynasty_names = {
			"Sisodiya" "Faruqi" "Rastraudha" "Solanki" "Khan Zada" "Kachwaha"
			"Satnami" "Rathore" "Hada" "Chauhan" "Holkar" "Qadirid" "Shaja'atid"
			"Khalji" "Tomara" "Jadeja" "Khirwara" "Nauhwara" "Sinsiniwar" "Balhara"
			"Panwara"
			"Panwar" "Bargujar" "Guhilot"
			"Dahiya" "Chandela" "Pathan" "Vaghela" 
			"Pragvata" "Somavansha" "Adityavansha" "Chandravansha" "Suryavansha"
			"Samma" "Chudasama" "Bhatti" "Sanchore" "Gujar" "Chhinda"
		}
		male_names = {
			"Udai Singh" "Amar Singh" "Lakha" "Mokal" "Kumbha" "Raimal" "Sangha" "Ratan Singh" "Vikramaditya Mahthan" 
			"Pratap Singh" "Karan" "Jagat Singh" "Raj Singh" "Jay Singh" "Sangrama Singh" "Ari Singh" "Hammir"
			"Bhim Singh" "Baz" "Kumbhakarna" "Natwar" "Ratan" "Jhala" "Hakim" "Sidhraj" "Raj" "Jai" "Sangram" 
			"Sejakji" "Dilip" "Kshetra" "Nath" "Viram" "Baiji Lal" "Jawan" "Bhawani" "Naryan" "Krishna" "Ballu"
			Achalraj Achalraja Adhandev Adityadeva Ajmal Alsi Amir Anangpal
			Anangpala
			Anuppal Anupapala "Apara Gangeya" Arjunpal Arjunpala Arjunavarman Bacchdev 
			Bachraj Baghpal
			Baghpala Bahadur-Singh Beejpal Beejpala Bhaadar Bhilpala Bhoj
			Bhojavarman
			Bhopal Bhumpal Bhumpala Birpal Birpala Bisaldeva Brahmadeva 
			Brahmapala Brahmdevpal Chand Devapala 
			Devavarman Dhangadeva Dhanga Dharmapala Dhaulshaya Dilippal 
			Dilipapala Doth Draupad Draupada 
			Dugarendra Gambhir Ganapatideva Gandadeva Gangeya Ghatamdeva Gopal
			Govindachandra Govindapala 
			Govindraj Hamir Hammiravarman Harpal Harshapala 
			Harsa Hirapal Hirapala 
			Indrapal Indrapala Ishtpala Jaganpal
			Jaganpala Jagatpal Jagatpala 
			Jagdev Jagdeva Jaidas Jaipal
			Jaspal Jasapala Jatanpal Jatanpala 
			Jayapala Jayasakti Jayasimha Jhetpal Jhetpala Junpala 
			Kailaspal Kailaspala
			Kalkurna Kalyanachandra Kakhopal Kakhopala Kamal Kanhad Kanvarpal 
			Kanvarpala Karnpal Keeratdeva 
			Khadag Khetrapal Khetrapala Kiratpal Kiratpala
			Krishnray Krsnapa Kumarapala
			Kunwarpal Kunwar Ladahachandra Lakshmandeva Lokpala Madanapala Madanavarman Maharana 
			Mahendrapal
			Mahipal Mahipata Mahlakadeva Mandandeva Mangaldeva Margdeva Mihira 
			Nagapala Nagdeo Nannuka Naravarman 
			Narayanapala Narpal Nayapala Nihaal Nihalray Paramardideva Pavak Peepalraj Popatraj Pritampal 
			Pritampala Prithipala 
			Prithvi Prithviraj Prithvivarman 
			Rahila Rajapala Rajyapala Ramabhadra 
			Ramachandra Rampal Rampala Rana Rangraj Rangraja Ratnapala 
			Rijhpala Roshandeva Salivaahan 
			Sallaksanavarman Saugandeva Shurapala Sisupal Sisupala Sohanpal Somasi 
			Someshvara Sonpal Sonpala
			Srichandra Subhatavarman Sukhinpal Sukhinpala Sulakshanpal Sultanpal 
			Sultanpala Surajpal Surajpala
			Traillokyachandra Tejapala Tejpal Tolpal Trailokyavarman 
			Trilochanpala Udayaditya Udaysangh Uddharandeva 
			Vachhal Vakpati Vapyata Varshpal Varshapala Vasudev Vidurathpal 
			Vidurathpala Vidyadhara
			Vigrahapala Vigraharaja Vihangpal Vijayapala Vijayasakti Vinayakapala Vindhyavarman Viramdeva 
			Viravarman Virsinghadeva Yasovarman Abhayapala 
			Acharya Ahila Ajairaja Jayaraja Ajayapala Ajay-Singh Alhana Allat Amarangeya Ambra-Prasad 
			Amritapala Anahilla Ari-Singh Arnoraja Asaraja 
			Asvapala Balaprasada Baliraja Bhatarka Bhert-Patt Bhimadeva Bhima Bhim-Singh 
			Bhuvan-Singh Bhoja Bhoo-Chand Chachiga Chamundaraja
			Chandanaraja Chandraraja Chaud-Singh Dadda Dambarisimha Deopali-Deo Dharapatta Dharasena 
			Dhruvasena Dinakarn Dronasinha Dungar-Singh 
			Durlabharaja Gajasimha Gopala Gopendraka Gopendraraja Govinda 
			Guhasena 
			Guvaka Govindaraja Hammira Hammir-Singh Hanspal Hariraja Harischandra Hemachandra Jagadeva 
			Jaitra-Singh Jaitrasimha
			Jaitugideva Jaskarn Jay-Singh
			Jay-Singh-Deo Jayat-Singh Jayshikari Jendraraja 
			Jojalla Kalbhoj Kanhadadeva Karandeva Karnadeva Karan-Singh Katudeva 
			Katukaraja Keerti-Verma Kirtivarman Kelhana Kharagraha 
			Khuman Kirtipala Kshemraja Kshem-Singh Kshetra-Singh 
			Lakhanapala Lakhshaman-Singh Lakshmana Lakshmanadeva 
			Lakshmivarman Lavanyakarna Lunavarman Luntiga Mahap Mahayak 
			Mahendra Mahendrapala Mahipala Maladeva
			Manavasimha Mathan-Singh Mattat Mulraja Nagabhata Nagarjuna Nagraja Naradeva Narapati 
			Naravarmandeva Nar-Verma
			Narwahan Padam-Singh Prahladana Pratapa Prithvipal Prithivipala 
			Prithviraja Purnpala Rahap Ramapala Ratan-Singh Rayapala Rudrapala
			Sahajapala Sahanapala Samanta Samant-Singh Samantasimha
			Samarasimha Samar-Singh Shaliwahan Shuchi-Verma 
			Siladitya Sindhuraja Singhraja Sinha Sinhad-Deo Siyaka Sohiya Someshwara Suratrana
			Tejasimha Tej-Singh Tribhuvanapala Udayasimha
			Udayavarman Upendra Vagbhata Vahadiasimha Vairsingh Vairisimha Vajradeva 
			Vakapati Vakpatiraja
			Valhana Valhanadeva Vallabharaja Vanraja Vasudeva Vatsaraja
			Vigrharaja Vijada-Dasasyandana
			Vijai-Singh Vikramaditya Vinaykpala Virama Viradeva Viranarayana Virsinh-Deo Viryarama
			Xemraja Yograj
		}
		female_names = {
			Akal Anantadevi Damayanti Dattadevi Dehanagadevi Dhruvadevi Dhruvasvamini Hemavati 
			Kakanvati Kalayandevi Kanchuka Kanwar Karmavati Kumaradevi Lakshman Maharani Mahidevi Nattadevi
			Prabhavati Prabhavatigupta Prasadhanadevi Puppadevi Rajamati Sanyukta Shrimitradevi 
			Annaladevi Bauladevi Bhuyikadevi Candrabhattarikadevi Chachinidevi Delhanadevi Desaladevi
			Hariyadevi Laxmidevi Madhavi Mahalakshmi Manaladevi Mayanalladevi Namalladevi Padmaladevi Padmini
			Pratha Rasaladevi Rudaladevi Rudrani Rupadevi Samyukta Sidhawa Somalladevi Suhava Sundaridevi 
			Tihunaka Udayamati "Songari" "Ajab" "Kamala" "Dev"
		}
	}
	malvi = {
		primary = MLW
		dynasty_names = {
			"Holkar" "Qadirid" "Shaja'atid" "Khalji"
		}
		male_names = {
			"Dilavar Khan" "Alp Khan Hushang" "Ghazni Khan" "Nasir Shah" "Salim Shah" "Baz Bahadur" "Mali Rao" 
			"Ahalya Bai" "Mahmud Shah" "Ghiyath Shah" "Qadir Shah" "Shaja'at Khan" "Bahadur" "Mahmud" "Ferishta" 
			"Ghiyas-ud-din" "Qadir" "Mohammed" "Baz" "Salim" "Nasir" "Amir" "Hoshang"
		}
		female_names = {
			"Qudsia" "Hajjah" "Shahjahan Begum" Amro Anokhi Anup Bhani Dani Gujri Jodhabai Khivi Kishan
		}
	}
	sinhala = {
		primary = CEY
		dynasty_names = {
			"Kotteid" "Konnapu Bandara" "Gampolan" "Savulu"
		}
		male_names = {
			Parakramabahu Jayabahu Bhuvanaikabahu Dharmapalabahu Vimala Dharmasuriya Senarut
			Narenda Sri Vijaya Rajasimha Kitri Rajadhiraja Simha Dhatmapala
			Agabala Aggabodhi Agibuti Ananda Anikanga Apaya Arittha Avirada Ayasmantha Bhuvanekabahu 
			Butisamana Chodaganga Dahamsena 
			Danamitta Dappula Dathappabhuti Dathopatissa Dharmapala Dharmasena Dharmasoka Dhatusena 
			Digakassapa Diganaguli 
			Digasumana Gajabahu Hadaka Hadana Hujata Jetthatissa Jhotisena Kashyapa Kassapa Kitti 
			Kittisena Kittivarma 
			Magamitta Mahadeva Mahanaga Mahasattha Mahasena Mahasiva Mahinda Manavanna Mihidala Mihindala 
			Mitta Moggallana 
			Nandamitta Narendra Narendrasinha Nirmala Padita Parakkamabahu Rajasinha Rakasala 
			Ratana Rohaka 
			Sadhatissa Sagala Saliya Sanghamitta Sanghatissa Sankha Sena Senarat Sidata Sigaratissa 
			Silameghavanna Sinhabahu 
			Siva Sobana Sobika Sudata Sumana Surakita Suratissa Tissa Udaya Upatissa Vassaba Vebeliya 
			Vepali Vijayabahu 
			Vikrama Vikramabahu Vimaladharma Vimaladharmasuriya Virabahu Viranarendra
		}
		female_names = {
			Abijliguta Ahali Anula Anurada Anuradi Anuridi Asadaguta Asali Aselaya Ata Barani Bodhideva 
			Bohodevi Butadata 
			Cadana Citadevi Citaguta Damadina Damaguta Damarajha Damarakita Damaruci Damasena Damati Damika 
			Damutara 
			Devanakata Devanapiya Devarakita Dhamarajha Dhamika Jhita Jhotisena Jhotiya
			Kanadasika Kanaguta 
			Kanatissa Kitaka Kituka Kubira Kumara Kumaradata Kumaratiha Lasani Lilavati Maga Magha Maka 
			Maki Mita Nagadina 
			Narayaguta Nuga Nugaya Paduma Palikada Pamatissa Purushadata Pusamitta Rajhita Ramadata 
			Ramajhata Ramani 
			Rasumiliya Reva Sagara Samidata Samudaguta Savera Seneya Silmini Siriguta Siripali Sivala 
			Sivanabuti Somali Sugula 
			Sujhata Sumanadevi Suri Suriguta Tisi Tissabuti Tissadata Tissadevi Tissamita Tissaraka 
			Tissarakita Yahasaya Yahasini Sunetra Devi Kalyanavati Swarnamanikya 
		}
	}	
}
2 Comments
2023/11/08
03:35 UTC

1

What makes a subject type a "sovereign" subject?

Trying to determine what makes a subject type a "sovereign" subject, for the purpose of triggers like num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with

1 Comment
2023/11/03
18:36 UTC

3

How to properly remove tags?

Hi, for a while now I've been making a total conversion mod, mostly for the use of my homebrew DND world, not likely to ever be released to a wider audience, however I'd at the very least like to make it usable. The problem I'm encountering is that every time I try to remove any of the pre-existing countries the game crashes on loading. I'm removing them from common/country_tags and common/country_colors. Are there any other important files that I have to make amends to?

13 Comments
2023/11/02
09:06 UTC

1

Variables Question

Hello, I'm a new-ish modder. I was wondering if anyone knows if there is a way to export the number of farmlands(or any other) terrain provinces the player owns, to a variable?

and the same thing with provinces that have specific province modifiers or tradegoods?

I was trying to create a food/settler system and event chains for a colonial country. The player would choose how much they want to lean into growing food or cashcrops etc. I tried doing it through using province and country flags but it feels very clunky.

What I want to do is to create a yearly hidden event that calculates that year's food production(taking into account every province the player has, that is producing food)

0 Comments
2023/10/30
05:02 UTC

1

Having difficulty getting an event to fire to all - non AI countries at start

I am new to modding and trying to create an event that fires to all non-ai countries at start. I used some of the genoa flavor events to start and came up with this::

In the On_actions folder:

on_startup = {

##### ....

events = {

	MIL\_ADM\_policies.1

}	

}

And then in the events folder:

country_event = {

\##### .... 

fire\_only\_once = yes

is_trigger_only = yes

trigger = { 

	tag = GEN

}

\##### .....

This worked when I launched the game as Genoa. However, I want this event to be sent to all countries. I tried:

country_event = {

\##### .... 

fire\_only\_once = yes

is\_trigger\_only = yes

trigger = { 

	ai = no

}

\##### .....

This did not fire the event, even when I was playing as Genoa. Any ideas on how to get the event to get the event to all countries at start without having to hard code the country tag?

1 Comment
2023/10/23
17:35 UTC

1

Terrain Type Modding Question

Hello, I'm new to modding and have been trying to add new fantasy terrain types(mushroom forest, devastated cities, etc..) to my mod.

I have been able to create the new terrains in the map/terrain.txt file and was able to give them new modifiers and localization and everything so that they show up in game and work properly.

The thing I'm having trouble with is adding my own terrain images to the province view. I've been looking in the base game files and other mod files for clues how do it - since I couldn't find much information on reddit or the game wiki - but couldn't find anything useful.

Can someone PLEASE help me?

1 Comment
2023/10/14
20:03 UTC

2

Event Modding Help

Hello, I'm somewhat new in modding EU4 and there is an issue about adding new events to the game that is really, REALLY, pessing me off

I'm adding some new missions for Britain and once a mission is completed the effect is an event is supposed to fire. The thing is: for some reason, in different missions, only the same event of the .txt file fires and I have no know idea why this is happening.

can someone PLEASE help me?

more details in the pics bellow

code mission 1

event code of mission 1

mission 1

code of mission 2

event code of mission 2

mission 2

localisation file

2 Comments
2023/10/07
23:24 UTC

1

Creating a mission question

I'm making a mission tree for a mega campaign nation and I'm trying to add a mission where the trigger is I built farm estates in all available provinces, and I'm having trouble finding a trigger that sees if all grain, livestock, and wine provinces have a farm estate. Without the trigger being if I have X amount of farm estates

1 Comment
2023/09/24
17:43 UTC

1

Provinces errors

ok so i started an overhaul mod after doing a lot of small mods (add country and provinces, add missions, change ideas).of all of the previous mods, i eventually made them works. but now, this overhaul. i did the 1st step of deleting the normal map, changed a lot of txt anything that had a province id in it, but the game still doesnt load in the error log it says that they dont find the pixels for the provinces 11 to the last one,the prov3000+ dont have adjectives and that no provinces 11 to last one belong to an area (which makes sense cauz i deleted them i only have 10 provinces (2 land 8 water)), and last errors are that my history/provinces that i added( after using the replace_path thing) say that they cant load but its written weirdly, it sais that history/txt file not history/provinces/txt file. i followed a video that explained a bit of how to start an ovehaul mod and looked at the paradox wiki to see if im missing something, but i cant find anything (my theory is that i dont use replace path correctly (i tried altering other folder that are in folders then adding the same folders with the same code in them and the error appeared saying it cant load it.)) i tried changing the provinces cap to 10 and 9 but it still didnt work. I asked help from the paradox forums and someone tried to help and he doesnt see a major problem either. so now i didnt really know what to do so here i am. can someone help me please? :)

0 Comments
2023/09/22
06:27 UTC

2

Help with Sikh CoR?

I'm new to modding and I'm trying to get the Sikh event to spawn a CoR instead of 3 random provinces. I basically took all the Reformation and CoR code (from the Protestant Reformation event, the 00_religion file, and the 00_religious_conversions file), restructured it for sikhism, and edited the 00_scripted_triggers file so Sikh CoRs could spawn. The Protestant Reformation still works fine. but somehow the Sikh event just changes the province's religion, without spawning a CoR. Can someone help debug?

Guru Nanak founds Sikhism event:

country_event = {
	id = sikhism_flavor.1
	title = "sikhism_flavor.1.t"
	desc = "sikhism_flavor.1.d"
	picture = STREET_SPEECH_eventPicture
	
	trigger = {
		NOT = { is_religion_enabled = sikhism }
		is_defender_of_faith = no	
		NOT = { has_reform = papacy_reform }
		capital_scope = {
			continent = asia
		}
		any_owned_province = {
			OR = {
				AND = {
					religion = hinduism
					any_neighbor_province = {
						religion_group = muslim
					}
				}
				AND = {
					religion_group = muslim
					any_neighbor_province = {
						religion = hinduism
					}
				}
			}
			can_have_center_of_reformation_trigger = {
				RELIGION = sikhism
			}
		}
	}
	
		mean_time_to_happen = {
		months = 2
		modifier = {
			factor = 0.4
			province_id = 2075 # Doaba
		}
		modifier = {
			factor = 0.6
			culture = panjabi
		}
	}

	option = {
		name = "sikhism_flavor.1.a"
		enable_religion = sikhism
		random_owned_province = {
			limit = {
				OR = {
					AND = {
						religion = hinduism
						any_neighbor_province = {
							religion_group = muslim
						}
					}
					AND = {
						religion_group = muslim
						any_neighbor_province = {
							religion = hinduism
						}
					}
				}
				can_have_center_of_reformation_trigger = {
					RELIGION = sikhism
				}
			}
			change_religion = sikhism
			add_reform_center = sikhism
			add_permanent_province_modifier = {
				name = "religious_zeal_at_conv"
				duration = 9000
			}
			if = {
				limit = {
					NOT = { is_capital = yes }
				}
				root = {
					capital_scope = {
						change_religion = sikhism
						add_permanent_province_modifier = {
							name = "religious_zeal_at_conv"
							duration = 9000
						}
					}
				}
			}
		}
	}
}

sikhism religion entry (without the list of gurus):

	sikhism = {
		color = { 0 153 153 }
		icon = 15
		allowed_conversion = {
			hinduism
		allowed_center_conversion = {
			hinduism
			sunni
			ibadi
			shiite
			animism
		}
		country = {
			mil_tech_cost_modifier = -0.1
			land_morale = 0.1
		}
		country_as_secondary = {
			land_morale = 0.05
			global_unrest = -1
		}
		province = {
			local_missionary_strength = -0.01
		}
		will_get_center = { #Refered to even for initial CoR Spawn
			any_owned_province = {
				can_have_center_of_reformation_trigger = {
					RELIGION = sikhism
				}
			}
		}

		on_convert = {
			change_religion = sikhism
			add_prestige = -100
			
			add_country_modifier = {
				name = "conversion_zeal"
				duration = 3650
			}
		}

		heretic = { MASANDIS }

		date = 1499.01.01

religious_conversions entry for Sikh CoR:

sikhism_center_of_reformation = {

	religion = sikhism
	
	map_icon = GFX_religious_conversion_center_protestant

	max_distance = 70.0 # From Center of Reformation center province (default is NDefines::NReligion::MAX_RELIGIOUS_CENTER_SPREAD_DISTANCE).
	base_conversion_speed = 2.7

	target_province_weights = {
		factor = 2
		
		modifier = {
			factor = 0
			has_missionary = yes
		}
		modifier = {
			factor = 0
			is_empty = yes
		}
		modifier = {
			factor = 0
			province_id = 118 # Rome, seat of Papacy
		}
		modifier = {
			factor = 0
			province_id = 384
		}
		modifier = {
			factor = 0
			province_id = 385
		}
		modifier = {
			factor = 0
			has_province_modifier = religious_center
		}
		modifier = {
			factor = 0
			has_province_modifier = religious_zeal_at_conv
		}
		modifier = {
			factor = 0
			NOT = { religion_group = muslim }
			NOT = { religion = hindu }
			NOT = { religion = animist }
		}
		modifier = {
			factor = 0
			NOT = { continent = FROM }
		}
		modifier = {
			factor = 0.7
			owner = {
				num_of_cardinals = 1
			}
		}
		modifier = {
			factor = 0.7
			owner = {
				num_of_cardinals = 2
			}
		}
		modifier = {
			factor = 0.7
			owner = {
				num_of_cardinals = 3
			}
		}
		modifier = {
			factor = 0.7
			owner = {
				num_of_cardinals = 4
			}
		}
		modifier = {
			factor = 0.7
			owner = {
				num_of_cardinals = 5
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				religion = sikhism
			}
		}
		modifier = {
			factor = 1.5
			culture_group = FROM
		}
		modifier = {
			factor = 1.2
			culture_group = hindusthani
		}
		modifier = {
			factor = 1.2
			culture_group = western_aryan
		}
		modifier = {
			factor = 1.2
			culture_group = dravidian
		}
		modifier = {
			factor = 1.2
			culture_group = central_indic
		}
		modifier = {
			factor = 1.2
			culture_group = eastern_aryan
		}
		modifier = {
			factor = 0.5
			has_state_edict = edict_religion_enforced
		}
		# HRE is more resistant to reformation when the Pope is an Imperial Prince
		modifier = {
			factor = 0.75
			is_part_of_hre = yes
			PAP = {
				is_part_of_hre = yes
			}
		}
	}
}

edited scripted_triggers file:

can_have_center_of_reformation_trigger = { #Province Scope
	#$RELIGION$ needs to match the religion of the center that is being spawned.
	OR = {
		continent = europe
		continent = asia
	}
	OR = {
		religion = protestant
		religion = catholic
		religion = reformed
		religion = sikhism
		religion = hinduism
		religion = sunni
		religion = shiite
		religion = ibadi
	}
	NOT = { province_id = 118 }
	NOT = { province_id = 384 }
	NOT = { province_id = 385 }
	is_in_capital_area = yes
	is_reformation_center = no
	is_island = no
	expelling_minorities = no
	development = 10
	NOT = {
		any_neighbor_province = {
			is_reformation_center = yes
		}
	}
	NOT = {
		any_province = {
			area = PREV
			is_reformation_center = yes
			religion = $RELIGION$
		}
	}
	NOT = { has_climate = arctic }
	NOT = { has_terrain = coastline }
	NOT = { has_terrain = glacier }
}

Sorry it's a bit long but I've been stuck

1 Comment
2023/09/15
15:28 UTC

1

Testing triggers in run file don't seem to work?

I find that testing triggers with a run file frequently doesn't work.

For example:

add_country_modifier = { 
    name = colonize_the_continent
    duration = -1
}

if = {
    limit = {    
        has_country_modifier = colonize_the_continent
    }
    add_treasury = 1
}

I add the country_modifier called colonize_the_continent and verify that it does show up (I get an extra colonist).

Yet the second block of code doesn't run, I don't get the 1 gold added to treasury, despite adding country_modifier already.

Even if I wait a few months of in gametime and then run again, it still doesn't run the add_treasury effect despite that the limit block should be returning true.


I also tried testing the trade_goods trigger by doing something like:

123 = {
    if = {
        limit = {
            trade_goods = gold
        }
        set_base_production = 1
    }
}

This simply set all provinces to 1 production, not only gold provinces.

Anyone know why this isn't working?


I save it to a file called script.txt and run it in console in game by doing run script.txt.

4 Comments
2023/09/07
04:28 UTC

2

Juan II de Trastámara

1 Comment
2023/08/24
18:47 UTC

Back To Top