• 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.

disgradius

Captain
38 Badges
Feb 12, 2012
422
5
  • Crusader Kings II: Charlemagne
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria: Revolutions
  • Europa Universalis IV
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Legacy of Rome
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Cities: Skylines - Mass Transit
  • Hearts of Iron IV: Death or Dishonor
  • Cities: Skylines - Green Cities
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines - Parklife
  • Crusader Kings II: Holy Fury
  • Prison Architect
  • Crusader Kings III: Royal Edition
  • Crusader Kings III
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Cities: Skylines - Snowfall
  • Crusader Kings II: Conclave
  • Cities: Skylines - After Dark
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Pre-order
  • 500k Club
  • Victoria 2
  • Stellaris
  • Cities: Skylines
  • Crusader Kings II: Sunset Invasion
Hi guys, I'm kinda new to modding, only been fiddling with some balance stuff for my own personal tastes so far. Been getting kinda annoyed at the insta ai army regeneration so I thought I'd add a few effects to raising a levy. Except, I'm guessing the functions to do with raising a levy are hardcoded. Is there any way I can make an event or a modifier that triggers for a province when the levy in that province is raised? I'm trying to add revolt risk if you raise a levy again in counties in which levies have been raised recently. The way I'm thinking is to add a temporary modifier to a province the first the time and do a check on levy raise to see if the modifier was already present. Unfortunately, no idea how to trigger such an event when the player or ai raises levies. Can anyone point me in the right direction?
 
I think you misunderstand, I don't want to change the size, composition or other attributes of levies. I want trigger an event when the levies of a province are raised. Was wondering if there was any specific code referring to levies that I could stick into an event or trigger modifier without actually digging into the raise levy button's functions which seems much more difficult.
 
You could trigger the event with a raised_army_levy flag if it exists, then add revolt maluses with new character flags, triggered by time (6-12 months?) something like a cumulative malus for long raised armies.