2024-06-26 20:31:17

This commit is contained in:
actions[bot]
2024-06-26 20:31:17 +08:00
parent ed7dc34237
commit ac6195ac46
6808 changed files with 624025 additions and 0 deletions

View File

@@ -0,0 +1,567 @@
# some changes from Border Conflicts everywhere by Blue
add_namespace = NSB_border_conflict_won_attacker
country_event = {
id = NSB_border_conflict_won_attacker.1
title = NSB_border_conflict_won_attacker.1.t
desc = NSB_border_conflict_won_attacker.1.desc
picture = GFX_report_event_chinese_soldiers_city_ruin
is_triggered_only = yes
immediate = {
save_event_target_as = our_country
#BCE
FROM = { save_event_target_as = our_state
clr_state_flag = border_incident_active
}
FROM.FROM = { save_event_target_as = their_country }
#BCE
FROM.FROM.FROM = {
save_event_target_as = their_state
clr_state_flag = border_incident_active
}
remove_targeted_decision = { target = event_target:their_country decision = NSB_border_conflict_time_until_cancelled }
}
option = {
name = NSB_border_conflict_won_attacker.1.a
# BCE
add_political_power = 50
# add_threat = -1
add_war_support = .02
add_named_threat = { threat = 1 name = border_threat }
if = {
limit = {
check_variable = {
FROM.FROM.num_owned_states > 1
}
}
transfer_state = FROM.FROM.FROM
}
else = {
FROM.FROM = { ROOT = { annex_country = { target = PREV } } }
}
# BCE
custom_effect_tooltip = NSB_buildings_damaged
hidden_effect = {
FROM.FROM.FROM = {
random_list = {
60 = { damage_building = { type = arms_factory damage = 0.6 } }
30 = { damage_building = { type = arms_factory damage = 0.3 } }
10 = { damage_building = { type = industrial_complex damage = 0.9 } }
}
}
}
}
}
add_namespace = NSB_border_conflict_won_defender
country_event = {
id = NSB_border_conflict_won_defender.1
title = NSB_border_conflict_won_defender.1.t
desc = NSB_border_conflict_won_defender.1.desc
picture = GFX_report_event_chinese_soldiers_mountain
is_triggered_only = yes
immediate = {
hidden_effect = {
save_event_target_as = our_country
FROM = {
save_event_target_as = our_state
clr_state_flag = border_incident_active
}
FROM.FROM = { save_event_target_as = their_country }
FROM.FROM.FROM = {
save_event_target_as = their_state
clr_state_flag = border_incident_active
}
set_country_flag = show_effect_tooltips
clear_variable = attacker_state_vs_@FROM.FROM
clear_variable = defender_state_vs_@FROM.FROM
remove_targeted_decision = { target = event_target:their_country decision = NSB_border_conflict_time_until_cancelled }
}
}
#Same effect as attacker. Tooltip for their effects
option = {
name = NSB_border_conflict_won_defender.1.a
add_political_power = 150
army_experience = 30
add_war_support = .05
add_threat = -1
add_doctrine_cost_reduction = {
name = defensive_border_conflict_won
cost_reduction = 0.25
uses = 1
category = land_doctrine
}
if = {
limit = { has_country_flag = show_effect_tooltips }
event_target:their_country = {
effect_tooltip = {
add_political_power = -50
army_experience = 10
# add_threat = -1
}
}
clr_country_flag = show_effect_tooltips
}
}
}
add_namespace = NSB_border_conflict_lost_attacker
country_event = {
id = NSB_border_conflict_lost_attacker.1
title = NSB_border_conflict_lost_attacker.1.t
desc = NSB_border_conflict_lost_attacker.1.desc
picture = GFX_report_event_dead_soldiers
is_triggered_only = yes
immediate = {
save_event_target_as = our_country
FROM = { save_event_target_as = our_state }
FROM.FROM = { save_event_target_as = their_country }
FROM.FROM.FROM = { save_event_target_as = their_state }
set_country_flag = show_effect_tooltips
remove_targeted_decision = { target = event_target:their_country decision = NSB_border_conflict_time_until_cancelled }
}
#Same effect as defender. Tooltip for their effects
option = {
name = NSB_border_conflict_lost_attacker.1.a
add_political_power = -150
army_experience = 10
add_war_support = -.02
add_threat = -1
### ideology loss from Border Conflicts Everywhere by Blue
if = {
limit = { has_government = islamism }
ROOT = { add_popularity = { ideology = islamism popularity = -0.03 } }
}
if = {
limit = { has_government = radical_shiaism }
ROOT = { add_popularity = { ideology = radical_shiaism popularity = -0.03 } }
}
if = {
limit = { has_government = islamist }
ROOT = { add_popularity = { ideology = islamist popularity = -0.03 } }
}
if = {
limit = { has_government = pan_arabism }
ROOT = { add_popularity = { ideology = pan_arabism popularity = -0.03 } }
}
if = {
limit = { has_government = Salafism }
ROOT = { add_popularity = { ideology = Salafism popularity = -0.03 } }
}
if = {
limit = { has_government = communism }
ROOT = { add_popularity = { ideology = communism popularity = -0.03 } }
}
if = {
limit = { has_government = communist }
ROOT = { add_popularity = { ideology = communist popularity = -0.03 } }
}
if = {
limit = { has_government = trotskyism }
ROOT = { add_popularity = { ideology = trotskyism popularity = -0.03 } }
}
if = {
limit = { has_government = maoism }
ROOT = { add_popularity = { ideology = maoism popularity = -0.03 } }
}
if = {
limit = { has_government = syndicalist }
ROOT = { add_popularity = { ideology = syndicalist popularity = -0.03 } }
}
if = {
limit = { has_government = radical_socialist }
ROOT = { add_popularity = { ideology = radical_socialist popularity = -0.03 } }
}
if = {
limit = { has_government = socialist }
ROOT = { add_popularity = { ideology = socialist popularity = -0.03 } }
}
if = {
limit = { has_government = democratic_socialist }
ROOT = { add_popularity = { ideology = democratic_socialist popularity = -0.03 } }
}
if = {
limit = { has_government = National_Socialism }
ROOT = { add_popularity = { ideology = National_Socialism popularity = -0.03 } }
}
if = {
limit = { has_government = progressive_green }
ROOT = { add_popularity = { ideology = progressive_green popularity = -0.03 } }
}
if = {
limit = { has_government = progressive }
ROOT = { add_popularity = { ideology = progressive popularity = -0.03 } }
}
if = {
limit = { has_government = Social_Democratic }
ROOT = { add_popularity = { ideology = Social_Democratic popularity = -0.03 } }
}
if = {
limit = { has_government = social_democrat }
ROOT = { add_popularity = { ideology = social_democrat popularity = -0.03 } }
}
if = {
limit = { has_government = Social_Liberalism }
ROOT = { add_popularity = { ideology = Social_Liberalism popularity = -0.03 } }
}
if = {
limit = { has_government = social_liberal }
ROOT = { add_popularity = { ideology = social_liberal popularity = -0.03 } }
}
if = {
limit = { has_government = liberal }
ROOT = { add_popularity = { ideology = liberal popularity = -0.03 } }
}
if = {
limit = { has_government = centrist }
ROOT = { add_popularity = { ideology = centrist popularity = -0.03 } }
}
if = {
limit = { has_government = totalist }
ROOT = { add_popularity = { ideology = totalist popularity = -0.03 } }
}
if = {
limit = { has_government = fascism }
ROOT = { add_popularity = { ideology = fascism popularity = -0.03 } }
}
if = {
limit = { has_government = fascist }
ROOT = { add_popularity = { ideology = fascist popularity = -0.03 } }
}
if = {
limit = { has_government = national_populist }
ROOT = { add_popularity = { ideology = national_populist popularity = -0.03 } }
}
if = {
limit = { has_government = nationalism }
ROOT = { add_popularity = { ideology = nationalism popularity = -0.03 } }
}
if = {
limit = { has_government = nationalist }
ROOT = { add_popularity = { ideology = nationalist popularity = -0.03 } }
}
if = {
limit = { has_government = neutrality }
ROOT = { add_popularity = { ideology = neutrality popularity = -0.03 } }
}
if = {
limit = { has_government = monarchism }
ROOT = { add_popularity = { ideology = monarchism popularity = -0.03 } }
}
if = {
limit = { has_government = monarchist }
ROOT = { add_popularity = { ideology = monarchist popularity = -0.03 } }
}
if = {
limit = { has_government = paternal_autocrat }
ROOT = { add_popularity = { ideology = paternal_autocrat popularity = -0.03 } }
}
if = {
limit = { has_government = authoritarian_democrat }
ROOT = { add_popularity = { ideology = authoritarian_democrat popularity = -0.03 } }
}
if = {
limit = { has_government = reactionary }
ROOT = { add_popularity = { ideology = reactionary popularity = -0.03 } }
}
if = {
limit = { has_government = democratic }
ROOT = { add_popularity = { ideology = democratic popularity = -0.03 } }
}
if = {
limit = { has_government = American_Democratic }
ROOT = { add_popularity = { ideology = American_Democratic popularity = -0.03 } }
}
if = {
limit = { has_government = Liberal_Conservatism }
ROOT = { add_popularity = { ideology = Liberal_Conservatism popularity = -0.03 } }
}
if = {
limit = { has_government = social_conservative }
ROOT = { add_popularity = { ideology = social_conservative popularity = -0.03 } }
}
if = {
limit = { has_government = conservative }
ROOT = { add_popularity = { ideology = conservative popularity = -0.03 } }
}
if = {
limit = { has_government = Christian_Democratic }
ROOT = { add_popularity = { ideology = Christian_Democratic popularity = -0.03 } }
}
if = {
limit = { has_government = Christianism }
ROOT = { add_popularity = { ideology = Christianism popularity = -0.03 } }
}
if = {
limit = { has_government = Republicanism }
ROOT = { add_popularity = { ideology = Republicanism popularity = -0.03 } }
}
if = {
limit = { has_government = market_liberal }
ROOT = { add_popularity = { ideology = market_liberal popularity = -0.03 } }
}
if = {
limit = { has_government = Judaism }
ROOT = { add_popularity = { ideology = Judaism popularity = -0.03 } }
}
###
custom_effect_tooltip = NSB_buildings_damaged
hidden_effect = {
FROM = {
random_list = {
60 = { damage_building = { type = arms_factory damage = 0.6 } }
30 = { damage_building = { type = arms_factory damage = 0.3 } }
5 = { damage_building = { type = industrial_complex damage = 0.9 } }
5 = { add_manpower = -500 }
}
}
}
if = {
limit = { has_country_flag = show_effect_tooltips }
event_target:their_country = {
effect_tooltip = {
add_political_power = 150
army_experience = 30
# add_threat = -1
add_doctrine_cost_reduction = {
name = defensive_border_conflict_won
cost_reduction = 0.25
uses = 1
category = land_doctrine
}
}
}
clr_country_flag = show_effect_tooltips
}
}
}
add_namespace = NSB_border_conflict_lost_defender
country_event = {
id = NSB_border_conflict_lost_defender.1
title = NSB_border_conflict_lost_defender.1.t
desc = NSB_border_conflict_lost_defender.1.desc
picture = GFX_report_event_dead_soldiers
is_triggered_only = yes
immediate = {
hidden_effect = {
save_event_target_as = our_country
FROM = {
save_event_target_as = our_state
clr_state_flag = border_incident_active
}
FROM.FROM = { save_event_target_as = their_country }
FROM.FROM.FROM = {
save_event_target_as = their_state
clr_state_flag = border_incident_active
}
set_country_flag = show_effect_tooltips
clear_variable = attacker_state_vs_@FROM.FROM
clear_variable = defender_state_vs_@FROM.FROM
remove_targeted_decision = { target = event_target:their_country decision = NSB_border_conflict_time_until_cancelled }
}
}
#Same effect as attacker. Tooltip for their effects
option = {
name = NSB_border_conflict_lost_defender.1.a
if = {
limit = { has_country_flag = show_effect_tooltips }
effect_tooltip = {
add_political_power = 50
#BCE
add_manpower = -500
add_war_support = .10
# add_threat = -1
if = {
limit = {
check_variable = {
num_owned_states > 1
}
}
FROM.FROM = { transfer_state = FROM }
}
else = {
FROM.FROM = { annex_country = { target = ROOT } }
}
}
clr_country_flag = show_effect_tooltips
}
}
}
add_namespace = NSB_border_conflict_canceled_attacker
country_event = {
id = NSB_border_conflict_canceled_attacker.1
title = NSB_border_conflict_canceled_attacker.1.t
desc = NSB_border_conflict_canceled_attacker.1.desc
picture = GFX_report_event_chinese_soldiers_mountain
is_triggered_only = yes
immediate = {
save_event_target_as = our_country
FROM = { save_event_target_as = our_state }
FROM.FROM = { save_event_target_as = their_country }
FROM.FROM.FROM = { save_event_target_as = their_state }
set_country_flag = show_effect_tooltips
}
option = {
name = NSB_border_conflict_canceled_attacker.1.a
army_experience = 15
if = {
limit = { has_country_flag = show_effect_tooltips }
event_target:their_country = {
effect_tooltip = {
army_experience = 30
add_political_power = 50
add_threat = -1
}
}
clr_country_flag = show_effect_tooltips
}
}
}
add_namespace = NSB_border_conflict_canceled_defender
country_event = {
id = NSB_border_conflict_canceled_defender.1
title = NSB_border_conflict_canceled_defender.1.t
desc = NSB_border_conflict_canceled_defender.1.desc
picture = GFX_report_event_chinese_soldiers_mountain
is_triggered_only = yes
immediate = {
hidden_effect = {
save_event_target_as = our_country
FROM = {
save_event_target_as = our_state
clr_state_flag = border_incident_active
}
FROM.FROM = { save_event_target_as = their_country }
FROM.FROM.FROM = {
save_event_target_as = their_state
clr_state_flag = border_incident_active
}
set_country_flag = show_effect_tooltips
clear_variable = attacker_state_vs_@FROM.FROM
clear_variable = defender_state_vs_@FROM.FROM
}
}
option = {
name = NSB_border_conflict_canceled_defender.1.a
army_experience = 30
add_political_power = 50
add_threat = -1
if = {
limit = { has_country_flag = show_effect_tooltips }
event_target:their_country = {
effect_tooltip = {
army_experience = 15
}
}
clr_country_flag = show_effect_tooltips
}
}
}
add_namespace = NSB_border_incident_defender_warning
country_event = {
id = NSB_border_incident_defender_warning.1
title = NSB_border_incident_defender_warning.1.t
desc = NSB_border_incident_defender_warning.1.desc
picture = GFX_report_event_chinese_soldiers_mountain
is_triggered_only = yes
#Event targets saved
#attacker_state
#defender_state
immediate = {
save_event_target_as = our_country
FROM = { save_event_target_as = their_country }
}
option = {
name = NSB_border_incident_defender_warning.1.a
}
}
add_namespace = NSB_border_conflict_escalation
country_event = {
id = NSB_border_conflict_escalation.1
title = NSB_border_conflict_escalation.1.t
desc = NSB_border_conflict_escalation.1.desc
picture = GFX_report_event_chinese_soldiers_01
is_triggered_only = yes
#Event targets saved
#attacker_state
#defender_state
immediate = {
save_event_target_as = our_country
FROM = { save_event_target_as = their_country }
}
option = {
name = NSB_border_conflict_escalation.1.a
}
}
add_namespace = NSB_border_conflict_escalate_to_war
country_event = {
id = NSB_border_conflict_escalate_to_war.1
title = NSB_border_conflict_escalate_to_war.1.t
desc = NSB_border_conflict_escalate_to_war.1.desc
picture = GFX_report_event_chinese_soldiers
is_triggered_only = yes
#Event targets saved
#attacker_state
#defender_state
immediate = {
save_event_target_as = our_country
FROM = { save_event_target_as = their_country }
}
option = {
name = NSB_border_conflict_escalate_to_war.1.a
}
}