Mercenaries modding

From Europa Universalis 4 Wiki
Jump to navigation Jump to search

New mercenary companies can be added with files in



Official example of a mercenary company is as following:

merc__local_free_company = {
    regiments_per_development = 0.025
    cavalry_weight = 0.1
    artillery_weight = 0.1
    cavalry_cap = 2
    cost_modifier = 0.75
    trigger = {
        total_development = 150
    modifier = {
    # No home province means local mercenary company

In trigger you can write any condition for a country who'll be hiring mercs. In modifier you can assign modifiers only for a single army, no country-wide effects will work.

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