diff --git a/CleanSlate/common/bloodlines/bloodlines.info b/CleanSlate/common/bloodlines/bloodlines.info index 00a38354b..42070f1c2 100644 --- a/CleanSlate/common/bloodlines/bloodlines.info +++ b/CleanSlate/common/bloodlines/bloodlines.info @@ -18,11 +18,11 @@ Bloodline file syntax: Related script interface: Triggers: is_bloodline_member_of - Returns true if current scope is a member of RightHand-Side(RHS) scope . - is_bloodline_founder_of - Returns true if current scope is the founding member of RHS scope . + is_bloodline_founder_of - Returns true if current scope is the founding member of RHS scope . bloodline_is_active_for - Returns true if current scope is active for on RHS. - shares_any_bloodline_with - Returns true if the current scope and the RHS scope have at least one bloodline in common with one another. - bloodline - returns true if the current scope is the exact same bloodline as the RHS scope . - has_bloodline_flag - Returns true if the current scope has the script flag defined on the RHS. + shares_any_bloodline_with - Returns true if the current scope and the RHS scope have at least one bloodline in common with one another. + bloodline - returns true if the current scope is the exact same bloodline as the RHS scope . + has_bloodline_flag - Returns true if the current scope has the script flag defined on the RHS. had_bloodline_flag - Returns true if the current scope has had the script flag for the defined time period { flag - Obligatory, flag to be checked @@ -30,10 +30,10 @@ Related script interface: } Scope changes: - any/random_bloodline_member - Scopes from a bloodline to all it's living members. - any/random_bloodline_member_including_dead - Scopes from a bloodline to all of it's members. - any/random_bloodline - Scopes to every bloodline currently existing. - any/random_owned_bloodline - Scopes to every bloodline that the current scope is a member of. + any/random_bloodline_member - Scopes from a bloodline to all it's living members. + any/random_bloodline_member_including_dead - Scopes from a bloodline to all of it's members. + any/random_bloodline - Scopes to every bloodline currently existing. + any/random_owned_bloodline - Scopes to every bloodline that the current scope is a member of. founder - Used in a bloodline scope, scopes to the founder new_bloodline - The bloodline you just created in script @@ -47,13 +47,13 @@ Related script interface: allow_bastards = - Optional. Overrides the base types bastard rules } - add_to_bloodline - Adds the current scope as a member to the RHS scope - add_bloodline_member - Adds the RHS scope as a member the the current scope - remove_from_bloodline - Removes the current scope from the RHS scope - remove_bloodline_member - Removes the RHS scope - destroy_bloodline - Removes the current bloodline from the game - set_bloodline_flag - Adds a script flag to the current scope - clr_bloodline_flag - Removes a script flag from the current scope + add_to_bloodline - Adds the current scope as a member to the RHS scope + add_bloodline_member - Adds the RHS scope as a member the the current scope + remove_from_bloodline - Removes the current scope from the RHS scope + remove_bloodline_member - Removes the RHS scope + destroy_bloodline - Removes the current bloodline from the game + set_bloodline_flag - Adds a script flag to the current scope + clr_bloodline_flag - Removes a script flag from the current scope set_name = "LOC_KEY" - Sets the name of the bloodline set_description = "LOC_KEY" - Sets the description of the bloodline diff --git a/CleanSlate/common/cb_types/claim_cbs.txt b/CleanSlate/common/cb_types/claim_cbs.txt index 674139077..0b0df7d21 100644 --- a/CleanSlate/common/cb_types/claim_cbs.txt +++ b/CleanSlate/common/cb_types/claim_cbs.txt @@ -50,33 +50,33 @@ claim = { # A female ruler without full equality cannot be ousted by another female ruler without full equality trigger_if = { - limit = { - NOT = { + limit = { + NOT = { has_game_rule = { # Makes the below moot name = gender value = all } } ROOT = { is_female = yes } - holder_scope = { - is_female = yes - NOR = { - has_religion_feature = religion_matriarchal - has_religion_feature = religion_equal - has_religion_feature = religion_feature_bon - has_law = status_of_women_4 - } - } - } - ROOT = { - OR = { - has_law = status_of_women_4 - has_religion_feature = religion_matriarchal - has_religion_feature = religion_equal - has_religion_feature = religion_feature_bon - } - } - } + holder_scope = { + is_female = yes + NOR = { + has_religion_feature = religion_matriarchal + has_religion_feature = religion_equal + has_religion_feature = religion_feature_bon + has_law = status_of_women_4 + } + } + } + ROOT = { + OR = { + has_law = status_of_women_4 + has_religion_feature = religion_matriarchal + has_religion_feature = religion_equal + has_religion_feature = religion_feature_bon + } + } + } } } } diff --git a/CleanSlate/common/governments/feudal_governments.txt b/CleanSlate/common/governments/feudal_governments.txt index f676cda42..c6bd73089 100644 --- a/CleanSlate/common/governments/feudal_governments.txt +++ b/CleanSlate/common/governments/feudal_governments.txt @@ -33,12 +33,10 @@ feudal_governments = { color = { 118 255 163 } potential = { - feudal_group_potential_trigger = yes chinese_imperial_government_potential_trigger = yes } allow = { - feudal_group_allow_trigger = yes chinese_imperial_government_allow_trigger = yes } @@ -93,12 +91,10 @@ feudal_governments = { color = { 91 133 207 } potential = { - feudal_group_potential_trigger = yes feudal_government_potential_trigger = yes } allow = { - feudal_group_allow_trigger = yes feudal_government_allow_trigger = yes } @@ -144,12 +140,10 @@ feudal_governments = { color = { 10 138 57 } potential = { - feudal_group_potential_trigger = yes muslim_feudal_government_potential_trigger = yes } allow = { - feudal_group_allow_trigger = yes muslim_feudal_government_allow_trigger = yes } @@ -202,12 +196,10 @@ feudal_governments = { color = { 169 169 169 } potential = { - feudal_group_potential_trigger = yes order_government_potential_trigger = yes } allow = { - feudal_group_allow_trigger = yes order_government_allow_trigger = yes } @@ -255,12 +247,10 @@ feudal_governments = { color = { 143 12 125 } potential = { - feudal_group_potential_trigger = yes roman_imperial_government_potential_trigger = yes } allow = { - feudal_group_allow_trigger = yes roman_imperial_government_allow_trigger = yes } @@ -311,12 +301,10 @@ feudal_governments = { color = { 207 145 90 } potential = { - feudal_group_potential_trigger = yes monastic_feudal_government_potential_trigger = yes } allow = { - feudal_group_allow_trigger = yes monastic_feudal_government_allow_trigger = yes } diff --git a/CleanSlate/common/governments/nomadic_governments.txt b/CleanSlate/common/governments/nomadic_governments.txt index b8cb4f454..dd082ef31 100644 --- a/CleanSlate/common/governments/nomadic_governments.txt +++ b/CleanSlate/common/governments/nomadic_governments.txt @@ -32,11 +32,9 @@ nomadic_governments = { color = { 201 179 36 } potential = { - nomadic_group_potential_trigger = yes nomadic_government_potential_trigger = yes } allow = { - nomadic_group_allow_trigger = yes nomadic_government_allow_trigger = yes } diff --git a/CleanSlate/common/governments/republic_governments.txt b/CleanSlate/common/governments/republic_governments.txt index 00cb5e66f..bd074406e 100644 --- a/CleanSlate/common/governments/republic_governments.txt +++ b/CleanSlate/common/governments/republic_governments.txt @@ -33,12 +33,10 @@ republic_governments = { color = { 94 187 185 } potential = { - republic_group_potential_trigger = yes confucian_government_potential_trigger = yes } allow = { - republic_group_allow_trigger = yes confucian_government_allow_trigger = yes } @@ -87,12 +85,10 @@ republic_governments = { color = { 250 0 0 } potential = { - republic_group_potential_trigger = yes merchant_republic_government_potential_trigger = yes } allow = { - republic_group_allow_trigger = yes merchant_republic_government_allow_trigger = yes } @@ -140,11 +136,9 @@ republic_governments = { color = { 209 125 130 } potential = { - republic_group_potential_trigger = yes republic_government_potential_trigger = yes } allow = { - republic_group_allow_trigger = yes republic_government_allow_trigger = yes } diff --git a/CleanSlate/common/governments/theocracy_governments.txt b/CleanSlate/common/governments/theocracy_governments.txt index 2e85538e5..7fb1adf67 100644 --- a/CleanSlate/common/governments/theocracy_governments.txt +++ b/CleanSlate/common/governments/theocracy_governments.txt @@ -30,12 +30,10 @@ theocracy_governments = { color = { 220 220 220 } potential = { - theocratic_group_potential_trigger = yes theocratic_government_potential_trigger = yes } allow = { - theocratic_group_allow_trigger = yes theocratic_government_allow_trigger = yes } @@ -46,5 +44,4 @@ theocracy_governments = { capital_move_delay = 600 } - } \ No newline at end of file diff --git a/CleanSlate/common/religions/religions.info b/CleanSlate/common/religions/religions.info index df16c029a..dbc5699d3 100644 --- a/CleanSlate/common/religions/religions.info +++ b/CleanSlate/common/religions/religions.info @@ -62,76 +62,76 @@ independence_war_score_bonus = 30 # CleanSlate Religion Format religion_group = { - playable = - hostile_within_group = + playable = + hostile_within_group = - color = {} - graphical_culture = - has_coa_on_barony_only = + color = {} + graphical_culture = + has_coa_on_barony_only = - ai_convert_same_group = - ai_convert_other_group = - ai_fabricate_claims = - ai_peaceful = + ai_convert_same_group = + ai_convert_other_group = + ai_fabricate_claims = + ai_peaceful = - crusade_cb = + crusade_cb = - male_names = {} + male_names = {} - female_names = {} + female_names = {} - religion_name = { - icon = - heresy_icon = + religion_name = { + icon = + heresy_icon = - color = {} - graphical_culture = - secondary_event_pictures = + color = {} + graphical_culture = + secondary_event_pictures = - religious_clothing_head = - religious_clothing_priest = + religious_clothing_head = + religious_clothing_priest = - parent = other_religion # Omit if not heresy - reformed = reformed_religion # Omit if not reformable + parent = other_religion # Omit if not heresy + reformed = reformed_religion # Omit if not reformable - crusade_cb = some_crusade # Omit if same as group cb + crusade_cb = some_crusade # Omit if same as group cb - # NOTE: Heresies omit crusade name, priest title, scripture name, and all god names unless different from parent + # NOTE: Heresies omit crusade name, priest title, scripture name, and all god names unless different from parent - crusade_name = - priest_title = - scripture_name = + crusade_name = + priest_title = + scripture_name = - high_god_name = + high_god_name = - god_names = { - GOD_ONE - GOD_TWO - ETC - } + god_names = { + GOD_ONE + GOD_TWO + ETC + } - evil_god_names = { - AS_ABOVE - } + evil_god_names = { + AS_ABOVE + } - intermarry = + intermarry = - # string/integer defines - aggression = - max_consorts = + # string/integer defines + aggression = + max_consorts = - # modifiers - unit_modifier = { + # modifiers + unit_modifier = { - } - unit_home_modifier = { + } + unit_home_modifier = { - } + } - # boolean defines - allow_in_ruler_designer = - can_call_crusade = + # boolean defines + allow_in_ruler_designer = + can_call_crusade = - alternate_start = {} - } + alternate_start = {} + } } \ No newline at end of file diff --git a/CleanSlate/common/scripted_triggers/00_government_triggers.txt b/CleanSlate/common/scripted_triggers/00_government_triggers.txt index a11e1fb47..f37413427 100644 --- a/CleanSlate/common/scripted_triggers/00_government_triggers.txt +++ b/CleanSlate/common/scripted_triggers/00_government_triggers.txt @@ -2,12 +2,23 @@ # NOTE: Holdings and Laws are not loaded until after the game starts. EXTREMELY DELICATE, modify at your own risk # Feudal Group -feudal_group_potential_trigger = {} -feudal_group_allow_trigger = {} +feudal_group_potential_trigger = { + could_be_temporal_religious_head_trigger = yes # If holder is a religion head, makes sure they shouldn't be a theocracy instead + is_patrician = no + NOR = { # Special governments that should be prioritized (only feudal by technicality) + is_government_potential = chinese_imperial_government + is_government_potential = order_government + is_government_potential = roman_imperial_government + } +} + +feudal_group_allow_trigger = {} # Be careful with this as it might break fallbacks # Chinese Imperial -chinese_imperial_government_potential_trigger = { +chinese_imperial_government_potential_trigger = { # Special snowflake government. Doesn't get the group triggers chinese_imperial_government_culture_trigger = yes + is_patrician = no + could_be_temporal_religious_head_trigger = yes # If holder is a religion head, makes sure they shouldn't be a theocracy instead (shouldn't happen, safety check) primary_title = { real_tier = EMPEROR @@ -15,37 +26,31 @@ chinese_imperial_government_potential_trigger = { } } -chinese_imperial_government_allow_trigger = {} +chinese_imperial_government_allow_trigger = {} # Special snowflake government. Doesn't get the group triggers # Feudal feudal_government_potential_trigger = { - is_patrician = no - could_be_temporal_religious_head_trigger = yes + feudal_group_potential_trigger = yes NOR = { is_government_potential = muslim_feudal_government is_government_potential = monastic_feudal_government - is_government_potential = roman_imperial_government - is_government_potential = order_government - is_government_potential = chinese_imperial_government } } -feudal_government_allow_trigger = {} +feudal_government_allow_trigger = { + feudal_group_allow_trigger = yes +} # Iqta muslim_feudal_government_potential_trigger = { + feudal_group_potential_trigger = yes religion_group = muslim - is_patrician = no - - NOR = { - is_government_potential = roman_imperial_government - is_government_potential = order_government - is_government_potential = chinese_imperial_government - } } -muslim_feudal_government_allow_trigger = {} +muslim_feudal_government_allow_trigger = { + feudal_group_allow_trigger = yes +} # Holy Orders order_government_potential_trigger = { @@ -60,6 +65,7 @@ order_government_potential_trigger = { } NOT = { is_government_potential = merchant_republic_government } + could_be_temporal_religious_head_trigger = yes # If holder is a religion head, makes sure they shouldn't be a theocracy instead } } @@ -67,6 +73,7 @@ order_government_allow_trigger = {} # Imperial Roman roman_imperial_government_potential_trigger = { + could_be_temporal_religious_head_trigger = yes # If holder is a religion head, makes sure they shouldn't be a theocracy instead primary_title = { OR = { title = e_byzantium @@ -74,7 +81,7 @@ roman_imperial_government_potential_trigger = { title = event_target:alternate_byz } - trigger_if = { + trigger_if = { # so it shows on the title selection screen limit = { NOT = { has_law = succ_byzantine_elective } } @@ -83,133 +90,137 @@ roman_imperial_government_potential_trigger = { has_game_started = no } } - - could_be_temporal_religious_head_trigger = yes } roman_imperial_government_allow_trigger = {} # Theocratic Feudal monastic_feudal_government_potential_trigger = { + feudal_group_potential_trigger = yes culture_group = tibetan_group higher_real_tier_than = BARON - is_patrician = no - could_be_temporal_religious_head_trigger = yes OR = { religion_openly_bon_or_reformed_trigger = yes religion = buddhist } - - NOR = { - is_government_potential = roman_imperial_government - is_government_potential = order_government - is_government_potential = chinese_imperial_government - } } -monastic_feudal_government_allow_trigger = {} +monastic_feudal_government_allow_trigger = { + feudal_group_allow_trigger = yes +} # Nomadic Group # In case someone wants to add more Nomads for some reason nomadic_group_potential_trigger = { - could_be_temporal_religious_head_trigger = yes + could_be_temporal_religious_head_trigger = yes # If holder is a religion head, makes sure they shouldn't be a theocracy instead is_patrician = no mercenary = no holy_order = no } -nomadic_group_allow_trigger = { - trigger_if = { - limit = { has_game_started = no } +nomadic_group_allow_trigger = {} - capital_scope = { has_tribal = no } # To keep Tribals from showing up as Nomads - } +# Nomad Government +nomadic_government_potential_trigger = { + nomadic_group_potential_trigger = yes } -# Nomad Government -nomadic_government_potential_trigger = {} -nomadic_government_allow_trigger = {} +nomadic_government_allow_trigger = { + nomadic_group_allow_trigger = yes +} # Republic Group -republic_group_potential_trigger = {} +republic_group_potential_trigger = { + could_be_temporal_religious_head_trigger = yes # If holder is a religion head, makes sure they shouldn't be a theocracy instead +} + republic_group_allow_trigger = {} # Confucian Bureaucracy -confucian_government_potential_trigger = { +confucian_government_potential_trigger = { # Special snowflake government. Doesn't get the group triggers is_offmap_tag = offmap_china } -confucian_government_allow_trigger = {} +confucian_government_allow_trigger = {} # Special snowflake government. Doesn't get the group triggers # Merchant Republic merchant_republic_government_potential_trigger = { + republic_group_potential_trigger = yes + # Patrician and Doge requirements - OR = { - # Doge requirements - # Does not require being a patrician, to allow creation of new Merchant Republics - AND = { - # Must always be coastal - capital_scope = { is_coastal = yes } - - # Require at least one province and be Duke tier or higher - higher_real_tier_than = COUNT - num_of_count_titles >= 1 - - # MR can't be under MR - trigger_if = { - limit = { independent = no } - - liege_before_war = { - is_merchant_republic = no - } - } - } + trigger_if = { + limit = { is_patrician = yes } - # Patrician requirements - AND = { - is_patrician = yes + OR = { + has_game_started = no # History isn't initiated until after game starts - OR = { - # Liege must be MR - liege_before_war = { - is_merchant_republic = yes + # Liege must be MR + liege_before_war = { + is_merchant_republic = yes - # MR can't be under MR - trigger_if = { - limit = { independent = no } + # MR can't be under MR + trigger_if = { + limit = { independent = no } - liege_before_war = { - is_merchant_republic = no - } + liege_before_war = { + is_merchant_republic = no } } - - has_game_started = no } } } + trigger_else = { # Does not require being a patrician, to allow creation of new Merchant Republics + capital_scope = { is_coastal = yes } + + # Require at least one province and be Duke tier or higher + higher_real_tier_than = COUNT + num_of_count_titles >= 1 - could_be_temporal_religious_head_trigger = yes + # MR can't be under MR + trigger_if = { + limit = { independent = no } + + liege_before_war = { + is_merchant_republic = no + } + } + } } -merchant_republic_government_allow_trigger = {} +merchant_republic_government_allow_trigger = { + republic_group_allow_trigger = yes +} # Republic Government republic_government_potential_trigger = { + republic_group_potential_trigger = yes + # Necessary to keep Merchant Republics from reverting on some successions NOT = { is_government_potential = merchant_republic_government } - could_be_temporal_religious_head_trigger = yes } -republic_government_allow_trigger = {} +republic_government_allow_trigger = { + republic_group_allow_trigger = yes +} # Theocratic Group # In case someone wants to add more Theocracies for some reason theocratic_group_potential_trigger = { holy_order = no is_patrician = no - NOT = { is_government_potential = muslim_feudal_government } + + NOR = { # TODO: add religion features to the religions and simplify this to the religion_temporal_head check + religion_group = muslim + + trigger_if = { + limit = { has_religion_features = yes } + has_religion_feature = religion_temporal_head + } + trigger_else = { + religion = norse_pagan_reformed + } + } trigger_if = { limit = { is_female = yes } @@ -223,12 +234,19 @@ theocratic_group_potential_trigger = { theocratic_group_allow_trigger = {} # Theocracy Government -theocratic_government_potential_trigger = {} -theocratic_government_allow_trigger = {} +theocratic_government_potential_trigger = { + theocratic_group_potential_trigger = yes +} + +theocratic_government_allow_trigger = { + theocratic_group_allow_trigger = yes +} # Tribal Group # In case someone wants to add more Tribals for some reason tribal_group_potential_trigger = { + mercenary = no + is_patrician = no holy_order = no NOT = { is_government_potential = order_government } @@ -237,16 +255,16 @@ tribal_group_potential_trigger = { is_feudal = no } - could_be_temporal_religious_head_trigger = yes + could_be_temporal_religious_head_trigger = yes # If holder is a religion head, makes sure they shouldn't be a theocracy instead } -tribal_group_allow_trigger = { - trigger_if = { - limit = { has_game_started = no } - capital_scope = { has_tribal = yes } # I don't know why this works but it does and I'm not going to question it - } -} +tribal_group_allow_trigger = {} # Tribal Government -tribal_government_potential_trigger = {} -tribal_government_allow_trigger = {} +tribal_government_potential_trigger = { + tribal_group_potential_trigger = yes +} + +tribal_government_allow_trigger = { + tribal_group_allow_trigger = yes +} diff --git a/CleanSlate/decisions/wonder_decisions.txt b/CleanSlate/decisions/wonder_decisions.txt index 60bbec468..addf393e2 100644 --- a/CleanSlate/decisions/wonder_decisions.txt +++ b/CleanSlate/decisions/wonder_decisions.txt @@ -349,12 +349,11 @@ targeted_decisions = { } allow = { - allow = { is_inaccessible_or_incapable_trigger = no custom_tooltip = { text = not_recently_sent_alcohol_tooltip - + FROM = { NOT = { has_character_modifier = recently_sent_alcohol_gift } }