Empire of China modding

From Europa Universalis 4 Wiki
Jump to navigation Jump to search

Empire of China Reforms are found at /Europa Universalis IV/common/imperial_reforms. Empire of China Decrees are found at /Europa Universalis IV/common/decrees.

Adding a Chinese reform[edit]

All Chinese Reforms must be named uniquely. A Chinese Reform follows this format:

<name> = {
	# Only valid with "hre" or "celestial_empire"
	empire = celestial_empire

	# Permanent modifiers applied after taking reform
	emperor = {
		<modifiers>
	}

	# Optional. Use a preceding reform.
	required_reform = <chinese reform>
}

Adding a Chinese decree[edit]

All Chinese Decree must be named uniquely. A Chinese Decree follows this format:

# cost is the Meritocracy cost
# duration is in days
# ai_will_do has to be 10 for AI to do it (with >=99 Meritocracy).

expand_bureaucracy_decree = {
	cost = <int>
	duration = <int>

	# Active modifiers for the duration of the decree.
	modifier = {
		<modifiers>
	}

	# Chance the AI will enact.
	ai_will_do = {
		factor = <int>
		
		* Optional.
		modifier = {
			<triggers>
		}
	}
}

Localisation[edit]

Chinese Reforms follow this format:

<name>: "Name"
<name>_title: "Name"

# Optional.
<name>_desc: "Description"

Chinese Decrees follow this format:

<name>: "Name"
<name>_emperor: "Name"
<name>_desc: "Description"
Documentation EffectsTriggersModifiersScopesVariablesLocalisationCustomizable localizationRun files
Scripting Scripted functionAdvisorsAgesBookmarksBuildingsCasus belliColonial regionsCountriesCultureDecisionsDefinesDiplomatic actionsDisastersEstatesEventsFactionsGovernmentGreat projectsHistoryIdea groupsInstitutionsMercenariesMissionsModifiersNation designerHoly Roman EmpirePoliciesReligionRebel typesSubject 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