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

TheLand

Post-Captain
43 Badges
Dec 19, 2004
4.586
619
  • Surviving Mars: First Colony Edition
  • Pillars of Eternity
  • Knights of Pen and Paper 2
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Stellaris - Path to Destruction bundle
  • BATTLETECH
  • Surviving Mars
  • Age of Wonders III
  • Cities: Skylines - Parklife
  • Crusader Kings II: Way of Life
  • BATTLETECH: Flashpoint
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Prison Architect
  • Surviving Mars: First Colony Edition
  • BATTLETECH: Season pass
  • BATTLETECH: Heavy Metal
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Victoria 3 Sign Up
  • Europa Universalis III Complete
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sword of Islam
  • Deus Vult
  • Europa Universalis III
  • Europa Universalis IV
  • Hearts of Iron III
  • Heir to the Throne
  • Europa Universalis III Complete
  • Crusader Kings II
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Victoria 2
  • Victoria 2: A House Divided
  • Rome: Vae Victis
  • 500k Club
  • Cities: Skylines
  • Europa Universalis III: Collection
  • Hearts of Iron: The Card Game
Looking at event files I can't see anything that looks like it affects the timing of an event once the trigger conditions are met. I was looking for a Mean Time to Happen or something like that, which is probably very old school.

So do events always happen immediately that the trigger conditions are met? Or is something more sophisticated happening in the background?

Also, what determines the AI's responses to events? There don't appear to be hardcoded AI acceptance chances - is the AI clever enough to try to weigh up the options it's presented with?
 
Looking at event files I can't see anything that looks like it affects the timing of an event once the trigger conditions are met. I was looking for a Mean Time to Happen or something like that, which is probably very old school.

So do events always happen immediately that the trigger conditions are met? Or is something more sophisticated happening in the background?

Also, what determines the AI's responses to events? There don't appear to be hardcoded AI acceptance chances - is the AI clever enough to try to weigh up the options it's presented with?

Events have a "duration = [x]" clause, where x is delay in days.

When it comes to event options I dont think there are values in percentage. You will find "default_option = yes" in one of the options (if more than one), which is the highlighted option in-game and maybe the one chosen by AI.
 
When it comes to event options I dont think there are values in percentage. You will find "default_option = yes" in one of the options (if more than one), which is the highlighted option in-game and maybe the one chosen by AI.
I found this in the code
Code:
        ai_chance = {
            base = 20
        }

That should weight AI choices right? Or will it always choose the default option?