############################## # Totalitarian Faction ############################## totalitarian = { election_header = "GFX_faction_header_yellow" guiding_ethic = ethic_authoritarian visual_ethic = "totalitarian_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 } } } society_research = @faction_major_output engineering_research = @faction_minor_output mult = @crowdsourcing_multiplier } } extortion_resource = { category = pop_factions produces = { trigger = { owner = { NOR = { has_civic = civic_crowdsourcing has_civic = civic_corporate_crowdsourcing } } } engineering_research = @faction_base_output mult = @faction_extortion_research_ratio } produces = { trigger = { owner = { OR = { has_civic = civic_crowdsourcing has_civic = civic_corporate_crowdsourcing } } } society_research = @faction_major_output engineering_research = @faction_minor_output mult = @faction_extortion_crowdsourcing_ratio } } is_potential = { is_faction_allowed = yes } parameters = { empire = { type = country valid_objects = { is_same_value = root } } } can_join_pre_triggers = { is_enslaved = no is_being_purged = no } can_join_faction = { is_shackled_robot = no can_think = yes } attraction = { base = 150 modifier = { factor = 1.25 exists = from from = { exists = leader leader = { is_ruler = yes } } } modifier = { factor = 0.75 exists = from from = { NOT = { exists = leader } } } # Should really check for citizenship instead modifier = { factor = 0.25 NOT = { is_same_species = owner_species } } } leader = { base = 100 modifier = { factor = 0.0 is_event_leader = yes } } # DEMAND: Faction Outraged (by a GalCom Resolution) inline_script = { script = pop_faction_types/demand_faction_outraged FLAG = galcom_resolution_passed_anti_totalitarian } # DEMAND: Faction Pleased (by a GalCom Resolution) inline_script = { script = pop_faction_types/demand_faction_pleased FLAG = galcom_resolution_passed_pro_totalitarian } demand = { title = "TOTALITARIAN_AUTOCRACY" unfulfilled_title = "TOTALITARIAN_NO_AUTOCRACY" desc = "TOTALITARIAN_AUTOCRACY_DESC" fulfilled_effect = 10 unfulfilled_effect = -0.001 potential = { exists = owner owner = { is_democratic_authority = no } } trigger = { owner = { OR = { is_imperial_authority = yes is_dictatorial_authority = yes } } } } demand = { title = "TOTALITARIAN_DEMOCRACY" unfulfilled_title = "TOTALITARIAN_NO_DEMOCRACY" desc = "TOTALITARIAN_DEMOCRACY_DESC" unfulfilled_effect = -25 fulfilled_effect = 0.001 potential = { exists = owner owner = { NOR = { is_imperial_authority = yes is_dictatorial_authority = yes } } } trigger = { owner = { is_democratic_authority = no } } } demand = { title = "TOTALITARIAN_STRATIFICATION" unfulfilled_title = "TOTALITARIAN_NO_STRATIFICATION" desc = "TOTALITARIAN_STRATIFICATION_DESC" fulfilled_effect = 10 unfulfilled_effect = -20 potential = { exists = owner } trigger = { owner = { OR = { NOT = { any_owned_species = { NOR = { has_living_standard = { type = living_standard_dystopian_society country = prev } has_living_standard = { type = living_standard_stratified country = prev } has_living_standard = { type = living_standard_academic_privilege country = prev } } } } any_owned_species = { OR = { has_citizenship_type = { type = citizenship_slavery country = prev } has_citizenship_type = { type = citizenship_purge country = prev } has_citizenship_type = { type = citizenship_robot_servitude country = prev } } } has_civic = civic_slaver_guilds } } } } demand = { title = "TOTALITARIAN_ELITISM" unfulfilled_title = "TOTALITARIAN_NO_ELITISM" desc = "TOTALITARIAN_ELITISM_DESC" fulfilled_effect = 5 unfulfilled_effect = -5 potential = { exists = owner owner = { OR = { has_technology = tech_selected_lineages has_technology = tech_capacity_boosters } } } trigger = { owner = { OR = { has_policy_flag = leader_enhancement_selected_lineages has_policy_flag = leader_enhancement_capacity_boosters } } } } demand = { title = "TOTALITARIAN_EXTRANATIONAL_AUTHORITY" unfulfilled_title = "TOTALITARIAN_NO_EXTRANATIONAL_AUTHORITY" desc = "TOTALITARIAN_EXTRANATIONAL_AUTHORITY_DESC" fulfilled_effect = 10 unfulfilled_effect = -0.001 potential = { exists = owner owner = { num_communications > 2 } } trigger = { owner = { is_overlord = yes } } } demand = { title = "TOTALITARIAN_UNDERLING" unfulfilled_title = "TOTALITARIAN_NOT_UNDERLING" desc = "TOTALITARIAN_UNDERLING_DESC" unfulfilled_effect = -10 fulfilled_effect = 0.001 potential = { exists = owner owner = { is_subject = yes } } trigger = { owner = { is_subject = no } } } demand = { title = "TOTALITARIAN_BENEVOLENT_SUBJUGATION_POLICY" unfulfilled_title = "TOTALITARIAN_NO_BENEVOLENT_SUBJUGATION_POLICY" desc = "TOTALITARIAN_BENEVOLENT_SUBJUGATION_POLICY_DESC" unfulfilled_effect = -10 fulfilled_effect = 0.001 potential = { exists = owner owner = { is_subject = no has_policy_flag = benevolent_terms } } trigger = { owner = { NOT = { has_policy_flag = benevolent_terms } } } } demand = { title = "TOTALITARIAN_OPPRESSIVE_SUBJUGATION_POLICY" unfulfilled_title = "TOTALITARIAN_ADOPT_OPPRESSIVE_SUBJUGATION_POLICY" desc = "TOTALITARIAN_OPPRESSIVE_SUBJUGATION_POLICY_DESC" fulfilled_effect = 10 unfulfilled_effect = -0.001 potential = { exists = owner owner = { is_subject = no NOT = { has_policy_flag = benevolent_terms } } } trigger = { owner = { has_policy_flag = oppressive_terms } } } demand = { title = TOTALITARIAN_FEDERATION unfulfilled_title = TOTALITARIAN_FEDERATION_NOT_HEGEMONY desc = TOTALITARIAN_FEDERATION_DESC fulfilled_effect = 5 unfulfilled_effect = -0.001 potential = { exists = owner.federation has_federations_dlc = yes } trigger = { owner.federation = { has_federation_type = hegemony_federation } } } demand = { # Unplugged: Status Quo title = TOTALITARIAN_UNPLUGGED_STATUS_QUO unfulfilled_title = TOTALITARIAN_UNPLUGGED_NOT_STATUS_QUO desc = TOTALITARIAN_UNPLUGGED_STATUS_QUO_DESC unfulfilled_effect = -20 fulfilled_effect = 0.001 potential = { exists = owner owner = { has_origin = origin_unplugged any_situation = { is_situation_type = situation_unplugged_identity } } } trigger = { owner = { any_situation = { is_situation_type = situation_unplugged_identity current_stage = stage_2 current_situation_approach = situation_unplugged_identity_discourage_change } } } } # Faction Demands for Ruler and Council positions. inline_script = { script = "pop_faction_types/global_faction_demands" ETHIC = ethic_authoritarian ETHIC_FANATIC = ethic_fanatic_authoritarian ETHIC_OPPOSED = ethic_egalitarian } on_create = { pop_faction_event = { id = factions.0 } } on_destroy = { if = { limit = { has_modifier = promoted_authoritarian } remove_modifier = promoted_authoritarian } if = { limit = { has_modifier = suppressed_authoritarian } remove_modifier = suppressed_authoritarian } } 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_authoritarian" } } } effect = { add_modifier = { modifier = embraced_faction days = 3600 } owner = { set_country_flag = has_embraced_faction } parameter:empire = { shift_ethic = ethic_authoritarian 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_authoritarian } } 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_authoritarian has_modifier = promoted_authoritarian } } } effect = { owner = { set_country_flag = has_promoted_faction } parameter:empire = { add_modifier = { modifier = promoted_authoritarian 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_authoritarian } } effect = { parameter:empire = { remove_modifier = promoted_authoritarian } } ai_weight = { base = 0 } } suppress_faction = { title = "SUPPRESS_FACTION" description = "SUPPRESS_FACTION_DESC" potential = { exists = owner parameter:empire = { NOR = { has_modifier = suppressed_authoritarian has_modifier = promoted_authoritarian } } } effect = { add_modifier = { modifier = suppressed_faction days = -1 } parameter:empire = { add_modifier = { modifier = suppressed_authoritarian 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_authoritarian } } effect = { remove_modifier = suppressed_faction parameter:empire = { remove_modifier = suppressed_authoritarian } } 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 = engineering_research_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 = 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 } } } }