From 732aea91fdd85ddd036513527f60d783a7923f96 Mon Sep 17 00:00:00 2001 From: "ProjectKoi-Kalo\\Kalo" Date: Sun, 22 Sep 2024 19:32:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E5=AD=98=E8=88=B0r=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../rg_wsg_marry_gray_option_500_scripts.txt | 37 +++++++++++ .../rg_wsg_marry_gray_option_504_scripts.txt | 63 +++++++++++++++++++ .../rg_wsg_marry_gray_option_scripts.txt | 36 +++++++++++ 3 files changed, 136 insertions(+) create mode 100644 common/inline_scripts/events/rg_wsg_marry_gray_option_500_scripts.txt create mode 100644 common/inline_scripts/events/rg_wsg_marry_gray_option_504_scripts.txt create mode 100644 common/inline_scripts/events/rg_wsg_marry_gray_option_scripts.txt diff --git a/common/inline_scripts/events/rg_wsg_marry_gray_option_500_scripts.txt b/common/inline_scripts/events/rg_wsg_marry_gray_option_500_scripts.txt new file mode 100644 index 0000000..e37ed9f --- /dev/null +++ b/common/inline_scripts/events/rg_wsg_marry_gray_option_500_scripts.txt @@ -0,0 +1,37 @@ +option = { + name = marry_gray + trigger = { + has_global_flag = has_wsg_mod + check_variable = { which = wg_gray_affection value > @wg_gray_affection_to_lv4 } + NOT = { has_country_flag = married_gray } + } + allow = { + OR = { + AND = { + has_wg_special_authority = no + resource_stockpile_compare = { + resource = sr_living_metal + value >= 100 + } + resource_stockpile_compare = { + resource = rare_crystals + value >= 1000 + } + } + custom_tooltip = { + check_variable = { which = wsg_rings value >= 1 } + fail_text = not_enough_engagement_rings + } + } + } + if = { + limit = { has_wg_special_authority = yes } + subtract_variable = { which = wsg_rings value = 1 } + } else = { + add_resource = { + sr_living_metal = -100 + rare_crystals = -1000 + } + } + hidden_effect = { country_event = { id = wg_affection.30000 }} +} \ No newline at end of file diff --git a/common/inline_scripts/events/rg_wsg_marry_gray_option_504_scripts.txt b/common/inline_scripts/events/rg_wsg_marry_gray_option_504_scripts.txt new file mode 100644 index 0000000..a2d156c --- /dev/null +++ b/common/inline_scripts/events/rg_wsg_marry_gray_option_504_scripts.txt @@ -0,0 +1,63 @@ +option = { + name = marry_gray + trigger = { + has_global_flag = has_wsg_mod + check_variable = { + which = wg_gray_affection + value > @wg_gray_affection_to_lv4 + } + NOT = { + has_country_flag = married_gray + } + } + allow = { + OR = { + AND = { + has_wg_special_authority = no + resource_stockpile_compare = { + resource = sr_living_metal + value >= 100 + } + resource_stockpile_compare = { + resource = rare_crystals + value >= 1000 + } + } + custom_tooltip = { + check_variable = { + which = wsg_rings + value >= 1 + } + fail_text = not_enough_engagement_rings + } + } + custom_tooltip = { + fail_text = gray_become_ruler + NOT = { + ruler = { + has_leader_flag = "gray_leader" + } + } + } + } + if = { + limit = { + has_wg_special_authority = yes + } + subtract_variable = { + which = wsg_rings + value = 1 + } + } + else = { + add_resource = { + sr_living_metal = -100 + rare_crystals = -1000 + } + } + hidden_effect = { + country_event = { + id = wg_affection.30000 + } + } +} \ No newline at end of file diff --git a/common/inline_scripts/events/rg_wsg_marry_gray_option_scripts.txt b/common/inline_scripts/events/rg_wsg_marry_gray_option_scripts.txt new file mode 100644 index 0000000..35d50c4 --- /dev/null +++ b/common/inline_scripts/events/rg_wsg_marry_gray_option_scripts.txt @@ -0,0 +1,36 @@ +option = { + name = marry_gray + trigger = { + check_variable = { which = wg_gray_affection value > @wg_gray_affection_to_lv4 } + NOT = { has_country_flag = married_gray } + } + allow = { + OR = { + AND = { + has_wg_special_authority = no + resource_stockpile_compare = { + resource = sr_living_metal + value >= 100 + } + resource_stockpile_compare = { + resource = rare_crystals + value >= 1000 + } + } + custom_tooltip = { + check_variable = { which = wsg_rings value >= 1 } + fail_text = not_enough_engagement_rings + } + } + } + if = { + limit = { has_wg_special_authority = yes } + subtract_variable = { which = wsg_rings value = 1 } + } else = { + add_resource = { + sr_living_metal = -100 + rare_crystals = -1000 + } + } + hidden_effect = { country_event = { id = wg_affection.30000 }} +} \ No newline at end of file