Institutions modding

From Europa Universalis 4 Wiki
Jump to navigation Jump to search

Institution file[edit]

#
# 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> = {
	penalty = <float> #penalty for not having embraced the institution
	bonus = {
		<effects>
	}
	
	historical_start_date = <year.month.day> #Not needed if the institution extist before 1444.11.1
	historical_start_province = <province id> #Not needed if the institution extist before 1444.11.1
	
	history = { #Determines which countries have the instution at start
		<triggers>
	}
	
	can_start = {	<triggers>	}
	start_chance = <float> #In 100 for when a province can_start
	on_start = <event> #This activates an event when the institution begins

	can_embrace = {
		always = <bool>
	}

	embracement_speed = {
		modifier = {
			factor = <float>
			scale = <bool>
			potential = <trigger>
			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>
		}
	}
}

GFX[edit]

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 AdvisorsAgesBookmarksBuildingsCasus belliColonial regionsCountriesCultureDecisionsDefinesDiplomatic actionsDisastersEstatesEventsFactionsGovernmentGreat projectsHistoryIdea groupsInstitutionsMercenariesMissionsModifiersNation 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