How to implement a decision.
So I'm trying to expand upon Persia in HFM. Essentially I changed up the Greater Iran provinces and I'm adding a decision to accept the Eastern Iranic peoples. Later I will add decisions to claim Kurdistan and subsequently accept Kurdish culture.
Edit: I've figured out how to implement it into the CSV file in the localisation folder. I put it in 00_HPM_decisions.csv file. Now my issue is the decision won't disappear once accepted. Do I need to create a flag?
#Embrace Afghans and Eastern Iranians
embrace_afghans = {
picture = embrace_minority
potential= {
tag = PER
civilized = yes
has_country_flag = greater_iran
}
allow = {
owns = 1207
owns = 1208
owns = 1209
owns = 1210
owns = 1211
owns = 1212
owns = 1213
owns = 1214
owns = 1215
owns = 1216
owns = 1217
owns = 1218
owns = 1219
owns = 1220
owns = 1221
owns = 1222
owns = 1223
}
effect = {
add_accepted_culture = pashtun
add_accepted_culture = tajik
add_accepted_culture = baluchi
any_pop = {
limit = { has_pop_culture = pashtun }
consciousness = -4
militancy = -4
}
any_pop = {
limit = { has_pop_culture = tajik }
consciousness = -4
militancy = -4
}
any_pop = {
limit = { has_pop_culture = baluchi }
consciousness = -4
militancy = -4
}
}
ai_will_do = { factor = 1 }
}
The above is the decision I made.
The below is what I modified for the Greater Iran decision.
#Greater Iran
greater_iran = {
picture = greater_iran
potential = {
tag = PER
civilized = yes
NOT = { has_country_flag = greater_iran }
}
allow = {
nationalism_n_imperialism = 1
is_greater_power = yes
war_policy = jingoism
}
effect = {
set_country_flag = greater_iran
badboy = 13
any_country = { limit = { neighbour = THIS NOT = { vassal_of = THIS } } relation = { who = THIS value = -50 } }
1100 = { add_core = PER }
1101 = { add_core = PER }
1102 = { add_core = PER }
1103 = { add_core = PER }
1104 = { add_core = PER }
1105 = { add_core = PER }
1106 = { add_core = PER }
1107 = { add_core = PER }
1207 = { add_core = PER }
1208 = { add_core = PER }
1209 = { add_core = PER }
1210 = { add_core = PER }
1211 = { add_core = PER }
1212 = { add_core = PER }
1213 = { add_core = PER }
1214 = { add_core = PER }
1215 = { add_core = PER }
1216 = { add_core = PER }
1217 = { add_core = PER }
1218 = { add_core = PER }
1219 = { add_core = PER }
1220 = { add_core = PER }
1221 = { add_core = PER }
1222 = { add_core = PER }
1223 = { add_core = PER }
2640 = { add_core = PER }
}
ai_will_do = { factor = 1 }
}