11 Commits

Author SHA1 Message Date
ProjectKoi-Kalo\Kalo
9be9269503 空间站核心 2024-08-31 10:31:22 +08:00
ProjectKoi-Kalo\Kalo
e22bd6253d zc 2024-08-30 06:34:50 +08:00
ProjectKoi-Kalo\Kalo
de18864e35 zc 2024-08-30 06:13:54 +08:00
ProjectKoi-Kalo\Kalo
c181968b85 暂存模拟龙 2024-06-15 12:29:48 +08:00
ProjectKoi-Kalo\Kalo
405410bfa7 situation boost 2024-05-16 09:51:49 +08:00
ProjectKoi-Kalo\Kalo
8da3a91c7d Merge branch 'master' of https://cloud.armorrush.com/Kalospacer/realgray-stellaris-mod 2024-05-16 09:49:06 +08:00
ProjectKoi-Kalo\Kalo
e155057c74 zc 2024-05-16 09:49:05 +08:00
ProjectKoi-Kalo\Kalo
9329faccc7 urefotm crash fix 2024-05-15 22:50:36 +08:00
ProjectKoi-Kalo\Kalo
e156eba77f chougou tastymaid comp 2024-05-15 20:28:38 +08:00
ProjectKoi-Kalo\Kalo
5054a1164d Merge branch 'master' of https://cloud.armorrush.com/Kalospacer/realgray-stellaris-mod 2024-05-15 12:29:07 +08:00
ProjectKoi-Kalo\Kalo
91ffbc05ae 暂存 2024-05-15 12:28:15 +08:00
24 changed files with 921 additions and 315 deletions

View File

@@ -1,6 +1,6 @@
# 星环基地 1 # 星环基地 1
ship_design = { ship_design = {
name = "RG_RG_ORBITAL_RING_TIER_1_STARBASE" name = "RG_ORBITAL_RING_TIER_1_STARBASE"
ship_size = RG_orbital_ring_tier_1 ship_size = RG_orbital_ring_tier_1
section = { section = {
template = "RG_ORBITAL_RING_TIER_1_STARBASE_SECTION" template = "RG_ORBITAL_RING_TIER_1_STARBASE_SECTION"

View File

@@ -52,19 +52,15 @@ on_monthly_pulse_country = {
# rg_event.22 #小灰复活检测 # rg_event.22 #小灰复活检测
# rg_event.23 #月检移除L星门认知防止收容失效 # rg_event.23 #月检移除L星门认知防止收容失效
# rg_skill.9 # rg_skill.9
rg_planet.5025 # Virtual Machine pop creation
rg_planet.5030 # Virtual Machine pop destruction
} }
} }
on_yearly_pulse_country = { on_yearly_pulse_country = {
events = { events = {
rg_event.17 rg_event.17
rg_event.18
rg_event.20 rg_event.20
}
}
on_yearly_pulse = {
events = {
rg_story.20 rg_story.20
} }
} }
@@ -175,4 +171,84 @@ on_space_battle_lost = {
events = { events = {
rg_skill.15 rg_skill.15
} }
}
# A planet has been colonized.
# Scope = Planet
on_colonized = {
events = {
rg_planet.2026 # Virtual Machine pop creation
rg_planet.2031 # Virtual Machine pop destruction
}
}
#A building construction has been completed.
# This = Planet
on_building_complete = {
events = {
rg_planet.2026 # Virtual Machine pop creation
rg_planet.2031 # Virtual Machine pop destruction
}
}
# A building construction has been completed, which is an upgrade of previous building.
# This = Planet
on_building_upgraded = {
events = {
rg_planet.2026 # Virtual Machine pop creation
rg_planet.2031 # Virtual Machine pop destruction
}
}
# A building construction has demolished.
# This = Planet
on_building_demolished = {
events = {
rg_planet.2026 # Virtual Machine pop creation
rg_planet.2031 # Virtual Machine pop destruction
}
}
# A building repair has finished
# This = Planet
on_building_repaired = {
events = {
rg_planet.2026 # Virtual Machine pop creation
rg_planet.2031 # Virtual Machine pop destruction
}
}
#A district construction has been completed.
# This = Planet
on_district_complete = {
events = {
rg_planet.2026 # Virtual Machine pop creation
rg_planet.2031 # Virtual Machine pop destruction
}
}
# A building construction has finished, replacing another building.
# This = Planet
on_building_replaced = {
events = {
rg_planet.2026 # Virtual Machine pop creation
rg_planet.2031 # Virtual Machine pop destruction
}
}
# A building construction has been downgraded and replaced.
# This = Planet
on_building_downgraded = {
events = {
rg_planet.2026 # Virtual Machine pop creation
rg_planet.2031 # Virtual Machine pop destruction
}
}
# A district construction has demolished.
# This = Planet
on_district_demolished = {
events = {
rg_planet.2026 # Virtual Machine pop creation
rg_planet.2031 # Virtual Machine pop destruction
}
} }

View File

@@ -0,0 +1,41 @@
pc_rg_grayhabitat = {
habitat = yes
entity = "grey_tempesttw_orbital_habitat_entity"
entity_scale = @planet_standard_scale
icon = GFX_planet_type_habitat
enable_tilt = no
fixed_entity_scale = yes
place_entity_on_planet_plane = no
entity_face_object = no #disable rotation towards sun or planet we orbit around
atmosphere_color = hsv { 0.0 0.0 1.0 }
atmosphere_intensity = 1.0
atmosphere_width = 0.5
show_city = no
city_color_lut = "gfx/portraits/misc/colorcorrection_continental.dds"
extra_orbit_size = 0
extra_planet_count = 0
chance_of_ring = 0.0
planet_size = 30
moon_size = 1
colonizable = yes
district_set = machine_world
# ideal = yes
starting_planet = no
orbit_lines = no
has_colonization_influence_cost = no # applies when within own borders
is_artificial_planet = yes
default_planet_selection = yes
modifier = {
planet_colony_development_speed_mult = 2.0 # Habitats should be fast to colonize
pop_environment_tolerance = 1
planet_structures_cost_mult = -2
planet_buildings_cost_mult = -2
planet_building_build_speed_mult = 10
planet_crime_add = -1000
pop_resettlement_cost_mult = 10
}
carry_cap_per_free_district = @carry_cap_low
}

View File

@@ -126,6 +126,18 @@ rg_global_gray_location_check = {
} }
} }
} }
else_if = {
limit = {
has_country_flag = rg_habitat_enabled
}
if = {
limit = {exists = event_target:rg_gray_habitat_target}
event_target:rg_gray_habitat_target = {
save_global_event_target_as = global_gray_location
}
}
}
else = { else = {
capital_scope = { capital_scope = {
save_global_event_target_as = global_gray_location save_global_event_target_as = global_gray_location
@@ -181,118 +193,7 @@ rg_create_gray_governor = {
} }
remove_army = yes remove_army = yes
} }
#存储当前领袖等级
every_owned_leader = {
if = {
###等级检测
limit = {
has_leader_flag = rg_gray_leader
NOT = {
has_leader_flag = rg_gray_leader_temp
}
}
#导出等级到暂存
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
}
}
#清理暂存区
clear_variable = rg_gray_level_temp
}
}
#把所有种类的小灰领袖都送回娘家
every_owned_leader = {
limit = {
has_leader_flag = rg_gray_leader
}
set_owner = event_target:rg_gray_country
set_leader_flag = rg_gray_leader_temp
# kill_leader = { show_notification = no }
}
#把娘家的总督领袖接回来
if = {
limit = {
exists = event_target:gray_governor
}
event_target:gray_governor = {
set_owner = event_target:gray_owner
remove_leader_flag = rg_gray_leader_temp
}
}
#如果不存在总督备份,现场变一个
else = {
rg_gray_govener_init = yes
}
#设置总督已启用标识
set_country_flag = gray_official_active #新版flag
set_country_flag = gray_governor_active #旧版flag
#更新灰风形态
remove_country_flag = gray_warship_active
remove_country_flag = rg_kac_grayfleet_active
remove_country_flag = gray_constship_active
remove_country_flag = gray_army_active
#等级导入,把存储的领袖等级赋予到领袖身上
random_owned_leader = {
limit = {
has_leader_flag = gray_governor
}
set_skill = owner.rg_gray_level
}
}
}
#创造灰风总督
rg_create_gray_governor_habitat = {
if = {
limit = {
has_country_flag = gray_habitat_active
}
}
else = {
#延迟执行
optimize_memory
#删除战舰
every_owned_fleet = {
limit = {
has_fleet_flag = gray_fleet
}
delete_fleet = {
target = this
kill_leader = no
destroy_template = yes
}
}
#删除科学舰
every_owned_fleet = {
limit = {
has_fleet_flag = gray_constship
}
delete_fleet = {
target = this
kill_leader = no
destroy_template = yes
}
}
#删除陆军
every_owned_army = {
limit = {
army_type = gray_army
}
if = {
limit = {
exists = leader
}
unassign_leader = leader
}
remove_army = yes
}
#存储当前领袖等级 #存储当前领袖等级
every_owned_leader = { every_owned_leader = {
if = { if = {
@@ -342,16 +243,15 @@ rg_create_gray_governor_habitat = {
else = { else = {
rg_gray_govener_init = yes rg_gray_govener_init = yes
} }
rg_juggernaut_habitat_init = yes
#设置总督已启用标识 #设置总督已启用标识
set_country_flag = gray_official_active #新版flag set_country_flag = gray_official_active #新版flag
set_country_flag = gray_governor_active #旧版flag set_country_flag = gray_governor_active #旧版flag
set_country_flag = gray_habitat_active
#更新灰风形态 #更新灰风形态
remove_country_flag = gray_warship_active remove_country_flag = gray_warship_active
remove_country_flag = rg_kac_grayfleet_active remove_country_flag = rg_kac_grayfleet_active
remove_country_flag = gray_constship_active remove_country_flag = gray_constship_active
remove_country_flag = gray_army_active remove_country_flag = gray_army_active
remove_country_flag = gray_habitat_active
#等级导入,把存储的领袖等级赋予到领袖身上 #等级导入,把存储的领袖等级赋予到领袖身上
random_owned_leader = { random_owned_leader = {
limit = { limit = {
@@ -463,10 +363,12 @@ rg_create_gray_warship = {
destroy_template = yes destroy_template = yes
} }
} }
remove_country_flag = gray_constship_active remove_country_flag = gray_constship_active
remove_country_flag = gray_governor_active #旧版flag remove_country_flag = gray_governor_active #旧版flag
remove_country_flag = gray_official_active remove_country_flag = gray_official_active
remove_country_flag = gray_army_active remove_country_flag = gray_army_active
remove_country_flag = gray_habitat_active
random_owned_leader = { random_owned_leader = {
limit = { limit = {
has_leader_flag = gray_admiral has_leader_flag = gray_admiral
@@ -575,11 +477,13 @@ rg_create_gray_army = {
destroy_template = yes destroy_template = yes
} }
} }
remove_country_flag = gray_warship_active remove_country_flag = gray_warship_active
remove_country_flag = rg_kac_grayfleet_active remove_country_flag = rg_kac_grayfleet_active
remove_country_flag = gray_governor_active #旧版flag remove_country_flag = gray_governor_active #旧版flag
remove_country_flag = gray_official_active remove_country_flag = gray_official_active
remove_country_flag = gray_constship_active remove_country_flag = gray_constship_active
remove_country_flag = gray_habitat_active
remove_ship_design = last_created_design remove_ship_design = last_created_design
random_owned_leader = { random_owned_leader = {
limit = { limit = {
@@ -696,11 +600,13 @@ rg_create_gray_const = {
} }
remove_army = yes remove_army = yes
} }
remove_country_flag = gray_army_active remove_country_flag = gray_army_active
remove_country_flag = gray_warship_active remove_country_flag = gray_warship_active
remove_country_flag = rg_kac_grayfleet_active remove_country_flag = rg_kac_grayfleet_active
remove_country_flag = gray_governor_active #旧版flag remove_country_flag = gray_governor_active #旧版flag
remove_country_flag = gray_official_active remove_country_flag = gray_official_active
remove_country_flag = gray_habitat_active
random_owned_leader = { random_owned_leader = {
limit = { limit = {
has_leader_flag = gray_scientist has_leader_flag = gray_scientist
@@ -708,4 +614,89 @@ rg_create_gray_const = {
set_skill = owner.rg_gray_level set_skill = owner.rg_gray_level
} }
} }
}
rg_juggernaut_habitat_init = {
if = {
limit = {
has_country_flag = rg_habitat_enabled
}
}
else = {
optimize_memory
rg_global_gray_location_check = yes
set_country_flag = rg_habitat_enabled
event_target:global_gray_location = {
solar_system = {
spawn_planet = {
class = pc_rg_grayhabitat
location = event_target:global_gray_location
orbit_location = yes
orbit_angle = 225
orbit_distance = 360
orbit_angle_offset = 45
orbit_distance_offset = 9.899
size = 30
has_ring = no
init_effect = {
set_planet_entity = {
entity = "grey_tempesttw_orbital_habitat_entity"
}
set_surveyed = {
surveyed = yes
surveyor = FROM
}
set_all_comms_surveyed = yes
clear_blockers = yes
set_owner = root
set_controller = root
create_colony = {
owner = root
species = owner_main_species
ethos = owner
}
set_name = "NAME_rg_gray_habitat_base"
if = {
OR = {
has_country_flag = gray_official_active
has_country_flag = gray_governor_active #旧版flag
}
assign_leader = event_target:gray_governor
}
add_building = building_ancient_control_center
add_building = building_nourishment_center
add_building = building_ancient_palace
add_building = building_affluence_center
add_building = building_dimensional_fabricator
while = {
count = 5
create_pop = {
species = owner_main_species
}
}
set_planet_flag = megastructure
set_planet_flag = habitat
set_planet_flag = advanced_habitat
set_planet_flag = advanced_habitat_2
set_planet_flag = rg_gray_habitat
save_global_event_target_as = rg_gray_habitat_target
}
}
}
}
}
}
rg_clear_harbitat = {
remove_country_flag = rg_habitat_enabled
event_target:rg_gray_habitat_target = {
remove_planet = yes
}
} }

View File

@@ -33,12 +33,10 @@ rg_gray_govener_init = {
} }
if = { if = {
limit = { limit = {
owner = {
OR = { OR = {
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
} }
}
} }
set_leader_flag = "gray_leader" set_leader_flag = "gray_leader"
set_leader_flag = gray_leader set_leader_flag = gray_leader
@@ -152,12 +150,10 @@ rg_gray_commander_init = {
} }
if = { if = {
limit = { limit = {
owner = {
OR = { OR = {
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
} }
}
} }
set_leader_flag = "gray_leader" # "gray_leader"==rg_gray_leader set_leader_flag = "gray_leader" # "gray_leader"==rg_gray_leader
set_leader_flag = gray_leader set_leader_flag = gray_leader
@@ -497,11 +493,9 @@ rg_gray_scientist_init = {
} }
if = { if = {
limit = { limit = {
owner = { OR = {
OR = { 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
}
} }
} }
set_leader_flag = "gray_leader" # "gray_leader"==rg_gray_leader set_leader_flag = "gray_leader" # "gray_leader"==rg_gray_leader
@@ -522,11 +516,9 @@ rg_gray_scientist_init = {
} }
if = { if = {
limit = { limit = {
owner = { OR = {
OR = { 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
}
} }
} }
if = { if = {
@@ -590,11 +582,9 @@ rg_gray_country_leader_init = {
# set_leader_flag = rg_gray_leader # set_leader_flag = rg_gray_leader
if = { if = {
limit = { limit = {
owner = { OR = {
OR = { 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
}
} }
} }
# 暂时和小灰网络断开连接 # 暂时和小灰网络断开连接

View File

@@ -1,8 +1,22 @@
@gray_portrait = Gray @gray_portrait = Gray
rg_set_gray_portrait = { rg_set_gray_portrait = {
change_leader_portrait = @gray_portrait if = {
event_target:rg_gray_country_leader = { limit = {
has_global_flag = ms_species_enabled
event_target:gray_owner = {
has_country_flag = mss_enable_gray_maid
}
}
ms_update_gray_portrait = yes
event_target:rg_gray_country_leader = {
ms_update_gray_portrait = yes
}
}
else = {
change_leader_portrait = @gray_portrait change_leader_portrait = @gray_portrait
event_target:rg_gray_country_leader = {
change_leader_portrait = @gray_portrait
}
} }
} }
@@ -2189,6 +2203,7 @@ rg_gray_country_init = {
# 下一阶段的事件再建立通讯 # 下一阶段的事件再建立通讯
# establish_communications_no_message = root # establish_communications_no_message = root
save_global_event_target_as = rg_gray_country save_global_event_target_as = rg_gray_country
save_global_event_target_as = gray_country
# 创建看板娘用于第一次接触 # 创建看板娘用于第一次接触
rg_gray_country_leader_init = yes rg_gray_country_leader_init = yes
set_leader = last_created_leader set_leader = last_created_leader

View File

@@ -1,20 +1,14 @@
rg_storyline_trigger = { rg_storyline_trigger = {
# 初始化故事事件触发 # 初始化故事事件触发
random_list = { country_event = {
50 = { id = rg_story.2
country_event = { days = 3600
id = rg_story.2 random = 12800
days = 3600 }
random = 12800 country_event = {
} id = rg_story.8
} days = 3600
50 = { random = 12800
country_event = {
id = rg_story.8
days = 3600
random = 12800
}
}
} }
if = { if = {
limit = { limit = {

View File

@@ -174,55 +174,4 @@ rg_warship_init_mod0 = {
} }
} }
} }
} }
rg_juggernaut_habitat_init = {
capital_scope = {
save_event_target_as = rg_capital_home_planet
}
spawn_planet = {
class = pc_habitat
location = root.home_planet
orbit_location = yes
orbit_angle_offset = 45
orbit_distance_offset = 9.899
size = 20
has_ring = no
init_effect = {
set_name = "NAME_rg_gray_habitat_base"
set_planet_entity = {
entity = "grey_tempesttw_juggernaut_entity"
}
set_surveyed = {
surveyed = yes
surveyor = FROM
}
set_all_comms_surveyed = yes
clear_blockers = yes
set_planet_flag = megastructure
set_planet_flag = habitat
set_planet_flag = advanced_habitat
set_planet_flag = advanced_habitat_2
set_planet_flag = rg_gray_habitat
save_global_event_target_as = rg_gray_habitat_target
}
}
event_target:spawn_planet = {
set_planet_flag = has_megastructure
# set_planet_flag = has_payback_habitat
}
event_target:rg_capital_home_planet = {
while = {
count = 1
random_owned_pop = {
resettle_pop = {
pop = this
planet = event_target:rg_gray_habitat_target
}
unemploy_pop = yes
}
}
}
}

View File

@@ -177,7 +177,7 @@ situation_rg_gray_mod1 = {
} }
} }
monthly_progress = { monthly_progress = {
base = 0.1 base = 0.5
modifier = { modifier = {
add = 0.1 add = 0.1
desc = situation_rg_gray_mod1_stage_1_booster_tooltip desc = situation_rg_gray_mod1_stage_1_booster_tooltip
@@ -483,54 +483,54 @@ situation_rg_gray_mod2 = {
} }
} }
monthly_progress = { monthly_progress = {
base = 0.1 base = 0.5
modifier = { modifier = {
add = 0.05 add = 0.1
desc = situation_rg_gray_mod2_stage_1_booster_tooltip desc = situation_rg_gray_mod2_stage_1_booster_tooltip
has_situation_flag = situation_rg_gray_mod2_stage_1_booster has_situation_flag = situation_rg_gray_mod2_stage_1_booster
} }
modifier = { modifier = {
add = 0.05 add = 0.1
desc = situation_rg_gray_mod2_stage_2_booster_tooltip desc = situation_rg_gray_mod2_stage_2_booster_tooltip
has_situation_flag = situation_rg_gray_mod2_stage_2_booster has_situation_flag = situation_rg_gray_mod2_stage_2_booster
} }
modifier = { modifier = {
add = 0.05 add = 0.1
desc = situation_rg_gray_mod2_stage_1_booster_tooltip desc = situation_rg_gray_mod2_stage_1_booster_tooltip
has_situation_flag = situation_rg_gray_mod2_stage_4_booster has_situation_flag = situation_rg_gray_mod2_stage_4_booster
} }
modifier = { modifier = {
add = 0.05 add = 0.1
desc = situation_rg_gray_mod2_stage_3_booster_tooltip desc = situation_rg_gray_mod2_stage_3_booster_tooltip
has_situation_flag = situation_rg_gray_mod2_stage_5_booster has_situation_flag = situation_rg_gray_mod2_stage_5_booster
} }
modifier = { modifier = {
add = 0.05 add = 0.1
desc = situation_rg_gray_mod2_stage_3_booster_tooltip desc = situation_rg_gray_mod2_stage_3_booster_tooltip
has_situation_flag = situation_rg_gray_mod2_stage_6_booster has_situation_flag = situation_rg_gray_mod2_stage_6_booster
} }
modifier = { modifier = {
add = 0.05 add = 0.1
desc = situation_rg_gray_mod2_stage_2_booster_tooltip desc = situation_rg_gray_mod2_stage_2_booster_tooltip
has_situation_flag = situation_rg_gray_mod2_stage_7_booster has_situation_flag = situation_rg_gray_mod2_stage_7_booster
} }
modifier = { modifier = {
add = 0.05 add = 0.1
desc = situation_rg_gray_mod2_stage_2_booster_tooltip desc = situation_rg_gray_mod2_stage_2_booster_tooltip
has_situation_flag = situation_rg_gray_mod2_stage_8_booster has_situation_flag = situation_rg_gray_mod2_stage_8_booster
} }
modifier = { modifier = {
add = 0.05 add = 0.1
desc = situation_rg_gray_mod2_stage_3_booster_tooltip desc = situation_rg_gray_mod2_stage_3_booster_tooltip
has_situation_flag = situation_rg_gray_mod2_stage_9_booster has_situation_flag = situation_rg_gray_mod2_stage_9_booster
} }
modifier = { modifier = {
add = 0.05 add = 0.1
desc = situation_rg_gray_mod2_stage_2_booster_tooltip desc = situation_rg_gray_mod2_stage_2_booster_tooltip
has_situation_flag = situation_rg_gray_mod2_stage_10_booster has_situation_flag = situation_rg_gray_mod2_stage_10_booster
} }
modifier = { modifier = {
add = 0.05 add = 0.1
desc = situation_rg_gray_mod2_stage_2_booster_tooltip desc = situation_rg_gray_mod2_stage_2_booster_tooltip
has_situation_flag = situation_rg_gray_mod2_stage_11_booster has_situation_flag = situation_rg_gray_mod2_stage_11_booster
} }

View File

@@ -16,6 +16,11 @@ rg_machine_maid_trait = {
opposites = { opposites = {
} }
modifier = {
habitability_floor_add = 0.25
pop_housing_usage_mult = -0.9
}
assembling_modifier = { assembling_modifier = {
planet_pop_assemblers_nanites_upkeep_add = 0.1 planet_pop_assemblers_nanites_upkeep_add = 0.1
} }

View File

@@ -8,5 +8,5 @@ tags={
} }
name="Real Gray" name="Real Gray"
picture="thumbnail.png" picture="thumbnail.png"
supported_version="3.12.*" supported_version="v3.12.*"
remote_file_id="2136166095" remote_file_id="2136166095"

View File

@@ -314,6 +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
create_message = { create_message = {
type = MESSAGE_RECRUITED_LEADER type = MESSAGE_RECRUITED_LEADER
localization = "rg_event.2.desc" localization = "rg_event.2.desc"
@@ -621,12 +622,9 @@ event = {
} }
} }
AND = { AND = {
OR = { has_country_flag = gray_official_active
has_country_flag = gray_official_active
has_country_flag = gray_governor_active #旧版flag
}
NOT = { NOT = {
exists = event_target:gray_governor exists = event_target:gray_official
} }
} }
AND = { AND = {
@@ -640,10 +638,8 @@ event = {
} }
immediate = { immediate = {
event_target:gray_owner = { event_target:gray_owner = {
OR = { remove_country_flag = gray_official_active #新版flag
has_country_flag = gray_official_active remove_country_flag = gray_governor_active #旧版flag #总督
has_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 #科舰
@@ -652,12 +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 = rg_event.22
}
} }
} }
} }
@@ -682,11 +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"
diplomatic = yes
event_window_type = leader_story
picture = GFX_evt_gray_gooed_planet
picture_event_data = {
portrait = event_target:rg_gray_country_leader
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

@@ -30,6 +30,11 @@ country_event = {
} }
save_global_event_target_as = origin_rg_gray_country save_global_event_target_as = origin_rg_gray_country
rg_lcluster_spawn_effect = yes rg_lcluster_spawn_effect = yes
country_event = {
id = rg_event.18
days = 3600
random = 12800
}
} }
else = { else = {
set_country_flag = origin_gray_dragon_country set_country_flag = origin_gray_dragon_country
@@ -859,9 +864,7 @@ country_event = {
fire_only_once = yes fire_only_once = yes
picture = GFX_evt_drifting_gateway picture = GFX_evt_drifting_gateway
trigger = { trigger = {
years_passed >= 25
NOT = { NOT = {
is_multiplayer = yes
has_global_flag = has_origin_gray_dragon has_global_flag = has_origin_gray_dragon
} }
has_country_flag = origin_rg_gray has_country_flag = origin_rg_gray
@@ -917,6 +920,9 @@ country_event = {
} }
} }
} }
option = {
name = OK
}
} }
@@ -1039,35 +1045,35 @@ country_event = {
} }
} }
# looping check for grayreforming # # looping check for grayreforming
country_event = { # country_event = {
id = rg_event.22 # id = rg_event.22
hide_window = yes # hide_window = yes
is_triggered_only = yes # is_triggered_only = yes
trigger = { # trigger = {
is_same_value = event_target:gray_owner # is_same_value = event_target:gray_owner
has_country_flag = gray_reforming # has_country_flag = gray_reforming
} # }
immediate = { # immediate = {
if = { # if = {
limit = { # limit = {
NOT = { # NOT = {
has_modifier = "gray_scattered" # has_modifier = "gray_scattered"
} # }
} # }
country_event = { # country_event = {
id = graygoo.512 # id = graygoo.512
} # }
} # }
else = { # else = {
country_event = { # country_event = {
id = rg_event.22 # id = rg_event.22
years = 1 # years = 1
} # }
# *THIS* looping check # # *THIS* looping check
} # }
} # }
} # }
# 拆毁工厂小灰通讯 # 拆毁工厂小灰通讯
country_event = { country_event = {

View File

@@ -484,6 +484,80 @@ country_event = {
} }
} }
country_event = {
id = rg_grayleader_dialog.5026
title = "graygoo.500.title"
desc = "RG_graygoo.502.f.response"
event_window_type = leader_recruit
picture_event_data = {
portrait = event_target:gray_leader_admiral
room = "ethic_spaceship_room"
}
is_triggered_only = yes
immediate = {
set_country_flag = gray_diplomacy_engaged
}
after = {
hidden_effect = {
remove_country_flag = gray_diplomacy_engaged
}
}
option = {
name = OK
}
option = {
name = graygoo.500.d
tag = hire_leader
default_hide_option = yes
}
option = {
name = graygoo.500.prepage
tag = dismiss_leader
hidden_effect = {
country_event = {
id = rg_grayleader.1
}
}
}
}
country_event = {
id = rg_grayleader_dialog.5027
title = "graygoo.500.title"
desc = "RG_graygoo.502.g.response"
event_window_type = leader_recruit
picture_event_data = {
portrait = event_target:gray_leader_admiral
room = "ethic_spaceship_room"
}
is_triggered_only = yes
immediate = {
set_country_flag = gray_diplomacy_engaged
}
after = {
hidden_effect = {
remove_country_flag = gray_diplomacy_engaged
}
}
option = {
name = OK
}
option = {
name = graygoo.500.d
tag = hire_leader
default_hide_option = yes
}
option = {
name = graygoo.500.prepage
tag = dismiss_leader
hidden_effect = {
country_event = {
id = rg_grayleader.1
}
}
}
}
country_event = { country_event = {
id = rg_grayleader_dialog.5031 id = rg_grayleader_dialog.5031
title = "graygoo.500.title" title = "graygoo.500.title"

View File

@@ -309,6 +309,54 @@ country_event = {
} }
} }
} }
option = {
# 空间站
name = RG_graygoo.500.f
response_text = RG_graygoo.502.f.response
trigger = {
has_country_flag = rg_juggernaut_fired
NOT = {
has_country_flag = rg_habitat_enabled
}
}
allow = {
has_country_flag = rg_juggernaut_fired # To prevent exploit
}
custom_tooltip = rg_need_manual_toggle
hidden_effect = {
if = {
limit = {
has_country_flag = rg_habitat_enabled
}
rg_clear_harbitat = yes
}
else = {
rg_juggernaut_habitat_init = yes
}
country_event = {
id = rg_grayleader_dialog.5026
}
}
}
option = {
# 空间站
name = RG_graygoo.500.g
response_text = RG_graygoo.502.g.response
trigger = {
has_country_flag = rg_juggernaut_fired
has_country_flag = rg_habitat_enabled
}
allow = {
has_country_flag = rg_juggernaut_fired # To prevent exploit
}
custom_tooltip = rg_need_manual_toggle
hidden_effect = {
rg_clear_harbitat = yes
country_event = {
id = rg_grayleader_dialog.5027
}
}
}
option = { option = {
# help # help
name = rg_help name = rg_help
@@ -453,6 +501,46 @@ country_event = {
} }
} }
} }
option = {
# 空间站
name = RG_graygoo.500.f
response_text = RG_graygoo.502.f.response
trigger = {
has_country_flag = rg_juggernaut_fired
NOT = {
has_country_flag = rg_habitat_enabled
}
}
allow = {
has_country_flag = rg_juggernaut_fired # To prevent exploit
}
custom_tooltip = rg_need_manual_toggle
hidden_effect = {
rg_juggernaut_habitat_init = yes
country_event = {
id = rg_grayleader_dialog.5026
}
}
}
option = {
# 空间站
name = RG_graygoo.500.g
response_text = RG_graygoo.502.g.response
trigger = {
has_country_flag = rg_juggernaut_fired
has_country_flag = rg_habitat_enabled
}
allow = {
has_country_flag = rg_juggernaut_fired # To prevent exploit
}
custom_tooltip = rg_need_manual_toggle
hidden_effect = {
rg_clear_harbitat = yes
country_event = {
id = rg_grayleader_dialog.5027
}
}
}
option = { option = {
# help # help
name = rg_help name = rg_help
@@ -707,6 +795,54 @@ country_event = {
} }
} }
} }
option = {
# 空间站
name = RG_graygoo.500.f
response_text = RG_graygoo.502.f.response
trigger = {
has_country_flag = rg_juggernaut_fired
NOT = {
has_country_flag = rg_habitat_enabled
}
}
allow = {
has_country_flag = rg_juggernaut_fired # To prevent exploit
}
custom_tooltip = rg_need_manual_toggle
hidden_effect = {
if = {
limit = {
has_country_flag = rg_habitat_enabled
}
rg_clear_harbitat = yes
}
else = {
rg_juggernaut_habitat_init = yes
}
country_event = {
id = rg_grayleader_dialog.5026
}
}
}
option = {
# 空间站
name = RG_graygoo.500.g
response_text = RG_graygoo.502.g.response
trigger = {
has_country_flag = rg_juggernaut_fired
has_country_flag = rg_habitat_enabled
}
allow = {
has_country_flag = rg_juggernaut_fired # To prevent exploit
}
custom_tooltip = rg_need_manual_toggle
hidden_effect = {
rg_clear_harbitat = yes
country_event = {
id = rg_grayleader_dialog.5027
}
}
}
option = { option = {
#升级-2 #升级-2
name = rg_levelup_2 name = rg_levelup_2
@@ -1070,6 +1206,54 @@ country_event = {
} }
} }
} }
option = {
# 空间站
name = RG_graygoo.500.f
response_text = RG_graygoo.502.f.response
trigger = {
has_country_flag = rg_juggernaut_fired
NOT = {
has_country_flag = rg_habitat_enabled
}
}
allow = {
has_country_flag = rg_juggernaut_fired # To prevent exploit
}
custom_tooltip = rg_need_manual_toggle
hidden_effect = {
if = {
limit = {
has_country_flag = rg_habitat_enabled
}
rg_clear_harbitat = yes
}
else = {
rg_juggernaut_habitat_init = yes
}
country_event = {
id = rg_grayleader_dialog.5026
}
}
}
option = {
# 空间站
name = RG_graygoo.500.g
response_text = RG_graygoo.502.g.response
trigger = {
has_country_flag = rg_juggernaut_fired
has_country_flag = rg_habitat_enabled
}
allow = {
has_country_flag = rg_juggernaut_fired # To prevent exploit
}
custom_tooltip = rg_need_manual_toggle
hidden_effect = {
rg_clear_harbitat = yes
country_event = {
id = rg_grayleader_dialog.5027
}
}
}
option = { option = {
# 开启隐形 # 开启隐形
name = rg_event.4.e name = rg_event.4.e
@@ -1156,28 +1340,28 @@ country_event = {
option = { option = {
name = OK name = OK
} }
option = { # option = {
name = rg_graygoo.504.a # name = rg_graygoo.504.a
allow = { # allow = {
has_country_flag = gray_reforming # has_country_flag = gray_reforming
resource_stockpile_compare = { # resource_stockpile_compare = {
resource = nanites # resource = nanites
value >= 1000 # value >= 1000
} # }
resource_stockpile_compare = { # resource_stockpile_compare = {
resource = alloys # resource = alloys
value >= 50000 # value >= 50000
} # }
} # }
add_resource = { # add_resource = {
nanites = -1000 # nanites = -1000
alloys = -50000 # alloys = -50000
} # }
remove_modifier = "gray_scattered" # remove_modifier = "gray_scattered"
country_event = { # country_event = {
id = graygoo.512 # id = graygoo.512
} # }
} # }
} }
# Main Menu (const) # Main Menu (const)
@@ -1335,6 +1519,54 @@ country_event = {
} }
} }
} }
option = {
# 空间站
name = RG_graygoo.500.f
response_text = RG_graygoo.502.f.response
trigger = {
has_country_flag = rg_juggernaut_fired
NOT = {
has_country_flag = rg_habitat_enabled
}
}
allow = {
has_country_flag = rg_juggernaut_fired # To prevent exploit
}
custom_tooltip = rg_need_manual_toggle
hidden_effect = {
if = {
limit = {
has_country_flag = rg_habitat_enabled
}
rg_clear_harbitat = yes
}
else = {
rg_juggernaut_habitat_init = yes
}
country_event = {
id = rg_grayleader_dialog.5026
}
}
}
option = {
# 空间站
name = RG_graygoo.500.g
response_text = RG_graygoo.502.g.response
trigger = {
has_country_flag = rg_juggernaut_fired
has_country_flag = rg_habitat_enabled
}
allow = {
has_country_flag = rg_juggernaut_fired # To prevent exploit
}
custom_tooltip = rg_need_manual_toggle
hidden_effect = {
rg_clear_harbitat = yes
country_event = {
id = rg_grayleader_dialog.5027
}
}
}
# option = { # 开启建造中继器 # option = { # 开启建造中继器
# name = rg_event.5.e # name = rg_event.5.e
# trigger = { # trigger = {
@@ -1486,6 +1718,32 @@ country_event = {
rg_create_gray_colony_1 = yes rg_create_gray_colony_1 = yes
} }
} }
option = {
# 购买巨像
name = rg_event.4.h
trigger = {
NOT = {
has_country_flag = gray_reforming
}
}
allow = {
resource_stockpile_compare = {
resource = energy
value >= 8000
}
resource_stockpile_compare = {
resource = alloys
value >= 8000
}
}
add_resource = {
energy = -8000
alloys = -8000
}
hidden_effect = {
rg_create_gray_planetkiller_testship_1 = yes
}
}
option = { option = {
# 没钱了,救救 # 没钱了,救救
name = rg_event.4.c name = rg_event.4.c

178
events/RG_planet_event.txt Normal file
View File

@@ -0,0 +1,178 @@
namespace = rg_planet
##### Virtual Ascension Events
### Create the Unemployed
### Country scope gatekeeper
### on_monthly_pulse_country
country_event = {
id = rg_planet.5025
hide_window = yes
is_triggered_only = yes
trigger = {
has_country_flag = gray_habitat_active
exists = event_target:rg_gray_habitat_target
event_target:rg_gray_habitat_target = {
is_under_colonization = no
NOT = { is_planet_class = pc_cosmogenesis_world }
free_jobs > 0
NOR = {
free_jobs_of_type = {
job = mortal_initiate
value >= 1
}
free_jobs_of_type = {
category = bio_trophy
value >= 1
}
}
}
}
immediate = {
event_target:rg_gray_habitat_target = {
planet_event = { id = rg_planet.2027 days = 1 }
}
}
}
### Create the Unemployed
### Planet scope gatekeeper
### on_building_complete, on_building_upgraded, on_building_demolished,
### on_building_downgraded, on_building_replaced
### on_district_complete, on_district_demolished
planet_event = {
id = rg_planet.2026
hide_window = yes
is_triggered_only = yes
trigger = {
is_same_value = event_target:rg_gray_habitat_target
is_under_colonization = no
NOT = { is_planet_class = pc_cosmogenesis_world }
exists = owner
owner = {
is_fallen_empire = no
has_country_flag = gray_habitat_active
}
free_jobs > 0
}
immediate = {
planet_event = { id = rg_planet.2027 days = 1 }
}
}
### Create the Unemployed
### Fired by cybernetics.2025 and cybernetics.2026
planet_event = {
id = rg_planet.2027
hide_window = yes
is_triggered_only = yes
trigger = {
is_same_value = event_target:rg_gray_habitat_target
is_under_colonization = no
NOT = { is_planet_class = pc_cosmogenesis_world }
exists = owner
owner = {
is_fallen_empire = no
has_country_flag = gray_habitat_active
}
free_jobs > 0
}
immediate = {
set_variable = {
which = num_pops
value = value:num_free_virtual_jobs
}
# Create pops for every free job
while = {
count = num_pops
create_pop = {
species = owner_main_species
}
}
# Kill pops generated in excess (e.g. from forbidden jobs)
if = {
limit = {
any_owned_pop = {
is_unemployed = yes
}
}
every_owned_pop = {
limit = {
is_unemployed = yes
}
kill_pop = yes
}
}
}
}
### Kill the unemployed
### Country scope
### on_monthly_pulse_country
country_event = {
id = rg_planet.5030
hide_window = yes
is_triggered_only = yes
trigger = {
is_fallen_empire = no
has_country_flag = gray_habitat_active
event_target:rg_gray_habitat_target = {
any_owned_pop = {
is_unemployed = yes
}
}
}
immediate = {
event_target:rg_gray_habitat_target = {
every_owned_pop = {
limit = {
is_unemployed = yes
}
kill_pop = yes
}
}
}
}
### Kill the unemployed
### Planet scope
### on_building_complete, on_building_upgraded, on_building_demolished,
### on_building_downgraded, on_building_replaced
### on_district_complete, on_district_demolished
planet_event = {
id = rg_planet.2031
hide_window = yes
is_triggered_only = yes
trigger = {
exists = owner
owner = {
is_fallen_empire = no
has_country_flag = gray_habitat_active
}
any_owned_pop = {
is_unemployed = yes
}
}
immediate = {
every_owned_pop = {
limit = {
is_unemployed = yes
}
kill_pop = yes
}
}
}

View File

@@ -635,7 +635,6 @@ country_event = {
id = rg_story.20 id = rg_story.20
hide_window = yes hide_window = yes
is_triggered_only = yes is_triggered_only = yes
fire_only_once = yes
trigger = { trigger = {
exists = event_target:rg_fake_dragon_owner exists = event_target:rg_fake_dragon_owner
OR = { OR = {
@@ -649,8 +648,9 @@ country_event = {
leader = { leader = {
OR = { OR = {
exists = NO exists = NO
NOT = { NOR = {
has_leader_flag = rg_fake_dragon has_leader_flag = rg_fake_dragon
has_leader_flag = rg_fake_dragon_reborn
} }
} }
} }

View File

@@ -1225,28 +1225,28 @@ country_event = {
} }
} }
} }
option = { # option = {
name = rg_graygoo.504.a # name = rg_graygoo.504.a
allow = { # allow = {
has_country_flag = gray_reforming # has_country_flag = gray_reforming
resource_stockpile_compare = { # resource_stockpile_compare = {
resource = nanites # resource = nanites
value >= 1000 # value >= 1000
} # }
resource_stockpile_compare = { # resource_stockpile_compare = {
resource = alloys # resource = alloys
value >= 50000 # value >= 50000
} # }
} # }
add_resource = { # add_resource = {
nanites = -1000 # nanites = -1000
alloys = -50000 # alloys = -50000
} # }
remove_modifier = "gray_scattered" # remove_modifier = "gray_scattered"
country_event = { # country_event = {
id = graygoo.512 # id = graygoo.512
} # }
} # }
} }
# Main Menu (const) # Main Menu (const)

Binary file not shown.

View File

@@ -109,6 +109,7 @@
rg_event.4.b:0 "§H建造武装工程舰§!" rg_event.4.b:0 "§H建造武装工程舰§!"
rg_event.4.d:0 "§R建造纳米主宰舰§!" rg_event.4.d:0 "§R建造纳米主宰舰§!"
rg_event.4.g:0 "§H建造模拟殖民舰§!" rg_event.4.g:0 "§H建造模拟殖民舰§!"
rg_event.4.h:0 "§H建造实验级巨像§!"
rg_event.4.e:0 "§B开启隐形力场§!" rg_event.4.e:0 "§B开启隐形力场§!"
rg_event.4.f:0 "§B关闭隐形力场§!" rg_event.4.f:0 "§B关闭隐形力场§!"
rg_event.4.c:0 "又没钱了,老婆救救" rg_event.4.c:0 "又没钱了,老婆救救"
@@ -175,6 +176,11 @@
RG_graygoo.500.e:0 "§Y启动旗舰核心§!" RG_graygoo.500.e:0 "§Y启动旗舰核心§!"
RG_graygoo.502.e.response:0 "我能做到。" RG_graygoo.502.e.response:0 "我能做到。"
RG_graygoo.500.f:0 "§Y启动空间站核心§!"
RG_graygoo.502.f.response:0 "舰体宜居性评估中,全舰核心自检完成。"
RG_graygoo.500.g:0 "§Y关闭空间站核心§!"
RG_graygoo.502.g.response:0 "启动紧急疏散程序,请稍安勿躁。"
# 2.1 奇怪的巨像 # 2.1 奇怪的巨像
rg_story.2.desc:0 "哈喽?有空吗?可以来...咳咳、我有一个有趣的东西想给你看......如果没有空也没有关系。不过我保证这个一定很好玩。" rg_story.2.desc:0 "哈喽?有空吗?可以来...咳咳、我有一个有趣的东西想给你看......如果没有空也没有关系。不过我保证这个一定很好玩。"
rg_story.2.a:0 "§G有哦§!" rg_story.2.a:0 "§G有哦§!"

View File

@@ -400,6 +400,9 @@
rg_nothing:0 "" rg_nothing:0 ""
rg_nothing_desc:0 "" rg_nothing_desc:0 ""
pc_rg_grayhabitat: "纳米空间站点"
pc_rg_grayhabitat_desc: "一座由纳米机械组成的深空居所,能提供仿佛行星一般的居住体验,具体而言是指行星上的城市区域。完全由纳米机器人组成使得建筑如梦幻般瞬间出现,由纳米机器组成的实体承担着空间站点的一切生产工作。"
rg_ap_nantiematter:0 "§Y纳米物质构成工程§!" rg_ap_nantiematter:0 "§Y纳米物质构成工程§!"
rg_ap_nantiematter_desc:0 "如果能够对L星门建造者的物质与科技进行一次彻底的构成研究这些强力的纳米机器将极大的提升我们的军备水平。这需要我们获得足够的L星门认知。" rg_ap_nantiematter_desc:0 "如果能够对L星门建造者的物质与科技进行一次彻底的构成研究这些强力的纳米机器将极大的提升我们的军备水平。这需要我们获得足够的L星门认知。"
rg_ap_nantiematter_tooltip:0 "§Y这表明了一切。§!" rg_ap_nantiematter_tooltip:0 "§Y这表明了一切。§!"

View File

@@ -58,7 +58,7 @@
RG_icebreaker_interdictor:0 "纳米机器破冰单元" RG_icebreaker_interdictor:0 "纳米机器破冰单元"
NAME_Nanite_Mothership_Carrier:0 "风暴中心" NAME_Nanite_Mothership_Carrier:0 "风暴中心"
NAME_Nanite_Mothership_titan:0 "风暴缔造者" NAME_Nanite_Mothership_titan:0 "风暴缔造者"
RG_RG_ORBITAL_RING_TIER_1_STARBASE:0 "风暴之眼" RG_ORBITAL_RING_TIER_1_STARBASE:0 "风暴之眼"
NAME_RG_Nanite_Starbase:0 "灰色浪潮" NAME_RG_Nanite_Starbase:0 "灰色浪潮"
NAME_RG_armed_transport_ship:0 "纳米机器压制单元" NAME_RG_armed_transport_ship:0 "纳米机器压制单元"
NAME_RG_armed_colony_ship:0 "纳米机器模拟单元" NAME_RG_armed_colony_ship:0 "纳米机器模拟单元"

View File

@@ -0,0 +1,19 @@
{
"folders": [
{
"path": "."
},
{
"path": "D:/SteamLibrary/steamapps/common/Stellaris/common"
},
{
"path": "D:/SteamLibrary/steamapps/common/Stellaris/events"
},
{
"path": "D:/SteamLibrary/steamapps/common/Stellaris/gfx"
},
{
"path": "D:/SteamLibrary/steamapps/common/Stellaris/localisation"
}
]
}