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

ADHansa

Second Lieutenant
35 Badges
Jan 5, 2004
132
0
  • Stellaris: Synthetic Dawn
  • Cities: Skylines - After Dark
  • Cities: Skylines - Snowfall
  • Stellaris
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Cities: Skylines
  • Age of Wonders III
  • Cities: Skylines - Green Cities
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Prison Architect
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Victoria: Revolutions
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Magicka
  • Cities in Motion 2
  • Sword of the Stars
  • Sword of the Stars II
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Warlock: Master of the Arcane
  • 500k Club
AI_chance

I can't get it to work properly. It also seems like the current events with AI_chance has a 100% _a contribution. When changing the order in education and bastards the education i saw big changes though all option should have the same chance.
 
Last edited:
Upvote 0
I've also noticed that the AI only seems to choose court education, despite equal ai_chance for each. Cat Lord? Move this to the bugs forum?
 
Is that highly reproducable ?

Like no matter what AI_chance or not, the AI only ever take choice a ?

Easy test, create a dummy event with ai_chance 100% choice B, what is happening ?

That would be strange, choice "a" in EU2 was supposed to be, what 95% ?

So even if it's not working properly, I would think the AI still get a few bs, cs and ds.

Is that not the case at all ?

Cat
 
I just did some searching, and in a 1222 save from a 1066 game, literally no one outside my court had a martial education trait, and only one person outside my court had an ecclesiastical education trait, and she was a pre-generated character who died before completing her education.

I'll have to do some testing to see what happens with various values of ai_chance.
 
OK, carry on the good work, I am moving that to the BUG forum.

Thanks, :)

Cat
 
I did some experimenting using these events:
Code:
#########################
#Opinion, please
#########################
character_event = {
  id = 10000

  trigger = {
            condition = { type = is_vassal }
           }
  name = "Opinion, please"
  mean_time_to_happen = {
                     months = 1
           }

                     action_a = {
                             ai_chance = 5
                             effect = { type = trigger for = liege value = 10001 }
                     }
                     action_b = {
                             ai_chance = 95
                             effect = { type = trigger for = liege value = 10002 }
                     }

}
#########################
#You're great!
#########################
character_event = {
  id = 10001

  name = "You're great!"
	immidiate = {
	}

}
#########################
#You're a fink!
#########################
character_event = {
  id = 10002

  name = "You're a fink!"
  immidiate = {
  }

}
with various values of ai_chance. First run I used a=1 and b=99, and with a handful of triggers from the console I got mostly finks and 1 great. Changing to 5 and 5, triggered from the console I got 5 greats and 5 finks in the first 10 tries. Running it for 6 months with a large empire and many vassals, I got 45 greats and 42 finks. Off to try with other values.
 
With a=5 and b = 95, over slightly more than 6 months I got 22 greats and 7 finks.
 
With a=1 and b=9, over 6 months I had 6 great and 28 fink events.
 
With a=1 and b=99 I get 4 greats and 21 finks over 6 months.
 
Adding an event 10003 ("You're a has-been!") triggered by action_c, and setting ai_chance to a=1, b=9, c=90, I get 5 greats, 17 finks and 0 has-beens over 6 months.
 
Very very strange... :confused:

Cat
 
With a = 1, b = 8, c = 1, 5 greats, 17 finks and 0 has-beens over 6 months.
 
With a = 1, b = 7, c = 2, I get 17 greats, 52 finks and 5 has-beens over 1 year.
 
With a=0.5, b = 7, c = 2.5, I got 5 greats, 42 finks and 13 has-beens over 14 months. Over all, it looks like the valid range of ai_chance at present is from 0 to somewhere between 8 and 10, possibly 8.5. That should be enough info for Johan to dig into it, though possibly not quite enough to code scripting workarounds until it's fixed.
 
With a = 0, b = 8 and c = 2, I got 11 greats, 74 finks and 10 has-beens over about 14 months. It appears to be a 10 point range, from -1 to 9 for some extremely odd reason.
 
Thanks a lot Richard.

That would be enough for Paradox to work on. :)

Cat