################################# # # Diplomatic Events # by Walshicus # ################################# @tier1researchreward = 6 @tier1researchmin = 60 @tier1researchmax = 150 @tier2researchreward = 12 @tier2researchmin = 90 @tier2researchmax = 250 @tier3researchreward = 18 @tier3researchmin = 120 @tier3researchmax = 350 @tier4researchreward = 24 @tier4researchmin = 150 @tier4researchmax = 500 namespace = theFederation #Earth Forms Federation country_event = { id = theFederation.1 title = "theFederation.1.name" desc = "theFederation.1.desc" picture = sth_GFX_evt_federationEarth trigger = { has_country_flag = united_earth is_ai = no OR = { any_country = { has_country_flag = vulcan_high_command is_in_federation_with = FROM } any_country = { has_country_flag = andorian_empire is_in_federation_with = FROM } any_country = { has_country_flag = tellarian_technocracy is_in_federation_with = FROM } } any_country = { is_in_federation_with = FROM is_ai = yes } NOT = { has_country_flag = united_federation_of_planets } } mean_time_to_happen = { months = 24 } option = { name = theFederation.1.a hidden_effect = { country_event = { id = theFederation.5 days = 28} } } option = { name = theFederation.1.b hidden_effect = { country_event = { id = theFederation.1 days = 7000} } } } #Vulcan Forms Federation country_event = { id = theFederation.2 title = "theFederation.2.name" desc = "theFederation.2.desc" picture = sth_GFX_evt_federationVulcan trigger = { has_country_flag = vulcan_high_command is_ai = no any_country = { has_country_flag = united_earth is_in_federation_with = FROM } any_country = { is_in_federation_with = FROM is_ai = yes } NOT = { has_country_flag = united_federation_of_planets } } mean_time_to_happen = { months = 24 } option = { name = theFederation.2.a hidden_effect = { country_event = { id = theFederation.9 days = 28} } } option = { name = theFederation.2.b hidden_effect = { country_event = { id = theFederation.2 days = 7000} } } } #Andoria Forms Federation country_event = { id = theFederation.3 title = "theFederation.3.name" desc = "theFederation.3.desc" picture = sth_GFX_evt_federationAndor trigger = { has_country_flag = andorian_empire is_ai = no any_country = { has_country_flag = united_earth is_in_federation_with = FROM } any_country = { is_in_federation_with = FROM is_ai = yes } NOT = { has_country_flag = united_federation_of_planets } } mean_time_to_happen = { months = 24 } option = { name = theFederation.3.a hidden_effect = { country_event = { id = theFederation.10 days = 28} } } option = { name = theFederation.3.b hidden_effect = { country_event = { id = theFederation.3 days = 7000} } } } #Tellar Forms Federation country_event = { id = theFederation.4 title = "theFederation.4.name" desc = "theFederation.4.desc" picture = sth_GFX_evt_federationTellar trigger = { has_country_flag = tellarian_technocracy is_ai = no any_country = { has_country_flag = united_earth is_in_federation_with = FROM } any_country = { is_in_federation_with = FROM is_ai = yes } NOT = { has_country_flag = united_federation_of_planets } } mean_time_to_happen = { months = 24 } option = { name = theFederation.4.a hidden_effect = { country_event = { id = theFederation.11 days = 28} } } option = { name = theFederation.4.b hidden_effect = { country_event = { id = theFederation.4 days = 7000} } } } #Federation Signed - Earth country_event = { id = theFederation.5 title = "theFederation.5.name" desc = "theFederation.5.desc" picture = sth_GFX_evt_federationSigned show_sound = event_anthemUFP is_triggered_only = yes immediate = { every_country = { limit = { has_country_flag = united_earth } save_global_event_target_as = unitedEarth } every_country = { limit = { is_in_federation_with = event_target:unitedEarth } set_country_flag = united_federation_of_planets every_owned_planet = { set_owner = event_target:unitedEarth } every_owned_fleet = { set_owner = event_target:unitedEarth set_controller = event_target:unitedEarth } change_country_flag = { icon = { category = "trek" file = "Federation4.dds" } background = { category = "backgrounds" file = "00_solid.dds" } colors = { "blue" "black" "null" "null" } } } } option = { name = theFederation.5.a change_country_flag = { icon = { category="trek" file="Federation4.dds" } background = { category = "backgrounds" file = "00_solid.dds" } colors = { "blue" "black" "null" "null" } } set_country_flag = united_federation_of_planets change_government = indirect_democracy hidden_effect = { add_modifier = { modifier = "federation_formation_handicap" days = 3650 } give_technology = tech_desert_colonization give_technology = tech_tropical_colonization give_technology = tech_continental_colonization give_technology = tech_ocean_colonization give_technology = tech_arid_colonization give_technology = tech_arctic_colonization give_technology = tech_tundra_colonization } hidden_effect = { country_event = { id = theFederation.6 } } } } #Federation Detail country_event = { id = theFederation.6 title = "theFederation.6.name" desc = "theFederation.6.desc" picture = sth_GFX_evt_federationSigned is_triggered_only = yes option = { name = theFederation.6.a } } #Earth Forms Federation (AI) country_event = { id = theFederation.7 title = "theFederation.7.name" desc = "theFederation.7.desc" picture = sth_GFX_evt_federationEarth trigger = { has_country_flag = united_earth is_ai = yes OR = { any_country = { has_country_flag = vulcan_high_command is_in_federation_with = FROM } any_country = { has_country_flag = andorian_empire is_in_federation_with = FROM } any_country = { has_country_flag = tellarian_technocracy is_in_federation_with = FROM } } NOT = { has_country_flag = united_federation_of_planets } NOT = { any_country = { is_in_federation_with = FROM is_ai = no } } } mean_time_to_happen = { months = 24 } option = { name = theFederation.7.a hidden_effect = { country_event = { id = theFederation.8 days = 28} } } } #Federation Signed (AI) country_event = { id = theFederation.8 title = "theFederation.8.name" desc = "theFederation.8.desc" picture = sth_GFX_evt_federationSigned show_sound = event_anthemUFP is_triggered_only = yes immediate = { every_country = { limit = { has_country_flag = united_earth } save_global_event_target_as = unitedEarth } every_country = { limit = { has_country_flag = vulcan_high_command } save_global_event_target_as = vulcan } every_country = { limit = { has_country_flag = andorian_empire } save_global_event_target_as = andoria } every_country = { limit = { has_country_flag = tellarian_technocracy } save_global_event_target_as = tellar } random_country = { limit = { has_country_flag = united_earth } random_owned_planet = { random_owned_pop = { limit = { is_species_class = FED } species = { save_event_target_as = ufp_species } } } } create_country = { ignore_initial_colony_error = yes name = "United Federation of Planets" government = moral_democracy species = event_target:ufp_species # ftl = warp # weapon = "tech_phaser_cannon_1" ethos = { ethic = "ethic_fanatic_xenophile" ethic = "ethic_pacifist" } flag = { icon = { category = "trek" file = "Federation4.dds" } background = { category = "backgrounds" file = "00_solid.dds" } colors = { "blue" "black" "null" "null" } } type = default } last_created_country = { set_country_flag = united_federation_of_planets change_government = indirect_democracy hidden_effect = { add_modifier = { modifier = "federation_formation_handicap" days = 3650 } give_technology = tech_desert_colonization give_technology = tech_tropical_colonization give_technology = tech_continental_colonization give_technology = tech_ocean_colonization give_technology = tech_arid_colonization give_technology = tech_arctic_colonization give_technology = tech_tundra_colonization } save_global_event_target_as = ufp give_technology = "tech_phaser_cannon_1" } every_country = { limit = { is_in_federation_with = event_target:unitedEarth } every_owned_planet = { set_owner = event_target:ufp } every_owned_fleet = { set_controller = event_target:ufp set_owner = event_target:ufp } } } option = { name = theFederation.8.a } } #Federation Signed - Vulcan country_event = { id = theFederation.9 title = "theFederation.5.name" desc = "theFederation.5.desc" picture = sth_GFX_evt_federationSigned show_sound = event_anthemUFP is_triggered_only = yes immediate = { every_country = { limit = { has_country_flag = vulcan_high_command } save_global_event_target_as = vulcan } every_country = { limit = { has_country_flag = united_earth } save_global_event_target_as = unitedEarth } every_country = { limit = { is_in_federation_with = event_target:vulcan } every_owned_planet = { set_owner = event_target:vulcan } every_owned_fleet = { set_owner = event_target:vulcan set_controller = event_target:vulcan } set_country_flag = united_federation_of_planets change_country_flag = { icon = { category = "trek" file = "Federation4.dds" } background = { category = "backgrounds" file = "00_solid.dds" } colors = { "blue" "black" "null" "null" } } } } option = { name = theFederation.5.a change_country_flag = { icon = { category="trek" file="Federation4.dds" } background = { category = "backgrounds" file = "00_solid.dds" } colors = { "blue" "black" "null" "null" } } set_country_flag = united_federation_of_planets hidden_effect = { add_modifier = { modifier = "federation_formation_handicap" days = 3650 } give_technology = tech_desert_colonization give_technology = tech_tropical_colonization give_technology = tech_continental_colonization give_technology = tech_ocean_colonization give_technology = tech_arid_colonization give_technology = tech_arctic_colonization give_technology = tech_tundra_colonization } hidden_effect = { country_event = { id = theFederation.6 } } } } #Federation Signed - Andoria country_event = { id = theFederation.10 title = "theFederation.5.name" desc = "theFederation.5.desc" picture = sth_GFX_evt_federationSigned show_sound = event_anthemUFP is_triggered_only = yes immediate = { every_country = { limit = { has_country_flag = andorian_empire } save_global_event_target_as = andoria } every_country = { limit = { has_country_flag = united_earth } save_global_event_target_as = unitedEarth } every_country = { limit = { is_in_federation_with = event_target:andoria } every_owned_planet = { set_owner = event_target:andoria } every_owned_fleet = { set_owner = event_target:andoria set_controller = event_target:andoria } set_country_flag = united_federation_of_planets change_country_flag = { icon = { category = "trek" file = "Federation4.dds" } background = { category = "backgrounds" file = "00_solid.dds" } colors = { "blue" "black" "null" "null" } } } } option = { name = theFederation.5.a change_country_flag = { icon = { category="trek" file="Federation4.dds" } background = { category = "backgrounds" file = "00_solid.dds" } colors = { "blue" "black" "null" "null" } } set_country_flag = united_federation_of_planets change_government = indirect_democracy hidden_effect = { add_modifier = { modifier = "federation_formation_handicap" days = 3650 } give_technology = tech_desert_colonization give_technology = tech_tropical_colonization give_technology = tech_continental_colonization give_technology = tech_ocean_colonization give_technology = tech_arid_colonization give_technology = tech_arctic_colonization give_technology = tech_tundra_colonization } hidden_effect = { country_event = { id = theFederation.6 } } } } #Federation Signed - Tellarite country_event = { id = theFederation.11 title = "theFederation.5.name" desc = "theFederation.5.desc" picture = sth_GFX_evt_federationSigned show_sound = event_anthemUFP is_triggered_only = yes immediate = { every_country = { limit = { has_country_flag = tellarian_technocracy } save_global_event_target_as = tellar } every_country = { limit = { has_country_flag = united_earth } save_global_event_target_as = unitedEarth } every_country = { limit = { is_in_federation_with = event_target:tellar } every_owned_planet = { set_owner = event_target:tellar } every_owned_fleet = { set_owner = event_target:tellar set_controller = event_target:tellar } set_country_flag = united_federation_of_planets change_country_flag = { icon = { category = "trek" file = "Federation4.dds" } background = { category = "backgrounds" file = "00_solid.dds" } colors = { "blue" "black" "null" "null" } } } } option = { name = theFederation.5.a change_country_flag = { icon = { category="trek" file="Federation4.dds" } background = { category = "backgrounds" file = "00_solid.dds" } colors = { "blue" "black" "null" "null" } } set_country_flag = united_federation_of_planets change_government = indirect_democracy hidden_effect = { add_modifier = { modifier = "federation_formation_handicap" days = 3650 } give_technology = tech_desert_colonization give_technology = tech_tropical_colonization give_technology = tech_continental_colonization give_technology = tech_ocean_colonization give_technology = tech_arid_colonization give_technology = tech_arctic_colonization give_technology = tech_tundra_colonization } hidden_effect = { country_event = { id = theFederation.6 } } } } #Vassal is invited to Federation country_event = { id = theFederation.12 title = "theFederation.12.name" desc = "theFederation.12.desc" picture = sth_GFX_evt_federationFlag trigger = { is_country_type = default has_country_flag = united_federation_of_planets has_country_resource = { type = influence amount > 49 } any_country = { is_ai = yes OR = { is_subject_type = "vassal" is_subject_type = "protectorate" } overlord = { is_same_value = root } opinion = { who = root value > 100 } NOT = { has_country_flag = federationAccessionStage0 } } } immediate = { random_country = { limit = { is_ai = yes OR = { is_subject_type = "vassal" is_subject_type = "protectorate" } overlord = { is_same_value = root } opinion = { who = root value > 100 } } save_event_target_as = accessionState set_country_flag = federationAccessionStage0 } } mean_time_to_happen = { months = 120 } option = { name = theFederation.12.a hidden_effect = { event_target:accessionState = { set_country_flag = federationAccessionStage1 remove_country_flag = federationAccessionStage0 } } add_influence = -50 } option = { name = theFederation.12.b hidden_effect = { country_event = { id = theFederation.12 days = 10000 } } } } country_event = { id = theFederation.13 title = "theFederation.13.name" desc = "theFederation.13.desc" picture = sth_GFX_evt_federationFlag trigger = { has_country_flag = united_federation_of_planets has_country_resource = { type = influence amount > 99 } any_country = { is_ai = yes OR = { is_subject_type = "vassal" is_subject_type = "protectorate" } overlord = { is_same_value = root } opinion = { who = root value > 100 } has_country_flag = federationAccessionStage1 } } immediate = { random_country = { limit = { is_ai = yes OR = { is_subject_type = "vassal" is_subject_type = "protectorate" } overlord = { is_same_value = root } opinion = { who = root value > 100 } has_country_flag = federationAccessionStage1 } save_event_target_as = accessionState } } mean_time_to_happen = { months = 48 } option = { name = theFederation.13.a hidden_effect = { event_target:accessionState = { every_owned_planet = { set_owner = root } every_owned_fleet = { set_owner = root set_controller = root } set_country_flag = united_federation_of_planets change_country_flag = { icon = { category = "trek" file = "Federation4.dds" } background = { category = "backgrounds" file = "00_solid.dds" } colors = { "blue" "black" "null" "null" } } } } add_influence = -99 } option = { name = theFederation.13.b hidden_effect = { country_event = { id = theFederation.13 days = 1000 } } } option = { name = theFederation.13.c hidden_effect = { event_target:accessionState = { remove_country_flag = federationAccessionStage1 remove_country_flag = federationAccessionStage0 } } } }