16 Commits

Author SHA1 Message Date
ProjectKoi-Kalo\Kalo
a3abac7897 zc 2024-09-29 18:35:17 +08:00
ProjectKoi-Kalo\Kalo
a5750fb8eb Changes 补en 2024-09-27 17:58:35 +08:00
ProjectKoi-Kalo\Kalo
0d10ffdb6e Changes 修铁灭兄弟 2024-09-27 17:54:38 +08:00
ProjectKoi-Kalo\Kalo
b2ffb07fc6 Changes 种族mergefix 2024-09-25 13:58:51 +08:00
ProjectKoi-Kalo\Kalo
a444204285 Changes 种族merge 2024-09-25 13:44:52 +08:00
ProjectKoi-Kalo\Kalo
478f6dca99 Changes fix merge 2024-09-25 13:04:19 +08:00
ProjectKoi-Kalo\Kalo
8e248545f1 Merge branch 'RG_AG_TEST'
# Conflicts:
#	common/inline_scripts/events/rg_test_gray_skill_varible.txt
#	common/scripted_triggers/RG_scripted_triggers.txt
2024-09-25 13:01:53 +08:00
ProjectKoi-Kalo\Kalo
58d0be3e2b Changeszc 2024-09-25 12:56:40 +08:00
ProjectKoi-Kalo\Kalo
f8979629b2 Changes文件名不知道怎么烂了 2024-09-25 12:15:37 +08:00
ProjectKoi-Kalo\Kalo
fef4de87ea zc 2024-09-25 10:59:36 +08:00
ProjectKoi-Kalo\Kalo
17565cd2ba zc 2024-09-25 10:59:34 +08:00
ProjectKoi-Kalo\Kalo
503df79a18 暂存 2024-09-25 10:32:49 +08:00
ProjectKoi-Kalo\Kalo
efe950f9e6 暂存 2024-09-25 10:32:24 +08:00
ProjectKoi-Kalo\Kalo
7a1d71c8a9 暂存 2024-09-25 09:10:35 +08:00
ProjectKoi-Kalo\Kalo
00ad348916 修改纳米技术赤字情况,调整资源类型和相关效果 2024-09-24 23:43:03 +08:00
ProjectKoi-Kalo\Kalo
8411e7c7bd 暂存 2024-09-24 22:36:39 +08:00
30 changed files with 741 additions and 298 deletions

View File

@@ -0,0 +1,30 @@
option = {
trigger = { has_civic = civic_AG_gray_master }
name = AG_dooropen_master.option
if = {
limit = {
any_country = {
has_civic = civic_AG_gray
}
}
#do nothing
}
else_if = {
limit = {
NOT = {
any_country = {
has_civic = civic_AG_gray
}
}
any_country = {
has_civic = origin_rg_gray
}
has_global_flag = has_rg_mod
}
force_remove_civic = civic_AG_gray_master
}
else = {
country_event = { id = graygoo.499 }
}
}

View File

@@ -155,15 +155,6 @@ option = {
rg_clear_harbitat = yes
}
}
option = {
# help
name = rg_help
hidden_effect = {
country_event = {
id = rg_graygoo.4
}
}
}
option = {
# 衣柜
name = rg_wardrobe

View File

@@ -129,15 +129,6 @@ option = {
}
}
}
option = {
# help
name = rg_help
hidden_effect = {
country_event = {
id = rg_grayleader.4
}
}
}
option = {
# 衣柜
name = rg_wardrobe

View File

@@ -0,0 +1,71 @@
# event:graygoo.499
# 初始化小灰领袖等级
set_variable = {
which = rg_gray_level
value = 1
}
#Country event_target:gray_owner
#存储当前领袖等级
rg_save_gray_leader_level_effect = {
every_owned_leader = {
if = {
###等级检测
limit = {
has_leader_flag = rg_gray_leader
}
#由于目前是leader域所以不能直接导出等级
#导出等级到暂存
export_trigger_value_to_variable = {
trigger = has_skill
variable = rg_gray_level_temp
}
#把leader域中的变量存到country域中
#导入变量
owner = {
set_variable = {
which = rg_gray_level
value = prev.rg_gray_level_temp
}
}
#清理暂存区
clear_variable = rg_gray_level_temp
}
}
}
random_owned_leader = {
#是小灰领袖
limit = {
has_leader_flag = rg_gray_leader
}
export_trigger_value_to_variable = {
trigger = has_skill
variable = rg_gray_level_temp
}
owner = {
set_variable = {
which = rg_gray_level
value = prev.rg_gray_level_temp
}
}
}
}
#country scope
#用的时候就
check_variable = {
which = rg_gray_level
value >= 10
}
#Country event_target:gray_owner
#等级导入,把存储的领袖等级赋予到领袖身上
rg_set_varible_as_leader_level_effect = {
random_owned_leader = {
limit = {
has_leader_flag = rg_gray_leader
}
set_skill = owner.rg_gray_level
}
}

View File

@@ -1,11 +1,12 @@
produces = {
trigger = {
# exists = planet
# planet = {
# OR = {
# rg_is_pc_nano = yes
# }
# }
exists = planet
planet = {
owner = {
RG_tradition5_or_gray_owner_trigger = yes
}
rg_is_pc_nano = yes
}
OR = {
has_trait = rg_machine_maid_trait
}

View File

@@ -180,6 +180,16 @@ on_space_battle_won = {
}
}
# This = owner of fleet 1 (winner)
# From = owner of fleet 2 (loser)
# FromFrom = fleet 1
# FromFromFrom = fleet 2
# Fires when a combat is finished from a lack of enemies
on_space_battle_over = {
events = {
}
}
# This = owner of fleet 1 (loser)
# From = owner of fleet 2 (winner)
# FromFrom = fleet 1

View File

@@ -48,8 +48,11 @@ rg_event_effect_event1_cluster = {
rg_event_effect_event1_cluster_galaxy = {
if = {
limit = {
NOT = {
has_global_flag = origin_rg_gray_1st_global
OR = {
rg_has_ag_origin_trigger = yes
NOT = {
has_global_flag = origin_rg_gray_1st_global
}
}
}
rg_event_effect_event1_gray_galaxy = yes
@@ -65,10 +68,7 @@ rg_event_effect_event1_gray_cluster = {
set_country_flag = origin_rg_gray_cluster
set_country_flag = origin_rg_gray_1st
set_country_flag = rg_gray_level_1
country_event = {
id = rg_event.2
days = 30
}
rg_event_effect_event1_to_event2_effect = yes
add_resource = {
energy = 1000
minerals = 1000
@@ -92,12 +92,37 @@ rg_event_effect_event1_gray_galaxy = {
set_country_flag = origin_rg_gray_galaxy
set_country_flag = origin_rg_gray_1st
set_country_flag = rg_gray_level_1
rg_event_effect_event1_to_event2_effect = yes
save_global_event_target_as = origin_rg_gray_country
if = {
limit = {
rg_has_ag_origin_trigger = yes
}
}
else = {
rg_lcluster_spawn_effect = yes
capital_scope = {
solar_system = {
random_neighbor_system = {
solar_system = {
set_star_flag = lgate
spawn_megastructure = {
type = lgate_base
orbit_angle = 225
orbit_distance = 30
}
}
}
}
}
}
}
rg_event_effect_event1_to_event2_effect = {
country_event = {
id = rg_event.2
days = 30
}
save_global_event_target_as = origin_rg_gray_country
rg_lcluster_spawn_effect = yes
}
rg_event_effect_lcluster_spawn_selecter = {
if = {
@@ -137,7 +162,9 @@ rg_event_effect_lcluster_open = {
has_global_flag = rg_origin_l_cluster # 遥远约定
has_global_flag = gray_origin_activate # 远星之歌
has_global_flag = rg_origin_scion_l_cluster # 未来追迹
rg_has_ag_origin_trigger = yes # 遥远的故事
}
}
country_event = {
id = rg_cluster.2
@@ -160,12 +187,12 @@ rg_event_effect_planet2027_spawn_maid_species = {
plural = this
class = RG_MACHINE
portrait = "rg_machine_maid"
can_be_modified = no
can_be_modified = yes
homeworld = this
namelist = this
gender = this
traits = {
trait = trait_machine_unit
trait = trait_rg_machine_unit
trait = rg_machine_maid_trait
trait = trait_auto_mod_robotic
trait = trait_robot_streamlined_protocols
@@ -173,6 +200,10 @@ rg_event_effect_planet2027_spawn_maid_species = {
}
effect = {
save_global_event_target_as = rg_owner_main_maid_species
set_citizenship_type = {
type = citizenship_full_rg_maid
country = event_target:gray_owner
}
}
}
}
@@ -189,21 +220,39 @@ rg_event_effect_planet2027_spawn_maid_species_non_gray = {
plural = this
class = RG_MACHINE
portrait = "rg_machine_maid"
can_be_modified = no
can_be_modified = yes
homeworld = this
namelist = this
gender = this
traits = {
trait = trait_machine_unit
trait = trait_rg_machine_unit
trait = rg_machine_maid_trait
trait = trait_auto_mod_robotic
trait = trait_robot_streamlined_protocols
trait = trait_robot_luxurious
}
effect = {
save_event_target_as = rg_maid_species
set_citizenship_type = {
type = citizenship_full_rg_maid
country = event_target:gray_owner
}
}
}
}
}
}
rg_event_effect_event2_gray_origin_init = {
rg_gray_country_init = yes
country_event = {
id = graygoo.499
}
give_technology = {
tech = tech_minilaser_gray_1
message = no
}
give_technology = {
tech = tech_object_gray_5
message = no
}
}

View File

@@ -4,7 +4,7 @@ rg_create_fallen_empire_species_effect = {
class = RG_MACHINE
portrait = "rg_machine_maid"
traits = {
trait = trait_machine_unit
trait = trait_rg_machine_unit
trait = trait_robot_domestic_protocols
trait = rg_machine_maid_trait
trait = trait_auto_mod_robotic

View File

@@ -1423,7 +1423,7 @@ RG_const_auto_build_effect = {
#建造空间站
find_closest_planet = {
trigger = {
id = RG_work_bees_trigger.1
id = RG_work_bees_trigger.11
RG_planet_can_auto_build = yes
}
found_planet = {
@@ -1433,7 +1433,7 @@ RG_const_auto_build_effect = {
duration = $station_time$
}
effect = {
id = RG_work_bees_effect.2
id = RG_work_bees_effect.22
#若星系属于母国,则自动建造
if = {
limit = {
@@ -2802,7 +2802,7 @@ rg_gray_country_after_init = {
id = rg_grayleader.7
days = -1
}
rg_juggernaut_habitat_init = yes
# rg_juggernaut_habitat_init = yes
}
rg_timeline_attract_field_init = {

View File

@@ -1,3 +1,23 @@
rg_all_cluster_mod_check = {
OR = {
has_global_flag = l_cluster_origin # l-cluster plus
has_global_flag = rg_origin_l_cluster # 遥远约定
has_global_flag = gray_origin_activate # 远星之歌
has_global_flag = rg_origin_scion_l_cluster # 未来追迹
rg_has_ag_origin_trigger = yes # 遥远的故事
}
}
rg_all_cluster_mod_check_for_scion = {
OR = {
has_global_flag = l_cluster_origin # l-cluster plus
# has_global_flag = rg_origin_l_cluster # 遥远约定
has_global_flag = gray_origin_activate # 远星之歌
# has_global_flag = rg_origin_scion_l_cluster # 未来追迹
rg_has_ag_origin_trigger = yes # 遥远的故事
}
}
RG_planet_can_auto_build = {
OR = {
AND = {
@@ -31,9 +51,33 @@ RG_OR_has_wsg_mod_trigger = {
}
}
RG_AG_has_gray_master_trigger = {
has_civic = civic_AG_gray_master
}
RG_has_gray_cluster_origin_trigger = {
OR = {
has_country_flag = origin_rg_gray #遥远约定
has_country_flag = origin_gray_country #远星之歌
}
}
rg_is_main_species_with_maid_trait_trigger = {
has_trait = rg_machine_maid_trait
OR = {
is_same_species = owner_main_species
is_subspecies = owner_main_species
}
}
RG_tradition5_or_gray_owner_trigger = {
OR = {
RG_gray_harbitat_active_trigger = yes
has_active_tradition = tr_rg_nanotech_5
}
}
rg_has_ag_origin_trigger = {
any_country = {
has_origin = origin_Asgray
}
}

View File

@@ -1,192 +1,150 @@
situation_nanties_deficit = {
picture = GFX_evt_deficit
category = negative
fail_icon = GFX_situation_outcome_meh
fail_icon_frame = GFX_situation_outcome_frame_green
complete_icon = GFX_situation_outcome_bankrupcy
complete_icon_frame = GFX_situation_outcome_frame_red
on_start = {
set_situation_flag = deficit_situation
owner = {
country_event = { id = advisor.20 days = 10 random = 20 }
save_event_target_as = kaleidoscope_new_owner
}
random_playable_country = {
limit = {
has_country_flag = gave_kaleidoscope_to@owner
}
country_event = { id = situation.2025 days = 10 random = 20 }
}
}
on_abort = {
owner = {
add_resource = {
energy = @bailout_basic_base_amount
mult = value:bailout_scaling_factor
}
}
}
start_value = 15
on_monthly = {
random_events = {
80 = 0
20 = origin.4170 # Payback | MSI helping you
}
}
stages = {
deficit_first = {
icon = GFX_situation_stage_1
icon_background = GFX_situation_stage_frame_red
end = 25
modifier = {
planet_researchers_physics_research_produces_add = -0.5
planet_researchers_society_research_produces_add = -0.5
planet_researchers_engineering_research_produces_add = -0.5
diplo_weight_economy_mult = -0.1
planet_pop_assembly_reduction = 0.1
ship_disengage_chance_mult = -0.1
ship_weapon_damage = -0.20
ship_speed_mult = -0.20
}
}
deficit_second = {
icon = GFX_situation_stage_2
icon_background = GFX_situation_stage_frame_red
end = 50
modifier = {
planet_researchers_physics_research_produces_add = -1
planet_researchers_society_research_produces_add = -1
planet_researchers_engineering_research_produces_add = -1
diplo_weight_economy_mult = -0.2
planet_pop_assembly_reduction = 0.2
ship_disengage_chance_mult = -0.25
ship_weapon_damage = -0.40
ship_speed_mult = -0.40
}
}
deficit_third = {
icon = GFX_situation_stage_3
icon_background = GFX_situation_stage_frame_red
end = 75
modifier = {
planet_researchers_physics_research_produces_add = -1.5
planet_researchers_society_research_produces_add = -1.5
planet_researchers_engineering_research_produces_add = -1.5
diplo_weight_economy_mult = -0.33
planet_pop_assembly_reduction = 0.33
ship_disengage_chance_mult = -0.50
ship_weapon_damage = -0.60
ship_speed_mult = -0.60
}
}
deficit_fourth = {
icon = GFX_situation_stage_4
icon_background = GFX_situation_stage_frame_red
end = 100
on_first_enter = {
situation_event = { id = deficit.100 }
}
modifier = {
planet_researchers_physics_research_produces_add = -2
planet_researchers_society_research_produces_add = -2
planet_researchers_engineering_research_produces_add = -2
diplo_weight_economy_mult = -0.5
planet_pop_assembly_reduction = 0.5
ship_disengage_chance_mult = -0.75
planet_jobs_produces_mult = -0.1
ship_weapon_damage = -0.8
ship_speed_mult = -0.8
}
}
}
on_progress_complete = {
country_defaulted_in_situation_tooltip = yes
hidden_effect = {
situation_event = { id = deficit.110 }
}
}
on_fail = {
custom_tooltip = deficit_situation_finish_tooltip
hidden_effect = { destroy_situation = this }
}
monthly_progress = {
base = 0
modifier = {
add = value:deficit_situation_progress_value|RESOURCE|energy|
desc = string_expenditures_greater_than_income_energy
owner = { has_actual_deficit = { RESOURCE = energy } }
}
modifier = {
subtract = 5
desc = string_not_in_deficit_energy
owner = {
resource_income_compare = {
resource = energy
value >= 0
}
}
}
modifier = {
subtract = 1
desc = string_resource_reserves_energy
owner = {
has_negative_income_with_stockpile = { RESOURCE = energy }
}
}
modifier = {
desc = civilian_difficulty
mult = 0.1
situation_monthly_progress > 0
is_difficulty = 0
owner = {
is_ai = no
}
}
modifier = {
desc = cadet_difficulty
mult = 0.5
situation_monthly_progress > 0
is_difficulty = 1
owner = {
is_ai = no
}
}
}
approach = {
name = deficit_approach_do_nothing
icon = GFX_situation_approach_this_is_fine
icon_background = GFX_situation_approach_bg_yellow
default = yes
on_select = {
custom_tooltip = deficit_approach_do_nothing_tooltip
}
ai_weight = {
base = 1
}
}
approach = {
name = deficit_approach_cut_science_investment
icon = GFX_situation_approach_research
icon_background = GFX_situation_approach_bg_red
modifier = {
planet_researchers_produces_mult = -0.5
planet_buildings_energy_upkeep_mult = -0.2
}
ai_weight = {
base = 0
modifier = {
add = 2
current_stage = deficit_third
}
modifier = {
add = 2
current_stage = deficit_fourth
}
}
}
situation_nanites_deficit = {
picture = GFX_evt_deficit
category = negative
fail_icon = GFX_situation_outcome_meh
fail_icon_frame = GFX_situation_outcome_frame_green
complete_icon = GFX_situation_outcome_bankrupcy
complete_icon_frame = GFX_situation_outcome_frame_red
on_start = {
set_situation_flag = deficit_situation
}
on_abort = {
owner = {
add_resource = {
nanites = @bailout_strategic_base_amount
mult = value:bailout_scaling_factor
}
}
}
start_value = 15
stages = {
deficit_first = {
icon = GFX_situation_stage_1
icon_background = GFX_situation_stage_frame_red
end = 25
modifier = {
planet_jobs_upkeep_mult = 0.05
all_technology_research_speed = -0.05
planet_buildings_upkeep_mult = 0.05
megastructures_upkeep_mult = 0.05
}
}
deficit_second = {
icon = GFX_situation_stage_2
icon_background = GFX_situation_stage_frame_red
end = 50
modifier = {
planet_jobs_upkeep_mult = 0.1
all_technology_research_speed = -0.1
planet_buildings_upkeep_mult = 0.1
megastructures_upkeep_mult = 0.1
}
}
deficit_third = {
icon = GFX_situation_stage_3
icon_background = GFX_situation_stage_frame_red
end = 75
modifier = {
planet_jobs_upkeep_mult = 0.15
all_technology_research_speed = -0.2
planet_buildings_upkeep_mult = 0.15
megastructures_upkeep_mult = 0.15
}
}
deficit_fourth = {
icon = GFX_situation_stage_4
icon_background = GFX_situation_stage_frame_red
end = 100
on_first_enter = {
situation_event = {
id = gigadeficit.160
}
}
modifier = {
planet_jobs_upkeep_mult = 0.2
all_technology_research_speed = -0.4
planet_buildings_upkeep_mult = 0.2
megastructures_upkeep_mult = 0.2
}
}
}
on_progress_complete = {
country_defaulted_in_situation_tooltip = yes
hidden_effect = {
situation_event = {
id = rg_deficit.220
}
}
}
on_fail = {
custom_tooltip = deficit_situation_finish_tooltip
hidden_effect = {
destroy_situation = this
}
}
monthly_progress = {
base = 0
modifier = {
add = value:deficit_situation_progress_value|RESOURCE|nanites|
desc = string_expenditures_greater_than_income_nanites
owner = {
has_actual_deficit = {
RESOURCE = nanites
}
}
}
modifier = {
subtract = 3
desc = string_not_in_deficit_nanites
owner = {
resource_income_compare = {
resource = nanites
value >= 0
}
}
}
modifier = {
subtract = 1
desc = string_resource_reserves_nanites
owner = {
has_negative_income_with_stockpile = {
RESOURCE = nanites
}
}
}
}
approach = {
name = deficit_approach_do_nothing
icon = GFX_situation_approach_this_is_fine
icon_background = GFX_situation_approach_bg_yellow
default = yes
on_select = {
custom_tooltip = deficit_approach_do_nothing_tooltip
}
ai_weight = {
base = 1
}
}
approach = {
name = deficit_approach_cut_nanite_usage
icon = GFX_situation_approach_research
icon_background = GFX_situation_approach_bg_red
modifier = {
country_nanites_produces_mult = 0.15
planet_stability_add = -10
planet_structures_cost_mult = 1
megastructures_cost_mult = 1
}
ai_weight = {
base = 0
modifier = {
add = 2
current_stage = deficit_third
}
modifier = {
add = 2
current_stage = deficit_fourth
}
}
}
}

View File

@@ -18,4 +18,5 @@ RG_MACHINE = {
species_trait_points = 10
species_max_traits = 6
robotic = yes
inherit_traits_from = { BIOLOGICAL ROBOT MACHINE }
}

View File

@@ -0,0 +1,21 @@
citizenship_full_rg_maid = {
is_full_citizenship = yes
potential = {
exists = from
from = { is_same_value = event_target:gray_owner }
}
allow = {
hidden_trigger = { exists = from }
custom_tooltip = {
fail_text = RG_MACHINE_SPECIES_NOT_MACHINE
OR = {
has_trait = trait_rg_machine_unit
}
}
}
ai_will_do = {
factor = 100
}
}

View File

@@ -91,6 +91,7 @@ tr_rg_nanotech_3 = {
tech = tech_object_gray_7
message = no
}
rg_create_gray_planetkiller_testship_2 = yes
}
#Unlocks Starbase Building and Make Nanite World Decision
ai_weight = {

View File

@@ -4,12 +4,28 @@ rg_machine_maid_trait = {
}
custom_tooltip = rg_machine_maid_trait_effect_tooltip
initial = no
species_potential_add = { always = no }
species_possible_remove = { always = no }
species_possible_merge_add = { always = no }
species_possible_merge_remove = { always = no }
species_potential_add = {
FROM = {
RG_tradition5_or_gray_owner_trigger = yes
}
}
species_possible_remove = {
FROM = {
RG_tradition5_or_gray_owner_trigger = yes
}
}
species_possible_merge_add = {
FROM = {
RG_tradition5_or_gray_owner_trigger = yes
}
}
species_possible_merge_remove = {
FROM = {
RG_tradition5_or_gray_owner_trigger = yes
}
}
randomized = no
allowed_archetypes = { MACHINE }
allowed_archetypes = { ROBOT MACHINE BIOLOGICAL LITHOID RG_MACHINE }
sorting_priority = 20
potential_crossbreeding_chance = 1.0
@@ -31,7 +47,7 @@ rg_machine_maid_trait = {
exists = planet
planet = {
exists = owner
owner = { is_same_value = event_target:gray_owner }
owner = { has_country_flag = gray_owner }
}
}
planet_jobs_produces_mult = 0.1
@@ -54,11 +70,63 @@ rg_machine_maid_trait = {
}
}
}
}
slave_cost = {
energy = 1000
}
}
trait_rg_machine_unit = {
cost = 0
sorting_priority = 20
initial = no
randomized = no
species_potential_add = {
always = no
}
species_possible_remove = {
always = no
}
species_possible_merge_add = {
FROM = {
RG_tradition5_or_gray_owner_trigger = yes
}
}
species_possible_merge_remove = {
FROM = {
RG_tradition5_or_gray_owner_trigger = yes
}
}
icon = "gfx/interface/icons/traits/trait_machine_unit.dds"
allowed_archetypes = { ROBOT MACHINE BIOLOGICAL LITHOID RG_MACHINE }
immortal_leaders = no
modifier = {
pc_machine_habitability = 1
leader_lifespan_add = 10
habitability_floor_add = 0.5
}
triggered_planet_growth_habitability_modifier = {
potential = {
exists = owner
owner = {
OR = {
has_active_tradition = tr_nanotech_adopt
has_active_tradition = tr_rg_nanotech_adopt
}
}
}
pc_nanotech_habitability = 1
}
leader_age_min = 5
leader_age_max = 10
custom_tooltip_with_modifiers = TRAIT_MACHINE_UNIT_EFFECT
}

View File

@@ -684,6 +684,7 @@ country_event = {
hide_window = yes
is_triggered_only = yes
trigger = {
exists = fromfrom.leader
OR = {
fromfrom.leader = {
has_trait = RG_leader_trait_admiral_nanorebuild_gray
@@ -717,8 +718,9 @@ country_event = {
hide_window = yes
is_triggered_only = yes
trigger = {
exists = fromfromfrom.leader
OR = {
fromfrom.leader = {
fromfromfrom.leader = {
has_trait = RG_leader_trait_admiral_nanorebuild_gray
}
}

159
events/RG_deficit_event.txt Normal file
View File

@@ -0,0 +1,159 @@
namespace = rg_deficit
situation_event = {
id = rg_deficit.170
title = deficit.170.name
desc = {
text = rg_deficit.170.desc
trigger = { owner = { is_machine_empire = no } }
}
desc = {
text = rg_deficit.170.desc.machine
trigger = { owner = { is_machine_empire = yes } }
}
picture = GFX_evt_deficit
show_sound = event_bad_omen
is_triggered_only = yes
situation = this
abort_trigger = {
situation_progress >= 100
}
immediate = {
owner = {
# if normal empire, get all non-sapient or enslaved robots
if = {
limit = {
is_machine_empire = no
}
ordered_owned_planet = {
limit = {
any_owned_pop = {
OR = {
is_shackled_robot = yes
is_non_sapient_robot = yes
}
}
}
order_by = value:num_non_sapient_robots_on_planet
position = 0
save_event_target_as = robots_planet
event_target:robots_planet = {
count_robots_to_recycle = { ALLOYS = 100 }
}
}
}
# if machine empire, the planet with most pops...
else = {
ordered_owned_planet = {
limit = {
any_owned_pop = {
is_robot_pop = yes
}
}
order_by = trigger:num_pops
position = 0
save_event_target_as = robots_planet
event_target:robots_planet = {
# ...and halven the number of recycled bots here
count_robots_to_recycle = { ALLOYS = 100 }
}
}
}
}
}
# scrap all robots on a planet (normal empires)
option = {
name = rg_deficit.170.A
custom_tooltip = rg_deficit.170.A.tooltip
trigger = {
owner = {
is_machine_empire = no
}
exists = event_target:robots_planet
}
hidden_effect = {
event_target:robots_planet = {
every_owned_pop = {
limit = {
OR = {
is_shackled_robot = yes
is_non_sapient_robot = yes
}
}
kill_pop = yes
}
}
owner = {
add_resource = {
nanites = 1
mult = event_target:robots_planet.total_alloys_gained
}
}
}
}
# scrap half robot pops on a planet (machine empires)
option = {
name = rg_deficit.170.B
custom_tooltip = rg_deficit.170.B.tooltip
trigger = {
owner = {
is_machine_empire = yes
}
exists = event_target:robots_planet
}
hidden_effect = {
event_target:robots_planet = {
while = {
count = recycled_robots
random_owned_pop = {
limit = {
is_robot_pop = yes
}
kill_pop = yes
}
}
}
owner = {
add_resource = {
nanites = 1
mult = event_target:robots_planet.total_alloys_gained
}
}
}
}
option = {
name = deficit.100.C
}
}
situation_event = {
id = rg_deficit.220
title = BANKRUPTCY
desc = rg_deficit.175.desc
picture = GFX_evt_deficit
show_sound = event_life_support_fail
is_triggered_only = yes
situation = this
force_open = yes
option = {
name = UNFORTUNATE
owner = {
add_resource = {
nanites = @bailout_strategic_base_amount
mult = value:bailout_scaling_factor
}
country_defaulted_effect = yes
}
}
after = {
destroy_situation = this
}
}

View File

@@ -41,18 +41,7 @@ country_event = {
}
is_triggered_only = yes
immediate = {
rg_gray_country_init = yes
country_event = {
id = graygoo.499
}
give_technology = {
tech = tech_minilaser_gray_1
message = no
}
give_technology = {
tech = tech_object_gray_5
message = no
}
rg_event_effect_event2_gray_origin_init = yes
}
option = {
name = rg_event.2.a
@@ -1193,16 +1182,10 @@ country_event = { # Memorial Valuts Civic Paragon Level Tick / FROM = Leader
}
immediate = {
random_owned_pop = {
limit = {
is_same_species = root
species = {
NOT = {
has_trait = rg_machine_maid_trait
}
}
}
rg_event_effect_planet2027_spawn_maid_species_non_gray = yes
rg_create_gray_planetkiller_testship_2 = yes
modify_species = {
species = root.species
add_trait = rg_machine_maid_trait
}
}
}

View File

@@ -43,10 +43,10 @@ country_event = {
set_country_flag = rg_scion_needs_fe
if = {
limit ={
any_playable_country = {
AND = {
OR = {
rg_all_cluster_mod_check_for_scion = yes
any_playable_country = {
has_origin = origin_rg_gray
# NOT = { has_global_flag = rg_origin_l_cluster }
}
}
}

View File

@@ -42,6 +42,31 @@ planet_event = {
}
set_update_modifiers_batch = end
}
} option = {
trigger = { has_civic = civic_AG_gray_master }
name = AG_dooropen_master.option
if = {
limit = {
any_country = {
has_civic = civic_AG_gray
}
}
#do nothing
}
else_if = {
limit = {
NOT = {
any_country = {
has_civic = civic_AG_gray
}
}
has_global_flag = has_rg_mod
}
force_remove_civic = civic_AG_gray_master
}
else = {
country_event = { id = graygoo.499 }
}
}
# Cracked

View File

@@ -289,30 +289,23 @@ country_event = {
else = {
random_owned_planet = {
limit = {
owner = {
RG_gray_harbitat_active_trigger = yes
is_under_colonization = no
OR = {
is_planet_class = pc_rg_grayhabitat
is_planet_class = pc_nanotech
}
# exists = event_target:rg_gray_habitat_target
PREV = {
any_owned_planet = {
is_under_colonization = no
OR = {
is_planet_class = pc_rg_grayhabitat
is_planet_class = pc_nanotech
}
free_jobs > 0
NOR = {
free_jobs_of_type = {
job = mortal_initiate
value >= 1
}
free_jobs_of_type = {
category = bio_trophy
value >= 1
}
}
free_jobs > 0
NOR = {
free_jobs_of_type = {
job = mortal_initiate
value >= 1
}
free_jobs_of_type = {
category = bio_trophy
value >= 1
}
}
# exists = event_target:rg_gray_habitat_target
}
planet_event = {
id = rg_planet.2027
@@ -388,6 +381,7 @@ planet_event = {
if = {
limit = {
owner = {
exists = event_target:gray_owner
is_same_value = event_target:gray_owner
exists = event_target:rg_owner_main_maid_species
}
@@ -402,18 +396,16 @@ planet_event = {
else = {
if = {
limit = {
owner= {
owner = {
any_owned_species = {
has_trait = rg_machine_maid_trait
is_subspecies = owner_main_species
rg_is_main_species_with_maid_trait_trigger = yes
}
}
}
owner = {
random_owned_species = {
limit = {
has_trait = rg_machine_maid_trait
is_subspecies = owner_main_species
rg_is_main_species_with_maid_trait_trigger = yes
}
save_event_target_as = rg_maid_species
}
@@ -421,7 +413,7 @@ planet_event = {
while = {
count = num_pops
create_pop = {
species = rg_maid_species
species = event_target:rg_maid_species
}
}
}

View File

@@ -37,6 +37,22 @@
situation_rg_nanotech_consume_planet_monthly_change_tooltip: "Nanite Extraction Progress"
situation_rg_nanotech_consume_planet_desc: "Everything, including entire worlds, is destined to be assimilated into our collective, to become a part of us."
rg_deficit.170.desc:1 "[Owner.GetFinancialAdvisorAgencyCap] is getting increasingly concerned about the $nanites$ shortage befalling our empire. Failure to recoup our expenses will bring widespread disruptions to our industry sector."
rg_deficit.170.desc.machine:1 "Budget warning: $nanites$ expenditures surpassing expenditures for multiple subsequent months. Failure to resolve the shortage will bring widespread disruptions to our industry sector."
rg_deficit.170.A:1 "Scrap robots on §Y[robots_planet.GetName]§! for $nanites$ ."
rg_deficit.170.A.tooltip:2 "Dismantle all robots on [robots_planet.GetName] (£pop£ §Y[robots_planet.recycled_robots] Drones§!) to gain £nanites£ §Y[robots_planet.total_alloys_gained] $nanites$ §!"
rg_deficit.170.B:1 "Consolidate. Recycle. Dismantle droids on §Y[robots_planet.GetName]§!."
rg_deficit.170.B.tooltip:2 "Dismantle half of the population on [robots_planet.GetName] (£pop£ §Y[robots_planet.recycled_robots] Drones§!) to gain £nanites£ §Y[robots_planet.total_alloys_gained] $nanites$§!"
rg_deficit.175.desc:1 "Having failed to resolve our $nanites$ shortage, we have been forced to declare bankruptcy and default on our debts. [Owner.GetFinancialAdvisorAgencyCap] is drafting a new austerity plan to cut expenses and preventing this situation from ever happening again."
situation_nanites_deficit: "$nanites$ deficit"
situation_nanites_deficit_type: "$situation_nanites_deficit$"
deficit_approach_cut_nanite_usage: "$nanites$ Rationing"
string_expenditures_greater_than_income_nanites: "$nanites$ Deficit"
string_not_in_deficit_nanites: "Positive Monthly $nanites$ Balance"
string_resource_reserves_nanites: "$nanites$ Reserves"
purge_nanophage: "Nanite Assimilation"
purge_nanophage_tooltip: "Affected populations are gradually split into the [From.GetSpeciesAdj] species, regardless of their own volition."
purge_nanophage_tooltip_delayed: "§ The form of unfreedom is only a constraint that hinders our development. In doing so, their cause will be continued by [From.GetSpeciesNamePlural]. §!"

View File

@@ -20,6 +20,10 @@
RG_AUTOCONST_HANGER_desc:0 "Preloaded worker ships can automatically build star bases after a system survey is completed."
RG_const_country:0 "$NAME_Gray$-automatic engineering team"
citizenship_full_rg_maid: "$RG_MACHINE$"
citizenship_full_rg_maid_tooltip: "The species population is fully customized artificial life used for industrial production."
citizenship_full_rg_maid_tooltip_delayed: "§LDirect Control Mode§!"
rg_nothing:0 ""
rg_nothing_desc:0 ""

View File

@@ -6,7 +6,7 @@
rg_requires_no_nano_ripper: "$TRIGGER_FAIL$Cannot construct in the same system as an existing §Y$rg_nano_ripper_4$§!"
rg_requires_no_nano_ripper_construction: "$TRIGGER_FAIL$Cannot construct in the same system as an ongoing §Y$rg_nano_ripper_4$ construction§!"
allow_rg_nano_ripper: "§HUnlock megastructures§!$rg_nano_ripper_4$"
rg_machine_maid_trait_effect_tooltip: "Each online $pops_with_icon$§! require 0.3 £nanites£$nanites$§Y upkeep§!.\nOn $NAME_Gray$ Owner Country:$TABBED_NEW_LINE$$mod_planet_jobs_produces_mult$§G+10%§!"
rg_machine_maid_trait_effect_tooltip: "Each online $pops_with_icon$§! require 0.3 £nanites£$nanites$§Y upkeep§!.\nPop Housing Usage: §G-90%§!\nSpecies Minimum Habitability: §G+25%§!\nOn $NAME_Gray$ Owner Country:$TABBED_NEW_LINE$$mod_planet_jobs_produces_mult$§G+10%§!"
concept_rg_scion: "$preset_rg_scion$"
concept_rg_scion_desc: "$preset_rg_scion_desc$"
concept_rg_gray: "$NAME_Gray$"
@@ -20,3 +20,4 @@
rg_kogasa_exterminated_desc:0 "The daemon has detected that the integrity of the $NAME_Gray$ personality has been tampered with, and the contamination target has been decontaminated, and the treatment plan is to be rendered harmless."
rg_levelup_2.tooltip:0 "§YIf we abort the renovation project in the middle of the project, we will not be able to get a refund! §!"
rg_need_manual_toggle:0 "§YNote, you need to manually switch the form of $NAME_Gray$ once after changing the ship type§!"
RG_MACHINE_SPECIES_NOT_MACHINE: "$TRIGGER_FAIL$Species must be §Y$trait_rg_machine_unit$§!."

View File

@@ -29,3 +29,5 @@
RG_leader_trait_admiral_timed_life_desc:0 "\n§GSim Dragon's stats increase with age.\n$t$§YEach year of growth is offered§!:\n$tt$§G Additional Ship Weapon Damage +1%§!\n§G Additional Ship Armor Health +1%§!\n§G Additional Ship Hull Health +1%§!$t$\nCurrent Age:§!§R[owner.rg_fake_dragon_timedlife_counter]§!§G year§!\nShe is a simulated life born from an experiment. With every month that passed, she grew a year old. If the way to eternal life cannot be found, the fragile soul will return to its roots."
RG_leader_trait_admiral_born_tobe_dragon:0 "§YBorn Tobe Dragon§!"
RG_leader_trait_admiral_born_tobe_dragon_desc:0 "\n§GSim Dragon's stats increase with age.\n$t$§YEach year of growth is offered§!:\n$tt$§G Additional Ship Weapon Damage +1%§!\n§G Additional Ship Armor Health +1%§!\n§G Additional Ship Hull Health +1%§!$t$\nCurrent Age:§!§R[owner.rg_fake_dragon_timedlife_counter]§!§G year§!\nThe dragon has finally become what it was dreamed of. Legend has it that she opened her shell with one punch and transformed into a dragon."
trait_rg_machine_unit: "$RG_MACHINE$"
trait_rg_machine_unit_desc: "This species is composed of highly advanced biomimetic nanomachines, which are perfectly simulated and indistinguishable from organisms."

View File

@@ -27,6 +27,15 @@
rg_event.403.a:0 "欢迎加入[Root.GetName]"
rg_event.403.a.response:0 "§Y<你现在可以通过通讯菜单与$NAME_Gray$交流。>§!"
rg_deficit.170.desc: "[Owner.GetFinancialAdvisorAgencyCap]现在愈发关心我们帝国发生的$nanites$短缺。如果不能尽快弥补上我们的支出,我们的工业部门将会收到广泛的影响。"
rg_deficit.170.desc.machine: "预算警告:当前$nanites$支出已经超过了接下来数月的支出阈值。若不能解决短缺,将会给我们的工业区域造成广泛的扰乱。"
rg_deficit.170.A: "将§Y[robots_planet.GetName]§!的机器人拆成$nanites$。"
rg_deficit.170.A.tooltip: "拆解[robots_planet.GetName]上的所有机器人£pop£§Y[robots_planet.recycled_robots]子个体§!以获取£nanites£§Y[robots_planet.total_alloys_gained]$nanites$§!"
rg_deficit.170.B: "合并。循环。拆解§Y[robots_planet.GetName]§!上的智能人。"
rg_deficit.170.B.tooltip: "拆解[robots_planet.GetName]上的一半人口£pop£§Y[robots_planet.recycled_robots]子个体§!以获取£nanites£§Y[robots_planet.total_alloys_gained]$nanites$§!"
rg_deficit.175.desc: "由于无法解决$nanites$短缺,我们被迫宣布破产并违约债务。[Owner.GetFinancialAdvisorAgencyCap]正在起草新的紧缩经济计划以削减开支,避免这种情况再度发生。"
#graygoo.505.a.desc:0 "单位65-D-R5-9-2报告这里一切正常。远处的声音机器人又坏了快干活"
#graygoo.505.b.desc:0 "开工啦!开工啦!劳动最光荣!"
#graygoo.505.c.desc:0 "武装工程兵$NAME_Gray$向您报道!下一个目标是什么?"

View File

@@ -23,7 +23,7 @@
tr_rg_nanotech_2_modifier_desc: "§I解锁巨型结构§!§Y$RG_habitat_central_complex$§!\n§I解锁巨型结构§!§Y$rg_nano_ripper_4$§!可从恒星系内所有行星、卫星和小行星上产出大量的£nanites£§Y$nanites$§!"
tr_rg_nanotech_3_modifier_desc: "§Y解锁行星决议§!$decision_rg_nanotech_swarm_consume_world$\n§Y解锁巨像武器§!$tech_object_gray_7$可将星球转变为可殖民的§Y$pc_nanotech$§!"
tr_rg_nanotech_4_modifier_desc: "§Y解锁飞升$rg_ap_nantiematter$\n解锁舰船§!$RG_graygoo_destroyer$\n§Y获得遗珍§!§Y$rg_tempest_invocator$§!允许你召唤宇宙风暴§Y$graytempest_storm$§!"
tr_rg_nanotech_5_modifier_desc: "§Y解锁净化方式$purge_nanophage$§!:将非帝国主体人口同化为我们的一部分。\n所有帝国人口将获得§Y纳米特质§!人口需要£nanites£§Y$nanites$§!维护费。\n每个类型为§Y$pc_nanotech$§!或§Y$pc_rg_grayhabitat$§!的殖民地都将瞬间创建§Y纳米化$pops_with_icon$§!以填补§Y£building£建筑§!和§Y£district£区划§!的£job£岗位需求。"
tr_rg_nanotech_5_modifier_desc: "§Y解锁净化方式$purge_nanophage$§!:将非帝国主体人口同化为我们的一部分。\n所有帝国人口将获得§Y纳米特质§!\n每个类型为§Y$pc_nanotech$§!或§Y$pc_rg_grayhabitat$§!的殖民地都将瞬间创建§Y纳米化$pops_with_icon$§!以填补§Y£building£建筑§!和§Y£district£区划§!的£job£岗位需求。§Y纳米化$pops_with_icon$§!§!需要£nanites£§Y$nanites$§!维护费。"
tr_rg_nanotech_finish_modifier_desc: "§Y解锁舰船§!$RG_graygoo_mothership$\n所有境内恒星基地自动获得内置§Y$sm_nanite_harvester$§!。每§Y5§!年§Y$sm_nanite_harvester_plural$§!都会提升,可能是增加$r_nanites$矿藏的规模,或是直接产出一笔$r_nanites$资源。该效果受到矿藏所依附的行星尺寸的限制。"
decision_rg_server_shut_down: "§R核心关闭§!"
@@ -37,6 +37,13 @@
situation_rg_nanotech_consume_planet_monthly_change_tooltip: "纳米机器人提取进展"
situation_rg_nanotech_consume_planet_desc: "一切事物,包括所有星球,都注定要融入我们的集体,成为我们的一部分。"
situation_nanites_deficit: "$nanites$短缺"
situation_nanites_deficit_type: "$situation_nanites_deficit$"
deficit_approach_cut_nanite_usage: "$nanites$配给"
string_expenditures_greater_than_income_nanites: "$nanites$发生赤字"
string_not_in_deficit_nanites: "$nanites$月度结余为正"
string_resource_reserves_nanites: "$nanites$能量币储备"
purge_nanophage: "纳米同化"
purge_nanophage_tooltip: "受影响的人口会被逐渐裂解为[From.GetSpeciesAdj]物种,无论其自身的意志如何。"
purge_nanophage_tooltip_delayed: "§L不自由的形态只是阻碍我们发展的束缚。秉此之道他们的事业将有[From.GetSpeciesNamePlural]继续践行。§!"

View File

@@ -21,6 +21,10 @@
RG_AUTOCONST_HANGER_desc:0 "预载的工蜂工程舰可以在星系调查完成后自动建造恒星基地。"
RG_const_country:0 "$NAME_Gray$-自动工程队"
citizenship_full_rg_maid: "$RG_MACHINE$"
citizenship_full_rg_maid_tooltip: "该物种人口是完全自定义化用于工业生产的人工生命。"
citizenship_full_rg_maid_tooltip_delayed: "§L进行直接控制。§!"
rg_nothing:0 ""
rg_nothing_desc:0 ""

View File

@@ -6,7 +6,6 @@
rg_requires_no_nano_ripper: "$TRIGGER_FAIL$无法与现存的§Y$rg_nano_ripper_4$§!在同一个恒星系建造"
rg_requires_no_nano_ripper_construction: "$TRIGGER_FAIL$无法与§Y在建的$rg_nano_ripper_4$§!在同一星系建造"
allow_rg_nano_ripper: "§H解锁巨型结构§!$rg_nano_ripper_4$"
rg_machine_maid_trait_effect_tooltip: "每个在线的$pops_with_icon$§!产生0.3£nanites£$nanites$§Y维护费§!。\n在$NAME_Gray$国家工作时:$TABBED_NEW_LINE$$mod_planet_jobs_produces_mult$§G+10%§!"
concept_rg_scion: "$preset_rg_scion$"
concept_rg_scion_desc: "$preset_rg_scion_desc$"
concept_rg_gray: "$NAME_Gray$"
@@ -20,3 +19,4 @@
rg_kogasa_exterminated_desc:0 "守护进程检测到$NAME_Gray$人格完整性遭到篡改,污染目标已被净化,处理方案:无害化处理。"
rg_levelup_2.tooltip:0 "§Y如果我们中途中止改造项目将无法得到退款§!"
rg_need_manual_toggle:0 "§Y注意更改舰种后你需要手动切换一次$NAME_Gray$的形态§!"
RG_MACHINE_SPECIES_NOT_MACHINE: "$TRIGGER_FAIL$物种必须是§Y$trait_rg_machine_unit$§!。"

View File

@@ -1,6 +1,7 @@
l_simp_chinese:
rg_machine_maid_trait:0 "§Y菠萝包网络§!"
rg_machine_maid_trait_desc:0 "这种机械体似乎是由纳米机械所构造的。她们只有有限的个体智能,但每个个体似乎都将心智互相链接组成了一个强大的意识网络。个体的数量越多她们的意识就越强大。"
rg_machine_maid_trait_effect_tooltip: "§Y行星类型§!为§Y$pc_nanotech$§!或§Y$pc_rg_grayhabitat$§!时:$TABBED_NEW_LINE$每个在线的$pops_with_icon$§!产生0.3£nanites£$nanites$§Y维护费§!。\n人口住房使用§G-90%§!\n物种最低宜居性§G+25%§!\n在$NAME_Gray$$TRIGGER_OWNER$国家工作时:$TABBED_NEW_LINE$$mod_planet_jobs_produces_mult$§G+10%§!"
RG_leader_trait_admiral_gray:0 "$rg_nanite_leader$"
RG_leader_trait_admiral_gray_desc:0 "$NAME_Gray$本质上是由千千万万纳米机械所组成的个体,这让她可以自由变换形态重组或快速修复自身。"
RG_leader_trait_admiral_gray_1:0 "$rg_nanite_leader$"
@@ -29,3 +30,5 @@
RG_leader_trait_admiral_timed_life_desc:0 "\n§G模拟龙的属性会随着年龄增长。\n$t$§Y每增长一岁提供§!:\n$tt$§G 额外舰船武器伤害 +1%§!\n§G 额外装甲生命值 +1%§!\n§G 额外船体生命值 +1%§!$t$\n当前§!§R[owner.rg_fake_dragon_timedlife_counter]§!§G岁§!\n她是从一次实验中诞生的模拟生命。时间每流逝一个月她就老去一岁。倘若无法找到永生的方法脆弱的灵魂就将落叶归根。"
RG_leader_trait_admiral_born_tobe_dragon:0 "§Y羽化成龙§!"
RG_leader_trait_admiral_born_tobe_dragon_desc:0 "\n§G模拟龙的属性会随着年龄增长。\n$t$§Y每增长一岁提供§!:\n$tt$§G 额外舰船武器伤害 +1%§!\n§G 额外装甲生命值 +1%§!\n§G 额外船体生命值 +1%§!$t$\n当前§!§R[owner.rg_fake_dragon_timedlife_counter]§!§G岁§!\n梦想中的龙终于变成了梦想中的样子。传说她一拳打开了壳化身为龙。"
trait_rg_machine_unit: "$RG_MACHINE$"
trait_rg_machine_unit_desc: "这个物种由高度先进的仿生纳米机械组成,纳米机器的完美模拟仿真使得他们和有机体并无区别。"