To keep track of how the AI choose in this event I set two variables in a previous event -- optionone & optiontwo -- and assigned them the value of zero. Since Denmark is catholic, the AI should never choose the first option. But when looking at the variables in the save file, optionone had the value 2 while optiontwo had the value 24. How come the AI choose the first option twice? I thought factor = 0 meant an option never triggered.
Code:country_event = { id = 828282 trigger = { tag = DAN has_global_flag = inittest } mean_time_to_happen = { days = 1 } title = "titletest" desc = "desctest" option = { name = "nametest" ai_chance = { factor = 90 days = 1 modifier = { factor = 0 religion = catholic } } change_variable = { which = optionone value = 1 } } option = { name = "nametest" ai_chance = { factor = 10 days = 1 modifier = { factor = 10 religion = catholic } } change_variable = { which = optiontwo value = 1 } } }








Reply With Quote
)
















