Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ####Coalition system by Flizzy####
- coal_set_up = {
- if = {
- limit = {
- has_government = collectivist
- }
- add_to_variable = { var = party_in_coal value = 1 }
- add_to_array = {
- array = coal_list
- value = 1
- }
- coal_calc_total = yes
- }
- else_if = {
- limit = {
- has_government = traditional_marxist
- }
- add_to_variable = { var = party_in_coal value = 1 }
- add_to_array = {
- array = coal_list
- value = 2
- }
- coal_calc_total = yes
- }
- else_if = {
- limit = {
- has_government = social_democrat
- }
- add_to_variable = { var = party_in_coal value = 1 }
- add_to_array = {
- array = coal_list
- value = 3
- }
- coal_calc_total = yes
- }
- else_if = {
- limit = {
- has_government = liberalism
- }
- add_to_variable = { var = party_in_coal value = 1 }
- add_to_array = {
- array = coal_list
- value = 4
- }
- coal_calc_total = yes
- }
- else_if = {
- limit = {
- has_government = conservatism
- }
- add_to_variable = { var = party_in_coal value = 1 }
- add_to_array = {
- array = coal_list
- value = 5
- }
- coal_calc_total = yes
- }
- else_if = {
- limit = {
- has_government = authoritarian_democrat
- }
- add_to_variable = { var = party_in_coal value = 1 }
- add_to_array = {
- array = coal_list
- value = 6
- }
- coal_calc_total = yes
- }
- else_if = {
- limit = {
- has_government = paternal_autocrat
- }
- add_to_variable = { var = party_in_coal value = 1 }
- add_to_array = {
- array = coal_list
- value = 7
- }
- coal_calc_total = yes
- }
- else_if = {
- limit = {
- has_government = totalitarian_nationalism
- }
- add_to_variable = { var = party_in_coal value = 1 }
- add_to_array = {
- array = coal_list
- value = 8
- }
- coal_calc_total = yes
- }
- }
- coal_add_collectivist = {
- if = {
- limit = {
- NOT = {
- is_in_array = {
- array = coal_list
- value = 1
- }
- }
- }
- add_to_array = {
- array = coal_list
- value = 1
- }
- add_to_variable = { var = party_in_coal value = 1 }
- coal_calc_total = yes
- }
- }
- coal_add_trad_marx = {
- if = {
- limit = {
- NOT = {
- is_in_array = {
- array = coal_list
- value = 2
- }
- }
- }
- add_to_array = {
- array = coal_list
- value = 2
- }
- add_to_variable = { var = party_in_coal value = 1 }
- coal_calc_total = yes
- }
- }
- coal_add_soc_dem = {
- if = {
- limit = {
- NOT = {
- is_in_array = {
- array = coal_list
- value = 3
- }
- }
- }
- add_to_array = {
- array = coal_list
- value = 3
- }
- add_to_variable = { var = party_in_coal value = 1 }
- coal_calc_total = yes
- }
- }
- coal_add_liberalism = {
- if = {
- limit = {
- NOT = {
- is_in_array = {
- array = coal_list
- value = 4
- }
- }
- }
- add_to_array = {
- array = coal_list
- value = 4
- }
- add_to_variable = { var = party_in_coal value = 1 }
- coal_calc_total = yes
- }
- }
- coal_add_conservatism = {
- if = {
- limit = {
- NOT = {
- is_in_array = {
- array = coal_list
- value = 5
- }
- }
- }
- add_to_variable = { var = party_in_coal value = 1 }
- add_to_array = {
- array = coal_list
- value = 5
- }
- coal_calc_total = yes
- }
- }
- coal_add_auth_dem = {
- if = {
- limit = {
- NOT = {
- is_in_array = {
- array = coal_list
- value = 6
- }
- }
- }
- add_to_variable = { var = party_in_coal value = 1 }
- add_to_array = {
- array = coal_list
- value = 6
- }
- coal_calc_total = yes
- }
- }
- coal_add_pat_aut = {
- if = {
- limit = {
- NOT = {
- is_in_array = {
- array = coal_list
- value = 7
- }
- }
- }
- add_to_array = {
- array = coal_list
- value = 7
- }
- add_to_variable = { var = party_in_coal value = 1 }
- coal_calc_total = yes
- }
- }
- coal_add_tot_nat = {
- if = {
- limit = {
- NOT = {
- is_in_array = {
- array = coal_list
- value = 8
- }
- }
- }
- add_to_array = {
- array = coal_list
- value = 8
- }
- add_to_variable = { var = party_in_coal value = 1 }
- coal_calc_total = yes
- }
- }
- coal_calc_total = {
- set_variable = {
- var = total_coal_pop
- value = 0
- }
- if = {
- limit = {
- is_in_array = {
- array = coal_list
- value = 1
- }
- }
- add_to_variable = {
- var = total_coal_pop
- value = party_popularity@collectivist
- }
- }
- if = {
- limit = {
- is_in_array = {
- array = coal_list
- value = 2
- }
- }
- add_to_variable = {
- var = total_coal_pop
- value = party_popularity@traditional_marxist
- }
- }
- if = {
- limit = {
- is_in_array = {
- array = coal_list
- value = 3
- }
- }
- add_to_variable = {
- var = total_coal_pop
- value = party_popularity@social_democrat
- }
- }
- if = {
- limit = {
- is_in_array = {
- array = coal_list
- value = 4
- }
- }
- add_to_variable = {
- var = total_coal_pop
- value = party_popularity@liberalism
- }
- }
- if = {
- limit = {
- is_in_array = {
- array = coal_list
- value = 5
- }
- }
- add_to_variable = {
- var = total_coal_pop
- value = party_popularity@conservatism
- }
- }
- if = {
- limit = {
- is_in_array = {
- array = coal_list
- value = 6
- }
- }
- add_to_variable = {
- var = total_coal_pop
- value = party_popularity@authoritarian_democrat
- }
- }
- if = {
- limit = {
- is_in_array = {
- array = coal_list
- value = 7
- }
- }
- add_to_variable = {
- var = total_coal_pop
- value = party_popularity@paternal_autocrat
- }
- }
- if = {
- limit = {
- is_in_array = {
- array = coal_list
- value = 8
- }
- }
- add_to_variable = {
- var = total_coal_pop
- value = party_popularity@totalitarian_nationalism
- }
- }
- multiply_variable = {
- var = total_coal_pop
- value = 100
- }
- round_variable = total_coal_pop
- }
- coal_rev_collectivist = {
- if = {
- limit = {
- is_in_array = {
- array = coal_list
- value = 1
- }
- }
- remove_from_array = {
- array = coal_list
- value = 1
- }
- coal_calc_total = yes
- }
- }
- coal_rev_trad_marx = {
- if = {
- limit = {
- is_in_array = {
- array = coal_list
- value = 2
- }
- }
- remove_from_array = {
- array = coal_list
- value = 2
- }
- coal_calc_total = yes
- }
- }
- coal_rev_soc_dem = {
- if = {
- limit = {
- is_in_array = {
- array = coal_list
- value = 3
- }
- }
- remove_from_array = {
- array = coal_list
- value = 3
- }
- coal_calc_total = yes
- }
- }
- coal_rev_liberalism = {
- if = {
- limit = {
- is_in_array = {
- array = coal_list
- value = 4
- }
- }
- remove_from_array = {
- array = coal_list
- value = 4
- }
- coal_calc_total = yes
- }
- }
- coal_rev_conservatism = {
- if = {
- limit = {
- is_in_array = {
- array = coal_list
- value = 5
- }
- }
- remove_from_array = {
- array = coal_list
- value = 5
- }
- coal_calc_total = yes
- }
- }
- coal_rev_auth_dem = {
- if = {
- limit = {
- is_in_array = {
- array = coal_list
- value = 6
- }
- }
- remove_from_array = {
- array = coal_list
- value = 6
- }
- coal_calc_total = yes
- }
- }
- coal_rev_pat_aut = {
- if = {
- limit = {
- is_in_array = {
- array = coal_list
- value = 7
- }
- }
- remove_from_array = {
- array = coal_list
- value = 7
- }
- coal_calc_total = yes
- }
- }
- coal_rev_tot_nat = {
- if = {
- limit = {
- is_in_array = {
- array = coal_list
- value = 8
- }
- }
- remove_from_array = {
- array = coal_list
- value = 8
- }
- coal_calc_total = yes
- }
- }
- coal_rev_all = {
- clear_array = coal_list
- coal_set_up = yes
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement