5 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
21 changed files with 796 additions and 293 deletions

View File

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

View File

@@ -52,6 +52,8 @@ on_monthly_pulse_country = {
# rg_event.22 #小灰复活检测
# rg_event.23 #月检移除L星门认知防止收容失效
# rg_skill.9
rg_planet.5025 # Virtual Machine pop creation
rg_planet.5030 # Virtual Machine pop destruction
}
}
@@ -59,11 +61,6 @@ on_yearly_pulse_country = {
events = {
rg_event.17
rg_event.20
}
}
on_yearly_pulse = {
events = {
rg_story.20
}
}
@@ -174,4 +171,84 @@ on_space_battle_lost = {
events = {
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 = {
capital_scope = {
save_global_event_target_as = global_gray_location
@@ -181,118 +193,7 @@ rg_create_gray_governor = {
}
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 = {
if = {
@@ -342,16 +243,15 @@ rg_create_gray_governor_habitat = {
else = {
rg_gray_govener_init = yes
}
rg_juggernaut_habitat_init = yes
#设置总督已启用标识
set_country_flag = gray_official_active #新版flag
set_country_flag = gray_governor_active #旧版flag
set_country_flag = gray_habitat_active
#更新灰风形态
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
remove_country_flag = gray_habitat_active
#等级导入,把存储的领袖等级赋予到领袖身上
random_owned_leader = {
limit = {
@@ -463,10 +363,12 @@ rg_create_gray_warship = {
destroy_template = yes
}
}
remove_country_flag = gray_constship_active
remove_country_flag = gray_governor_active #旧版flag
remove_country_flag = gray_official_active
remove_country_flag = gray_army_active
remove_country_flag = gray_habitat_active
random_owned_leader = {
limit = {
has_leader_flag = gray_admiral
@@ -575,11 +477,13 @@ rg_create_gray_army = {
destroy_template = yes
}
}
remove_country_flag = gray_warship_active
remove_country_flag = rg_kac_grayfleet_active
remove_country_flag = gray_governor_active #旧版flag
remove_country_flag = gray_official_active
remove_country_flag = gray_constship_active
remove_country_flag = gray_habitat_active
remove_ship_design = last_created_design
random_owned_leader = {
limit = {
@@ -696,11 +600,13 @@ rg_create_gray_const = {
}
remove_army = yes
}
remove_country_flag = gray_army_active
remove_country_flag = gray_warship_active
remove_country_flag = rg_kac_grayfleet_active
remove_country_flag = gray_governor_active #旧版flag
remove_country_flag = gray_official_active
remove_country_flag = gray_habitat_active
random_owned_leader = {
limit = {
has_leader_flag = gray_scientist
@@ -708,4 +614,89 @@ rg_create_gray_const = {
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

@@ -1,20 +1,14 @@
rg_storyline_trigger = {
# 初始化故事事件触发
random_list = {
50 = {
country_event = {
id = rg_story.2
days = 3600
random = 12800
}
}
50 = {
country_event = {
id = rg_story.8
days = 3600
random = 12800
}
}
country_event = {
id = rg_story.2
days = 3600
random = 12800
}
country_event = {
id = rg_story.8
days = 3600
random = 12800
}
if = {
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 = {
base = 0.1
base = 0.5
modifier = {
add = 0.1
desc = situation_rg_gray_mod1_stage_1_booster_tooltip
@@ -483,54 +483,54 @@ situation_rg_gray_mod2 = {
}
}
monthly_progress = {
base = 0.1
base = 0.5
modifier = {
add = 0.05
add = 0.1
desc = situation_rg_gray_mod2_stage_1_booster_tooltip
has_situation_flag = situation_rg_gray_mod2_stage_1_booster
}
modifier = {
add = 0.05
add = 0.1
desc = situation_rg_gray_mod2_stage_2_booster_tooltip
has_situation_flag = situation_rg_gray_mod2_stage_2_booster
}
modifier = {
add = 0.05
add = 0.1
desc = situation_rg_gray_mod2_stage_1_booster_tooltip
has_situation_flag = situation_rg_gray_mod2_stage_4_booster
}
modifier = {
add = 0.05
add = 0.1
desc = situation_rg_gray_mod2_stage_3_booster_tooltip
has_situation_flag = situation_rg_gray_mod2_stage_5_booster
}
modifier = {
add = 0.05
add = 0.1
desc = situation_rg_gray_mod2_stage_3_booster_tooltip
has_situation_flag = situation_rg_gray_mod2_stage_6_booster
}
modifier = {
add = 0.05
add = 0.1
desc = situation_rg_gray_mod2_stage_2_booster_tooltip
has_situation_flag = situation_rg_gray_mod2_stage_7_booster
}
modifier = {
add = 0.05
add = 0.1
desc = situation_rg_gray_mod2_stage_2_booster_tooltip
has_situation_flag = situation_rg_gray_mod2_stage_8_booster
}
modifier = {
add = 0.05
add = 0.1
desc = situation_rg_gray_mod2_stage_3_booster_tooltip
has_situation_flag = situation_rg_gray_mod2_stage_9_booster
}
modifier = {
add = 0.05
add = 0.1
desc = situation_rg_gray_mod2_stage_2_booster_tooltip
has_situation_flag = situation_rg_gray_mod2_stage_10_booster
}
modifier = {
add = 0.05
add = 0.1
desc = situation_rg_gray_mod2_stage_2_booster_tooltip
has_situation_flag = situation_rg_gray_mod2_stage_11_booster
}

View File

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

View File

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

View File

@@ -1,89 +0,0 @@
namespace = mss_gray
# 2024年5月15日20:14:29
# chougou 美味女仆:肖像
country_event = {
id = mss_gray.10
title = mss_gray.10.t
desc = mss_gray.10.d
trigger = {
exists = event_target:gray_owner
is_same_value = event_target:gray_owner
}
diplomatic = yes
is_triggered_only = yes
fire_only_once = yes
immediate = {
event_target:gray_country = {
create_leader = {
class = official
species = event_target:gray_owner
effect = {
change_leader_portrait = ms_ldr_gray_default
save_event_target_as = mss_temp_gray
set_leader_flag = ms_temp_gray
}
}
}
ms_set_gray_portrait = { P = ms_ldr_gray_default }
}
picture = GFX_evt_gray_goo_ships
picture_event_data = {
portrait = event_target:mss_temp_gray
room = specialist_bulwark_room
planet_background = pc_gray_goo
}
show_sound = event_faceoff_in_space
option = {
name = mss_gray.portrait.random
is_dialog_only = yes response_text = mss_gray.portrait.response.random
ms_set_gray_portrait = { P = ms_ldr_gray_random }
}
option = {
name = mss_gray.portrait.random.wingless
is_dialog_only = yes response_text = mss_gray.portrait.response.random
ms_set_gray_portrait = { P = ms_ldr_gray_random_wingless }
}
option = {
name = mss_gray.portrait.default
is_dialog_only = yes response_text = mss_gray.portrait.response.default
ms_set_gray_portrait = { P = ms_ldr_gray_default }
}
option = {
name = mss_gray.portrait.default.wingless
is_dialog_only = yes response_text = mss_gray.portrait.response.default
ms_set_gray_portrait = { P = ms_ldr_gray_default_wingless }
}
option = {
name = mss_gray.portrait.classic
is_dialog_only = yes response_text = mss_gray.portrait.response.classic
ms_set_gray_portrait = { P = ms_ldr_gray_classic }
}
option = {
name = mss_gray.portrait.classic.wingless
is_dialog_only = yes response_text = mss_gray.portrait.response.classic
ms_set_gray_portrait = { P = ms_ldr_gray_classic_wingless }
}
option = {
name = mss_gray.10.yes
custom_tooltip = mss_gray.10.yes.tt
hidden_effect = {
set_country_flag = mss_enable_gray_maid
country_event = { id = mss_gray.20 }
}
}
option = {
name = mss_gray.10.no
custom_tooltip = mss_gray.10.no.tt
hidden_effect = {
set_global_flag = rg_mss_denied_gray_maid
}
}
after = {
custom_tooltip = MS_LABEL_SPECIES
hidden_effect = {
event_target:mss_temp_gray = {
kill_leader = { show_notification = no }
}
}
}
}

View File

@@ -31,8 +31,9 @@ country_event = {
save_global_event_target_as = origin_rg_gray_country
rg_lcluster_spawn_effect = yes
country_event = {
id = rg_cluster
years = 10
id = rg_event.18
days = 3600
random = 12800
}
}
else = {
@@ -919,6 +920,9 @@ country_event = {
}
}
}
option = {
name = OK
}
}

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 = {
id = rg_grayleader_dialog.5031
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 = {
# 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 = {
# 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 = {
#升级-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 = {
# 开启隐形
name = rg_event.4.e
@@ -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 = { # 开启建造中继器
# name = rg_event.5.e
# trigger = {
@@ -1486,6 +1718,32 @@ country_event = {
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 = {
# 没钱了,救救
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
hide_window = yes
is_triggered_only = yes
fire_only_once = yes
trigger = {
exists = event_target:rg_fake_dragon_owner
OR = {
@@ -649,8 +648,9 @@ country_event = {
leader = {
OR = {
exists = NO
NOT = {
NOR = {
has_leader_flag = rg_fake_dragon
has_leader_flag = rg_fake_dragon_reborn
}
}
}

Binary file not shown.

View File

@@ -109,6 +109,7 @@
rg_event.4.b:0 "§H建造武装工程舰§!"
rg_event.4.d:0 "§R建造纳米主宰舰§!"
rg_event.4.g:0 "§H建造模拟殖民舰§!"
rg_event.4.h:0 "§H建造实验级巨像§!"
rg_event.4.e:0 "§B开启隐形力场§!"
rg_event.4.f:0 "§B关闭隐形力场§!"
rg_event.4.c:0 "又没钱了,老婆救救"
@@ -175,6 +176,11 @@
RG_graygoo.500.e:0 "§Y启动旗舰核心§!"
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 奇怪的巨像
rg_story.2.desc:0 "哈喽?有空吗?可以来...咳咳、我有一个有趣的东西想给你看......如果没有空也没有关系。不过我保证这个一定很好玩。"
rg_story.2.a:0 "§G有哦§!"

View File

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

View File

@@ -58,7 +58,7 @@
RG_icebreaker_interdictor:0 "纳米机器破冰单元"
NAME_Nanite_Mothership_Carrier: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_armed_transport_ship:0 "纳米机器压制单元"
NAME_RG_armed_colony_ship:0 "纳米机器模拟单元"

View File

@@ -2,6 +2,18 @@
"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"
}
]
}