• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

DSet

Second Lieutenant
71 Badges
Jan 31, 2016
110
511
  • Crusader Kings II
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Third Rome
  • Stellaris - Path to Destruction bundle
  • Stellaris: Galaxy Edition
  • Stellaris
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - After Dark
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Semper Fi
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Magicka
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • Europa Universalis IV: Call to arms event
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
  • Cities in Motion 2
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • For the Motherland
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Golden Century
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Prison Architect
  • Imperator: Rome Sign Up
  • Hearts of Iron IV: La Resistance
  • Crusader Kings III
  • Battle for Bosporus
  • Europa Universalis 4: Emperor
  • Victoria 3 Sign Up
  • Stellaris: Galaxy Edition
Basically, I want to build a mod that, everytime a decision is taken:

* Spawns a mercenary company (using the create_title method)
* Sets it up according to one of the templates in 00_mercenaries
* Names the mercenary company (just like regular player created mercenaries do, I haven't quite figured out where it gets the name from yet)
*Vassalizes the mercenary company to the decision taker (the player in this case)

If it's possible, I'd like to also be able to change the cost and upkeep for the company without messing with the cost of all other mercenary companies in the definitions.lua. I haven't found anything indicating this is possible though, but if you know, tell me!

I've made some moderate progress messing with the exisiting "Organize the Varangian Guard" decision, as well as the create_title decisions but I've realized I'm probably going to need some help.

Thanks in advance!
 
Another thing; how do I ensure that a title is deactivated as the game starts? I tried copy pasting the "Organize varangian guard" decision to my own mod (with some small changes) but when I load the game, my custom mercenary company already exists! Taking the decision only replaces their commander and vassalizes them.
 
If you're adding titles to common\landed_titles, create a title history file in history\titles with the following line:
Code:
1.1.1 = { active = no }
 
  • 1
Reactions: