############################## # Manifesti Faction ############################## manifesti = { election_header = "GFX_faction_header_yellow" guiding_ethic = ethic_egalitarian use_guiding_ethic_as_pop_filter = no #this means that the faction will let pops that aren't egalitarian in too can_rename = no visual_ethic = "manifesti_visual_ethic" unique = yes support_multiplier = 1 resources = { category = pop_factions inline_script = pop_faction_types/shared_unity_production produces = { trigger = { owner = { OR = { has_civic = civic_crowdsourcing has_civic = civic_corporate_crowdsourcing } has_country_flag = manifesti_engineering } } engineering_research = @faction_major_output society_research = @faction_minor_output mult = @crowdsourcing_manifesti_multiplier } produces = { trigger = { owner = { OR = { has_civic = civic_crowdsourcing has_civic = civic_corporate_crowdsourcing } has_country_flag = manifesti_society } } society_research = @faction_major_output physics_research = @faction_minor_output mult = @crowdsourcing_manifesti_multiplier } produces = { trigger = { owner = { OR = { has_civic = civic_crowdsourcing has_civic = civic_corporate_crowdsourcing } has_country_flag = manifesti_physics } } physics_research = @faction_major_output engineering_research = @faction_minor_output mult = @crowdsourcing_manifesti_multiplier } } extortion_resource = { category = pop_factions produces = { trigger = { owner = { NOR = { has_civic = civic_crowdsourcing has_civic = civic_corporate_crowdsourcing } } } consumer_goods = @faction_base_output mult = @faction_extortion_consumer_goods_ratio } produces = { trigger = { owner = { OR = { has_civic = civic_crowdsourcing has_civic = civic_corporate_crowdsourcing } has_country_flag = manifesti_engineering } } engineering_research = @faction_major_output society_research = @faction_minor_output mult = @faction_extortion_research_ratio #Extorting Manifesti is not worth it. } produces = { trigger = { owner = { OR = { has_civic = civic_crowdsourcing has_civic = civic_corporate_crowdsourcing } has_country_flag = manifesti_society } } society_research = @faction_major_output physics_research = @faction_minor_output mult = @faction_extortion_research_ratio } produces = { trigger = { owner = { OR = { has_civic = civic_crowdsourcing has_civic = civic_corporate_crowdsourcing } has_country_flag = manifesti_physics } } physics_research = @faction_major_output engineering_research = @faction_minor_output mult = @faction_extortion_research_ratio } } is_potential = { years_passed > 10 is_ai = no has_country_flag = manifesti_faction is_regular_empire = yes has_encountered_other_species = yes is_at_war = no NOR = { is_homicidal = yes is_fanatic = yes has_valid_civic = civic_warrior_culture has_country_flag = manifesti_decline #Applied if/when the faction is suppressed } } parameters = { empire = { type = country valid_objects = { is_same_value = root } } } can_join_pre_triggers = { is_enslaved = no is_being_purged = no } can_join_faction = { OR = { has_ethic = ethic_egalitarian has_ethic = ethic_xenophile has_ethic = ethic_pacifist } is_shackled_robot = no can_think = yes NOT = { has_pop_group_flag = manifesti_bored } } attraction = { base = 160 modifier = { factor = 1.25 exists = from from = { exists = leader leader = { is_ruler = yes } } } modifier = { factor = 0.75 exists = from from = { NOT = { exists = leader } } } modifier = { factor = 0.25 OR = { has_trait = trait_conformists has_trait = trait_thrifty has_trait = trait_traditional } } modifier = { #Outcasts and radicals factor = 1.5 OR = { NOT = { is_same_species = owner_species } NOT = { has_citizenship_type = { type = citizenship_full country = owner } } has_trait = trait_unruly } } } leader = { base = 100 modifier = { factor = 0 is_ruler = yes owner = { OR = { is_imperial_authority = yes is_dictatorial_authority = yes } } } modifier = { factor = 0 is_event_leader = yes } } #By design, the following include demands which are technically possible, but unrealistic/unreasonable for moderate empires demand = { title = "MANIFESTI_RIVERS_MOVEMENT" unfulfilled_title = "MANIFESTI_RIVERS_RESTRAINED" desc = "MANIFESTI_RIVERS_DESC" fulfilled_effect = 10 unfulfilled_effect = -10 potential = { exists = owner owner = { has_technology = tech_colonization_2 has_void_dweller_origin = no } } trigger = { owner = { OR = { AND = { has_technology = tech_massive_glacier any_owned_planet = { has_deposit = d_massive_glacier } } AND = { has_technology = tech_noxious_swamp any_owned_planet = { has_deposit = d_noxious_swamp } } any_owned_planet = { has_planet_flag = planet_earth NOT = { has_deposit = d_great_pacific_garbage_patch } } } } } } demand = { title = "MANIFESTI_MUNITIONS_AUTO" unfulfilled_title = "MANIFESTI_MUNITIONS_OPPRESSED" desc = "MANIFESTI_MUNITIONS_DESC" fulfilled_effect = 20 unfulfilled_effect = -20 potential = { exists = owner owner = { has_technology = tech_combat_computers_2 #Prerequisite for Autonomous NOT = { has_policy_flag = robots_outlawed } } } trigger = { owner = { has_technology = tech_combat_computers_3 any_controlled_ship = { OR = { has_component = COMBAT_COMPUTER_SWARM_SAPIENT has_component = COMBAT_COMPUTER_PICKET_SAPIENT has_component = COMBAT_COMPUTER_LINE_SAPIENT has_component = COMBAT_COMPUTER_ARTILLERY_SAPIENT has_component = COMBAT_COMPUTER_CARRIER_SAPIENT } } count_owned_army = { limit = { army_type = slave_army } count < 1 } count_owned_army = { limit = { army_type = undead_army } count < 1 } } } } demand = { title = "MANIFESTI_CAREFREE_SCIENCE" unfulfilled_title = "MANIFESTI_CAREFREE_SCIENCE_OPPRESSED" desc = "MANIFESTI_CAREFREE_SCIENCE_DESC" fulfilled_effect = 10 unfulfilled_effect = -10 potential = { exists = owner } trigger = { owner = { count_owned_leader = { count = 0 limit = { leader_class = scientist is_councilor = yes NOR = { has_trait_tier1or2 = { TRAIT = leader_trait_roamer } has_trait_tier1or2 = { TRAIT = leader_trait_carefree } } } } } } } demand = { title = "MANIFESTI_RETINAL_FOCUS" unfulfilled_title = "MANIFESTI_RETINAL_FOCUS_OPPRESSED" desc = "MANIFESTI_RETINAL_FOCUS_DESC" fulfilled_effect = 5 unfulfilled_effect = -10 potential = { exists = owner } trigger = { owner = { has_monthly_income = { resource = consumer_goods value < 1 } } } } demand = { title = "MANIFESTI_SILENT_PARTNER" unfulfilled_title = "MANIFESTI_SILENT_PARTNER_OPPRESSED" desc = "MANIFESTI_SILENT_PARTNER_DESC" fulfilled_effect = 5 unfulfilled_effect = -5 potential = { exists = owner owner = { OR = { has_federation = yes is_galactic_community_member = yes } } } trigger = { owner = { if = { limit = { has_federation = yes is_federation_leader = yes } NOT = { any_owned_leader = { is_assigned_to_federation = yes } } } if = { limit = { is_galactic_community_member = yes } NOT = { any_owned_leader = { is_assigned_to_galcom = yes } is_proposing_resolution = any } } } } } # Faction Demands for Ruler and Council positions. inline_script = { script = "pop_faction_types/global_faction_demands" ETHIC = ethic_egalitarian ETHIC_FANATIC = ethic_fanatic_egalitarian ETHIC_OPPOSED = ethic_authoritarian } on_create = { pop_faction_event = { id = factions.0 } owner = { country_event = { id = manifesti.30 days = 940 } } } on_destroy = { if = { limit = { has_modifier = promoted_egalitarian } remove_modifier = promoted_egalitarian } if = { limit = { has_modifier = suppressed_egalitarian } remove_modifier = suppressed_egalitarian } country_event = { id = manifesti.30 } } actions = { embrace_faction = { title = "EMBRACE_FACTION" description = "EMBRACE_FACTION_DESC" cost = { unity = 5000 } potential = { exists = owner owner = { OR = { is_subject = no NOT = { any_agreement = { agreement_preset = preset_dominion } } } } } valid = { custom_tooltip = { fail_text = EMBRACE_FACTION_COOLDOWN parameter:empire = { NOT = { has_modifier = embraced_faction_timer } } } support > 0.20 parameter:empire = { NOT = { has_ethic = "ethic_fanatic_egalitarian" } } } effect = { add_modifier = { modifier = embraced_faction days = 3600 } owner = { set_country_flag = has_embraced_faction } parameter:empire = { shift_ethic = ethic_egalitarian hidden_effect = { add_modifier = { modifier = embraced_faction_timer days = 3600 } every_pop_faction = { limit = { NOT = { is_same_value = root } } add_modifier = { modifier = embraced_another_faction days = 3600 } } } } hidden_effect = { save_event_target_as = TargetFaction parameter:empire = { every_relation = { limit = { is_ai = no is_country_type = default has_communications = prev has_intel_level = { who = prev category = government level >= 1 } } country_event = { id = factions.2000 } } } } } ai_weight = { base = 1 modifier = { factor = 0 support < 0.50 owner = { has_ethic = ethic_egalitarian } } modifier = { factor = 0 owner = { has_valid_civic = civic_fanatic_purifiers } } modifier = { factor = 0 owner = { count_pop_faction = { count < 4 } } } } } promote_faction = { title = "PROMOTE_FACTION" description = "PROMOTE_FACTION_DESC" potential = { exists = owner parameter:empire = { NOR = { has_modifier = suppressed_egalitarian has_modifier = promoted_egalitarian } } } effect = { owner = { set_country_flag = has_promoted_faction } parameter:empire = { add_modifier = { modifier = promoted_egalitarian days = -1 } } } ai_weight = { base = 0 } } cancel_promote_faction = { title = "CANCEL_PROMOTE_FACTION" description = "CANCEL_PROMOTE_FACTION_DESC" potential = { exists = owner parameter:empire = { has_modifier = promoted_egalitarian } } effect = { parameter:empire = { remove_modifier = promoted_egalitarian } } ai_weight = { base = 0 } } suppress_faction = { title = "SUPPRESS_FACTION" description = "SUPPRESS_FACTION_DESC" potential = { exists = owner parameter:empire = { NOR = { has_modifier = suppressed_egalitarian has_modifier = promoted_egalitarian } } } effect = { add_modifier = { modifier = suppressed_faction days = -1 } parameter:empire = { add_modifier = { modifier = suppressed_egalitarian days = -1 } } } ai_weight = { base = 0 } } cancel_suppress_faction = { title = "CANCEL_SUPPRESS_FACTION" description = "CANCEL_SUPPRESS_FACTION_DESC" potential = { exists = owner parameter:empire = { has_modifier = suppressed_egalitarian } } effect = { remove_modifier = suppressed_faction parameter:empire = { remove_modifier = suppressed_egalitarian } } ai_weight = { base = 0 } } # Faction Extortion Buttons extort_faction = { title = "EXTORT_FACTION" description = "EXTORT_FACTION_DESC" potential = { exists = owner owner = { is_oligarchic_authority = yes has_country_flag = cyber_collectivist NOR = { has_valid_civic = civic_crowdsourcing has_valid_civic = civic_corporate_crowdsourcing } } is_faction_extorted = no } effect = { set_faction_extorted = yes custom_tooltip = consumer_goods_extortion_tt custom_tooltip = ONLY_ONE_EXTORTED_FACTION_TT } ai_weight = { base = 0 } } extort_faction_crowdsourcing = { #Crowdsourcing version title = "EXTORT_FACTION" description = "EXTORT_FACTION_DESC" potential = { exists = owner owner = { is_oligarchic_authority = yes has_country_flag = cyber_collectivist OR = { has_valid_civic = civic_crowdsourcing has_valid_civic = civic_corporate_crowdsourcing } } is_faction_extorted = no } effect = { set_faction_extorted = yes custom_tooltip = manifesti_crowdsourced_extortion_tt custom_tooltip = ONLY_ONE_EXTORTED_FACTION_TT } ai_weight = { base = 0 } } cancel_extort_faction = { title = "CANCEL_EXTORT_FACTION" description = "CANCEL_EXTORT_FACTION_DESC" potential = { exists = owner owner = { is_oligarchic_authority = yes has_country_flag = cyber_collectivist } is_faction_extorted = yes } effect = { set_faction_extorted = no } ai_weight = { base = 0 } } } }