zc
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -437,6 +437,50 @@ country_event = {
|
||||
}
|
||||
}
|
||||
}
|
||||
option = {
|
||||
# Juggernaut
|
||||
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 = {
|
||||
hidden_trigger = {
|
||||
exists = event_target:gray_governor
|
||||
} # To prevent exploit
|
||||
}
|
||||
custom_tooltip = rg_need_manual_toggle
|
||||
hidden_effect = {
|
||||
set_country_flag = rg_habitat_enabled
|
||||
country_event = {
|
||||
id = rg_grayleader_dialog.5026
|
||||
}
|
||||
}
|
||||
}
|
||||
option = {
|
||||
# Warship
|
||||
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 = {
|
||||
hidden_trigger = {
|
||||
exists = event_target:gray_governor
|
||||
} # To prevent exploit
|
||||
}
|
||||
custom_tooltip = rg_need_manual_toggle
|
||||
hidden_effect = {
|
||||
remove_country_flag = rg_habitat_enabled
|
||||
country_event = {
|
||||
id = rg_grayleader_dialog.5027
|
||||
}
|
||||
}
|
||||
}
|
||||
option = {
|
||||
# const
|
||||
name = rg_const
|
||||
|
||||
178
events/RG_planet_event.txt
Normal file
178
events/RG_planet_event.txt
Normal 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 = rg_fallen_maid_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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user