Institutions modding

From Europa Universalis 4 Wiki
Jump to navigation Jump to search
<name> = {
	penalty = <float> # factor of technology cost. penalty .5 is 50% maximum penalty

	bonus = {
	   <modifier(s)>
	}


	historical_start_date = <date>
	historical_start_province = <int>
    
        history = {
            <trigger>
        }
    
	
	can_start = {
	    <trigger>
	}
	start_chance = <int?>		#in 100 for when a province can_start
	
	on_start = <event id>
	
	can_embrace = {
            <trigger>
	}
    
    embracement_speed = {
		modifier = {
			factor = <float> #how fast is the institution embraced. percent per year?
			<condition>
		}
                .....

	}
	
	ai_will_do = { #Cost of embracing institution must be lower than this factor * last month's regular income, and higher if loans are needed. (Or it has a more than long term goal...)
		factor = <int?>
		
		modifier = {
			factor = <float>
			<condition>
		}
                .....
	}
}

Some observations on working with this. History must be set to some trigger that will not be true when the game begins to have the new institution not already be embraced.

The can_start trigger when satisfied will check the start_chance and if the roll on start chance passes the threshold, the on start event will be fired and the % embraced of the institution will be set to 100% in the province.(unsure if can_embrace is checked in this)

Documentation EffectsTriggersModifiersScopesVariablesLocalisationCustomizable localization
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 Validator
Guides Adding a province