Country modding

From Imperator Wiki
Jump to navigation Jump to search


Modding Countries[edit]

Most of the important details of a country are handled by the setup.txt file in the common folder. This includes government type, religion, culture, diplomatic stance, capital, and provinces owned.

You must also create a file for the country in the common/countries folder. Once done, add your country's tag to the countries.txt file in the common folder (should be right near the setup.txt file) and assign the tag to the directory you made in the countries folder.

Country Setup[edit]

For example, here is setup of the Parthian Satrapy in vanilla. If we wanted it to start if with actual parthian culture and zoroastrian religion, we would replace macedonian with parthian and roman_pantheon with zoroaster.

PAR = {
	government = despotic_monarchy
	primary_culture = macedonian
	religion = roman_pantheon
	diplomatic_stance=warmongering_stance
	capital = 3435
			
	own_control_core = {
		3435 6727 7222 7223  #New
		3441 6728 6729 3445 3448 6656 3447 3446 3450 3454 #parthia
		3468 3467 3462 3444 3465 3466 3451 3464 #vishpauzatis
		3436 3437 3438 3440 3449 3455 3469 
		6556 6545 6542 6543 6544 6663 6664 #oxiana
	}
			
}

Here is an example of what the country file should look like in the common/countries folder. The ship names are simply the possible names of ships that are recruited/built. The color is what color the country will show as on the map.

color = rgb { 234 139 40 }

ship_names = {
	Aglaia Agreuousa Aktis Andreia Anthera Anysis Apobasis Ariste Asklepias Aura
	Boetheia
	Charis
	Delphis Delphis Dikaiosyne Doxa Dynamis
	Eleusis Eleutheria Epideixis Eucharis Eudaimonia Eueteria Euia Eukarpia Eunoia Euphemia Euphrainousa Euporia Eutychia
	Gnome Gnoste
	Hebe Hegemone Hegemonia Hiera Hikane Hippia Homonoia Hygieia
	Kallixena Kouphotate Kratiste Kratousa
	Leontis
	Megiste
	Naukratousa Nemeas Nike Nikosa
	Okeia Olympias Ortheia
	Panoplia Paralia Parataxis Parrhesia Peristera Petomene Philotimia Potone Pronoia Proplous Prote
	Seiren Soizousa Stephanephoria Stephanoumene Stephanousa Stilbousa Strategis Symmachia Syntaxis
	Takheia Theoris Thera
}

This is an example of what your country should look like in the countries.txt file.

ATH = "countries/greece/athens.txt"

Modding Heritages[edit]

Every Country has a heritage which gives them two benefits and 1 drawback, but you can edit heritages to give them almost anything. Heritages can be modded in the heritages folder. You can mod existing heritages or create new ones. Say you wanted to give Gaul a unique heritage, then all you have to choose some country modifiers and triggers to give your new Gaul heritage. Here's an example but you could do so much more with the trigger like giving all scythian nations of a certain size with a certain capital terrain the same heritage, just so long as the trigger ends in the country scope in the end. If a country does not have one of the normal heritages that you find in game, then it goes to the default heritage, so it's advised not to mess with the default heritage.


gaul_heritage = {
	modifier = {
		#good
		global_population_capacity_modifier = 0.1
		global_population_growth = 0.1
		
		#bad
		monthly_corruption  = 0.1
	}
	
	trigger = {
		tag = GAU
	}
}
	
}
Documentation EffectsTriggersModifiersScopesVariablesData TypesLocalisationCustomizable localization
Scripting AIBuildingsCasus belliCharacterCharacter InteractionsCombat TacticsCountriesCultureDecisionsDefinesEconomic PoliciesEventsEthnicitiesGovernmentGovernor PoliciesIdeasModifiersMilitary TraditionsOfficesOn ActionsPartiesPricesPopsReligionScript ValuesScript ModifiersSetupSubject TypesTechnologyTrade goodsTraitsUnits
Map MapTerrain
Graphics 3D ModelsInterfaceGraphical AssetsFontsParticlesShadersUnit models
Audio MusicSound
Other Console commandsChecksumMod structureTroubleshooting