Compare commits

..

No commits in common. "7f928c6f678dcda2313cfefb8167b3f1cf61f2db" and "9f895b4a324d0cd5676bbf0c79c2083b36843c3b" have entirely different histories.

9 changed files with 392 additions and 233 deletions

View File

@ -1,63 +0,0 @@
option = {
name = marry_gray
trigger = {
RG_OR_has_wsg_mod_trigger = yes
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
}
}
}

View File

@ -1,34 +0,0 @@
option = {
name = marry_gray
trigger = {
RG_OR_has_wsg_mod_trigger = yes
check_variable = {
which = wg_gray_affection
value > @wg_gray_affection_to_lv4
}
NOT = {
has_country_flag = married_gray
}
}
allow = {
OR = {
has_wg_special_authority = no
custom_tooltip = {
check_variable = {
which = wsg_rings
value >= 1
}
fail_text = not_enough_engagement_rings
}
}
}
subtract_variable = {
which = wsg_rings
value = 1
}
hidden_effect = {
country_event = {
id = wg_affection.30000
}
}
}

View File

@ -1,37 +0,0 @@
option = {
name = marry_gray
trigger = {
RG_OR_has_wsg_mod_trigger = yes
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 }}
}

View File

@ -22,18 +22,4 @@ RG_planet_can_auto_build = {
has_deposit = d_trade_value_10 has_deposit = d_trade_value_10
has_planet_flag = RG_work_bees_built has_planet_flag = RG_work_bees_built
} }
} }
RG_NOR_has_wsg_mod_trigger = {
NOR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
}
RG_OR_has_wsg_mod_trigger = {
OR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
}

View File

@ -314,7 +314,7 @@ country_event = {
rg_gray_country_init = yes #创建国家 rg_gray_country_init = yes #创建国家
} }
rg_gray_country_after_init = yes rg_gray_country_after_init = yes
set_country_flag = machine_age_nanites_studied set_country_flag = machine_age_nanites_studied
create_message = { create_message = {
type = MESSAGE_RECRUITED_LEADER type = MESSAGE_RECRUITED_LEADER
localization = "rg_event.2.desc" localization = "rg_event.2.desc"
@ -346,7 +346,7 @@ country_event = {
has_country_flag = gray_constship_active has_country_flag = gray_constship_active
OR = { OR = {
has_country_flag = gray_official_active has_country_flag = gray_official_active
has_country_flag = gray_governor_active #旧版flag has_country_flag = gray_governor_active #旧版flag
} }
has_country_flag = gray_warship_active has_country_flag = gray_warship_active
has_country_flag = gray_army_active has_country_flag = gray_army_active
@ -357,7 +357,10 @@ country_event = {
immediate = { immediate = {
if = { if = {
limit = { limit = {
RG_OR_has_wsg_mod_trigger = yes OR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
} }
country_event = { country_event = {
id = rg_graygoo.500 id = rg_graygoo.500
@ -386,7 +389,7 @@ country_event = {
is_same_value = event_target:gray_owner is_same_value = event_target:gray_owner
OR = { OR = {
has_country_flag = gray_official_active has_country_flag = gray_official_active
has_country_flag = gray_governor_active #旧版flag has_country_flag = gray_governor_active #旧版flag
} }
NOR = { NOR = {
has_country_flag = gray_reforming has_country_flag = gray_reforming
@ -397,7 +400,10 @@ country_event = {
immediate = { immediate = {
if = { if = {
limit = { limit = {
RG_OR_has_wsg_mod_trigger = yes OR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
} }
country_event = { country_event = {
id = rg_graygoo.501 id = rg_graygoo.501
@ -440,7 +446,10 @@ country_event = {
immediate = { immediate = {
if = { if = {
limit = { limit = {
RG_OR_has_wsg_mod_trigger = yes OR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
} }
country_event = { country_event = {
id = rg_graygoo.502 id = rg_graygoo.502
@ -488,7 +497,10 @@ country_event = {
immediate = { immediate = {
if = { if = {
limit = { limit = {
RG_OR_has_wsg_mod_trigger = yes OR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
} }
country_event = { country_event = {
id = rg_graygoo.503 id = rg_graygoo.503
@ -520,7 +532,10 @@ country_event = {
immediate = { immediate = {
if = { if = {
limit = { limit = {
RG_OR_has_wsg_mod_trigger = yes OR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
} }
country_event = { country_event = {
id = rg_graygoo.504 id = rg_graygoo.504
@ -563,7 +578,10 @@ country_event = {
immediate = { immediate = {
if = { if = {
limit = { limit = {
RG_OR_has_wsg_mod_trigger = yes OR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
} }
country_event = { country_event = {
id = rg_graygoo.505 id = rg_graygoo.505
@ -620,8 +638,8 @@ event = {
} }
immediate = { immediate = {
event_target:gray_owner = { event_target:gray_owner = {
remove_country_flag = gray_official_active #新版flag remove_country_flag = gray_official_active #新版flag
remove_country_flag = gray_governor_active #旧版flag #总督 remove_country_flag = gray_governor_active #旧版flag #总督
remove_country_flag = gray_warship_active #旗舰 remove_country_flag = gray_warship_active #旗舰
remove_country_flag = gray_army_active #陆军 remove_country_flag = gray_army_active #陆军
remove_country_flag = gray_constship_active #科舰 remove_country_flag = gray_constship_active #科舰
@ -630,13 +648,8 @@ event = {
modifier = "gray_scattered" modifier = "gray_scattered"
days = 3600 days = 3600
} }
country_event = { country_event = { id = graygoo.511 }
id = graygoo.511 country_event = { id = graygoo.512 days = 3600 }
}
country_event = {
id = graygoo.512
days = 3600
}
} }
} }
} }
@ -661,16 +674,20 @@ country_event = {
desc = "graygoo.512.a.desc" desc = "graygoo.512.a.desc"
desc = "graygoo.512.b.desc" desc = "graygoo.512.b.desc"
desc = "graygoo.512.c.desc" desc = "graygoo.512.c.desc"
event_window_type = leader_story event_window_type = leader_story
picture = GFX_evt_gray_gooed_planet picture = GFX_evt_gray_gooed_planet
picture_event_data = { picture_event_data = {
portrait = event_target:rg_gray_country_leader portrait = event_target:rg_gray_country_leader
room = root room = root
} }
is_triggered_only = yes is_triggered_only = yes
immediate = { immediate = {
remove_country_flag = gray_reforming remove_country_flag = gray_reforming
} }
option = { option = {
name = graygoo.512.a name = graygoo.512.a
} }

View File

@ -6,7 +6,10 @@ country_event = {
hide_window = yes hide_window = yes
is_triggered_only = yes is_triggered_only = yes
trigger = { trigger = {
RG_NOR_has_wsg_mod_trigger = yes NOR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
fromfrom = { fromfrom = {
OR = { OR = {
is_country_type = gray is_country_type = gray
@ -19,7 +22,10 @@ country_event = {
if = { if = {
limit = { limit = {
#500.initial #500.initial
RG_NOR_has_wsg_mod_trigger = yes NOR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
fromfrom = { fromfrom = {
OR = { OR = {
is_country_type = gray is_country_type = gray
@ -30,7 +36,7 @@ country_event = {
NOR = { NOR = {
has_country_flag = gray_constship_active has_country_flag = gray_constship_active
has_country_flag = gray_official_active has_country_flag = gray_official_active
has_country_flag = gray_governor_active #旧版flag has_country_flag = gray_governor_active #旧版flag
has_country_flag = gray_warship_active has_country_flag = gray_warship_active
has_country_flag = gray_army_active has_country_flag = gray_army_active
has_country_flag = gray_reforming has_country_flag = gray_reforming
@ -44,7 +50,10 @@ country_event = {
else_if = { else_if = {
#501.governor #501.governor
limit = { limit = {
RG_NOR_has_wsg_mod_trigger = yes NOR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
fromfrom = { fromfrom = {
OR = { OR = {
is_country_type = gray is_country_type = gray
@ -54,7 +63,7 @@ country_event = {
is_same_value = event_target:gray_owner is_same_value = event_target:gray_owner
OR = { OR = {
has_country_flag = gray_official_active has_country_flag = gray_official_active
has_country_flag = gray_governor_active #旧版flag has_country_flag = gray_governor_active #旧版flag
} }
NOR = { NOR = {
has_country_flag = gray_reforming has_country_flag = gray_reforming
@ -69,7 +78,10 @@ country_event = {
else_if = { else_if = {
#502.warship #502.warship
limit = { limit = {
RG_NOR_has_wsg_mod_trigger = yes NOR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
fromfrom = { fromfrom = {
OR = { OR = {
is_country_type = gray is_country_type = gray
@ -97,7 +109,10 @@ country_event = {
else_if = { else_if = {
#503.army #503.army
limit = { limit = {
RG_NOR_has_wsg_mod_trigger = yes NOR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
fromfrom = { fromfrom = {
OR = { OR = {
is_country_type = gray is_country_type = gray
@ -130,7 +145,10 @@ country_event = {
else_if = { else_if = {
#505.scienceship #505.scienceship
limit = { limit = {
RG_NOR_has_wsg_mod_trigger = yes NOR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
fromfrom = { fromfrom = {
OR = { OR = {
is_country_type = gray is_country_type = gray
@ -158,7 +176,10 @@ country_event = {
else_if = { else_if = {
#504.gale #504.gale
limit = { limit = {
RG_NOR_has_wsg_mod_trigger = yes NOR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
fromfrom = { fromfrom = {
OR = { OR = {
is_country_type = gray is_country_type = gray
@ -202,7 +223,10 @@ country_event = {
} }
} }
trigger = { trigger = {
RG_NOR_has_wsg_mod_trigger = yes NOR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
fromfrom = { fromfrom = {
OR = { OR = {
is_country_type = gray is_country_type = gray
@ -213,7 +237,7 @@ country_event = {
NOR = { NOR = {
has_country_flag = gray_constship_active has_country_flag = gray_constship_active
has_country_flag = gray_official_active has_country_flag = gray_official_active
has_country_flag = gray_governor_active #旧版flag has_country_flag = gray_governor_active #旧版flag
has_country_flag = gray_warship_active has_country_flag = gray_warship_active
has_country_flag = gray_army_active has_country_flag = gray_army_active
has_country_flag = gray_reforming has_country_flag = gray_reforming
@ -227,7 +251,7 @@ country_event = {
trigger = { trigger = {
NOR = { NOR = {
has_country_flag = gray_official_active has_country_flag = gray_official_active
has_country_flag = gray_governor_active #旧版flag has_country_flag = gray_governor_active #旧版flag
} }
} }
hidden_effect = { hidden_effect = {
@ -346,7 +370,6 @@ country_event = {
} }
} }
} }
inline_script = "events/rg_wsg_marry_gray_option_500_scripts"
option = { option = {
name = graygoo.500.d name = graygoo.500.d
tag = hire_leader tag = hire_leader
@ -375,12 +398,15 @@ country_event = {
event_window_type = leader_recruit event_window_type = leader_recruit
picture_event_data = { picture_event_data = {
portrait = event_target:gray_governor portrait = event_target:gray_governor
planet_background = event_target:gray_official_planet planet_background = event_target:gray_governor_planet
room = root room = root
} }
is_triggered_only = yes is_triggered_only = yes
trigger = { trigger = {
RG_NOR_has_wsg_mod_trigger = yes NOR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
fromfrom = { fromfrom = {
OR = { OR = {
is_country_type = gray is_country_type = gray
@ -390,7 +416,7 @@ country_event = {
is_same_value = event_target:gray_owner is_same_value = event_target:gray_owner
OR = { OR = {
has_country_flag = gray_official_active has_country_flag = gray_official_active
has_country_flag = gray_governor_active #旧版flag has_country_flag = gray_governor_active #旧版flag
} }
NOR = { NOR = {
has_country_flag = gray_reforming has_country_flag = gray_reforming
@ -403,25 +429,25 @@ country_event = {
if = { if = {
limit = { limit = {
any_owned_planet = { any_owned_planet = {
exists = leader exists = sector.leader
leader = { sector.leader = {
is_same_value = event_target:gray_official is_same_value = event_target:gray_governor
} }
} }
} }
random_owned_planet = { random_owned_planet = {
limit = { limit = {
exists = leader exists = sector.leader
leader = { sector.leader = {
is_same_value = event_target:gray_official is_same_value = event_target:gray_governor
} }
} }
save_event_target_as = gray_official_planet save_event_target_as = gray_governor_planet
} }
} }
else = { else = {
capital_scope = { capital_scope = {
save_event_target_as = gray_official_planet save_event_target_as = gray_governor_planet
} }
} }
} }
@ -438,8 +464,7 @@ country_event = {
allow = { allow = {
hidden_trigger = { hidden_trigger = {
exists = event_target:gray_governor exists = event_target:gray_governor
} } # To prevent exploit
# To prevent exploit
} }
hidden_effect = { hidden_effect = {
rg_create_gray_warship = yes rg_create_gray_warship = yes
@ -533,7 +558,6 @@ country_event = {
} }
} }
} }
inline_script = "events/rg_wsg_marry_gray_option_scripts"
option = { option = {
name = graygoo.500.d name = graygoo.500.d
tag = hire_leader tag = hire_leader
@ -566,7 +590,10 @@ country_event = {
} }
is_triggered_only = yes is_triggered_only = yes
trigger = { trigger = {
RG_NOR_has_wsg_mod_trigger = yes NOR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
fromfrom = { fromfrom = {
OR = { OR = {
is_country_type = gray is_country_type = gray
@ -898,7 +925,6 @@ country_event = {
} }
} }
} }
inline_script = "events/rg_wsg_marry_gray_option_scripts"
option = { option = {
name = graygoo.500.d name = graygoo.500.d
tag = hire_leader tag = hire_leader
@ -931,7 +957,10 @@ country_event = {
} }
is_triggered_only = yes is_triggered_only = yes
trigger = { trigger = {
RG_NOR_has_wsg_mod_trigger = yes NOR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
fromfrom = { fromfrom = {
OR = { OR = {
is_country_type = gray is_country_type = gray
@ -1216,7 +1245,7 @@ country_event = {
has_country_flag = rg_habitat_enabled has_country_flag = rg_habitat_enabled
} }
allow = { allow = {
has_country_flag = rg_juggernaut_fired # To prevent exploit has_country_flag = rg_juggernaut_fired # To prevent exploit
} }
custom_tooltip = rg_need_manual_toggle custom_tooltip = rg_need_manual_toggle
hidden_effect = { hidden_effect = {
@ -1271,7 +1300,6 @@ country_event = {
} }
} }
} }
inline_script = "events/rg_wsg_marry_gray_option_scripts"
option = { option = {
name = graygoo.500.d name = graygoo.500.d
tag = hire_leader tag = hire_leader
@ -1296,7 +1324,10 @@ country_event = {
diplomatic = yes diplomatic = yes
is_triggered_only = yes is_triggered_only = yes
trigger = { trigger = {
RG_NOR_has_wsg_mod_trigger = yes NOR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
from = { from = {
OR = { OR = {
is_country_type = gray is_country_type = gray
@ -1309,7 +1340,6 @@ country_event = {
option = { option = {
name = OK name = OK
} }
inline_script = "events/rg_wsg_marry_gray_option_504_scripts"
# option = { # option = {
# name = rg_graygoo.504.a # name = rg_graygoo.504.a
# allow = { # allow = {
@ -1350,7 +1380,10 @@ country_event = {
} }
is_triggered_only = yes is_triggered_only = yes
trigger = { trigger = {
RG_NOR_has_wsg_mod_trigger = yes NOR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
fromfrom = { fromfrom = {
OR = { OR = {
is_country_type = gray is_country_type = gray
@ -1529,7 +1562,6 @@ country_event = {
} }
} }
} }
inline_script = "events/rg_wsg_marry_gray_option_scripts"
# option = { # 开启建造中继器 # option = { # 开启建造中继器
# name = rg_event.5.e # name = rg_event.5.e
# trigger = { # trigger = {
@ -1802,7 +1834,6 @@ country_event = {
} }
} }
# 私房钱榨干了
country_event = { country_event = {
id = rg_grayleader.6 id = rg_grayleader.6
title = "graygoo.500.title" title = "graygoo.500.title"
@ -1842,7 +1873,6 @@ country_event = {
} }
} }
# 衣柜事件
country_event = { country_event = {
id = rg_grayleader.7 id = rg_grayleader.7
title = "graygoo.500.title" title = "graygoo.500.title"
@ -1924,7 +1954,6 @@ country_event = {
} }
} }
#动态灰风-立绘选择
country_event = { country_event = {
id = rg_grayleader.8 id = rg_grayleader.8
title = "graygoo.500.title" title = "graygoo.500.title"
@ -2008,4 +2037,4 @@ country_event = {
} }
} }
} }
} }

View File

@ -23,7 +23,10 @@ country_event = {
} }
} }
trigger = { trigger = {
RG_OR_has_wsg_mod_trigger = yes OR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
fromfrom = { fromfrom = {
OR = { OR = {
is_country_type = gray is_country_type = gray
@ -34,7 +37,7 @@ country_event = {
NOR = { NOR = {
has_country_flag = gray_constship_active has_country_flag = gray_constship_active
has_country_flag = gray_official_active has_country_flag = gray_official_active
has_country_flag = gray_governor_active #旧版flag has_country_flag = gray_governor_active #旧版flag
has_country_flag = gray_warship_active has_country_flag = gray_warship_active
has_country_flag = gray_army_active has_country_flag = gray_army_active
has_country_flag = gray_reforming has_country_flag = gray_reforming
@ -49,7 +52,7 @@ country_event = {
trigger = { trigger = {
NOR = { NOR = {
has_country_flag = gray_official_active has_country_flag = gray_official_active
has_country_flag = gray_governor_active #旧版flag has_country_flag = gray_governor_active #旧版flag
} }
} }
allow = { allow = {
@ -194,9 +197,10 @@ country_event = {
option = { option = {
name = marry_gray name = marry_gray
trigger = { trigger = {
has_global_flag = has_wsg_mod
check_variable = { check_variable = {
which = wg_gray_affection which = gray_affection_level
value > @wg_gray_affection_to_lv4 value >= 4
} }
NOT = { NOT = {
has_country_flag = married_gray has_country_flag = married_gray
@ -272,7 +276,10 @@ country_event = {
custom_gui_option = wg_new_commu_option custom_gui_option = wg_new_commu_option
is_triggered_only = yes is_triggered_only = yes
trigger = { trigger = {
RG_OR_has_wsg_mod_trigger = yes OR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
fromfrom = { fromfrom = {
OR = { OR = {
is_country_type = gray is_country_type = gray
@ -282,7 +289,7 @@ country_event = {
is_same_value = event_target:gray_owner is_same_value = event_target:gray_owner
OR = { OR = {
has_country_flag = gray_official_active has_country_flag = gray_official_active
has_country_flag = gray_governor_active #旧版flag has_country_flag = gray_governor_active #旧版flag
} }
NOR = { NOR = {
has_country_flag = gray_reforming has_country_flag = gray_reforming
@ -296,25 +303,25 @@ country_event = {
if = { if = {
limit = { limit = {
any_owned_planet = { any_owned_planet = {
exists = leader exists = sector.leader
leader = { sector.leader = {
is_same_value = event_target:gray_official is_same_value = event_target:gray_governor
} }
} }
} }
random_owned_planet = { random_owned_planet = {
limit = { limit = {
exists = leader exists = sector.leader
leader = { sector.leader = {
is_same_value = event_target:gray_official is_same_value = event_target:gray_governor
} }
} }
save_event_target_as = gray_official_planet save_event_target_as = gray_governor_planet
} }
} }
else = { else = {
capital_scope = { capital_scope = {
save_event_target_as = gray_official_planet save_event_target_as = gray_governor_planet
} }
} }
} }
@ -444,7 +451,61 @@ country_event = {
} }
} }
} }
inline_script = "events/rg_wsg_marry_gray_option_scripts" option = {
name = marry_gray
trigger = {
has_global_flag = has_wsg_mod
check_variable = {
which = gray_affection_level
value >= 4
}
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
}
}
}
option = { option = {
name = graygoo.500.d name = graygoo.500.d
default_hide_option = yes default_hide_option = yes
@ -464,7 +525,10 @@ country_event = {
custom_gui_option = wg_new_commu_option custom_gui_option = wg_new_commu_option
is_triggered_only = yes is_triggered_only = yes
trigger = { trigger = {
RG_OR_has_wsg_mod_trigger = yes OR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
fromfrom = { fromfrom = {
OR = { OR = {
is_country_type = gray is_country_type = gray
@ -814,7 +878,61 @@ country_event = {
} }
} }
} }
inline_script = "events/rg_wsg_marry_gray_option_scripts" option = {
name = marry_gray
trigger = {
has_global_flag = has_wsg_mod
check_variable = {
which = gray_affection_level
value >= 4
}
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
}
}
}
option = { option = {
name = graygoo.500.d name = graygoo.500.d
default_hide_option = yes default_hide_option = yes
@ -834,7 +952,10 @@ country_event = {
custom_gui_option = wg_new_commu_option custom_gui_option = wg_new_commu_option
is_triggered_only = yes is_triggered_only = yes
trigger = { trigger = {
RG_OR_has_wsg_mod_trigger = yes OR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
fromfrom = { fromfrom = {
OR = { OR = {
is_country_type = gray is_country_type = gray
@ -1157,7 +1278,60 @@ country_event = {
} }
} }
} }
inline_script = "events/rg_wsg_marry_gray_option_scripts" option = {
name = marry_gray
trigger = {
check_variable = {
which = gray_affection_level
value >= 4
}
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
}
}
}
option = { option = {
name = graygoo.500.d name = graygoo.500.d
default_hide_option = yes default_hide_option = yes
@ -1187,7 +1361,40 @@ country_event = {
option = { option = {
name = OK name = OK
} }
inline_script = "events/rg_wsg_marry_gray_option_504_scripts" option = {
name = marry_gray
trigger = {
has_global_flag = has_wsg_mod
check_variable = {
which = gray_affection_level
value >= 4
}
NOT = {
has_country_flag = married_gray
}
}
allow = {
OR = {
has_wg_special_authority = no
custom_tooltip = {
check_variable = {
which = wsg_rings
value >= 1
}
fail_text = not_enough_engagement_rings
}
}
}
subtract_variable = {
which = wsg_rings
value = 1
}
hidden_effect = {
country_event = {
id = wg_affection.30000
}
}
}
# option = { # option = {
# name = rg_graygoo.504.a # name = rg_graygoo.504.a
# allow = { # allow = {
@ -1225,7 +1432,10 @@ country_event = {
custom_gui_option = wg_new_commu_option custom_gui_option = wg_new_commu_option
is_triggered_only = yes is_triggered_only = yes
trigger = { trigger = {
RG_OR_has_wsg_mod_trigger = yes OR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
fromfrom = { fromfrom = {
OR = { OR = {
is_country_type = gray is_country_type = gray
@ -1414,7 +1624,60 @@ country_event = {
rg_clear_harbitat = yes rg_clear_harbitat = yes
} }
} }
inline_script = "events/rg_wsg_marry_gray_option_scripts" option = {
name = marry_gray
trigger = {
check_variable = {
which = gray_affection_level
value >= 4
}
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
}
}
}
option = { option = {
name = graygoo.500.d name = graygoo.500.d
default_hide_option = yes default_hide_option = yes

View File

@ -139,7 +139,6 @@
rg_event.8.b:0 "§B科学家-$NAME_Gray$§!" rg_event.8.b:0 "§B科学家-$NAME_Gray$§!"
rg_event.8.c:0 "§G关闭手动选择立绘§!" rg_event.8.c:0 "§G关闭手动选择立绘§!"
rg_event.8.d:0 "§Y算了§!" rg_event.8.d:0 "§Y算了§!"
rg_event.8.a.desc: "§H灰风扩展动态灰风/灰风肖像美化§!\n\n立绘选择页面。选择你想要的$NAME_Gray$立绘。"
rg_graygoo.4:0 "我需要一些帮助" rg_graygoo.4:0 "我需要一些帮助"
rg_graygoo.4.a.desc:0 "我可以帮你建造一些舰队,或是一些其他我能帮得上的忙。你想让我做什么?" rg_graygoo.4.a.desc:0 "我可以帮你建造一些舰队,或是一些其他我能帮得上的忙。你想让我做什么?"

View File

@ -1,5 +1,5 @@
l_simp_chinese: l_simp_chinese:
NAME_Gray:0 "灰" NAME_Gray:0 ""
GRAY_SPECIES:0 "$NAME_Gray$" GRAY_SPECIES:0 "$NAME_Gray$"
RG_MACHINE:0 "§Y纳米构造体§!" RG_MACHINE:0 "§Y纳米构造体§!"
gray_army_desc:0 "$NAME_Gray$和她的纳米作战母舰,可以轻易扫平一颗星球" gray_army_desc:0 "$NAME_Gray$和她的纳米作战母舰,可以轻易扫平一颗星球"
@ -30,7 +30,6 @@
preset_rg_scion: "§Y誓约计划国§!" preset_rg_scion: "§Y誓约计划国§!"
preset_rg_scion_desc: "出于某种不可告人的目的,远古堕落帝国将其视若己出。他们的远古宗主不会允许其誓约国受到任何外部干扰。" preset_rg_scion_desc: "出于某种不可告人的目的,远古堕落帝国将其视若己出。他们的远古宗主不会允许其誓约国受到任何外部干扰。"
gray_become_ruler: "$NAME_Gray$不能是统治者"
### NANOTECH ### NANOTECH
tradition_rg_nanotech: "§Y纳米重构§!" tradition_rg_nanotech: "§Y纳米重构§!"