factions updated and redundant files purged

This commit is contained in:
trashmasteruni 2026-10-19 22:13:20 +02:00
parent 0e844a8874
commit 434f68af19
10 changed files with 92 additions and 6722 deletions

View file

@ -1,6 +1,6 @@
independence_faction = {
casus_belli = independence_faction_war
short_effect_desc = independence_faction_short_effect_desc
sort_order = 2
@ -34,8 +34,8 @@
FACTION_TYPE2 = liberty_faction
FACTION_TYPE3 = populist_faction
}
}
}
demand = {
save_scope_as = faction
@ -215,7 +215,7 @@
}
}
add = 0.25
}
}
}
}
}
@ -281,7 +281,7 @@
liege = {
top_liege = this
}
trigger_if = {
limit = {
faith.religion = religion:islam_religion
@ -296,10 +296,10 @@
}
}
}
trigger_if = {
limit = {
government_allows = administrative
government_has_mechanic = administrative
}
custom_tooltip = {
text = admin_high_tier_vassal_create_faction
@ -338,7 +338,7 @@
}
# Bloc Cohesion requirement
japan_faction_cohesion_trigger = yes
liege = {
top_liege = this
}
@ -364,7 +364,7 @@
government_has_flag = government_is_nomadic
}
}
trigger_if = {
limit = {
faith.religion = religion:islam_religion
@ -379,10 +379,10 @@
}
}
}
trigger_if = {
limit = {
government_allows = administrative
government_has_mechanic = administrative
}
custom_tooltip = {
text = admin_high_tier_vassal_create_faction
@ -419,7 +419,7 @@
common_can_character_join_trigger = {
FACTION_TARGET = scope:faction.faction_target
}
trigger_if = {
limit = {
faith.religion = religion:islam_religion
@ -434,10 +434,10 @@
}
}
}
trigger_if = {
limit = {
government_allows = administrative
government_has_mechanic = administrative
}
custom_tooltip = {
text = admin_high_tier_vassal_join_faction
@ -516,47 +516,9 @@
liberty_faction = {
casus_belli = liberty_faction_war
desc = {
first_valid = {
triggered_desc = {
trigger = {
faction_target = { government_has_flag = government_is_administrative }
}
desc = liberty_faction_desc_admin
}
triggered_desc = {
trigger = {
faction_target = { government_has_flag = government_is_tribal }
}
desc = liberty_faction_desc_tribal
}
triggered_desc = {
trigger = {
faction_target = { government_has_flag = government_is_feudal }
}
desc = liberty_faction_desc_feudal
}
desc = liberty_faction_desc
}
}
desc = liberty_faction_desc
short_effect_desc = {
first_valid = {
triggered_desc = {
trigger = {
faction_target = { government_has_flag = government_is_administrative }
}
desc = liberty_faction_short_effect_desc_admin
}
triggered_desc = {
trigger = {
faction_target = { government_has_flag = government_is_tribal }
}
desc = liberty_faction_short_effect_desc_tribal
}
desc = liberty_faction_short_effect_desc
}
}
short_effect_desc = liberty_faction_short_effect_desc
sort_order = 4
@ -702,10 +664,10 @@ liberty_faction = {
has_valid_realm_laws_for_liberty_faction_trigger = {
TARGET = scope:target
}
trigger_if = {
limit = {
scope:target = { government_allows = administrative }
scope:target = { government_has_mechanic = administrative }
}
is_vassal_of = scope:target.top_liege
}
@ -721,10 +683,10 @@ liberty_faction = {
has_valid_realm_laws_for_liberty_faction_trigger = {
TARGET = scope:target
}
trigger_if = {
limit = {
scope:target = { government_allows = administrative }
scope:target = { government_has_mechanic = administrative }
}
is_vassal_of = scope:target.top_liege
}
@ -740,10 +702,10 @@ liberty_faction = {
TARGET = scope:faction.faction_target
}
}
trigger_if = {
limit = {
scope:faction.faction_target = { government_allows = administrative }
scope:faction.faction_target = { government_has_mechanic = administrative }
}
is_vassal_of = scope:faction.faction_target
}
@ -791,7 +753,7 @@ liberty_faction = {
culture = { has_cultural_parameter = house_hostility_more_common }
factor = 1.25
}
}
}
ai_join_score = {
@ -802,7 +764,7 @@ liberty_faction = {
common_join_faction_blockers = {
FACTION_TARGET = scope:faction.faction_target
}
#######################
# Standard AI Weights #
#AI
@ -915,12 +877,12 @@ claimant_faction = {
base = 80
modifier = {
add = 20
add = 20
faction_target = {
has_perk = hard_rule_perk
}
desc = "FACTION_POWER_HARD_RULE"
}
}
#Lower the threshold depending on the state of other factions
dynamic_power_threshold_scripted_modifier = {
@ -932,7 +894,7 @@ claimant_faction = {
is_valid = { # If the FACTION itself is valid
# see also invalidate_claimant_factions_on_death_effect for what happens when the claimant dies
trigger_if = {
limit = {
OR = {
@ -946,7 +908,7 @@ claimant_faction = {
special_character ?= {
is_alive = yes
#has_claim_on = root.special_title
NOR = {
NOR = {
has_trait = incapable
this = root.faction_target
}
@ -1120,19 +1082,19 @@ claimant_faction = {
common_character_validity_trigger = {
FACTION_TARGET = scope:faction.faction_target
}
trigger_if = {
limit = {
government_allows = administrative
government_has_mechanic = administrative
}
scope:faction.faction_target ?= {
OR = {
top_liege ?= this
NOT = { government_allows = administrative }
NOT = { government_has_mechanic = administrative }
}
}
}
# TGP - Use Coup against Kampaku instead
trigger_if = {
limit = {
@ -1266,8 +1228,8 @@ claimant_faction = {
}
claimant_faction_blockers = {
FACTION_TARGET = scope:faction.faction_target
FACTION_CLAIMANT = scope:faction.special_character
FACTION_TARGET = scope:faction.faction_target
FACTION_CLAIMANT = scope:faction.special_character
}
common_faction_modifiers = {
@ -1287,7 +1249,7 @@ claimant_faction = {
admin_faction_modifiers = {
FACTION_TARGET = scope:faction.faction_target
FACTION_TYPE = claimant_faction
}
}
admin_claimant_faction_modifiers = {
FACTION_TARGET = scope:faction.faction_target
@ -1296,15 +1258,15 @@ claimant_faction = {
# Faction 'Stacking' Factors, attempts to cluster AI rulers into several powerful factions instead of many weak ones.
join_faction_stacking_modifiers = yes
modifier = { # CE1 Divine Mandate perk
desc = "FACTION_REASON_LEGITIMACY_LEGACY_4"
liege.dynasty = { has_dynasty_perk = ce1_legitimacy_legacy_4 }
add = -10
}
struggle_faction_modifiers = yes
#EP3 admin legitimacy event
modifier = {
desc = "FACTION_REASON_LOW_LEGITIMACY_CHALLENGER"
@ -1351,12 +1313,12 @@ claimant_faction = {
county_join_score = {
base = -80 # Needs to be less than the weight set in 00_populist_faction.txt, or counties will never join a claimant faction over a populist faction.
# Up to +3 join score per negative opinion (+80 at -27 opinion) if different culture.
# Up to +3 join score per negative opinion (+80 at -27 opinion) if different culture.
compare_modifier = {
desc = "FACTION_REASON_CLAIMANT_COUNTY_SHARED_CULTURE"
trigger = {
scope:faction.faction_target.culture != this.title_province.culture
scope:faction.special_character.culture = this.title_province.culture
scope:faction.special_character.culture = this.title_province.culture
}
value = county_opinion
multiplier = -2.0
@ -1423,7 +1385,7 @@ claimant_faction = {
add = -200
this.title_province = scope:faction.faction_target.capital_province
}
# More likely to support adult claimants when a child is on the throne.
modifier = {
desc = "FACTION_REASON_ADULT_CLAIMANT_CHILD_RULER"
@ -1446,10 +1408,10 @@ claimant_faction = {
subtract = scope:faction.special_character.ai_vengefulness
# Converts the personality score into a percentage between 0% (will never support) and 100% (really wants to support)
divide = 800
divide = 800
}
# How big the factor is for supporting this claimant over other factions at max support.
# How big the factor is for supporting this claimant over other factions at max support.
multiplier = 2
}
}

View file

@ -1,6 +1,6 @@
nation_fracturing_faction = {
casus_belli = nation_fracturing_faction_war
short_effect_desc = nation_fracturing_faction_short_effect_desc
sort_order = 0
@ -41,8 +41,10 @@
FACTION_TARGET = scope:faction.faction_target
}
has_valid_faction_members_trigger = yes
tgp_realm_has_ceremonial_liege_trigger = no
}
demand = {
save_scope_as = faction
@ -81,6 +83,8 @@
# Bloc Cohesion requirement
japan_faction_cohesion_trigger = yes
tgp_realm_has_ceremonial_liege_trigger = no
liege = {
top_liege = this
NOT = { government_has_flag = government_is_theocracy }
@ -99,7 +103,7 @@
government_has_flag = government_is_nomadic
is_ai = no
}
trigger_if = {
limit = {
faith.religion = religion:islam_religion
@ -133,7 +137,9 @@
}
# Bloc Cohesion requirement
japan_faction_cohesion_trigger = yes
tgp_realm_has_ceremonial_liege_trigger = no
liege = {
top_liege = this
NOT = { government_has_flag = government_is_theocracy }
@ -145,13 +151,13 @@
}
}
}
# Only powerfull vassals can create such factions and they need to have either another culture or faith
OR = {
is_powerful_vassal = yes
is_ai = no
}
trigger_if = {
limit = {
faith.religion = religion:islam_religion
@ -225,7 +231,7 @@
common_can_character_join_trigger = {
FACTION_TARGET = scope:faction.faction_target
}
trigger_if = {
limit = {
faith.religion = religion:islam_religion
@ -362,8 +368,8 @@
is_county_valid = {
holder = scope:faction.faction_target
OR = {
culture != scope:faction.faction_target.culture
faith != scope:faction.faction_target.faith
culture != scope:faction.faction_target.culture
faith != scope:faction.faction_target.faith
}
}

View file

@ -45,7 +45,15 @@ peasant_faction = {
is_county_valid = {
# Peasants can only join a faction against their direct liege. Unless their liege is Byzantium trying to restore the Roman Empire, then they go for the emperor
holder = scope:faction.faction_target
trigger_if = {
limit = {
scope:faction.faction_target = {
ep3_restored_rome_hard_mode_trigger = yes
}
}
holder.top_liege = scope:faction.faction_target
}
trigger_else = { holder = scope:faction.faction_target }
title_province = {
NOR = {
has_holding_type = nomad_holding
@ -546,8 +554,18 @@ peasant_faction = {
can_county_join = {
# Peasants can only join a faction against their direct liege. Unless their liege is Byzantium trying to restore the Roman Empire, then they go for the emperor
holder = scope:faction.faction_target
trigger_if = {
limit = {
scope:faction.faction_target = {
OR = {
ep3_restored_rome_hard_mode_trigger = yes
has_variable = peasant_war_escalates
}
}
}
holder.top_liege = scope:faction.faction_target
}
trigger_else = { holder = scope:faction.faction_target }
title_province = {
NOR = {
@ -559,8 +577,18 @@ peasant_faction = {
can_county_create = {
# Peasants can only join a faction against their direct liege. Unless their liege is Byzantium trying to restore the Roman Empire, then they go for the emperor
holder = scope:target
trigger_if = {
limit = {
scope:target = {
OR = {
ep3_restored_rome_hard_mode_trigger = yes
has_variable = peasant_war_escalates
}
}
}
holder.top_liege = scope:target
}
trigger_else = { holder = scope:target }
scope:target = {
NAND = {
@ -698,6 +726,7 @@ peasant_faction = {
war_keep_on_attacker_victory = yes
}
}
}
}
leader_leaves = {

File diff suppressed because it is too large Load diff