Institutions modding

From Europa Universalis 4 Wiki
Jump to navigation Jump to search

Institution file[edit | edit source]

#
# remember to add graphics for relevant ones when you add to this
#
# if a modifier is scaled, its multiplied with development in the province.


# any_friendly_coast_border_province is a special scope made for institution spread.
# It checks for adjacent provinces or provinces one seazone away.
# Friendly is defined as at positive relations or owned by the same country that owns the province.
<institution> = {
	bonus = {
		<effects>
	}
	
	historical_start_date = <year.month.day> #Not needed if the institution exists before 1444.11.1
	historical_start_province = <province id> #Not needed if the institution exists before 1444.11.1
	
	history = { #Determines which countries have the institution at start
		<triggers>
	}
	
	can_start = {
		<triggers>
	}

	start_chance = <float> #In 100 for when a province can_start
	on_start = <event id> #This activates an event when the institution begins

	can_embrace = { #Base institutions only use 'always = yes' trigger
		<triggers>
	}

	embracement_speed = {
		modifier = {
			factor = <float>
			scale = <bool> #yes/no
			potential = {
				<triggers>
			}
			custom_trigger_tooltip = {
				tooltip = <key>
				any_friendly_coast_border_province = {
					feudalism = <float>
				}
			}
			custom_trigger_tooltip = {
				tooltip = <key>
				is_owned_by_trade_company = <bool>
				<trigger>
			}
		}
	}
	
	ai_will_do = { #Cost of embracing institution must be < (factor * last month's regular income) & higher if loans are needed.
		factor = <float>
		
		modifier = {
			factor = <float>
			<triggers>
		}
	}
}

Note: The embracement speed modifiers are the yearly amount, but the game displays the monthly amount which is 1/12 of the amount specified in this file.

GFX[edit | edit source]

The icons for each institution can be found here: /Europa Universalis IV/gfx/interface/*.dds. '*' represents the name of institution

  • Each icon is 48 x 48

The tab icon shown in the institutions page begin with /Europa Universalis IV/gfx/interface/institution_tab_*.dds and contain a normal and selected icon in the .dds

  • The normal icon is 74 x 67
  • The selected icon is 74 x 82
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