406 lines
8.3 KiB
Plaintext
Executable File
406 lines
8.3 KiB
Plaintext
Executable File
add_namespace = MTG_naval_treaty
|
|
|
|
# Country invited to join naval treaty
|
|
country_event = {
|
|
id = MTG_naval_treaty.1
|
|
title = MTG_naval_treaty.1.t
|
|
desc = MTG_naval_treaty.1.desc
|
|
picture = GFX_report_event_usa_heavy_cruiser
|
|
|
|
is_triggered_only = yes
|
|
|
|
option = { #accept
|
|
name = MTG_naval_treaty.1.a
|
|
ai_chance = {
|
|
factor = 70
|
|
modifier = {
|
|
has_government = democratic
|
|
factor = 5
|
|
}
|
|
modifier = {
|
|
has_government = fascism
|
|
factor = 0.25
|
|
}
|
|
}
|
|
if = {
|
|
limit = { has_global_flag = MTG_second_london_conference }
|
|
add_ideas = MTG_naval_treaty_adherent
|
|
}
|
|
else = {
|
|
add_ideas = MTG_naval_treaty_adherent_1936
|
|
}
|
|
modify_global_flag = {
|
|
flag = MTG_naval_treaty_signatories
|
|
value = 1
|
|
}
|
|
every_other_country = {
|
|
limit = {
|
|
has_naval_treaty_trigger = yes
|
|
}
|
|
country_event = { id = MTG_naval_treaty.2 days = 3 }
|
|
add_ai_strategy = {
|
|
type = protect
|
|
id = PREV
|
|
value = 100
|
|
}
|
|
}
|
|
}
|
|
option = { #refuse
|
|
name = MTG_naval_treaty.1.b
|
|
ai_chance = {
|
|
factor = 30
|
|
}
|
|
set_country_flag = MTG_refused_naval_treaty
|
|
every_other_country = {
|
|
limit = {
|
|
has_naval_treaty_trigger = yes
|
|
}
|
|
add_opinion_modifier = {
|
|
target = PREV
|
|
modifier = refused_naval_treaty
|
|
}
|
|
country_event = { id = MTG_naval_treaty.3 days = 3 }
|
|
add_ai_strategy = {
|
|
type = contain
|
|
id = PREV
|
|
value = 100
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#country accepts naval treaty
|
|
country_event = {
|
|
id = MTG_naval_treaty.2
|
|
title = MTG_naval_treaty.2.t
|
|
desc = MTG_naval_treaty.2.desc
|
|
picture = GFX_report_event_naval_treaty
|
|
|
|
is_triggered_only = yes
|
|
|
|
option = { #great
|
|
name = MTG_naval_treaty.2.a
|
|
effect_tooltip = {
|
|
FROM = {
|
|
if = {
|
|
limit = { has_global_flag = MTG_second_london_conference }
|
|
add_ideas = MTG_naval_treaty_adherent
|
|
}
|
|
else = {
|
|
add_ideas = MTG_naval_treaty_adherent_1936
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#country refuses naval treaty
|
|
country_event = {
|
|
id = MTG_naval_treaty.3
|
|
title = MTG_naval_treaty.3.t
|
|
desc = MTG_naval_treaty.3.desc
|
|
picture = GFX_report_event_usa_heavy_cruiser
|
|
|
|
is_triggered_only = yes
|
|
|
|
option = { #bad end
|
|
name = MTG_naval_treaty.3.a
|
|
}
|
|
}
|
|
#country is warned about the size of its fleet, can commit to disarmament
|
|
country_event = {
|
|
id = MTG_naval_treaty.4
|
|
title = MTG_naval_treaty.4.t
|
|
desc = MTG_naval_treaty.4.desc
|
|
picture = GFX_report_event_usa_heavy_cruiser
|
|
|
|
is_triggered_only = yes
|
|
|
|
option = { #disarmament
|
|
name = MTG_naval_treaty.4.a
|
|
ai_chance = {
|
|
factor = 70
|
|
}
|
|
if = {
|
|
limit = {
|
|
NOT = { has_naval_treaty_trigger = yes }
|
|
}
|
|
activate_mission = MTG_treaty_reduction_mission
|
|
FROM = {
|
|
country_event = { id = MTG_naval_treaty.5 days = 3 }
|
|
}
|
|
}
|
|
else = {
|
|
activate_mission = MTG_treaty_reduction_signatory_mission
|
|
FROM = {
|
|
country_event = { id = MTG_naval_treaty.5 days = 3 }
|
|
}
|
|
}
|
|
}
|
|
option = {# no deals
|
|
name = MTG_naval_treaty.4.b
|
|
ai_chance = {
|
|
factor = 30
|
|
modifier = {
|
|
has_government = democratic
|
|
factor = 0
|
|
}
|
|
}
|
|
if = {
|
|
limit = {
|
|
has_naval_treaty_trigger = yes
|
|
}
|
|
add_stability = -0.1
|
|
add_political_power = -150
|
|
remove_naval_treaty_effect = yes
|
|
every_other_country = {
|
|
limit = {
|
|
has_naval_treaty_trigger = yes
|
|
}
|
|
country_event = MTG_naval_treaty.7
|
|
}
|
|
if = {
|
|
limit = {
|
|
has_global_flag = {
|
|
flag = MTG_naval_treaty_signatories
|
|
value < 3
|
|
}
|
|
}
|
|
random_other_country = {
|
|
limit = {
|
|
has_naval_treaty_trigger = yes
|
|
}
|
|
remove_naval_treaty_effect = yes
|
|
}
|
|
hidden_effect = { news_event = mtg_news.60 }
|
|
else = {
|
|
modify_global_flag = {
|
|
flag = MTG_naval_treaty_signatories
|
|
value = -1
|
|
}
|
|
}
|
|
}
|
|
if = {
|
|
limit = {
|
|
not = {
|
|
any_other_country = {
|
|
OR = {
|
|
has_idea = MTG_naval_treaty_cheating_reduced
|
|
has_idea = MTG_naval_treaty_adherent_reduced
|
|
}
|
|
}
|
|
}
|
|
}
|
|
every_other_country = {
|
|
limit = {
|
|
OR = {
|
|
has_idea = MTG_naval_treaty_cheating
|
|
has_idea = MTG_naval_treaty_adherent
|
|
}
|
|
}
|
|
activate_mission = MTG_escalator_clause_invocation_mission
|
|
custom_effect_tooltip = MTG_escalator_clause_tt
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#country accepts disarmament
|
|
country_event = {
|
|
id = MTG_naval_treaty.5
|
|
title = MTG_naval_treaty.5.t
|
|
desc = MTG_naval_treaty.5.desc
|
|
picture = GFX_report_event_naval_treaty
|
|
|
|
is_triggered_only = yes
|
|
|
|
option = { #great
|
|
name = MTG_naval_treaty.5.a
|
|
effect_tooltip = {
|
|
FROM = {
|
|
activate_mission = MTG_treaty_reduction_mission
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#country ignores warning
|
|
country_event = {
|
|
id = MTG_naval_treaty.6
|
|
title = MTG_naval_treaty.6.t
|
|
desc = MTG_naval_treaty.6.desc
|
|
picture = GFX_report_event_usa_heavy_cruiser
|
|
|
|
is_triggered_only = yes
|
|
|
|
option = { #emabrgo them!
|
|
name = MTG_naval_treaty.6.a
|
|
ai_chance = {
|
|
factor = 70
|
|
modifier = {
|
|
has_war = yes
|
|
factor = 0.25
|
|
}
|
|
modifier = {
|
|
has_war_support < 0.2
|
|
factor = 0.5
|
|
}
|
|
}
|
|
send_embargo = FROM
|
|
add_opinion_modifier = {
|
|
target = FROM
|
|
modifier = broken_naval_treaty_opinion_mod
|
|
}
|
|
}
|
|
option = {# fine
|
|
name = MTG_naval_treaty.6.b
|
|
ai_chance = {
|
|
factor = 30
|
|
modifier = {
|
|
has_completed_focus = ENG_enforce_the_naval_treaties
|
|
factor = 0
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#country leaves treaty, notification for other countries
|
|
country_event = {
|
|
id = MTG_naval_treaty.7
|
|
title = MTG_naval_treaty.7.t
|
|
desc = MTG_naval_treaty.7.desc
|
|
picture = GFX_report_event_ast_navy
|
|
|
|
is_triggered_only = yes
|
|
|
|
option = { #great
|
|
name = MTG_naval_treaty.7.a
|
|
effect_tooltip = {
|
|
FROM = {
|
|
remove_naval_treaty_effect = yes
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#hidden event to remove treaty if two majors are at war
|
|
country_event = {
|
|
id = MTG_naval_treaty.10
|
|
|
|
|
|
hidden = yes
|
|
mean_time_to_happen = { days = 2 }
|
|
fire_only_once = yes
|
|
trigger = {
|
|
any_country = {
|
|
has_naval_treaty_trigger = yes
|
|
has_war = yes
|
|
any_enemy_country = {
|
|
is_major = yes
|
|
NOT = { tag = event_target:WTT_current_china_leader} #special exception
|
|
}
|
|
}
|
|
}
|
|
immediate = {
|
|
every_country = {
|
|
limit = {
|
|
has_naval_treaty_trigger = yes
|
|
has_war = no
|
|
}
|
|
country_event = MTG_naval_treaty.11
|
|
}
|
|
every_country = {
|
|
limit = {
|
|
has_naval_treaty_trigger = yes
|
|
}
|
|
remove_naval_treaty_effect = yes
|
|
}
|
|
}
|
|
option = { #great
|
|
}
|
|
}
|
|
|
|
#notification event that the naval treaty is null and void due to war being declared
|
|
country_event = {
|
|
id = MTG_naval_treaty.11
|
|
title = MTG_naval_treaty.11.t
|
|
desc = MTG_naval_treaty.11.desc
|
|
picture = GFX_report_event_ast_navy
|
|
|
|
is_triggered_only = yes
|
|
|
|
option = { #great
|
|
name = MTG_naval_treaty.11.a
|
|
}
|
|
}
|
|
|
|
country_event = { #notification about 2nd London Naval Conference
|
|
id = MTG_naval_treaty.12
|
|
title = MTG_naval_treaty.12.t
|
|
desc = MTG_naval_treaty.12.d
|
|
picture = GFX_report_event_second_london_treaty
|
|
|
|
is_triggered_only = yes
|
|
|
|
option = { #yes
|
|
name = MTG_naval_treaty.12.a
|
|
if = {
|
|
limit = { has_idea = MTG_naval_treaty_adherent }
|
|
swap_ideas = {
|
|
remove_idea = MTG_naval_treaty_adherent
|
|
add_idea = MTG_naval_treaty_adherent_1936
|
|
}
|
|
}
|
|
else = {
|
|
swap_ideas = {
|
|
remove_idea = MTG_naval_treaty_cheating
|
|
add_idea = MTG_naval_treaty_adherent_1936
|
|
}
|
|
}
|
|
|
|
if = {
|
|
limit = {
|
|
OR = {
|
|
has_government = fascism
|
|
has_government = communism
|
|
tag = CHY
|
|
}
|
|
}
|
|
custom_effect_tooltip = fascism_renew_naval_treaty_tt
|
|
add_political_power = -100
|
|
}
|
|
else = {
|
|
custom_effect_tooltip = democracy_renew_naval_treaty_tt
|
|
add_political_power = 10
|
|
}
|
|
set_country_flag = MTG_second_london_treaty_signed
|
|
|
|
ai_chance = {
|
|
factor = 100
|
|
modifier = {
|
|
OR = {
|
|
has_government = fascism
|
|
has_government = communism
|
|
tag = CHY
|
|
}
|
|
factor = 0
|
|
}
|
|
}
|
|
}
|
|
option = { #no
|
|
name = MTG_naval_treaty.12.b
|
|
modify_global_flag = { flag = MTG_naval_treaty_violator value = 1 }
|
|
|
|
ai_chance = {
|
|
factor = 10
|
|
modifier = {
|
|
NOT = {
|
|
has_government = fascism
|
|
has_government = communism
|
|
}
|
|
factor = 0
|
|
}
|
|
modifier = {
|
|
tag = CHY
|
|
add = 100
|
|
}
|
|
}
|
|
}
|
|
} |