Parliament modding

From Europa Universalis 4 Wiki
Jump to navigation Jump to search

Parliament Bribes are found at /Europa Universalis IV/common/parliament_bribes/. Parliament Issues are found at /Europa Universalis IV/common/parliament_issues/.

Adding a Bribe[edit | edit source]

All bribes must be named uniquely. A bribe follows this format:

#FROM = province
<name> = {
	# If bribe targets a certain province use scope FROM
	# Otherwise, use normal triggers
	trigger = {
		<triggers>
	}

	# Action that occurs when bribe is enacted. Uses normal command effects.
	effect = {
		<effects>
	}
	
	# The importance the AI places on enacting this reform relative to other bribes
	ai_will_do = {
		factor = <int>
	}
}

Adding an Issue[edit | edit source]

All issues must be named uniquely. An issue follows this format:

<name> = {
	# 1, 2, or 3; meaning mil, dip, or adm, respectively.
	category = <int>

	# The conditions that allow the issue to be available.
	allow = {
		<triggers>
	}
	
	# Optional. Commands executed upon enacting the issue
	effect = {
		<effects>
	}
	
	# Optional. Modifier applied for the duration of the downtime between debates.
	modifier = {
		<modifier>
	}
	
	# Chance for issue to appear.
	chance = {
		factor = <int>
		modifier = {
			factor = <int>
			<triggers>
		}
	}

	# Chance AI will enact it
	ai_will_do = {
		factor = <int>
		modifier = {
			factor = <int>
			<triggers>
		}
	}
}

Localisation[edit | edit source]

Localization for Bribes follows this format:

<name>: "name"

Localization for Issues follows this format:

<name>: "name"
Documentation EffectsTriggersModifiersScopesVariablesLocalisationCustomizable localizationRun files
Scripting Scripted functionAdvisorsAgesBookmarksBuildingsCasus belliColonial regionsCountriesCultureDecisionsDefinesDiplomatic actionsDisastersEmpire of ChinaEstatesEventsFactionsGovernmentGreat projectsHistoryHoly Roman EmpireIdea groupsInstitutionsMercenariesMissionsModifiersNation designerOn ActionsParliamentPeace treatiesPoliciesRebel typesReligionSubject typesTechnologyTrade companiesTrade goodsUnits
Map MapNation designerRandom 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