This commit is contained in:
@@ -1,381 +0,0 @@
|
||||
# some changes from Border Conflicts everywhere by Blue
|
||||
add_namespace = az_NSB_border_conflict_won_attacker
|
||||
|
||||
country_event = {
|
||||
id = az_NSB_border_conflict_won_attacker.1
|
||||
title = az_NSB_border_conflict_won_attacker.1.t
|
||||
desc = az_NSB_border_conflict_won_attacker.1.desc
|
||||
|
||||
picture = GFX_decision_dh1decision
|
||||
|
||||
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 = az_NSB_border_conflict_time_until_cancelled }
|
||||
}
|
||||
|
||||
option = {
|
||||
name = az_NSB_border_conflict_won_attacker.1.a
|
||||
# BCE
|
||||
add_political_power = 50
|
||||
add_war_support = .02
|
||||
|
||||
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 = az_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 = az_NSB_border_conflict_won_defender
|
||||
|
||||
country_event = {
|
||||
id = az_NSB_border_conflict_won_defender.1
|
||||
title = az_NSB_border_conflict_won_defender.1.t
|
||||
desc = az_NSB_border_conflict_won_defender.1.desc
|
||||
|
||||
picture = GFX_decision_dh1decision
|
||||
|
||||
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 = az_NSB_border_conflict_time_until_cancelled }
|
||||
}
|
||||
}
|
||||
|
||||
#Same effect as attacker. Tooltip for their effects
|
||||
option = {
|
||||
name = az_NSB_border_conflict_won_defender.1.a
|
||||
add_political_power = 0
|
||||
army_experience = 0
|
||||
add_war_support = 0
|
||||
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 = 0
|
||||
army_experience = 0
|
||||
}
|
||||
}
|
||||
clr_country_flag = show_effect_tooltips
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
add_namespace = az_NSB_border_conflict_lost_attacker
|
||||
|
||||
country_event = {
|
||||
id = az_NSB_border_conflict_lost_attacker.1
|
||||
title = az_NSB_border_conflict_lost_attacker.1.t
|
||||
desc = az_NSB_border_conflict_lost_attacker.1.desc
|
||||
|
||||
picture = GFX_decision_dh1decision
|
||||
|
||||
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 = az_NSB_border_conflict_time_until_cancelled }
|
||||
}
|
||||
|
||||
#Same effect as defender. Tooltip for their effects
|
||||
option = {
|
||||
name = az_NSB_border_conflict_lost_attacker.1.a
|
||||
add_political_power = -30
|
||||
army_experience = 10
|
||||
add_war_support = -.02
|
||||
|
||||
### ideology loss from Border Conflicts Everywhere by Blue
|
||||
|
||||
custom_effect_tooltip = az_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_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 = az_NSB_border_conflict_lost_defender
|
||||
|
||||
country_event = {
|
||||
id = az_NSB_border_conflict_lost_defender.1
|
||||
title = az_NSB_border_conflict_lost_defender.1.t
|
||||
desc = az_NSB_border_conflict_lost_defender.1.desc
|
||||
|
||||
picture = GFX_decision_dh1decision
|
||||
|
||||
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 = az_NSB_border_conflict_time_until_cancelled }
|
||||
}
|
||||
}
|
||||
|
||||
#Same effect as attacker. Tooltip for their effects
|
||||
option = {
|
||||
name = az_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
|
||||
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 = az_NSB_border_conflict_canceled_attacker
|
||||
|
||||
country_event = {
|
||||
id = az_NSB_border_conflict_canceled_attacker.1
|
||||
title = az_NSB_border_conflict_canceled_attacker.1.t
|
||||
desc = az_NSB_border_conflict_canceled_attacker.1.desc
|
||||
|
||||
picture = GFX_decision_dh1decision
|
||||
|
||||
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 = az_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
|
||||
}
|
||||
}
|
||||
clr_country_flag = show_effect_tooltips
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
add_namespace = az_NSB_border_conflict_canceled_defender
|
||||
|
||||
country_event = {
|
||||
id = az_NSB_border_conflict_canceled_defender.1
|
||||
title = az_NSB_border_conflict_canceled_defender.1.t
|
||||
desc = az_NSB_border_conflict_canceled_defender.1.desc
|
||||
|
||||
picture = GFX_decision_dh1decision
|
||||
|
||||
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 = az_NSB_border_conflict_canceled_defender.1.a
|
||||
army_experience = 30
|
||||
add_political_power = 50
|
||||
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 = az_NSB_border_incident_defender_warning
|
||||
|
||||
country_event = {
|
||||
id = az_NSB_border_incident_defender_warning.1
|
||||
title = az_NSB_border_incident_defender_warning.1.t
|
||||
desc = az_NSB_border_incident_defender_warning.1.desc
|
||||
|
||||
picture = GFX_decision_dh1decision
|
||||
|
||||
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 = az_NSB_border_incident_defender_warning.1.a
|
||||
}
|
||||
}
|
||||
|
||||
add_namespace = az_NSB_border_conflict_escalation
|
||||
|
||||
country_event = {
|
||||
id = az_NSB_border_conflict_escalation.1
|
||||
title = az_NSB_border_conflict_escalation.1.t
|
||||
desc = az_NSB_border_conflict_escalation.1.desc
|
||||
|
||||
picture = GFX_decision_dh1decision
|
||||
|
||||
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 = az_NSB_border_conflict_escalation.1.a
|
||||
}
|
||||
}
|
||||
|
||||
add_namespace = az_NSB_border_conflict_escalate_to_war
|
||||
|
||||
country_event = {
|
||||
id = az_NSB_border_conflict_escalate_to_war.1
|
||||
title = az_NSB_border_conflict_escalate_to_war.1.t
|
||||
desc = az_NSB_border_conflict_escalate_to_war.1.desc
|
||||
|
||||
picture = GFX_decision_dh1decision
|
||||
|
||||
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 = az_NSB_border_conflict_escalate_to_war.1.a
|
||||
}
|
||||
}
|
||||
@@ -1001,6 +1001,7 @@ add_namespace = DOH_loong_event
|
||||
country_event = {
|
||||
id = DOH_loong_event.1001
|
||||
title = DOH_loong_event.1001.t
|
||||
picture = GFX_report_event_generic_sign_treaty2
|
||||
desc = DOH_loong_event.1001.d
|
||||
is_triggered_only = yes
|
||||
option = {
|
||||
@@ -1049,6 +1050,7 @@ country_event = {
|
||||
country_event = {
|
||||
id = DOH_loong_event.1002
|
||||
title = DOH_loong_event.1002.t
|
||||
picture = GFX_aze_dai
|
||||
desc = DOH_loong_event.1002.d
|
||||
is_triggered_only = yes
|
||||
option = {
|
||||
@@ -1057,7 +1059,7 @@ country_event = {
|
||||
factor = 9
|
||||
}
|
||||
custom_effect_tooltip = DOH_loong_event.1002.at
|
||||
add_stability = -0.05
|
||||
add_stability = -0.15
|
||||
DOH_neibufenqi_jiazhong_effect = yes
|
||||
}
|
||||
}
|
||||
|
||||
98
src/events/az_DH1_yuanzheng.txt
Executable file
98
src/events/az_DH1_yuanzheng.txt
Executable file
@@ -0,0 +1,98 @@
|
||||
add_namespace = az_DH1_yuanzheng_won_attacker
|
||||
add_namespace = az_DH1_yuanzheng_lost_attacker
|
||||
add_namespace = az_DH1_yuanzheng_won_defender
|
||||
add_namespace = az_DH1_yuanzheng_lost_defender
|
||||
country_event = {
|
||||
id = az_DH1_yuanzheng_won_attacker.1
|
||||
picture = GFX_aze_chaijun_nice
|
||||
title = az_DH1_yuanzheng_won_attacker.t
|
||||
desc = az_DH1_yuanzheng_won_attacker.d
|
||||
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
|
||||
}
|
||||
}
|
||||
option = {
|
||||
name = az_DH1_yuanzheng_won_attacker.a
|
||||
add_political_power = 50
|
||||
add_war_support = .02
|
||||
if = {
|
||||
limit = {
|
||||
check_variable = {
|
||||
FROM.FROM.num_owned_states > 1
|
||||
}
|
||||
}
|
||||
transfer_state = FROM.FROM.FROM
|
||||
}
|
||||
else = {
|
||||
FROM.FROM = { ROOT = { annex_country = { target = PREV } } }
|
||||
}
|
||||
}
|
||||
}
|
||||
country_event = {
|
||||
id = az_DH1_yuanzheng_lost_attacker.1
|
||||
picture = GFX_aze_txluoen2
|
||||
title = az_DH1_yuanzheng_lost_attacker.t
|
||||
desc = az_DH1_yuanzheng_lost_attacker.d
|
||||
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
|
||||
}
|
||||
}
|
||||
option = {
|
||||
name = az_DH1_yuanzheng_lost_attacker.a
|
||||
add_political_power = -50
|
||||
}
|
||||
}
|
||||
country_event = {
|
||||
id = az_DH1_yuanzheng_won_defender.1
|
||||
picture = GFX_aze_chaijun_nice
|
||||
title = az_DH1_yuanzheng_won_defender.t
|
||||
desc = az_DH1_yuanzheng_won_defender.d
|
||||
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
|
||||
}
|
||||
}
|
||||
option = {
|
||||
name = az_DH1_yuanzheng_won_defender.a
|
||||
}
|
||||
}
|
||||
country_event = {
|
||||
id = az_DH1_yuanzheng_lost_defender.1
|
||||
picture = GFX_aze_txluoen2
|
||||
title = az_DH1_yuanzheng_lost_defender.t
|
||||
desc = az_DH1_yuanzheng_lost_defender.d
|
||||
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
|
||||
}
|
||||
}
|
||||
option = {
|
||||
name = az_DH1_yuanzheng_lost_defender.a
|
||||
}
|
||||
}
|
||||
@@ -1,922 +1 @@
|
||||
# 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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user