This commit is contained in:
FA507RM-KALOSPA\Kalo 2023-05-30 09:33:22 +08:00
parent 71a449344a
commit f02278e92c
4 changed files with 190 additions and 100 deletions

View File

@ -12,13 +12,6 @@ on_single_player_save_game_load = {
on_custom_diplomacy = { on_custom_diplomacy = {
events = { events = {
graygoo.505 graygoo.505
rg_graygoo.500
rg_graygoo.501
rg_graygoo.502
rg_graygoo.503
rg_graygoo.504
rg_graygoo.505
} }
} }

View File

@ -321,10 +321,6 @@ country_event = {
is_triggered_only = yes is_triggered_only = yes
trigger = { trigger = {
NOR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
from = { OR = { from = { OR = {
is_country_type = gray is_country_type = gray
is_same_value = ROOT is_same_value = ROOT
@ -341,7 +337,16 @@ country_event = {
} }
immediate = { immediate = {
country_event = { id = rg_grayleader.500 } #放行。 if = {
limit = {
OR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
}
country_event = { id = rg_graygoo.500 }
}
else = {country_event = { id = rg_grayleader.500 } }
} }
} }
@ -352,10 +357,6 @@ country_event = {
is_triggered_only = yes is_triggered_only = yes
trigger = { trigger = {
NOR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
from = { OR = { from = { OR = {
is_country_type = gray is_country_type = gray
is_same_value = ROOT is_same_value = ROOT
@ -370,7 +371,16 @@ country_event = {
} }
immediate = { immediate = {
country_event = { id = rg_grayleader.501 } #放行。 if = {
limit = {
OR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
}
country_event = { id = rg_graygoo.501 }
}
else = {country_event = { id = rg_grayleader.501 } }
} }
} }
@ -381,10 +391,6 @@ country_event = {
is_triggered_only = yes is_triggered_only = yes
trigger = { trigger = {
NOR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
from = { OR = { from = { OR = {
is_country_type = gray is_country_type = gray
is_same_value = ROOT is_same_value = ROOT
@ -401,7 +407,16 @@ country_event = {
} }
immediate = { immediate = {
country_event = { id = rg_grayleader.502 } #放行。 if = {
limit = {
OR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
}
country_event = { id = rg_graygoo.502 }
}
else = {country_event = { id = rg_grayleader.502 } }
} }
} }
@ -412,10 +427,6 @@ country_event = {
is_triggered_only = yes is_triggered_only = yes
trigger = { trigger = {
NOR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
from = { OR = { from = { OR = {
is_country_type = gray is_country_type = gray
is_same_value = ROOT is_same_value = ROOT
@ -440,25 +451,26 @@ country_event = {
} }
immediate = { immediate = {
country_event = { id = rg_grayleader.503 } #放行。 if = {
limit = {
OR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
}
country_event = { id = rg_graygoo.503 }
}
else = {country_event = { id = rg_grayleader.503 } }
} }
} }
# Main Menu (Gray Reforming) # Main Menu (Gray Reforming)
country_event = { country_event = {
id = graygoo.504 id = graygoo.504
title = "graygoo.500.title" hide_window = yes
desc = "graygoo.504.desc"
diplomatic = yes
is_triggered_only = yes is_triggered_only = yes
trigger = { trigger = {
NOR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
from = { OR = { from = { OR = {
is_country_type = gray is_country_type = gray
is_same_value = ROOT is_same_value = ROOT
@ -467,23 +479,17 @@ country_event = {
has_country_flag = gray_reforming has_country_flag = gray_reforming
} }
option = { immediate = {
name = OK if = {
limit = {
OR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
} }
option = {
name = rg_graygoo.504.a
allow = {
has_country_flag = gray_reforming
resource_stockpile_compare = { resource = nanites value >= 1000 }
resource_stockpile_compare = { resource = alloys value >= 50000 }
} }
add_resource = { country_event = { id = rg_graygoo.504 }
nanites = -1000
alloys = -50000
} }
remove_country_flag = gray_reforming else = {country_event = { id = rg_grayleader.504 } }
remove_modifier = "gray_scattered"
} }
} }
@ -494,10 +500,6 @@ country_event = {
is_triggered_only = yes is_triggered_only = yes
trigger = { trigger = {
NOR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
from = { OR = { from = { OR = {
is_country_type = gray is_country_type = gray
is_same_value = ROOT is_same_value = ROOT
@ -515,7 +517,16 @@ country_event = {
} }
immediate = { immediate = {
country_event = { id = rg_grayleader.505 } #放行。 if = {
limit = {
OR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
}
country_event = { id = rg_graygoo.505 }
}
else = {country_event = { id = rg_grayleader.505 } }
} }
} }

View File

@ -11,10 +11,11 @@ country_event = {
has_global_flag = has_wsg_mod has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active has_global_flag = kdc_event_mod_active
} }
fromfrom = { OR = {
is_country_type = gray
is_same_value = ROOT
}}
is_same_value = event_target:gray_owner is_same_value = event_target:gray_owner
NOR = {
has_country_flag = gray_reforming
}
} }
immediate = { immediate = {
@ -24,6 +25,10 @@ country_event = {
has_global_flag = has_wsg_mod has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active has_global_flag = kdc_event_mod_active
} }
fromfrom = { OR = {
is_country_type = gray
is_same_value = ROOT
}}
is_same_value = event_target:gray_owner is_same_value = event_target:gray_owner
NOR = { NOR = {
has_country_flag = gray_constship_active has_country_flag = gray_constship_active
@ -31,9 +36,10 @@ country_event = {
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
has_country_flag = gray_diplomacy_engaged
} }
} }
country_event = { id = graygoo.500 } country_event = { id = rg_grayleader.500 }
} }
else_if = { #501.governor else_if = { #501.governor
limit = { limit = {
@ -41,14 +47,19 @@ country_event = {
has_global_flag = has_wsg_mod has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active has_global_flag = kdc_event_mod_active
} }
fromfrom = { OR = {
is_country_type = gray
is_same_value = ROOT
}}
is_same_value = event_target:gray_owner is_same_value = event_target:gray_owner
has_country_flag = gray_governor_active has_country_flag = gray_governor_active
exists = event_target:gray_governor
NOR = { NOR = {
has_country_flag = gray_reforming has_country_flag = gray_reforming
has_country_flag = gray_diplomacy_engaged
} }
exists = event_target:gray_governor
} }
country_event = { id = graygoo.501 } country_event = { id = rg_grayleader.501 }
} }
else_if = { #502.warship else_if = { #502.warship
limit = { limit = {
@ -56,16 +67,21 @@ country_event = {
has_global_flag = has_wsg_mod has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active has_global_flag = kdc_event_mod_active
} }
fromfrom = { OR = {
is_country_type = gray
is_same_value = ROOT
}}
is_same_value = event_target:gray_owner is_same_value = event_target:gray_owner
has_country_flag = gray_warship_active has_country_flag = gray_warship_active
NOR = {
has_country_flag = gray_reforming
has_country_flag = gray_diplomacy_engaged
}
exists = event_target:gray_warship exists = event_target:gray_warship
any_owned_fleet = { is_same_value = event_target:gray_warship } any_owned_fleet = { is_same_value = event_target:gray_warship }
event_target:gray_warship = { num_ships > 0 } event_target:gray_warship = { num_ships > 0 }
NOR = {
has_country_flag = gray_reforming
} }
} country_event = { id = rg_grayleader.502 }
country_event = { id = graygoo.502 }
} }
else_if = { #503.army else_if = { #503.army
limit = { limit = {
@ -73,7 +89,16 @@ country_event = {
has_global_flag = has_wsg_mod has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active has_global_flag = kdc_event_mod_active
} }
fromfrom = { OR = {
is_country_type = gray
is_same_value = ROOT
}}
has_country_flag = gray_army_active has_country_flag = gray_army_active
NOR = {
has_country_flag = gray_reforming
has_country_flag = gray_diplomacy_engaged
}
is_same_value = event_target:gray_owner is_same_value = event_target:gray_owner
any_owned_army = { any_owned_army = {
army_type = gray_army army_type = gray_army
@ -85,11 +110,8 @@ country_event = {
} }
} }
} }
NOR = {
has_country_flag = gray_reforming
} }
} country_event = { id = rg_grayleader.503 }
country_event = { id = graygoo.503 }
} }
else_if = { #505.scienceship else_if = { #505.scienceship
limit = { limit = {
@ -97,16 +119,37 @@ country_event = {
has_global_flag = has_wsg_mod has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active has_global_flag = kdc_event_mod_active
} }
fromfrom = { OR = {
is_country_type = gray
is_same_value = ROOT
}}
is_same_value = event_target:gray_owner is_same_value = event_target:gray_owner
has_country_flag = gray_constship_active has_country_flag = gray_constship_active
NOR = {
has_country_flag = gray_reforming
has_country_flag = gray_diplomacy_engaged
}
exists = event_target:global_gray_constship exists = event_target:global_gray_constship
any_owned_fleet = { is_same_value = event_target:global_gray_constship } any_owned_fleet = { is_same_value = event_target:global_gray_constship }
event_target:global_gray_constship = { num_ships > 0 } event_target:global_gray_constship = { num_ships > 0 }
}
country_event = { id = rg_grayleader.505 }
}
else_if = { #504.gale
limit = {
NOR = { NOR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
fromfrom = { OR = {
is_country_type = gray
is_same_value = ROOT
}}
is_same_value = event_target:gray_owner
has_country_flag = gray_reforming has_country_flag = gray_reforming
} }
} country_event = { id = graygoo.504 }
country_event = { id = graygoo.505 }
} }
} }
@ -149,7 +192,7 @@ country_event = {
has_global_flag = has_wsg_mod has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active has_global_flag = kdc_event_mod_active
} }
from = { OR = { fromfrom = { OR = {
is_country_type = gray is_country_type = gray
is_same_value = ROOT is_same_value = ROOT
}} }}
@ -259,7 +302,7 @@ country_event = {
has_global_flag = has_wsg_mod has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active has_global_flag = kdc_event_mod_active
} }
from = { OR = { fromfrom = { OR = {
is_country_type = gray is_country_type = gray
is_same_value = ROOT is_same_value = ROOT
}} }}
@ -384,7 +427,7 @@ country_event = {
has_global_flag = has_wsg_mod has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active has_global_flag = kdc_event_mod_active
} }
from = { OR = { fromfrom = { OR = {
is_country_type = gray is_country_type = gray
is_same_value = ROOT is_same_value = ROOT
}} }}
@ -738,7 +781,7 @@ country_event = {
has_global_flag = has_wsg_mod has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active has_global_flag = kdc_event_mod_active
} }
from = { OR = { fromfrom = { OR = {
is_country_type = gray is_country_type = gray
is_same_value = ROOT is_same_value = ROOT
}} }}
@ -1010,6 +1053,49 @@ country_event = {
} }
} }
# Main Menu (Gray Reforming)
country_event = {
id = rg_grayleader.504
title = "graygoo.500.title"
desc = "graygoo.504.desc"
diplomatic = yes
is_triggered_only = yes
trigger = {
NOR = {
has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active
}
from = { OR = {
is_country_type = gray
is_same_value = ROOT
}}
is_same_value = event_target:gray_owner
has_country_flag = gray_reforming
}
option = {
name = OK
}
option = {
name = rg_graygoo.504.a
allow = {
has_country_flag = gray_reforming
resource_stockpile_compare = { resource = nanites value >= 1000 }
resource_stockpile_compare = { resource = alloys value >= 50000 }
}
add_resource = {
nanites = -1000
alloys = -50000
}
remove_country_flag = gray_reforming
remove_modifier = "gray_scattered"
}
}
# Main Menu (const) # Main Menu (const)
country_event = { country_event = {
id = rg_grayleader.505 id = rg_grayleader.505
@ -1034,7 +1120,7 @@ country_event = {
has_global_flag = has_wsg_mod has_global_flag = has_wsg_mod
has_global_flag = kdc_event_mod_active has_global_flag = kdc_event_mod_active
} }
from = { OR = { fromfrom = { OR = {
is_country_type = gray is_country_type = gray
is_same_value = ROOT is_same_value = ROOT
}} }}

View File

@ -35,7 +35,7 @@ country_event = {
has_global_flag = kdc_event_mod_active has_global_flag = kdc_event_mod_active
} }
from = { OR = { fromfrom = { OR = {
is_country_type = gray is_country_type = gray
is_same_value = ROOT is_same_value = ROOT
}} }}
@ -196,7 +196,7 @@ country_event = {
has_global_flag = kdc_event_mod_active has_global_flag = kdc_event_mod_active
} }
from = { OR = { fromfrom = { OR = {
is_country_type = gray is_country_type = gray
is_same_value = ROOT is_same_value = ROOT
}} }}
@ -354,7 +354,7 @@ country_event = {
has_global_flag = kdc_event_mod_active has_global_flag = kdc_event_mod_active
} }
from = { OR = { fromfrom = { OR = {
is_country_type = gray is_country_type = gray
is_same_value = ROOT is_same_value = ROOT
}} }}
@ -750,7 +750,7 @@ country_event = {
has_global_flag = kdc_event_mod_active has_global_flag = kdc_event_mod_active
} }
from = { OR = { fromfrom = { OR = {
is_country_type = gray is_country_type = gray
is_same_value = ROOT is_same_value = ROOT
}} }}
@ -1064,7 +1064,7 @@ country_event = {
trigger = { trigger = {
has_global_flag = has_wsg_mod has_global_flag = has_wsg_mod
from = { OR = { fromfrom = { OR = {
is_country_type = gray is_country_type = gray
is_same_value = ROOT is_same_value = ROOT
}} }}
@ -1133,7 +1133,7 @@ country_event = {
has_global_flag = kdc_event_mod_active has_global_flag = kdc_event_mod_active
} }
from = { OR = { fromfrom = { OR = {
is_country_type = gray is_country_type = gray
is_same_value = ROOT is_same_value = ROOT
}} }}