namespace = plant # Gaia Seed building chain completed. planet_event = { id = plant.100 is_triggered_only = yes title = "plant.100.name" desc = "plant.100.desc" picture = GFX_evt_gaia trigger = { last_building_changed = building_gaiaseeders_4 NOT = { is_planet_class = pc_gaia } } immediate = { # Turn planet into Gaia world. change_pc = pc_gaia set_planet_flag = gaia_seeder_bloom planet_event = { id = shroud.10010 # Patron Objective Counter: po_terraform_planet } } option = { # Not Hive-mind name = plant.100.a trigger = { owner = { is_hive_empire = no } } add_modifier = { modifier = celebrate_idyllic_bloom days = 180 } } option = { name = plant.100.b # Hive-mind trigger = { owner = { is_hive_empire = yes } } } after = { tooltip = { change_pc = pc_gaia } hidden_effect = { planet_event = { id = plant.115 days = 180 } set_saved_date = { key = gaia_seeder_bloom_timer days_from_present = 180 expires = 180 } } } } planet_event = { id = plant.101 hide_window = yes is_triggered_only = yes trigger = { last_building_changed = building_gaiaseeders_pc_gaia is_planet_class = pc_gaia } immediate = { set_planet_flag = gaia_seeder_bloom planet_event = { id = plant.115 days = 180 } set_saved_date = { key = gaia_seeder_bloom_timer days_from_present = 180 expires = 180 } } } country_event = { id = plant.105 is_triggered_only = yes title = "plant.100.name" desc = "plant.105.desc" picture = GFX_evt_gaia trigger = { from.planet = { NOR = { is_planet_class = pc_gaia has_planet_flag = anti_cheese_idyllic_bloom_flag } has_holding = { holding = holding_idyllic_bloom owner = root } } } option = { name = plant.100.a from.owner = { country_event = { id = plant.110 } } if = { limit = { from.planet = { is_planet_class = pc_ocean owner = { has_ascension_perk = ap_hydrocentric } } } from.planet = { set_planet_flag = terraformed_against_will owner = { add_modifier = { modifier = terraformed_our_ocean_world years = 3 } } } } } after = { from.planet = { change_pc = pc_gaia remove_holding = { holding = holding_idyllic_bloom owner = root } # Effectively the same checks as shroud.10010 but we need to change the scopes. if = { limit = { exists = root NOT = { has_planet_flag = terraformed_by@root } root = { can_access_shroud = yes } } set_planet_flag = terraformed_by@root root = { add_patron_objective_counter = { counter = po_terraform_planet amount = 1 } } } } } } country_event = { id = plant.110 is_triggered_only = yes title = "plant.100.name" desc = { trigger = { from.from.planet = { NOT = { has_planet_flag = terraformed_against_will } } } text = plant.110.desc } desc = { trigger = { from.from.planet = { has_planet_flag = terraformed_against_will } } text = plant.110.desc.hydrocentric } picture = GFX_evt_gaia option = { #Angry Ocean People name = plant.110.a exclusive_trigger = { from.from.planet = { has_planet_flag = terraformed_against_will } } tooltip = { add_modifier = { modifier = terraformed_our_ocean_world years = 3 } } } option = { #Happy Not Robots name = plant.110.b exclusive_trigger = { is_machine_empire = no from.from.planet = { NOT = { has_planet_flag = terraformed_against_will } } } add_modifier = { modifier = thankful_for_gaia years = 10 } } option = { #Indifferent Robots name = plant.110.c } } planet_event = { id = plant.115 hide_window = yes is_triggered_only = yes trigger = { OR = { has_active_building = building_gaiaseeders_4 has_active_building = building_gaiaseeders_pc_gaia } has_planet_flag = gaia_seeder_bloom } immediate = { owner = { set_country_flag = has_bloomed_pops } set_saved_date = { key = gaia_seeder_bloom_timer days_from_present = 1800 expires = 1800 } set_variable_to_random_value = { which = loop_counter min = 3 max = 5 rounded = yes } while = { count = loop_counter weighted_random_owned_pop_group = { limit = { OR = { species = { is_flora_species = yes } AND = { species = { is_robotic_species = no } root.owner = { has_tradition = tr_mutation_unnatural_selection } } } is_being_assimilated = no is_being_purged = no NOR = { has_trait = trait_plantoid_bloomed has_trait = trait_malleable_genes } } species = { save_event_target_as = old_species } save_event_target_as = old_pop_group if = { limit = { NOT = { any_galaxy_species = { has_species_flag = bloomed_species_of_@event_target:old_species } } } create_species = { is_mod = yes name = this plural = this class = this portrait = this traits = this can_be_modified = this homeworld = this namelist = this gender = this traits = { trait = trait_plantoid_bloomed } effect = { if = { limit = { NOR = { has_trait = trait_auto_hab_preference has_trait = trait_pc_gaia_preference has_trait = trait_pc_gaia_preference_terraforming } } set_habitability_trait = { trait = trait_pc_gaia_preference } } save_event_target_as = target_species set_species_flag = bloomed_species_of_@event_target:old_species } } } else = { random_galaxy_species = { limit = { has_species_flag = bloomed_species_of_@event_target:old_species } save_event_target_as = target_species } } planet = { create_pop_group = { pop_group = event_target:old_pop_group species = event_target:target_species size = 0 effect = { transfer_pop_amount = { source = event_target:old_pop_group target = this amount = 100 } } } } } } create_message = { type = MESSAGE_POPS_IDYLLIC_BLOOMED localization = MESSAGE_POPS_IDYLLIC_BLOOMED days = 30 target = this variable = { type = name localization = PLANET scope = this } variable = { type = variable localization = VALUE scope = this } } planet_event = { id = plant.115 days = 1800 } } }