Compare commits
7 Commits
ff2afb6a1a
...
RG_AG_TEST
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
58d0be3e2b | ||
|
|
fef4de87ea | ||
|
|
17565cd2ba | ||
|
|
efe950f9e6 | ||
|
|
7a1d71c8a9 | ||
|
|
00ad348916 | ||
|
|
8411e7c7bd |
@@ -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 }
|
||||
}
|
||||
}
|
||||
|
||||
46
common/inline_scripts/events/rg_test_gray_skill_varible.txt
Normal file
46
common/inline_scripts/events/rg_test_gray_skill_varible.txt
Normal file
@@ -0,0 +1,46 @@
|
||||
# event:graygoo.499
|
||||
# 初始化小灰领袖等级
|
||||
set_variable = {
|
||||
which = rg_gray_level
|
||||
value = 1
|
||||
}
|
||||
|
||||
#Country event_target:gray_owner
|
||||
#存储当前领袖等级
|
||||
rg_save_gray_leader_level_effect = {
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,11 +1,15 @@
|
||||
produces = {
|
||||
trigger = {
|
||||
# exists = planet
|
||||
# planet = {
|
||||
# OR = {
|
||||
# rg_is_pc_nano = yes
|
||||
# }
|
||||
# }
|
||||
exists = planet
|
||||
planet = {
|
||||
owner = {
|
||||
OR = {
|
||||
RG_gray_harbitat_active_trigger = yes
|
||||
has_active_tradition = tr_rg_nanotech_5
|
||||
}
|
||||
}
|
||||
rg_is_pc_nano = yes
|
||||
}
|
||||
OR = {
|
||||
has_trait = rg_machine_maid_trait
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,23 @@ 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
|
||||
}
|
||||
}
|
||||
|
||||
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 +148,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
|
||||
@@ -200,10 +213,22 @@ rg_event_effect_planet2027_spawn_maid_species_non_gray = {
|
||||
trait = trait_robot_streamlined_protocols
|
||||
trait = trait_robot_luxurious
|
||||
}
|
||||
effect = {
|
||||
save_event_target_as = rg_maid_species
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
}
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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,27 @@ 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_has_ag_origin_trigger = {
|
||||
any_country = {
|
||||
has_origin = origin_Asgray
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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 = {
|
||||
|
||||
@@ -31,7 +31,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
|
||||
|
||||
@@ -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
159
events/RG_deficit_event.txt
Normal 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
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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]. §!"
|
||||
|
||||
@@ -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$"
|
||||
|
||||
@@ -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$向您报道!下一个目标是什么?"
|
||||
|
||||
@@ -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]继续践行。§!"
|
||||
|
||||
@@ -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$"
|
||||
|
||||
@@ -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$"
|
||||
|
||||
Reference in New Issue
Block a user