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

Ex Mudder

Field Marshal
119 Badges
Oct 21, 2001
3.882
757
  • Victoria 2
  • Europa Universalis III Complete
  • King Arthur II
  • Lost Empire - Immortals
  • Magicka
  • Majesty 2
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Semper Fi
  • Sword of the Stars II
  • Supreme Ruler 2020
  • Heir to the Throne
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • Warlock 2: The Exiled
  • 200k Club
  • 500k Club
  • Cities: Skylines
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Hearts of Iron IV: No Step Back
  • East India Company
  • Hearts of Iron II: Armageddon
  • Cities in Motion
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • 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: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Commander: Conquest of the Americas
  • A Game of Dwarves
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
Is there anyone out there who knows what this trigger does? I'm trying to make sense of AI_sliders.txt in \db\events. The events look good, but several elements are confusing me (and I don't want to bother Lothos).

1) I'm guessing these events are triggered yearly, once at game start, and every 12 months thereafter.

2) can_change_policy would presumably check if
a) The sliders are maxed
b) The government type supports that move

3) The game chooses randomly until it finds an event that fits (as with random events)

The events cause Democratic Minors to go +1 Freedom, +1 Free market, -1 Hawk, or -1 Professional. Communist or Fascist minors go the other way: -1 Freedom, -1 Free Market, +1 Hawk, +1 Standing. And there is one more event that casues them to go +1 Interventionist if "atwar = yes". Incidently, this is the only one with an atwar trigger.

I do have one gripe with theses events: there is no "atwar = no" trigger for the dove moves. Would a democracy atwar really go "defense_lobby value = -1"? But that would require coding one more event (12009), for democracies atwar going +1 hawk.