What happened?
If I choose "military crackdown" option, nothing will happened after 15 days. No further decision popup. Leaving player hopelessly seeing that "dodging level" keep raising.
What make this looks more strange is when I hover my mouse on that option, no output is displayed in the hint. Which showed in picture below. The other one(improve living standards) looks fine.
After looking into the source code, I think I found the reason why I encounter this issue, see the code below for the option "miliaty crack down" in "stability_events.txt".
My stablity is just exactly 30%, which is "0.3". This cause the condition didn't fall in any "if" branch(1 of them is "> 0.3", other is "< 0.3"). Which cause my decision just cause no effect.
There should be a "= 0.3" condition branch.
If I choose "military crackdown" option, nothing will happened after 15 days. No further decision popup. Leaving player hopelessly seeing that "dodging level" keep raising.
What make this looks more strange is when I hover my mouse on that option, no output is displayed in the hint. Which showed in picture below. The other one(improve living standards) looks fine.
After looking into the source code, I think I found the reason why I encounter this issue, see the code below for the option "miliaty crack down" in "stability_events.txt".
My stablity is just exactly 30%, which is "0.3". This cause the condition didn't fall in any "if" branch(1 of them is "> 0.3", other is "< 0.3"). Which cause my decision just cause no effect.
There should be a "= 0.3" condition branch.
Code:
option = { #military crackdown level 1
trigger = {
NOT = {
OR = {
has_idea = draft_dodging_2
has_idea = draft_dodging_3
}
}
}
ai_chance = {
base = 50
modifier = {
has_stability < 0.4
factor = 0
}
modifier = {
has_political_power > 100
factor = 0.5
}
}
name = stability.21.d
add_political_power = -75
custom_effect_tooltip = 15_days_tt
set_country_flag = crisis_solution_in_progress
if = {
limit = {
has_stability > 0.3
}
random_list = {
60 = { country_event = { id = stability.31 days = 15 } } #success
40 = { country_event = { id = stability.32 days = 15 } } #failure
}
}
if = {
limit = {
has_stability < 0.3
}
random_list = {
60 = { country_event = { id = stability.31 days = 15 } } #success
30 = { country_event = { id = stability.32 days = 15 } } #failure
5 = { country_event = { id = stability.33 days = 15 } } #civil war
}
}
}