I was still confused (not sure why, seems like people were saying it was division but i wanted to test it again) so i did some more tests:
indeed, as expected the non-catholics in these three options seemed to be A70 B25 C5 because of the factor of 1.0. factor of 1.0 does indeed seem to mean 'no change' (70 / 1 = 70) while less than 1.0 seems to indeed mean 'higher chance' because catholics chose option A 90% of the time with this example:
theory: unlike MTTH modifiers, where it is multiplication ONLY (we all agree on this right?), factors in ai_chance is Division ONLY. this theory is supported by my results with these event options above. according to that theory, catholics had a ai_chance of 156% for option A after the factor was divided. I will run another test and try to achieve a catholic 33% across all three option while non-catholics remain 70,25,5.Code:option = { name = "Join the Joust *C33 NC70" #ai_chance = { factor = 70 } ai_chance = { factor = 70 days = 1 modifier = { factor = 1.0 owner = { NOT = { religion = catholic } } } modifier = { factor = 0.45 owner = { religion = catholic } } } owner = { set_country_flag = Joust_Join clr_country_flag = Joust_Champion clr_country_flag = Joust_No relation = { who = PAP value = -15 } } VAR = { mercantilism_freetrade = 1 } } option = { name = "This is not wise *C33 NC25" #ai_chance = { factor = 25 } ai_chance = { factor = 25 days = 1 modifier = { factor = 1.2 owner = { religion = catholic } } modifier = { factor = 1.0 owner = { NOT = { religion = catholic } } } } owner = { set_country_flag = Joust_No clr_country_flag = Joust_Champion } } option = { name = "Ban the Joust! *C33 NC5" #ai_chance = { factor = 5 } ai_chance = { factor = 5 days = 1 modifier = { factor = 6.0 owner = { religion = catholic } } modifier = { factor = 1.0 owner = { NOT = { religion = catholic } } } } owner = { set_country_flag = Joust_Ban clr_country_flag = Joust_No clr_country_flag = Joust_Champion relation = { who = PAP value = 50 } } }
in the test below, results:it is important to note that option c was actualy about 7% but i thought it was going to be 33%. I thought my test was flawed until I realized that the results actualy go along with my flawed math on option c. also, about half of the events I ran were in a situation where there was no catholic nations, so there would have been more non-catholic data if I did all the tests in the 1649 era.Code:catholic non-catholi A 10 8 B 11 2 C 3 1
Conclusion: seems that this realy is division ONLY for factors.Code:option = { name = "Join the Joust *C33 NC70" #ai_chance = { factor = 70 } ai_chance = { factor = 70 days = 1 modifier = { factor = 1.0 owner = { NOT = { religion = catholic } } } modifier = { factor = 2.1 owner = { religion = catholic } } } owner = { set_country_flag = Joust_Join clr_country_flag = Joust_Champion clr_country_flag = Joust_No relation = { who = PAP value = -15 } } VAR = { mercantilism_freetrade = 1 } } option = { name = "This is not wise *C33 NC25" #ai_chance = { factor = 25 } ai_chance = { factor = 25 days = 1 modifier = { factor = 0.75 owner = { religion = catholic } } modifier = { factor = 1.0 owner = { NOT = { religion = catholic } } } } owner = { set_country_flag = Joust_No clr_country_flag = Joust_Champion } } option = { name = "Ban the Joust! *C33 NC5" #ai_chance = { factor = 5 } ai_chance = { factor = 5 days = 1 modifier = { factor = 0.75 owner = { religion = catholic } } modifier = { factor = 1.0 owner = { NOT = { religion = catholic } } } } owner = { set_country_flag = Joust_Ban clr_country_flag = Joust_No clr_country_flag = Joust_Champion relation = { who = PAP value = 50 } } }
Theory: if I change option c, catholic factor to 0.15, the results will be 33%.




Reply With Quote










This along with the INx AI files will make a rather good AI system for EU3.






, I just got a light bulb and found that my code wasn't so solid after all. So, in confirmation this tool definitely works for province events. 