Ages modding

From Europa Universalis 4 Wiki
Jump to navigation Jump to search

Parliament Bribes are found at /Europa Universalis IV/common/ages/.

Adding an Age[edit]

All ages must be named uniquely. A age follows this format:

#typically age_of_<name>
<name> = {
	# Determines Age at different bookmarks
	start = <year>
	
	# Triggers for when age begins. Ages begin 10 years after can_start is fulfilled.
	# Vanilla files use is_religion_enabled = protestant and is_institution_enabled = xxx
	can_start = {
		<triggers
	}
	
	# Optional. Enables Crusades
	religious_conflicts = yes

	# 1.0, 1.25, 1.5, 2, based on Age
	# Not sure what this is for
	papacy = <int>
	
	# Optional. Enables Absolutism mechanic
	# Each defined on_action below changes absolutism by that amount.
	absolutism = {
		harsh_treatment = 1
		stability = 1
		decrease_autonomy_command = 1
		strengthen_government = 2
		
		increase_autonomy_command = -2
		debase_currency = -1
		execute_rebel_acceptance_command = -10
		seat_in_parliament = -3
		war_exhaustion = -1
	}

	# Triggers for objectives, which grant +2 splendor/month while fulfilled.
	# They can be conditional.
	objectives = {
		#typically obj_<name>
		<name> = {
			# Optional.
			allow = {
				<triggers>
			}
			
		}
		
	}

	abilities = {
		#typically ab_<name>
		<name> = {
			# Optional. Who is allowed to take this ability. Will still be visible if not eligible.
			allow = {
				<triggers>
			}

			# Modifiers active for the remainder of the Age.
			effect = {
				<modifiers>
			}
			
			# Chance AI will take.
			ai_will_do = {
				factor = <int>
				modifier = {
					factor = <int>
					<triggers>
				}
			}
		}
		
	}
}

Additional Age Objectives and Age Abilities can be added to existing Ages, however the original /Europa Universalis IV/common/ages/00_default must be overwritten.

Localization[edit]

Localization for Ages follows this format:

<name>: "Age of Names"
<name>_desc: "Description"
<name>_short: "Names"

Localization for Age Objectives follows this format:

<name>: "name"
<name>_desc: "name"

Localization for Age Abilities follows this format:

<name>: "name"
Documentation EffectsTriggersModifiersScopesVariablesLocalisationCustomizable localizationRun files
Scripting AdvisorsAgesBookmarksBuildingsCasus belliColonial regionsCountriesCultureDecisionsDefinesDiplomatic actionsDisastersEstatesEventsFactionsGovernmentGreat projectsHistoryIdea groupsInstitutionsMissionsModifiersNation designerPoliciesReligionRebel typesSubject typesTechnologyTrade companiesTrade goodsUnits
Map MapRandom New WorldTrade nodes
Graphics 3D ModelsInterfaceGraphical AssetsFontsParticlesShadersUnit models
Audio MusicSound
Other Console commandsChecksumJoroDox mod making toolMod structureTroubleshootingThe ValidatorRun files
Guides Adding a provinceSave-game editing