diff --git a/ACR_Changelog.txt b/ACR_Changelog.txt index 9a5fc5a0..1c3964b5 100644 --- a/ACR_Changelog.txt +++ b/ACR_Changelog.txt @@ -1,3 +1,17 @@ +2017-11-23 v0.41.0 "Apheliotes" +------------------------- + +General: + - Compatibility with CK2 2.8 + + +2017-09-03 v0.40.4 "Asteria 2" +------------------------- + +General: + - Resolves bug where tribal characters would usurp county titles in their de jure kingdom, turn feudal, and all holdings would be destroyed. + + 2017-09-02 v0.40.3 "Asteria" ------------------------- > Asteria "the starry one" was the titan of falling stars and nocturnal oracles and the daughter of Coeus and Pheobe, her sister was Leto. Unlike her husband, Asteria has several stories attributed to her. One such tale describes her flight from the advances of Zeus; she transformed into a quail and dived into the ocean, where she became an island bearing her name. @@ -64,11 +78,7 @@ Promethean: - The Depopulation mechanic of the Expansion CB has been re-written to modify Prosperity instead (for RD owners only, the old system still works if RD is off). - Now, sieged provinces will lose three levels of prosperity, and all their progress toward higher prosperity will be lost. - The CB cannot be used if there are any provinces in your realm that are depopulated at any level. -<<<<<<< HEAD - Added events to send immigrants from your prosperous demesne provinces to depopulated ones, losing Prosperity in one province to reduce depopulation in the other. -======= - - Added events to send immigrants from your prosperous demense provinces to depopulated ones, losing Prosperity in one province to reduce depopulation in the other. ->>>>>>> master - These events represent the Promethean policy of lebensraum and replace the old event that triggered on the Depopulated modifier for Reapers Due owners. - There is a chance that the province converts to your culture and religion. This chance increases dramatically for each level of Prosperity you transfer. - If you don't want to give up a level of prosperity in one of your demesne provinces, you can ask your direct liege for help. @@ -169,7 +179,7 @@ Kemetic: - Atenic have access as well. -2017-02-16 v0.38.3 "Hippolytus" +2017-02-16 v0.38.3.1 "Hippolytus" ------------------------- Hellenic: diff --git a/AncientReligions/common/artifact_spawns/ACR_celtic_artifact_spawns.txt b/AncientReligions/common/artifact_spawns/ACR_celtic_artifact_spawns.txt new file mode 100644 index 00000000..792ce825 --- /dev/null +++ b/AncientReligions/common/artifact_spawns/ACR_celtic_artifact_spawns.txt @@ -0,0 +1 @@ +# Content by Adam 'theStormWeaver/xirsoi' Chevalier \ No newline at end of file diff --git a/AncientReligions/common/artifact_spawns/ACR_egyptian_artifact_spawns.txt b/AncientReligions/common/artifact_spawns/ACR_egyptian_artifact_spawns.txt new file mode 100644 index 00000000..4cf29f56 --- /dev/null +++ b/AncientReligions/common/artifact_spawns/ACR_egyptian_artifact_spawns.txt @@ -0,0 +1 @@ +ACR_egyptian_artifact_spawns.txt \ No newline at end of file diff --git a/AncientReligions/common/artifact_spawns/ACR_generic_artifact_spawns.txt b/AncientReligions/common/artifact_spawns/ACR_generic_artifact_spawns.txt new file mode 100644 index 00000000..e69de29b diff --git a/AncientReligions/common/artifact_spawns/ACR_hellenic_artifact_spawns.txt b/AncientReligions/common/artifact_spawns/ACR_hellenic_artifact_spawns.txt new file mode 100644 index 00000000..792ce825 --- /dev/null +++ b/AncientReligions/common/artifact_spawns/ACR_hellenic_artifact_spawns.txt @@ -0,0 +1 @@ +# Content by Adam 'theStormWeaver/xirsoi' Chevalier \ No newline at end of file diff --git a/AncientReligions/common/artifact_spawns/artifact_spawns.info b/AncientReligions/common/artifact_spawns/artifact_spawns.info new file mode 100644 index 00000000..6fa5528b --- /dev/null +++ b/AncientReligions/common/artifact_spawns/artifact_spawns.info @@ -0,0 +1,42 @@ +Artifact spawns, decides which items are spawned at the begining of the game. + +variables: + +spawn_chance: + mtth, to decide whether an artifact spawn should execute or not. Range is 0-100. Default behavior is to always spawn. + + example: a 50% chance to execute an artifact spawn + spawn_chance = { + value = 50 + } + +weight: + mtth, character scope, evaluates a potential artifact holder score, which is then used for randomizing who gets an artifact. Default behavior is for everyone to have the same chance. + + example: only christians have a chance of getting an artifact + weight = { + value = 0 + additive_modifier = { + value = 100 + religion_group = christian + } + } + +max_amount: + integer, how many artifacts do we hand out? default is 4,294,967,295 + +spawn_date: + date, what date should it claim to have been created? Note that this could be in the future; the spawn chance should be handled in spawn_chance. If a date at or before 1.1.1 is used, it'll state "Unknown Date" + +artifacts: + A list of keys and MTTH for which artifact is spawned. + + example: 50% chance that the person will get a golden_platypus + artifacts ={ + golden_platypus = { + value = 1 + } + crystal_platypus = { + value = 1 + } + } \ No newline at end of file diff --git a/AncientReligions/common/artifacts/ACR_celtic_artifacts.txt b/AncientReligions/common/artifacts/ACR_celtic_artifacts.txt new file mode 100644 index 00000000..083d2a86 --- /dev/null +++ b/AncientReligions/common/artifacts/ACR_celtic_artifacts.txt @@ -0,0 +1,2 @@ +# Content by Adam 'theStormWeaver/xirsoi' Chevalier + diff --git a/AncientReligions/common/artifacts/ACR_egyptian_artifacts.txt b/AncientReligions/common/artifacts/ACR_egyptian_artifacts.txt new file mode 100644 index 00000000..792ce825 --- /dev/null +++ b/AncientReligions/common/artifacts/ACR_egyptian_artifacts.txt @@ -0,0 +1 @@ +# Content by Adam 'theStormWeaver/xirsoi' Chevalier \ No newline at end of file diff --git a/AncientReligions/common/artifacts/ACR_generic_artifacts.txt b/AncientReligions/common/artifacts/ACR_generic_artifacts.txt new file mode 100644 index 00000000..9d548864 --- /dev/null +++ b/AncientReligions/common/artifacts/ACR_generic_artifacts.txt @@ -0,0 +1,3 @@ +# Content by Adam 'theStormWeaver/xirsoi' Chevalier +# common, uncommon, rare, epic, legendary + diff --git a/AncientReligions/common/artifacts/ACR_hellenic_artifacts.txt b/AncientReligions/common/artifacts/ACR_hellenic_artifacts.txt new file mode 100644 index 00000000..792ce825 --- /dev/null +++ b/AncientReligions/common/artifacts/ACR_hellenic_artifacts.txt @@ -0,0 +1 @@ +# Content by Adam 'theStormWeaver/xirsoi' Chevalier \ No newline at end of file diff --git a/AncientReligions/common/artifacts/artifacts_script.info b/AncientReligions/common/artifacts/artifacts_script.info new file mode 100644 index 00000000..16f7478d --- /dev/null +++ b/AncientReligions/common/artifacts/artifacts_script.info @@ -0,0 +1,77 @@ +# Artifacts are a scope in and of themselves now. + +# effects +add_artifact = golden_platypus # must be scoped to a character + # a copy of the named artifact is created and added to the scoped character + +any_artifact = { # scope must be a character + # will execute the effect on all artifacts owned by scoped character, and that fulfills the limit + limit = { + has_artifact_flag = rare # example + } + destroy_artifact # example + # the scope of the effect being executed is the artifact, and the PREV scope here is the character who owns the artifact +} +random_artifact = { # scope must be a character + # will execute the effect on one randomly chosen artifact owned by scoped character, and that fulfills the limit + limit = { + quality < 10 #example + } + destroy_artifact # example + # the scope of the effect being executed is the artifact, and the PREV scope here is the character who owns the artifact +} +transfer_artifact = { # scope must be an artifact + from = PREV # from and to should both be characters. if from doesn't own the artifact, to will not receive it + to = PREVPREV +} + +destroy_artifact # scope can be an artifact, or a character. + # if there is no name given, the scope MUST be an artifact, and the PREV scope must be the owner. + # this can be achieved through any_artefact and random_artefact effects + +destroy_artifact = golden_platypus # if an artifact name is given, the scope should be the owner of the artifact. if they own an artifact by that name, it will be destroyed + # if they own more than one, only the first one will be destroyed + # WILL FAIL and add an error message if called on an indestructible artifact + + + +# Triggers +num_of_artifacts = 3 # scope must be a character, returns true if scoped character has at least 3 (in this example) artifacts +has_artifact = golden_platypus # scope must be a character, returns true if scoped character owns an artifact by that name +quality > 10 # scope must be an artifact. + # all comparison operators are available ( <, <=, =, >=, >=) + # returns true if the quality of the scoped artifact compares correctly to the value + +has_artifact_flag # scope must be an artifact + # returns true if the scoped artifact has that flag defined + +is_artifact_active # scope must be an artifact + # returns true if the scoped artifact is currently active + # note that an artifact without an active trigger will always be considered active, even if not owned + # also note that an artifact with an active trigger and without an owner will never be considered active +any_artifact = { # must be scoped to a character + # returns true if any artifact owned by that character fulfills the conditions + quality >= 10 # example +} + +owner / artifact_owner = { # takes an artifact as a scope, returns the current owner of the artifact. either owner or artifact_owner can be used + title = { + tier = emperor + } +} + +original_owner / original_artifact_owner = { # takes an artifact as a scope, returns the original owner of the artifact. either original_owner or original_artifact_owner can be used + title = { + tier = emperor + } +} + +is_indestructible = yes # scope is artifact, returns true if the scoped artifact is indestructible, false otherwise +artifact_type = golden_platypus # takes an artifact as a scope, returns true if the artifact is of the given type, false otherwise +is_artifact_same_type_as = ROOT # takes an artifact as a scope, and an artifact as a target, and returns true if they're the same type, false otherwise +artifact_type_owned_by = ROOT # takes an artifact as a scope, and a character as a target, and returns true if the target character already owns an artifact of the same type +stacking = no # can only have a single copy of this artifact in one's posession. Defaults to "yes" + +#events +on_artifact_inheritance # on action event is sent whenever a character receives an artifact (one event for each artifact) + # Scopes: ROOT is the character, FROM is the artifact, FROMFROM is the old holder \ No newline at end of file diff --git a/AncientReligions/common/buildings/ACR_cultural_buildings.txt b/AncientReligions/common/buildings/ACR_cultural_buildings.txt index fdc32777..d085a200 100644 --- a/AncientReligions/common/buildings/ACR_cultural_buildings.txt +++ b/AncientReligions/common/buildings/ACR_cultural_buildings.txt @@ -215,7 +215,7 @@ castle = { extra_tech_building_start = 0.8 } - ca_kemetic_pyramid = { + ca_kemetic_pyramid = { potential = { FROM = { higher_tier_than = duke @@ -238,7 +238,8 @@ castle = { extra_tech_building_start = 0.0 } - # City +} + city = { ct_kemetic_pyramid = { potential = { @@ -264,7 +265,7 @@ city = { extra_tech_building_start = 0.0 } } - # Temple + temple = { tp_kemetic_pyramid = { potential = { @@ -290,7 +291,7 @@ temple = { extra_tech_building_start = 0.0 } } - # Tribal + tribal = { tb_kemetic_pyramid = { potential = { @@ -316,4 +317,3 @@ tribal = { extra_tech_building_start = 0.0 } } -} diff --git a/AncientReligions/common/cb_types/00_cb_types.txt b/AncientReligions/common/cb_types/00_cb_types.txt index 8822b670..8c3a3049 100644 --- a/AncientReligions/common/cb_types/00_cb_types.txt +++ b/AncientReligions/common/cb_types/00_cb_types.txt @@ -22,6 +22,14 @@ # can_use_gui: If otherwise valid, the CB is listed in the Diplo View, but you can't declare war unless 'can_use_gui' is also valid (also shows a trigger tooltip.) # +# max_defender_occupation_score/max_attacker_occupation_score - Defines how much war score it is possible for the defender/attacker to gain by occupying provinces. Defaults to 100. Make sure the CB has ticking warscore if using this or you could end up with never-ending wars +# max_defender_battle_score/max_attacker_battle_score - Defines how much score it is possible for the defender/attacker to gain by fighting battles. Defaults to the defines MAX_WARSCORE_FROM_BATTLE_DEFENDERS/MAX_WARSCORE_FROM_BATTLE_ATTACKERS +# hostages_block_cb - Defaults to "yes". If set to "no", the defender having close relatives of yours imprisoned does not prevent you from declaring war +# attacker_unoccupied_warscore = yes - If attacker completely unoccupied, attacker will get ticking warscore. Only works if no title is targetted +# defender_unoccupied_warscore = yes - If defender completely unoccupied, defender will get ticking warscore. Only works if no title is targetted +# capturing_attacker_is_complete_victory - Whether capturing the attacker as a prisoner is considered automatic victory for the defender. Defaults to yes. If set to no, capture instead gives CAPTURED_HEIR_WAR_SCORE warscore +# capturing_defender_is_complete_victory - Whether capturing the defender as a prisoner is considered automatic victory for the attacker. Defaults to yes. If set to no, capture instead gives CAPTURED_HEIR_WAR_SCORE warscore + # 0 claim = { name = CB_NAME_CLAIM @@ -32,7 +40,6 @@ claim = { can_ask_to_join_war = no allowed_to_target_tributaries = no - allowed_to_target_suzerains = no press_claim = yes @@ -95,6 +102,16 @@ claim = { ROOT = { has_claim = PREV } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success_title = { hidden_tooltip = { @@ -123,8 +140,7 @@ claim = { hidden_tooltip = { conquest_culture = ROOT } } - any_attacker = { - limit = { character = ROOT } + ROOT = { participation_scaled_prestige = 100 } any_attacker = { @@ -145,8 +161,7 @@ claim = { clr_character_flag = claimant_adventurer } } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 100 } any_defender = { @@ -169,14 +184,41 @@ claim = { } ROOT = { imprison = FROM } } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 150 } any_defender = { limit = { NOT = { character = FROM } } hidden_tooltip = { participation_scaled_prestige = 150 } } + hidden_effect = { + ROOT = { + if = { + limit = { + has_landed_title = e_china_west_governor + } + log = "China War Logging: China lost a claim war against [From.GetBestName]" + } + if = { #Makes China have a chance of leaving Expanionist policy... + limit = { + has_landed_title = e_china_west_governor + offmap_china = { + has_policy = china_expansionist + } + } + random = { + chance = 50 + offmap_china = { + set_policy = china_open + log = "-------------------------------------" + log = "China Policy Logging:" + log = "Chinas new Policy is now OPEN" + log = "-------------------------------------" + } + } + } + } + } } on_reverse_demand_title = { @@ -248,7 +290,6 @@ other_claim = { press_claim = yes allowed_to_target_tributaries = no - allowed_to_target_suzerains = no infamy_modifier = 0.5 @@ -311,6 +352,22 @@ other_claim = { } } } + + OR = { + multiplayer = no + FROMFROM = { ai = yes } + has_game_rule = { + name = multiplayer_third_party_claims + value = on + } + AND = { + has_game_rule = { + name = multiplayer_third_party_claims + value = limited + } + lower_tier_than = KING + } + } } is_valid_title = { @@ -325,6 +382,16 @@ other_claim = { ROOT = { has_claim = PREV } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success = { hidden_tooltip = { ROOT = { @@ -335,8 +402,7 @@ other_claim = { } } } - any_attacker = { - limit = { character = ROOT } + ROOT = { participation_scaled_prestige = 100 } any_attacker = { @@ -546,8 +612,7 @@ other_claim = { } } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 100 } any_defender = { @@ -566,8 +631,7 @@ other_claim = { prestige = -150 imprison = FROM } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 150 } any_defender = { @@ -613,7 +677,6 @@ claim_on_liege = { major_revolt = yes allowed_to_target_tributaries = no - allowed_to_target_suzerains = no infamy_modifier = 0.85 @@ -690,9 +753,18 @@ claim_on_liege = { } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success = { - any_attacker = { - limit = { character = ROOT } + ROOT = { participation_scaled_prestige = 100 hidden_tooltip = { disband_event_forces = faction_revolters @@ -798,8 +870,7 @@ claim_on_liege = { ROOT = { prestige = -100 } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 50 } any_defender = { @@ -822,8 +893,7 @@ claim_on_liege = { prestige = -150 } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 100 } any_defender = { @@ -885,7 +955,6 @@ claim_on_liege_plot = { can_ask_to_join_war = no allowed_to_target_tributaries = no - allowed_to_target_suzerains = no infamy_modifier = 0.85 @@ -935,9 +1004,18 @@ claim_on_liege_plot = { } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success = { - any_attacker = { - limit = { character = ROOT } + ROOT = { participation_scaled_prestige = 100 hidden_tooltip = { disband_event_forces = faction_revolters @@ -1006,8 +1084,7 @@ claim_on_liege_plot = { ROOT = { prestige = -100 } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 50 hidden_tooltip = { disband_event_forces = faction_revolters @@ -1029,8 +1106,7 @@ claim_on_liege_plot = { prestige = -200 imprison = FROM } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 100 hidden_tooltip = { disband_event_forces = faction_revolters @@ -1090,7 +1166,6 @@ claim_on_vassal_plot = { can_attack_vassals = yes allowed_to_target_tributaries = no - allowed_to_target_suzerains = no infamy_modifier = 0.85 @@ -1114,6 +1189,16 @@ claim_on_vassal_plot = { } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success = { ROOT = { prestige = 50 @@ -1130,8 +1215,7 @@ claim_on_vassal_plot = { prestige = -100 cancel_plot = plot_gain_vassal_title } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 50 } any_defender = { @@ -1152,8 +1236,7 @@ claim_on_vassal_plot = { prestige = -200 cancel_plot = plot_gain_vassal_title } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 100 } any_defender = { @@ -1212,7 +1295,6 @@ other_claim_on_liege = { major_revolt = yes allowed_to_target_tributaries = no - allowed_to_target_suzerains = no infamy_modifier = 0.5 @@ -1302,14 +1384,22 @@ other_claim_on_liege = { } } - on_success = { - any_attacker = { - limit = { - OR = { - character = ROOT - character = PREV - } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes } + } + } + + on_success = { + ROOT = { + participation_scaled_prestige = 100 + hidden_tooltip = { disband_event_forces = faction_revolters } + } + PREV = { participation_scaled_prestige = 100 hidden_tooltip = { disband_event_forces = faction_revolters } } @@ -1502,8 +1592,7 @@ other_claim_on_liege = { # } #} - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 50 } any_defender = { @@ -1536,8 +1625,7 @@ other_claim_on_liege = { # } #} - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 100 } any_defender = { @@ -1584,7 +1672,6 @@ claim_all = { is_claim_all = yes allowed_to_target_tributaries = no - allowed_to_target_suzerains = no can_use = { ROOT = { @@ -1621,6 +1708,13 @@ claim_all = { press_claim = ROOT } } + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } } on_success = { @@ -1644,6 +1738,23 @@ claim_all = { hidden_tooltip = { conquest_culture = ROOT } } } + if = { #China with no land calculates what to do with nomad provinces + limit = { + is_offmap_governor = yes + offmap_power = { is_offmap_tag = offmap_china } + offmap_china = { has_offmap_tmp_flag = WP_is_not_on_map } + NOT = { wealth = 2500 } #unless already rich from tributes + } + set_variable = { which = "WP_nomad_provinces" value = 0 } + any_realm_province = { + limit = { + has_province_modifier = nomad_agitation + NOT = { has_settlement_construction = yes } + } + province_event = { id = JD.60100 } #increase counter for each nomad province + } + character_event = { id = JD.60101 days = 1 } #calculate gold sent from china for building holdings + } } hidden_tooltip = { ROOT = { @@ -1663,8 +1774,7 @@ claim_all = { } } } - any_attacker = { - limit = { character = ROOT } + ROOT = { participation_scaled_prestige = 100 } any_attacker = { @@ -1677,8 +1787,7 @@ claim_all = { ROOT = { prestige = -150 } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 75 } any_defender = { @@ -1706,12 +1815,30 @@ claim_all = { } remove_claim = ROOT } - } - any_defender = { - limit = { character = FROM } - participation_scaled_prestige = 200 + hidden_effect = { + if = { #Makes China have a chance of leaving Expanionist policy... + limit = { + has_landed_title = e_china_west_governor + offmap_china = { + has_policy = china_expansionist + } + } + random = { + chance = 50 + offmap_china = { + set_policy = china_open + log = "-------------------------------------" + log = "China Policy Logging:" + log = "Chinas new Policy is now OPEN" + log = "-------------------------------------" + } + } + log = "China War Logging: China lost a claim all war against [From.GetBestName]" + } + } } FROM = { + participation_scaled_prestige = 200 if = { limit = { has_dlc = "Legacy of Rome" @@ -1731,6 +1858,7 @@ claim_all = { limit = { NOT = { character = FROM } } hidden_tooltip = { participation_scaled_prestige = 200 } } + } attacker_ai_victory_worth = { @@ -1800,6 +1928,16 @@ change_seniority_succession_law = { is_primary_holder_title = yes } } + + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } on_success = { FROM = { @@ -1835,8 +1973,7 @@ change_seniority_succession_law = { } } } - any_attacker = { - limit = { character = ROOT } + ROOT = { participation_scaled_prestige = 100 hidden_tooltip = { disband_event_forces = faction_revolters @@ -1859,8 +1996,7 @@ change_seniority_succession_law = { ROOT = { prestige = -100 } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 50 } any_defender = { @@ -1886,8 +2022,7 @@ change_seniority_succession_law = { prestige = -200 prisoner = FROM } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 100 } any_defender = { @@ -1979,6 +2114,15 @@ change_primogeniture_succession_law = { } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } on_success = { FROM = { @@ -2015,8 +2159,7 @@ change_primogeniture_succession_law = { } } - any_attacker = { - limit = { character = ROOT } + ROOT = { participation_scaled_prestige = 100 hidden_tooltip = { disband_event_forces = faction_revolters @@ -2039,8 +2182,7 @@ change_primogeniture_succession_law = { ROOT = { prestige = -100 } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 50 } any_defender = { @@ -2067,8 +2209,7 @@ change_primogeniture_succession_law = { prestige = -200 prisoner = FROM } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 100 } any_defender = { @@ -2212,8 +2353,7 @@ change_feudal_elective_succession_law = { } } } - any_attacker = { - limit = { character = ROOT } + ROOT = { participation_scaled_prestige = 100 hidden_tooltip = { disband_event_forces = faction_revolters @@ -2236,8 +2376,7 @@ change_feudal_elective_succession_law = { ROOT = { prestige = -100 } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 50 } any_defender = { @@ -2263,8 +2402,7 @@ change_feudal_elective_succession_law = { prestige = -200 prisoner = FROM } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 100 } any_defender = { @@ -2315,7 +2453,6 @@ invasion = { can_ask_to_join_war = no allowed_to_target_tributaries = no - allowed_to_target_suzerains = no can_use = { ROOT = { @@ -2345,12 +2482,21 @@ invasion = { } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success = { ROOT = { prestige = 200 } - any_attacker = { - limit = { character = ROOT } + ROOT = { participation_scaled_prestige = 200 } any_attacker = { @@ -2359,9 +2505,14 @@ invasion = { } hidden_tooltip = { + FROM = { + any_vassal = { + set_character_flag = preserve_vassal_structure_@ROOT + } + } ROOT = { occupy_minors_of_occupied_settlements = FROM - gain_all_occupied_titles = FROM + gain_all_occupied_titles = FROM if = { limit = { @@ -2416,6 +2567,24 @@ invasion = { } FROM = { imprison = ROOT } } + if = { + limit = { + any_independent_ruler = { + has_character_flag = preserve_vassal_structure_@ROOT + } + } + any_independent_ruler = { + limit = { + has_character_flag = preserve_vassal_structure_@ROOT + } + set_defacto_liege = ROOT + } + } + ROOT = { + any_vassal = { + clr_character_flag = preserve_vassal_structure_@ROOT + } + } } } @@ -2441,6 +2610,103 @@ invasion = { who = ROOT } } + if = { + limit = { # Help AI William by usurping extra land + ai = yes + } + d_bedford = { + usurp_title_plus_barony_if_unlanded = { target = ROOT type = invasion } + any_de_jure_vassal_title = { + limit = { + holder_scope = { + culture = saxon + ai = yes # But not from players + same_realm = ROOT + } + } + usurp_title_plus_barony_if_unlanded = { target = ROOT type = invasion } + } + } + d_canterbury = { + usurp_title_plus_barony_if_unlanded = { target = ROOT type = invasion } + any_de_jure_vassal_title = { + limit = { + holder_scope = { + culture = saxon + ai = yes # But not from players + same_realm = ROOT + } + } + usurp_title_plus_barony_if_unlanded = { target = ROOT type = invasion } + } + } + d_cornwall = { + usurp_title_plus_barony_if_unlanded = { target = ROOT type = invasion } + any_de_jure_vassal_title = { + limit = { + holder_scope = { + culture = saxon + ai = yes # But not from players + same_realm = ROOT + } + } + usurp_title_plus_barony_if_unlanded = { target = ROOT type = invasion } + } + } + d_somerset = { + usurp_title_plus_barony_if_unlanded = { target = ROOT type = invasion } + any_de_jure_vassal_title = { + limit = { + holder_scope = { + culture = saxon + ai = yes # But not from players + same_realm = ROOT + } + } + usurp_title_plus_barony_if_unlanded = { target = ROOT type = invasion } + } + } + d_gloucester = { + usurp_title_plus_barony_if_unlanded = { target = ROOT type = invasion } + any_de_jure_vassal_title = { + limit = { + holder_scope = { + culture = saxon + ai = yes # But not from players + same_realm = ROOT + } + } + usurp_title_plus_barony_if_unlanded = { target = ROOT type = invasion } + } + } + d_norfolk = { + usurp_title_plus_barony_if_unlanded = { target = ROOT type = invasion } + any_de_jure_vassal_title = { + limit = { + holder_scope = { + culture = saxon + ai = yes # But not from players + same_realm = ROOT + } + } + usurp_title_plus_barony_if_unlanded = { target = ROOT type = invasion } + } + } + } + if = { + limit = { + c_middlesex = { + holder_scope = { + character = ROOT + } + } + } + c_middlesex = { + capital_holding = { + ROOT = { capital = PREV } + } + } + } } } } @@ -2453,8 +2719,7 @@ invasion = { FROM = { prestige = 100 } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 100 } any_defender = { @@ -2473,12 +2738,7 @@ invasion = { } FROM = { prestige = 200 - } - any_defender = { - limit = { character = FROM } participation_scaled_prestige = 200 - } - FROM = { if = { limit = { has_dlc = "Legacy of Rome" @@ -2546,7 +2806,6 @@ tribal_invasion = { check_de_jure_tier = KING # this scans all de jure kingdoms for the counties which are held by or vassals(or below) of selected character. Only valid if is_permanent = yes allowed_to_target_tributaries = no - allowed_to_target_suzerains = no can_use_gui = { ROOT = { @@ -2556,10 +2815,27 @@ tribal_invasion = { on_add = { ROOT = { prestige = -500 } + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } } can_use_title = { ROOT = { + OR = { + ai = yes + multiplayer = no + NOT = { + has_game_rule = { + name = multiplayer_invasions + value = off + } + } + } is_nomadic = no OR = { AND = { @@ -2620,11 +2896,29 @@ tribal_invasion = { ROOT = { NOT = { same_realm = FROM } } + + OR = { # This ensures that the AI doesn't declare this type of war against someone who only holds a few counties within the targeted title... + ROOT = { + ai = no + } + ROOT = { + OR = { + has_landed_title = e_mongol_empire + has_landed_title = e_mexikha + } + } + FROM = { + num_of_realm_counties = { + value = 3 + title = PREV + } + } + } } is_valid_title = { FROM = { - any_realm_title = { + any_realm_province = { de_jure_liege_or_above = PREVPREV } } @@ -2633,10 +2927,7 @@ tribal_invasion = { on_success = { ROOT = { prestige = 200 - } - any_attacker = { - limit = { character = ROOT } - participation_scaled_prestige = 200 + participation_scaled_prestige = 200 } any_attacker = { limit = { NOT = { character = ROOT } } @@ -2719,12 +3010,16 @@ tribal_invasion = { 10 = { give_nickname = nick_the_avenger } 10 = { give_nickname = nick_the_lion } 10 = { give_nickname = nick_the_bold } + 20 = { + modifier = { + factor = 0 + religion_group = christian + } + give_nickname = nick_the_sword_of_god + } } } } - } - any_defender = { - limit = { character = FROM } participation_scaled_prestige = 100 } any_defender = { @@ -2775,9 +3070,6 @@ tribal_invasion = { } hidden_tooltip = { character_event = { id = LoR.30 days = 12 } } } - } - any_defender = { - limit = { character = FROM } participation_scaled_prestige = 200 } any_defender = { @@ -2872,6 +3164,17 @@ tribal_invasion = { } } } + modifier = { + factor = 0 + ROOT = { + has_character_flag = is_temujin + has_landed_title = e_mongol_empire + demesne_size = 1 + } + FROM = { + has_landed_title = e_china_west_governor + } + } } } @@ -2883,10 +3186,10 @@ crusade = { is_permanent = yes is_holy_war = yes battle_warscore_mult = 0.5 + max_defender_occupation_score = 85 check_de_jure_tier = KING # this scans all de jure kingdoms for the counties which are held by or vassals(or below) of selected character. Only valid if is_permanent = yes allowed_to_target_tributaries = no - allowed_to_target_suzerains = no can_use_gui = { ROOT = { @@ -2985,12 +3288,22 @@ crusade = { is_valid_title = { FROM = { - any_realm_title = { + any_realm_province = { de_jure_liege_or_above = PREVPREV } } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success_title = { # Should we give the seized land to its current king? @@ -3028,6 +3341,10 @@ crusade = { # Claimants must be of ROOT's religion, and are ranked by strength of claim and actual contribution to the war best_crusade_claimant = { + if = { + limit = { is_ruler = no } + set_character_flag = set_feudal_gov + } gain_settlements_under_title = { title = PREV enemy = FROM @@ -3062,6 +3379,11 @@ crusade = { } usurp_title = { target = PREV type = holy_war } } + if = { + limit = { has_character_flag = set_feudal_gov } + set_government_type = feudal_government + } + clr_character_flag = set_feudal_gov } } @@ -3151,17 +3473,6 @@ crusade = { } } - any_attacker = { - limit = { character = ROOT } - participation_scaled_prestige = 500 - participation_scaled_piety = 1000 - if = { - limit = { - uses_decadence = yes - } - participation_scaled_decadence = -100 - } - } any_attacker = { limit = { NOT = { character = ROOT } } hidden_tooltip = { @@ -3184,6 +3495,14 @@ crusade = { } ROOT = { + participation_scaled_prestige = 500 + participation_scaled_piety = 1000 + if = { + limit = { + uses_decadence = yes + } + participation_scaled_decadence = -100 + } religion_authority = { modifier = won_crusade years = 20 @@ -3204,17 +3523,6 @@ crusade = { piety = -100 } - any_defender = { - limit = { character = FROM } - participation_scaled_piety = 200 - participation_scaled_prestige = 100 - if = { - limit = { - uses_decadence = yes - } - participation_scaled_decadence = -50 - } - } any_defender = { limit = { NOT = { character = FROM } } hidden_tooltip = { @@ -3230,6 +3538,14 @@ crusade = { } FROM = { + participation_scaled_piety = 200 + participation_scaled_prestige = 100 + if = { + limit = { + uses_decadence = yes + } + participation_scaled_decadence = -50 + } if = { limit = { has_dlc = "Legacy of Rome" @@ -3287,9 +3603,6 @@ crusade = { modifier = won_crusade years = 20 } - } - any_defender = { - limit = { character = FROM } participation_scaled_piety = 300 participation_scaled_prestige = 150 if = { @@ -3298,8 +3611,6 @@ crusade = { } participation_scaled_decadence = -100 } - } - FROM = { if = { limit = { has_dlc = "Legacy of Rome" @@ -3384,7 +3695,7 @@ crusade = { } } -# Holy War CB +# Regular Holy War CB religious = { name = CB_NAME_RELIGIOUS war_name = WAR_NAME_RELIGIOUS @@ -3395,17 +3706,43 @@ religious = { check_de_jure_tier = DUKE # this scans all dejure duchies for the counties which are held by or vassals(or below) of selected character. Only valid if is_permanent = yes allowed_to_target_tributaries = no - allowed_to_target_suzerains = no + + can_use_gui = { + ROOT = { + OR = { + NOT = { religion = buddhist } + piety = 250 + } + } + } + + on_add = { + ROOT = { + if = { + limit = { + religion = buddhist + } + piety = -250 + } + } + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } can_use = { ROOT = { is_nomadic = no NOT = { religion_group = pagan_group } NOT = { pacifist = yes } - NOT = { religion = buddhist } + NOT = { religion = taoist } OR = { NOT = { religion = hindu } - FROM = { NOT = { religion_group = indian_group } } + FROM = { NOT = { has_dharmic_religion_trigger = yes } } AND = { religion_group = FROM FROM = { @@ -3421,6 +3758,10 @@ religious = { NOT = { religion_group = FROM } is_heresy_of = FROM is_parent_religion = FROM + AND = { + has_dharmic_religion_trigger = yes + FROM = { religion = taoist } + } AND = { religion_group = muslim NOT = { religion = FROM } @@ -3551,12 +3892,15 @@ religious = { ROOT = { NOT = { religion_group = pagan_group } NOT = { pacifist = yes } - NOT = { religion = buddhist } NOT = { same_realm = FROM } OR = { NOT = { religion_group = FROM } is_heresy_of = FROM is_parent_religion = FROM + AND = { + has_dharmic_religion_trigger = yes + FROM = { religion = taoist } + } AND = { religion_group = FROM FROM = { @@ -3596,17 +3940,6 @@ religious = { } on_success = { - any_attacker = { - limit = { character = ROOT } - participation_scaled_piety = 100 - participation_scaled_prestige = 50 - if = { - limit = { - uses_decadence = yes - } - participation_scaled_decadence = -10 - } - } any_attacker = { limit = { NOT = { character = ROOT } } hidden_tooltip = { @@ -3618,14 +3951,38 @@ religious = { } participation_scaled_decadence = -10 } + hidden_tooltip = { + if = { + limit = { + has_ambition = obj_strengthen_religion + } + change_variable = { which = strengthen_religion value = 1 } + } + } } } ROOT = { + participation_scaled_piety = 100 + participation_scaled_prestige = 50 + if = { + limit = { + uses_decadence = yes + } + participation_scaled_decadence = -10 + } religion_authority = { modifier = won_holy_war years = 20 } + hidden_tooltip = { + if = { + limit = { + has_ambition = obj_strengthen_religion + } + change_variable = { which = strengthen_religion value = 1 } + } + } } FROM = { if = { @@ -3645,16 +4002,60 @@ religious = { } on_success_title = { - custom_tooltip = { - text = religious_cb_succ_tip - hidden_tooltip = { + if = { # Standard Holy War behaviour for Non-Muslims and Muslims fighting other Muslims + limit = { + OR = { + ROOT = { + NOT = { + religion_group = muslim + } + } + AND = { + ROOT = { + religion_group = muslim + } + FROM = { + religion_group = muslim + } + } + } + } + custom_tooltip = { + text = religious_cb_succ_tip + hidden_tooltip = { + ROOT = { + vassalize_or_take_under_title = { + title = PREV + enemy = FROM + same_religion = yes # Only vassalize rulers of my religion + is_religious = yes + type = holy_war + } + } + } + } + } + if = { # Muslims fighting Non-Muslims preserve vassals + limit = { ROOT = { - vassalize_or_take_under_title = { - title = PREV - enemy = FROM - same_religion = yes # Only vassalize rulers of my religion - is_religious = yes - type = holy_war + religion_group = muslim + } + FROM = { + NOT = { + religion_group = muslim + } + } + } + custom_tooltip = { + text = religious_cb_succ_muslim_tip + hidden_tooltip = { + ROOT = { + vassalize_or_take_under_title = { + title = PREV + enemy = FROM + is_religious = yes + type = holy_war + } } } } @@ -3677,8 +4078,7 @@ religious = { piety = -75 prestige = -150 } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_piety = 200 participation_scaled_prestige = 100 if = { @@ -3699,6 +4099,14 @@ religious = { } participation_scaled_decadence = -10 } + hidden_tooltip = { + if = { + limit = { + has_ambition = obj_strengthen_religion + } + change_variable = { which = strengthen_religion value = 1 } + } + } } } any_attacker = { @@ -3727,7 +4135,15 @@ religious = { religion_authority = { modifier = won_holy_war years = 20 - } + } + hidden_tooltip = { + if = { + limit = { + has_ambition = obj_strengthen_religion + } + change_variable = { which = strengthen_religion value = 1 } + } + } } } @@ -3821,9 +4237,10 @@ excommunicated_ruler = { is_permanent = yes can_ask_to_join_war = no + + defender_unoccupied_warscore = yes allowed_to_target_tributaries = no - allowed_to_target_suzerains = no can_use = { FROM = { @@ -3848,6 +4265,16 @@ excommunicated_ruler = { } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success = { ROOT = { if = { @@ -4072,6 +4499,16 @@ bid_for_independence = { } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success = { if = { limit = { @@ -4123,8 +4560,7 @@ bid_for_independence = { } } - any_attacker = { - limit = { character = ROOT } + ROOT = { participation_scaled_prestige = 100 } any_attacker = { @@ -4168,9 +4604,6 @@ bid_for_independence = { on_fail = { ROOT = { prestige = -50 - } - any_attacker = { - limit = { character = ROOT } participation_scaled_prestige = -50 } any_attacker = { @@ -4183,9 +4616,6 @@ bid_for_independence = { ROOT = { prestige = -100 prisoner = FROM - } - any_attacker = { - limit = { character = ROOT } participation_scaled_prestige = -100 } any_attacker = { @@ -4299,6 +4729,16 @@ depose_liege = { } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success = { FROM = { prestige = -500 @@ -4334,8 +4774,7 @@ depose_liege = { abdicate_to_most_liked_by = ROOT } - any_attacker = { - limit = { character = ROOT } + ROOT = { participation_scaled_prestige = 250 } any_attacker = { @@ -4355,8 +4794,7 @@ depose_liege = { prestige = -200 prisoner = FROM } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 50 } any_defender = { @@ -4426,6 +4864,16 @@ overthrow_ruler = { } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success = { ROOT = { primary_title = { @@ -4490,8 +4938,7 @@ overthrow_ruler = { } abdicate = yes } - any_attacker = { - limit = { character = ROOT } + ROOT = { participation_scaled_prestige = 250 } any_attacker = { @@ -4517,8 +4964,7 @@ overthrow_ruler = { prestige = -200 prisoner = FROM } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 50 } any_defender = { @@ -4607,6 +5053,16 @@ overthrow_ruler_no_calls = { } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success = { ROOT = { prestige = 200 @@ -4755,6 +5211,13 @@ change_gavelkind_succession_law = { is_primary_holder_title = yes } } + + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { detract_grace_super_huge_effect = yes } + } + } on_success = { FROM = { @@ -4792,8 +5255,7 @@ change_gavelkind_succession_law = { } } - any_attacker = { - limit = { character = ROOT } + ROOT = { participation_scaled_prestige = 100 hidden_tooltip = { disband_event_forces = faction_revolters @@ -4816,8 +5278,7 @@ change_gavelkind_succession_law = { ROOT = { prestige = -100 } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 50 } any_defender = { @@ -4843,8 +5304,7 @@ change_gavelkind_succession_law = { prestige = -200 prisoner = FROM } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 100 } any_defender = { @@ -4939,6 +5399,16 @@ lower_crown_authority_law = { } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success = { ROOT = { opinion = { @@ -4946,9 +5416,6 @@ lower_crown_authority_law = { who = FROM months = 12 } - } - any_attacker = { - limit = { character = ROOT } participation_scaled_prestige = 100 hidden_tooltip = { disband_event_forces = faction_revolters @@ -4988,9 +5455,9 @@ lower_crown_authority_law = { prestige = -100 } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 50 + hidden_tooltip = { disband_event_forces = faction_loyalists } } any_defender = { limit = { NOT = { character = FROM } } @@ -5007,7 +5474,6 @@ lower_crown_authority_law = { } } } - FROM = { hidden_tooltip = { disband_event_forces = faction_loyalists } } } on_reverse_demand = { @@ -5016,9 +5482,9 @@ lower_crown_authority_law = { prisoner = FROM } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 100 + hidden_tooltip = { disband_event_forces = faction_loyalists } } any_defender = { limit = { NOT = { character = FROM } } @@ -5037,7 +5503,6 @@ lower_crown_authority_law = { } } } - FROM = { hidden_tooltip = { disband_event_forces = faction_loyalists } } } attacker_ai_victory_worth = { @@ -5113,6 +5578,16 @@ lower_tribal_organization_law = { } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success = { ROOT = { opinion = { @@ -5120,9 +5595,6 @@ lower_tribal_organization_law = { who = FROM months = 12 } - } - any_attacker = { - limit = { character = ROOT } participation_scaled_prestige = 100 hidden_tooltip = { disband_event_forces = faction_revolters @@ -5162,9 +5634,9 @@ lower_tribal_organization_law = { prestige = -100 } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 50 + hidden_tooltip = { disband_event_forces = faction_loyalists } } any_defender = { limit = { NOT = { character = FROM } } @@ -5181,7 +5653,6 @@ lower_tribal_organization_law = { } } } - FROM = { hidden_tooltip = { disband_event_forces = faction_loyalists } } } on_reverse_demand = { @@ -5190,9 +5661,9 @@ lower_tribal_organization_law = { prisoner = FROM } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 100 + hidden_tooltip = { disband_event_forces = faction_loyalists } } any_defender = { limit = { NOT = { character = FROM } } @@ -5211,7 +5682,6 @@ lower_tribal_organization_law = { } } } - FROM = { hidden_tooltip = { disband_event_forces = faction_loyalists } } } attacker_ai_victory_worth = { @@ -5231,7 +5701,6 @@ lower_tribal_organization_law = { } } - coastal_republic = { name = CB_NAME_COASTAL_REPUBLIC war_name = WAR_NAME_COASTAL_REPUBLIC @@ -5244,7 +5713,6 @@ coastal_republic = { allow_distant = yes # AI parameter allowed_to_target_tributaries = no - allowed_to_target_suzerains = no can_use = { ROOT = { @@ -5307,6 +5775,16 @@ coastal_republic = { } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success_title = { if = { limit = { @@ -5336,8 +5814,7 @@ coastal_republic = { } } - any_attacker = { - limit = { character = ROOT } + ROOT = { participation_scaled_prestige = 100 } any_attacker = { @@ -5350,8 +5827,7 @@ coastal_republic = { ROOT = { prestige = -100 } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 50 } any_defender = { @@ -5368,8 +5844,7 @@ coastal_republic = { value = 4.0 } } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 100 } any_defender = { @@ -5407,7 +5882,6 @@ coastal_county_republic = { allow_distant = yes # AI parameter allowed_to_target_tributaries = no - allowed_to_target_suzerains = no can_use = { ROOT = { @@ -5505,6 +5979,16 @@ coastal_county_republic = { } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success_title = { if = { limit = { @@ -5540,8 +6024,7 @@ coastal_county_republic = { } } - any_attacker = { - limit = { character = ROOT } + ROOT = { participation_scaled_prestige = 100 } any_attacker = { @@ -5554,8 +6037,7 @@ coastal_county_republic = { ROOT = { prestige = -100 } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 50 } any_defender = { @@ -5572,8 +6054,7 @@ coastal_county_republic = { value = 4.0 } } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 100 } any_defender = { @@ -5633,8 +6114,24 @@ weaken_vassal_plot = { } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success = { + ROOT = { + participation_scaled_prestige = 100 + } any_attacker = { + limit = { + NOT = { character = ROOT } + } participation_scaled_prestige = 100 } FROM = { @@ -5696,8 +6193,7 @@ weaken_vassal_plot = { prestige = -100 cancel_plot = plot_weaken_fellow_vassal } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 50 } any_defender = { @@ -5719,8 +6215,7 @@ weaken_vassal_plot = { imprison = FROM cancel_plot = plot_weaken_fellow_vassal } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 100 } any_defender = { @@ -5771,6 +6266,16 @@ decadence_invasion = { } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success = { any_playable_ruler = { limit = { @@ -5822,9 +6327,6 @@ decadence_invasion = { occupy_minors_of_occupied_settlements = FROM gain_all_occupied_titles = { who = FROM type = revolt } give_nickname = nick_the_conqueror - } - any_attacker = { - limit = { character = ROOT } participation_scaled_prestige = 200 participation_scaled_piety = 100 } @@ -5897,9 +6399,6 @@ decadence_invasion = { } FROM = { prestige = 100 - } - any_defender = { - limit = { character = FROM } participation_scaled_prestige = 100 } any_defender = { @@ -5973,7 +6472,6 @@ muslim_invasion = { check_de_jure_tier = KING # this scans all de jure kingdoms for the counties which are held by or vassals(or below) of selected character. Only valid if is_permanent = yes allowed_to_target_tributaries = no - allowed_to_target_suzerains = no can_use_gui = { ROOT = { @@ -5983,10 +6481,27 @@ muslim_invasion = { on_add = { ROOT = { piety = -1000 } + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } } can_use = { ROOT = { + OR = { + ai = yes + multiplayer = no + NOT = { + has_game_rule = { + name = multiplayer_invasions + value = off + } + } + } religion_group = muslim # These use 'tribal_invasion' instead: @@ -6055,7 +6570,7 @@ muslim_invasion = { is_valid_title = { FROM = { - any_realm_title = { + any_realm_province = { de_jure_liege_or_above = PREVPREV } } @@ -6064,12 +6579,15 @@ muslim_invasion = { on_success = { ROOT = { prestige = 200 - } - - any_attacker = { - limit = { character = ROOT } + hidden_tooltip = { + if = { + limit = { + has_ambition = obj_strengthen_religion + } + change_variable = { which = strengthen_religion value = 1 } + } + } participation_scaled_prestige = 200 - if = { limit = { uses_decadence = yes @@ -6078,6 +6596,7 @@ muslim_invasion = { participation_scaled_decadence = -20 } } + any_attacker = { limit = { NOT = { character = ROOT } } hidden_tooltip = { @@ -6089,6 +6608,14 @@ muslim_invasion = { } participation_scaled_decadence = -20 } + hidden_tooltip = { + if = { + limit = { + has_ambition = obj_strengthen_religion + } + change_variable = { which = strengthen_religion value = 1 } + } + } } } FROM = { @@ -6160,9 +6687,6 @@ muslim_invasion = { 10 = { give_nickname = nick_the_avenger } } } - } - any_defender = { - limit = { character = FROM } participation_scaled_prestige = 100 } any_defender = { @@ -6191,6 +6715,14 @@ muslim_invasion = { } FROM = { prestige = 200 + hidden_tooltip = { + if = { + limit = { + has_ambition = obj_strengthen_religion + } + change_variable = { which = strengthen_religion value = 1 } + } + } if = { limit = { has_dlc = "Legacy of Rome" @@ -6219,14 +6751,19 @@ muslim_invasion = { 10 = { give_nickname = nick_the_avenger } } } - } - any_defender = { - limit = { character = FROM } participation_scaled_prestige = 200 } any_defender = { limit = { NOT = { character = FROM } } hidden_tooltip = { participation_scaled_prestige = 200 } + hidden_tooltip = { + if = { + limit = { + has_ambition = obj_strengthen_religion + } + change_variable = { which = strengthen_religion value = 1 } + } + } } } @@ -6303,6 +6840,16 @@ cb_faction_independence = { } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success = { if = { limit = { @@ -6339,8 +6886,7 @@ cb_faction_independence = { } } - any_attacker = { - limit = { character = ROOT } + ROOT = { participation_scaled_prestige = 100 hidden_tooltip = { disband_event_forces = faction_revolters @@ -6400,9 +6946,6 @@ cb_faction_independence = { hidden_tooltip = { disband_event_forces = faction_revolters } - } - any_attacker = { - limit = { character = ROOT } participation_scaled_prestige = -50 } any_attacker = { @@ -6432,10 +6975,6 @@ cb_faction_independence = { hidden_tooltip = { disband_event_forces = faction_revolters } - } - - any_attacker = { - limit = { character = ROOT } participation_scaled_prestige = -100 } @@ -6500,7 +7039,6 @@ imperial_reconquest = { check_de_jure_tier = DUKE # this scans all dejure duchies for the counties which are held by or vassals(or below) of selected character. Only valid if is_permanent = yes allowed_to_target_tributaries = no - allowed_to_target_suzerains = no can_use = { ROOT = { @@ -6516,172 +7054,38 @@ imperial_reconquest = { can_use_title = { OR = { - # Provincia Britannia - title = d_northumberland - title = d_lancaster - title = d_york - title = d_norfolk - title = d_bedford - title = d_hereford - title = d_gloucester - title = d_canterbury - title = d_somerset - title = d_gwynedd - title = d_powys - title = d_deheubarth - title = d_cornwall - - # Provincia Italia - title = d_venice - title = d_verona - title = d_susa - title = d_lombardia - title = d_genoa - title = d_modena - title = d_ferrara - title = d_toscana - title = d_pisa - title = d_ancona - title = d_spoleto - title = d_latium - title = d_benevento - title = d_capua - title = d_apulia - title = d_salerno - title = d_calabria - - # Provincia Cilicia et Cyprus - title = d_armenia_minor - title = d_cyprus - - # Provincia Syria Palaestina - title = d_edessa - title = d_aleppo - title = d_antioch - title = d_tripoli - title = d_damascus - title = d_syria - title = d_galilee - title = d_jerusalem - title = d_ascalon - title = d_oultrejourdain - - # Provincia Aegyptus - title = d_alexandria - title = d_damietta - title = d_cairo - title = d_aswan - title = d_sinai - title = d_nubia - - # Provincia Cyrenaica et Creta - title = d_cyrenaica - title = d_krete - - # Provincia Africa - title = d_tripolitania - title = d_tunis - title = d_kabylia - - # Provincia Illyricum - title = d_vidin - title = d_rashka - title = d_dioclea - title = d_slavonia - title = d_bosnia - title = d_croatia - title = d_dalmatia - title = d_carinthia - - # Provincia Sicilia - title = d_sicily - - # Provincia Corsica et Sardinia - title = d_sardinia - - # Provincia Viennensis - title = d_aquitaine - title = d_toulouse - title = d_gascogne - title = d_poitou - title = d_auvergne - title = d_bourbon - title = d_dauphine - title = d_provence - - # Provincia Gallia - title = d_brittany - title = d_berry - title = d_anjou - title = d_normandy - title = d_orleans - title = d_champagne - title = d_valois - title = d_burgundy - title = d_upper_burgundy - title = d_savoie - title = d_brabant - title = d_flanders - title = d_luxembourg - title = d_upper_lorraine - title = d_lower_lorraine - title = d_alsace - - # Provincia Hispania - title = d_castilla - title = d_aragon - title = d_barcelona - title = d_valencia - title = d_mallorca - title = d_navarra - title = d_asturias - title = d_leon - title = d_galicia - title = d_porto - title = d_beja - title = d_algarve - title = d_cordoba - title = d_murcia - title = d_granada - title = d_sevilla - title = d_badajoz - title = d_toledo - - # Provincia Mauretania - title = d_marrakech - title = d_tangiers - title = d_fes - title = d_alger - title = d_tlemcen - - # Provincia Macedonia - title = d_dyrrachion - title = d_epirus - title = d_thessalonika - title = d_athens - title = d_achaia - title = d_aegean_islands - - # Provincia Thracia - title = d_turnovo - title = d_karvuna - title = d_adrianopolis - title = d_thrace - - # Provincia Asia - title = d_nikaea - title = d_samos - title = d_cibyrrhaeot - title = d_thracesia - title = d_anatolia - - # Provincia Pontus - title = d_paphlagonia - title = d_armeniacon - title = d_charsianon - title = d_trebizond - title = d_coloneia - title = d_mesopotamia + de_jure_liege_or_above = k_byzantium + de_jure_liege_or_above = k_anatolia + de_jure_liege_or_above = k_armenia + de_jure_liege_or_above = k_bulgaria + de_jure_liege_or_above = k_serbia + de_jure_liege_or_above = k_croatia + de_jure_liege_or_above = k_italy + de_jure_liege_or_above = k_sicily + de_jure_liege_or_above = k_bavaria + de_jure_liege_or_above = k_burgundy + de_jure_liege_or_above = k_france + de_jure_liege_or_above = k_aquitaine + de_jure_liege_or_above = k_brittany + de_jure_liege_or_above = k_england + de_jure_liege_or_above = k_wales + de_jure_liege_or_above = k_frisia + de_jure_liege_or_above = k_lotharingia + de_jure_liege_or_above = k_aragon + de_jure_liege_or_above = k_castille + de_jure_liege_or_above = k_andalusia + de_jure_liege_or_above = k_leon + de_jure_liege_or_above = k_spanish_galicia + de_jure_liege_or_above = k_portugal + de_jure_liege_or_above = k_navarra + de_jure_liege_or_above = k_syria + de_jure_liege_or_above = k_jerusalem + de_jure_liege_or_above = k_egypt + de_jure_liege_or_above = k_africa + de_jure_liege_or_above = k_mauretania + de_jure_liege_or_above = k_papal_state + de_jure_liege_or_above = k_venice + de_jure_liege_or_above = k_asturias } } @@ -6691,10 +7095,19 @@ imperial_reconquest = { NOT = { same_realm = FROM } } } + + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } on_success = { - any_attacker = { - limit = { character = ROOT } + ROOT = { participation_scaled_prestige = 100 } any_attacker = { @@ -6740,8 +7153,7 @@ imperial_reconquest = { } ROOT = { prestige = -200 } } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_piety = 100 participation_scaled_prestige = 200 if = { @@ -6794,7 +7206,6 @@ embargo_cb = { can_ask_to_join_war = no allowed_to_target_tributaries = no - allowed_to_target_suzerains = no can_use = { ROOT = { @@ -6851,6 +7262,16 @@ embargo_cb = { } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success = { ROOT = { embargo = FROM @@ -6993,11 +7414,11 @@ seize_trade_post = { # check_all_titles = yes check_all_trade_posts = yes can_ask_to_join_war = no - ticking_war_score_multiplier = 5.0 + att_ticking_war_score_multiplier = 5.0 + def_ticking_war_score_multiplier = 5.0 allow_distant = yes allowed_to_target_tributaries = no - allowed_to_target_suzerains = no can_use = { ROOT = { @@ -7068,12 +7489,21 @@ seize_trade_post = { } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success_title = { seize_trade_post = ROOT - any_attacker = { - limit = { character = ROOT } + ROOT = { participation_scaled_prestige = 50 } any_attacker = { @@ -7086,8 +7516,7 @@ seize_trade_post = { ROOT = { prestige = -50 } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 25 } any_defender = { @@ -7104,8 +7533,7 @@ seize_trade_post = { value = 2.0 } } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 50 } any_defender = { @@ -7146,7 +7574,7 @@ seize_trade_post = { viking_invasion = { name = CB_NAME_VIKING_INVASION war_name = WAR_NAME_VIKING_INVASION - sprite = 8 + sprite = 20 truce_days = 365 hostile_against_others = no # Vikings share in the spoils... is_permanent = yes @@ -7156,7 +7584,6 @@ viking_invasion = { apply_short_occ_mod = no # Do not apply the 'recently_conquered' modifier to Holdings allowed_to_target_tributaries = no - allowed_to_target_suzerains = no can_use = { ROOT = { @@ -7172,12 +7599,22 @@ viking_invasion = { is_valid_title = { FROM = { - any_realm_title = { + any_realm_province = { de_jure_liege_or_above = PREVPREV } } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success = { ROOT = { prestige = 500 @@ -7203,12 +7640,9 @@ viking_invasion = { } } } - } - - any_attacker = { - limit = { character = ROOT } participation_scaled_prestige = 300 } + any_attacker = { limit = { NOT = { character = ROOT } } hidden_tooltip = { participation_scaled_prestige = 300 } @@ -7266,9 +7700,6 @@ viking_invasion = { on_fail = { FROM = { prestige = 200 - } - any_defender = { - limit = { character = FROM } participation_scaled_prestige = 200 } any_defender = { @@ -7304,8 +7735,6 @@ viking_invasion = { } FROM = { prestige = 300 - } - FROM = { if = { limit = { has_dlc = "Legacy of Rome" @@ -7320,9 +7749,6 @@ viking_invasion = { } hidden_tooltip = { character_event = { id = LoR.30 days = 12 } } } - } - any_defender = { - limit = { character = FROM } participation_scaled_prestige = 250 } any_defender = { @@ -7357,7 +7783,6 @@ pagan_subjugation = { is_permanent = yes can_ask_to_join_war = yes allowed_to_target_tributaries = no - allowed_to_target_suzerains = no can_use = { ROOT = { @@ -7408,6 +7833,7 @@ pagan_subjugation = { in_revolt = no religion_group = pagan_group is_nomadic = no + NOT = { is_offmap_governor = yes } OR = { is_reformed_religion = no is_reformed_religion = ROOT @@ -7433,14 +7859,18 @@ pagan_subjugation = { hidden = yes } } + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } } on_success = { ROOT = { piety = 100 - } - any_attacker = { - limit = { character = ROOT } participation_scaled_prestige = 100 } any_attacker = { @@ -7496,9 +7926,6 @@ pagan_subjugation = { on_fail = { FROM = { piety = 50 - } - any_defender = { - limit = { character = FROM } participation_scaled_prestige = 50 } any_defender = { @@ -7526,8 +7953,6 @@ pagan_subjugation = { } FROM = { piety = 100 - } - FROM = { if = { limit = { has_dlc = "Legacy of Rome" @@ -7542,9 +7967,6 @@ pagan_subjugation = { } hidden_tooltip = { character_event = { id = LoR.30 days = 12 } } } - } - any_defender = { - limit = { character = FROM } participation_scaled_prestige = 100 } any_defender = { @@ -7614,6 +8036,16 @@ peasant_revolt = { } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success_title = { usurp_title_plus_barony_if_unlanded = { target = ROOT type = revolt } ROOT = { set_defacto_liege = ROOT } @@ -7699,6 +8131,7 @@ heretic_revolt = { attacker_can_call_allies = no defender_can_call_allies = no can_ask_to_join_war = no + check_de_jure_tier = DUKE can_use = { ROOT = { has_character_flag = heretic_revolter } @@ -7710,6 +8143,16 @@ heretic_revolt = { } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success = { ROOT = { prestige = 200 @@ -7727,6 +8170,36 @@ heretic_revolt = { } } } + + on_success_title = { + ROOT = { + vassalize_or_take_under_title = { + title = PREV + enemy = FROM + same_religion = yes # Only vassalize rulers of my religion + is_religious = yes + type = holy_war + } + } + if = { + limit = { + controls_religion = no + holder_scope = { + OR = { + character = FROM + is_liege_or_above = FROM + } + } + } + usurp_title = { target = ROOT type = holy_war } + } + if = { + limit = { + has_holder = no + } + usurp_title = { target = ROOT type = holy_war } + } + } on_fail = { ROOT = { @@ -7815,6 +8288,7 @@ religious_revolt = { attacker_can_call_allies = no defender_can_call_allies = no can_ask_to_join_war = no + check_de_jure_tier = DUKE can_use = { ROOT = { has_character_flag = religious_revolter } @@ -7825,6 +8299,16 @@ religious_revolt = { NOT = { religion = ROOT } } } + + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } on_success = { ROOT = { @@ -7843,6 +8327,36 @@ religious_revolt = { } } } + + on_success_title = { + ROOT = { + vassalize_or_take_under_title = { + title = PREV + enemy = FROM + same_religion = yes # Only vassalize rulers of my religion + is_religious = yes + type = holy_war + } + } + if = { + limit = { + controls_religion = no + holder_scope = { + OR = { + character = FROM + is_liege_or_above = FROM + } + } + } + usurp_title = { target = ROOT type = holy_war } + } + if = { + limit = { + has_holder = no + } + usurp_title = { target = ROOT type = holy_war } + } + } on_fail = { ROOT = { @@ -7951,6 +8465,16 @@ liberation_revolt = { is_valid_title = { has_holder = no } + + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } on_success = { ROOT = { @@ -8081,6 +8605,16 @@ duchy_adventure = { is_valid = { always = yes } + + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } on_success = { ROOT = { @@ -8143,6 +8677,281 @@ duchy_adventure = { days = 1 } } + + # Special case: Sultanate of Rum creator succeeds in his first conquest + if = { + limit = { + has_character_flag = rum_creator + } + character_event = { + id = 60610 + days = 600 + random = 300 + } + } + } + } + } + + on_fail = { + FROM = { + prestige = 100 + hidden_tooltip = { + opinion = { + modifier = opinion_rebel_traitor + who = ROOT + months = 1200 + } + } + } + ROOT = { + clear_wealth = yes + imprison = FROM + hidden_tooltip = { + disband_event_forces = yes + clr_character_flag = duchy_adventurer + } + } + + ROOT = { prestige = -100 } + } + + on_reverse_demand = { + ROOT = { + transfer_scaled_wealth = { + to = FROM + value = 4.0 + } + } + + FROM = { + prestige = 200 + } + + ROOT = { + clear_wealth = yes + imprison = FROM + prestige = -200 + hidden_tooltip = { + disband_event_forces = yes + clr_character_flag = duchy_adventurer + } + } + } + + on_attacker_leader_death = { + ROOT = { + hidden_tooltip = { + disband_event_forces = yes + clr_character_flag = duchy_adventurer + } + } + end_war = invalid + } + + attacker_ai_victory_worth = { + factor = -1 # always accept + } + + attacker_ai_defeat_worth = { + factor = 100 + } + + defender_ai_victory_worth = { + factor = -1 # always accept + } + + defender_ai_defeat_worth = { + factor = 100 + } +} + +kingdom_adventure = { # Used mainly for Muslims adventuring into India + name = CB_NAME_DUCHY_ADVENTURE + war_name = WAR_DUCHY_ADVENTURE + sprite = 9 + truce_days = 3650 + hostile_against_others = yes + check_de_jure_tier = KING # this scans all dejure duchies for the counties which are held by or vassals(or below) of selected character + + can_use = { + ROOT = { + OR = { + has_character_flag = duchy_adventurer + has_character_flag = rum_creator + } + } + } + + is_valid = { + always = yes + } + + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + + on_success = { + ROOT = { + prestige = 500 + piety = 250 + hidden_tooltip = { + clr_character_flag = duchy_adventurer + clr_character_flag = do_not_disturb + if = { + limit = { + has_nickname = no + } + FROM = { + save_event_target_as = nickname_target + } + ROOT = { + save_event_target_as = nickname_receiver + } + random_list = { + 5 = { give_nickname = nick_the_victorious } + 5 = { give_nickname = nick_the_conqueror } + 5 = { give_nickname = nick_the_dragon } + 10 = { give_nickname = nick_the_rel_group } + 10 = { give_nickname = nick_the_tiger } + 10 = { give_nickname = nick_the_world_burner } + 10 = { + give_nickname = nick_the_scourge_of_god + modifier = { + factor = 0 + event_target:nickname_target = { religion = ROOT } + } + } + } + } + } + } + FROM = { + prestige = -500 + piety = -250 + } + } + + on_success_title = { + custom_tooltip = { + text = other_invasion_succ_tip + hidden_tooltip = { + FROM = { # The adventurer takes ANY demesne title, including the targeted Kingdom, within the area of the targeted kingdom + any_demesne_title = { + limit = { + OR = { + title = PREVPREV + de_jure_liege_or_above = PREVPREV + } + NOT = { ROOT = { has_character_flag = rum_creator } } + } + usurp_title = { target = ROOT type = host } + } + } + + if = { # Claim the targeted Kingdom if it isn't held by anyone + limit = { + has_holder = no + } + usurp_title = { target = ROOT type = host } + } + + if = { # Create a Kingdom if the adventurer does not have one by this point + limit = { + ROOT = { + NOR = { + any_demesne_title = { + tier = KING + } + has_character_flag = rum_creator + } + } + } + ROOT = { + create_title = { + tier = KING + landless = no + temporary = no + custom_created = yes + culture = ROOT + holder = ROOT + name = "INDIAN_MUSLIM_KINGDOM" + base_title = PREV + copy_title_laws = yes + } + } + } + if = { + limit = { + ROOT = { has_character_flag = rum_creator } + } + k_rum = { + grant_title = ROOT + } + } + + ROOT = { # Preserve Vassals under the targeted kingdom + vassalize_or_take_under_title = { # Take all vassals held by the target under the title + title = PREV + enemy = FROM + type = host + } + set_defacto_liege = ROOT # Always go Independent + } + } + } + + ROOT = { + hidden_tooltip = { + if = { + limit = { + has_character_flag = rum_creator + } + capital_scope = { + culture = ROOT + } + } + if = { + limit = { + NOT = { has_character_flag = rum_creator } + } + capital_scope = { + reverse_culture = ROOT + } + any_child = { + limit = { + is_ruler = no + ai = yes + #liege = { character = ROOT } + } + culture = ROOT + } + any_courtier = { + limit = { + is_ruler = no + ai = yes + } + culture = ROOT + } + } + + # Special case: Sultanate of Rum might start yet another war + if = { + limit = { + has_character_flag = rum_creator + } + character_event = { + id = 60610 + days = 600 + random = 300 + } + } } } } @@ -8229,7 +9038,6 @@ pagan_holy_war = { is_holy_war = yes check_de_jure_tier = DUKE # this scans all dejure duchies for the counties which are held by or vassals(or below) of selected character. Only valid if is_permanent = yes allowed_to_target_tributaries = no - allowed_to_target_suzerains = no can_use_gui = { ROOT = { @@ -8239,6 +9047,13 @@ pagan_holy_war = { on_add = { ROOT = { piety = -100 } + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } } can_use = { @@ -8330,28 +9145,40 @@ pagan_holy_war = { NOT = { religion = FROM } } } - } - - on_success = { - any_attacker = { - limit = { character = ROOT } - participation_scaled_piety = 100 - participation_scaled_prestige = 50 - } + } + + on_success = { any_attacker = { limit = { NOT = { character = ROOT } } hidden_tooltip = { participation_scaled_piety = 100 participation_scaled_prestige = 50 } + hidden_tooltip = { + if = { + limit = { + has_ambition = obj_strengthen_religion + } + change_variable = { which = strengthen_religion value = 1 } + } + } } - ROOT = { + ROOT = { + participation_scaled_piety = 100 + participation_scaled_prestige = 50 religion_authority = { modifier = won_holy_war years = 20 } - + hidden_tooltip = { + if = { + limit = { + has_ambition = obj_strengthen_religion + } + change_variable = { which = strengthen_religion value = 1 } + } + } hidden_tooltip = { if = { limit = { @@ -8407,8 +9234,7 @@ pagan_holy_war = { value = 4.0 } } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_piety = 200 participation_scaled_prestige = 100 } @@ -8418,6 +9244,14 @@ pagan_holy_war = { participation_scaled_piety = 200 participation_scaled_prestige = 100 } + hidden_tooltip = { + if = { + limit = { + has_ambition = obj_strengthen_religion + } + change_variable = { which = strengthen_religion value = 1 } + } + } } ROOT = { religion_authority = { @@ -8429,7 +9263,15 @@ pagan_holy_war = { religion_authority = { modifier = won_holy_war years = 20 - } + } + hidden_tooltip = { + if = { + limit = { + has_ambition = obj_strengthen_religion + } + change_variable = { which = strengthen_religion value = 1 } + } + } } } @@ -8488,7 +9330,6 @@ caliphal_subjugation = { can_ask_to_join_war = yes check_de_jure_tier = KING # this scans all de jure kingdoms for the counties which are held by or vassals(or below) of selected character. Only valid if is_permanent = yes allowed_to_target_tributaries = no - allowed_to_target_suzerains = no can_use_gui = { ROOT = { @@ -8498,10 +9339,27 @@ caliphal_subjugation = { on_add = { ROOT = { piety = -200 } + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } } can_use = { ROOT = { + OR = { + ai = yes + multiplayer = no + NOT = { + has_game_rule = { + name = multiplayer_invasions + value = off + } + } + } religion_group = muslim OR = { has_landed_title = d_sunni @@ -8521,12 +9379,13 @@ caliphal_subjugation = { } FROM = { religion = ROOT + NOT = { is_offmap_governor = yes } } } can_use_title = { FROM = { - any_realm_title = { + any_realm_province = { de_jure_liege_or_above = PREVPREV } } @@ -8534,7 +9393,7 @@ caliphal_subjugation = { is_valid_title = { FROM = { - any_realm_title = { + any_realm_province = { de_jure_liege_or_above = PREVPREV } } @@ -8554,9 +9413,6 @@ caliphal_subjugation = { ROOT = { prestige = 100 decadence = -5 - } - any_attacker = { - limit = { character = ROOT } participation_scaled_prestige = 100 } any_attacker = { @@ -8585,9 +9441,6 @@ caliphal_subjugation = { on_fail = { FROM = { prestige = 50 - } - any_defender = { - limit = { character = FROM } participation_scaled_prestige = 50 } any_defender = { @@ -8609,8 +9462,6 @@ caliphal_subjugation = { } FROM = { prestige = 100 - } - FROM = { if = { limit = { has_dlc = "Legacy of Rome" @@ -8625,9 +9476,6 @@ caliphal_subjugation = { } hidden_tooltip = { character_event = { id = LoR.30 days = 12 } } } - } - any_defender = { - limit = { character = FROM } participation_scaled_prestige = 100 } any_defender = { @@ -8661,7 +9509,7 @@ caliphal_subjugation = { } } -muslim_county_conquest = { +muslim_county_conquest = { name = CB_NAME_COUNTY_CONQUEST war_name = WAR_NAME_COUNTY_CONQUEST sprite = 16 @@ -8672,7 +9520,6 @@ muslim_county_conquest = { press_claim = yes can_ask_to_join_war = no allowed_to_target_tributaries = no - allowed_to_target_suzerains = no can_use_gui = { ROOT = { @@ -8682,6 +9529,13 @@ muslim_county_conquest = { on_add = { ROOT = { piety = -50 } + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } } can_use = { @@ -8786,8 +9640,7 @@ muslim_county_conquest = { usurp_title_plus_barony_if_unlanded = { target = ROOT type = invasion } } } - any_attacker = { - limit = { character = ROOT } + ROOT = { participation_scaled_prestige = 100 } any_attacker = { @@ -8800,8 +9653,7 @@ muslim_county_conquest = { ROOT = { prestige = -100 } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 50 } any_defender = { @@ -8818,8 +9670,7 @@ muslim_county_conquest = { value = 4.0 } } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 100 } any_defender = { @@ -8850,6 +9701,17 @@ muslim_county_conquest = { modifier = { factor = 0.9 # Prefer using CB's without on_add costs } + modifier = { + factor = 0 + ROOT = { + has_character_flag = is_temujin + has_landed_title = e_mongol_empire + demesne_size = 1 + } + FROM = { + has_landed_title = e_china_west_governor + } + } } } @@ -8857,7 +9719,7 @@ muslim_county_conquest = { pagan_county_conquest = { name = CB_NAME_COUNTY_CONQUEST war_name = WAR_NAME_COUNTY_CONQUEST - sprite = 16 + sprite = 22 truce_days = 1825 hostile_against_others = yes is_permanent = yes @@ -8867,7 +9729,6 @@ pagan_county_conquest = { allow_distant = yes allowed_to_target_tributaries = no - allowed_to_target_suzerains = no can_use = { ROOT = { @@ -8926,7 +9787,7 @@ pagan_county_conquest = { ROOT = { religion = norse_pagan } ROOT = { religion = norse_pagan_reformed } } - FROM = { NOT = { religion_group = pagan_group } } +# FROM = { NOT = { religion_group = pagan_group } } location = { port = yes } @@ -8991,6 +9852,16 @@ pagan_county_conquest = { } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success_title = { usurp_title_plus_barony_if_unlanded = { target = ROOT type = invasion } @@ -9013,8 +9884,7 @@ pagan_county_conquest = { usurp_title = ROOT } - any_attacker = { - limit = { character = ROOT } + ROOT = { participation_scaled_prestige = 100 participation_scaled_piety = 50 } @@ -9054,8 +9924,7 @@ pagan_county_conquest = { } } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 50 } any_defender = { @@ -9084,8 +9953,7 @@ pagan_county_conquest = { } } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 100 participation_scaled_piety = 50 } @@ -9155,8 +10023,20 @@ pagan_county_conquest = { } } has_global_flag = viking_age_started + FROM = { NOT = { religion_group = pagan_group } } location = { port = yes } } + modifier = { + factor = 0 + ROOT = { + has_character_flag = is_temujin + has_landed_title = e_mongol_empire + demesne_size = 1 + } + FROM = { + has_landed_title = e_china_west_governor + } + } } } @@ -9173,7 +10053,6 @@ dejure_county_claim = { can_ask_to_join_war = no allowed_to_target_tributaries = no - allowed_to_target_suzerains = no infamy_modifier = 0.5 @@ -9372,6 +10251,16 @@ dejure_county_claim = { } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success_title = { if = { limit = { @@ -9418,8 +10307,7 @@ dejure_county_claim = { usurp_title_plus_barony_if_unlanded = { target = ROOT type = claim } } } - any_attacker = { - limit = { character = ROOT } + ROOT = { participation_scaled_prestige = 100 } any_attacker = { @@ -9432,8 +10320,7 @@ dejure_county_claim = { ROOT = { prestige = -100 } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 50 } any_defender = { @@ -9450,8 +10337,7 @@ dejure_county_claim = { value = 4.0 } } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 100 } any_defender = { @@ -9493,6 +10379,17 @@ dejure_county_claim = { } } } + modifier = { + factor = 0 + ROOT = { + has_character_flag = is_temujin + has_landed_title = e_mongol_empire + demesne_size = 1 + } + FROM = { + has_landed_title = e_china_west_governor + } + } } } @@ -9507,7 +10404,6 @@ dejure_barony_claim = { check_de_jure_tier = COUNT can_ask_to_join_war = no allowed_to_target_tributaries = no - allowed_to_target_suzerains = no infamy_modifier = 0.5 @@ -9684,6 +10580,16 @@ dejure_barony_claim = { } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success_title = { holder_scope = { save_event_target_as = target_taker @@ -9707,8 +10613,7 @@ dejure_barony_claim = { usurp_title_plus_barony_if_unlanded = { target = event_target:target_taker type = claim } } - any_attacker = { - limit = { character = ROOT } + ROOT = { participation_scaled_prestige = 50 } any_attacker = { @@ -9721,8 +10626,7 @@ dejure_barony_claim = { ROOT = { prestige = -50 } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 25 } any_defender = { @@ -9739,8 +10643,7 @@ dejure_barony_claim = { value = 4.0 } } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 50 } any_defender = { @@ -9824,7 +10727,6 @@ other_dejure_county_claim = { can_ask_to_join_war = no allowed_to_target_tributaries = no - allowed_to_target_suzerains = no infamy_modifier = 0.3 @@ -10023,15 +10925,22 @@ other_dejure_county_claim = { } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success = { ROOT = { opinion = { modifier = pressed_my_claim who = PREV } - } - any_attacker = { - limit = { character = ROOT } participation_scaled_prestige = 100 } any_attacker = { @@ -10091,8 +11000,7 @@ other_dejure_county_claim = { ROOT = { prestige = -100 } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 50 } any_defender = { @@ -10110,8 +11018,7 @@ other_dejure_county_claim = { ROOT = { prestige = -200 } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 100 } any_defender = { @@ -10167,6 +11074,16 @@ shia_caliphate_rising = { } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success = { clr_global_flag = shia_caliphate_revolt_ongoing ROOT = { @@ -10314,9 +11231,6 @@ shia_caliphate_rising = { } FROM = { piety = 250 - } - any_defender = { - limit = { character = FROM } participation_scaled_piety = 250 } any_defender = { @@ -10357,14 +11271,15 @@ shia_caliphate_rising = { depose_antipope = { name = CB_NAME_DEPOSE_ANTIPOPE war_name = WAR_NAME_DEPOSE_ANTIPOPE - sprite = 11 + sprite = 29 truce_days = 3650 is_permanent = yes can_ask_to_join_war = yes + defender_unoccupied_warscore = yes + attacker_rel_head_is_ally = yes # The attacker can call his (main) Pope into the war allowed_to_target_tributaries = no - allowed_to_target_suzerains = no can_use = { ROOT = { @@ -10412,13 +11327,18 @@ depose_antipope = { } } } + + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } on_success = { - any_attacker = { - limit = { character = ROOT } - participation_scaled_piety = 500 - participation_scaled_prestige = 250 - } any_attacker = { limit = { NOT = { character = ROOT } } hidden_tooltip = { @@ -10428,6 +11348,8 @@ depose_antipope = { } ROOT = { + participation_scaled_piety = 500 + participation_scaled_prestige = 250 religion_authority = { modifier = deposed_antipope years = 50 @@ -10559,13 +11481,18 @@ cb_install_antiking = { } } } + + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } on_success = { - any_attacker = { - limit = { character = ROOT } - participation_scaled_piety = 500 - participation_scaled_prestige = 250 - } any_attacker = { limit = { NOT = { character = ROOT } } hidden_tooltip = { @@ -10575,6 +11502,8 @@ cb_install_antiking = { } ROOT = { + participation_scaled_piety = 500 + participation_scaled_prestige = 250 religion_authority = { modifier = deposed_antipope years = 50 @@ -10683,8 +11612,8 @@ cb_install_antiking = { } } -buddhist_holy_war = { - name = CB_NAME_RELIGIOUS +buddhist_holy_war = { + name = CB_NAME_RELIGIOUS_MINOR war_name = WAR_NAME_RELIGIOUS sprite = 9 truce_days = 1825 @@ -10694,7 +11623,6 @@ buddhist_holy_war = { press_claim = yes can_ask_to_join_war = no allowed_to_target_tributaries = no - allowed_to_target_suzerains = no can_use = { ROOT = { @@ -10702,6 +11630,7 @@ buddhist_holy_war = { NOT = { same_realm = FROM } OR = { NOT = { religion_group = FROM } + FROM = { religion = taoist } AND = { religion_group = FROM FROM = { @@ -10716,6 +11645,7 @@ buddhist_holy_war = { religion_group = ROOT OR = { NOT = { religion = FROM } + FROM = { religion = taoist } AND = { religion_group = FROM FROM = { @@ -10791,6 +11721,7 @@ buddhist_holy_war = { NOT = { same_realm = FROM } OR = { NOT = { religion_group = FROM } + FROM = { religion = taoist } AND = { religion_group = FROM FROM = { @@ -10804,6 +11735,7 @@ buddhist_holy_war = { top_liege = { OR = { NOT = { religion = FROM } + FROM = { religion = taoist } AND = { religion_group = FROM FROM = { @@ -10823,6 +11755,40 @@ buddhist_holy_war = { } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + + on_success = { + any_attacker = { + hidden_tooltip = { + if = { + limit = { + has_ambition = obj_strengthen_religion + } + change_variable = { which = strengthen_religion value = 1 } + } + } + } + + ROOT = { + hidden_tooltip = { + if = { + limit = { + has_ambition = obj_strengthen_religion + } + change_variable = { which = strengthen_religion value = 1 } + } + } + } + } + on_success_title = { if = { limit = { @@ -10867,8 +11833,7 @@ buddhist_holy_war = { usurp_title_plus_barony_if_unlanded = { target = ROOT type = holy_war } } } - any_attacker = { - limit = { character = ROOT } + ROOT = { participation_scaled_prestige = 100 } any_attacker = { @@ -10881,8 +11846,7 @@ buddhist_holy_war = { ROOT = { prestige = -100 } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 50 } any_defender = { @@ -10899,13 +11863,28 @@ buddhist_holy_war = { value = 4.0 } } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 100 + hidden_tooltip = { + if = { + limit = { + has_ambition = obj_strengthen_religion + } + change_variable = { which = strengthen_religion value = 1 } + } + } } any_defender = { limit = { NOT = { character = FROM } } hidden_tooltip = { participation_scaled_prestige = 100 } + hidden_tooltip = { + if = { + limit = { + has_ambition = obj_strengthen_religion + } + change_variable = { which = strengthen_religion value = 1 } + } + } } } @@ -10937,7 +11916,6 @@ indian_subjugation = { can_ask_to_join_war = yes check_de_jure_tier = KING # this scans all de jure kingdoms for the counties which are held by or vassals(or below) of selected character. Only valid if is_permanent = yes allowed_to_target_tributaries = no - allowed_to_target_suzerains = no can_use_gui = { ROOT = { @@ -10947,11 +11925,18 @@ indian_subjugation = { on_add = { ROOT = { piety = -500 } + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } } can_use = { ROOT = { - religion_group = indian_group + has_dharmic_religion_trigger = yes NOT = { same_realm = FROM } NOT = { is_liege_or_above = FROM } has_horde_culture = no # Should use tribal invasion instead @@ -10959,7 +11944,8 @@ indian_subjugation = { mercenary = no } FROM = { - religion_group = indian_group + NOT = { is_offmap_governor = yes } + has_dharmic_religion_trigger = yes culture_group = ROOT NOT = { any_war = { @@ -10986,7 +11972,7 @@ indian_subjugation = { } FROM = { - any_realm_title = { + any_realm_province = { de_jure_liege_or_above = PREVPREV } } @@ -10994,7 +11980,7 @@ indian_subjugation = { is_valid_title = { FROM = { - any_realm_title = { + any_realm_province = { de_jure_liege_or_above = PREVPREV } } @@ -11023,8 +12009,7 @@ indian_subjugation = { } on_success = { - any_attacker = { - limit = { character = ROOT } + ROOT = { participation_scaled_prestige = 200 } any_attacker = { @@ -11096,8 +12081,7 @@ indian_subjugation = { } on_fail = { - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 100 } any_defender = { @@ -11112,6 +12096,7 @@ indian_subjugation = { on_invalidation = { ROOT = { remove_character_modifier = launched_subjugation + piety = 500 } } @@ -11123,8 +12108,7 @@ indian_subjugation = { value = 2.0 } } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 200 } any_defender = { @@ -11155,6 +12139,17 @@ indian_subjugation = { modifier = { factor = 0.9 # Prefer using CB's without on_add costs } + modifier = { + factor = 0 + ROOT = { + has_character_flag = is_temujin + has_landed_title = e_mongol_empire + demesne_size = 1 + } + FROM = { + has_landed_title = e_china_west_governor + } + } } } @@ -11172,6 +12167,16 @@ manifest_destiny_invasion = { can_use = { ROOT = { + OR = { + ai = yes + multiplayer = no + NOT = { + has_game_rule = { + name = multiplayer_invasions + value = off + } + } + } OR = { AND = { dynasty = 613 # Seljuks @@ -11241,6 +12246,16 @@ manifest_destiny_invasion = { } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success = { ROOT = { prestige = 200 @@ -11258,10 +12273,6 @@ manifest_destiny_invasion = { } } } - } - - any_attacker = { - limit = { character = ROOT } participation_scaled_prestige = 200 if = { @@ -11322,9 +12333,6 @@ manifest_destiny_invasion = { } hidden_tooltip = { character_event = { id = LoR.30 days = 12 } } } - } - any_defender = { - limit = { character = FROM } participation_scaled_prestige = 100 } any_defender = { @@ -11346,9 +12354,7 @@ manifest_destiny_invasion = { decadence = 10 } FROM = { - prestige = 200 - } - FROM = { + prestige = 200 if = { limit = { has_dlc = "Legacy of Rome" @@ -11360,9 +12366,6 @@ manifest_destiny_invasion = { } hidden_tooltip = { character_event = { id = LoR.30 days = 12 } } } - } - any_defender = { - limit = { character = FROM } participation_scaled_prestige = 200 } any_defender = { @@ -11400,7 +12403,6 @@ cb_decadence_usurption = { truce_days = 3650 is_permanent = yes allowed_to_target_tributaries = no - allowed_to_target_suzerains = no can_use = { ROOT = { @@ -11443,10 +12445,19 @@ cb_decadence_usurption = { } } } + + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } on_success = { - any_attacker = { - limit = { character = ROOT } + ROOT = { participation_scaled_piety = 500 participation_scaled_prestige = 250 } @@ -11519,7 +12530,8 @@ rivalry_cb = { is_permanent = yes can_ask_to_join_war = no allowed_to_target_tributaries = no - allowed_to_target_suzerains = no + + defender_unoccupied_warscore = yes can_use = { ROOT = { @@ -11540,12 +12552,18 @@ rivalry_cb = { is_rival = FROM } } + + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } on_success = { - any_attacker = { - limit = { character = ROOT } - participation_scaled_prestige = 250 - } any_attacker = { limit = { NOT = { character = ROOT } } hidden_tooltip = { @@ -11554,6 +12572,7 @@ rivalry_cb = { } ROOT = { + participation_scaled_prestige = 250 if = { limit = { ai = no @@ -11593,8 +12612,7 @@ rivalry_cb = { } on_reverse_demand = { - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 250 } any_defender = { @@ -11653,22 +12671,27 @@ rivalry_cb = { tributary_cb = { name = CB_NAME_TRIBUTARY war_name = WAR_NAME_TRIBUTARY - sprite = 1 + sprite = 36 truce_days = 365 is_permanent = yes hostile_against_others = yes can_ask_to_join_war = no display_on_map = no - coalition_threat = no allowed_to_target_tributaries = no - allowed_to_target_suzerains = no + + defender_unoccupied_warscore = yes can_use = { has_dlc = "Horse Lords" ROOT = { mercenary = no - is_tributary = no + OR = { + is_tributary = no + is_tributary = { + type = offmap + } + } NOT = { is_vassal_or_below = FROM } NOT = { is_liege_or_above = FROM } NOT = { @@ -11680,8 +12703,13 @@ tributary_cb = { holy_order = yes religion = FROM } + independent = yes } FROM = { + higher_tier_than = BARON + NOT = { + is_offmap_governor = yes + } NAND = { holy_order = yes religion = ROOT @@ -11737,11 +12765,16 @@ tributary_cb = { # The defender is not in any tributary war FROM = { - NOT = - { + NOR = { any_war = { using_cb = tributary_cb } + any_war = { + using_cb = tributary_permanent_cb + } + any_war = { + using_cb = tributary_nomad_cb + } } } } @@ -11756,6 +12789,23 @@ tributary_cb = { } } + on_add = { + # Chance to surrender early + ROOT = { save_event_target_as = tribute_war_suzerain } + FROM = { + save_event_target_as = tribute_war_target + set_character_flag = surrender_tributary_cb + character_event = { id = JD.2500 days = 5 tooltip = surrender_tributary_tt } + } + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success = { FROM = { save_event_target_as = target_loser @@ -12035,19 +13085,34 @@ tributary_cb = { free_tributary_cb = { name = CB_NAME_FREE_TRIBUTARY war_name = WAR_NAME_FREE_TRIBUTARY - sprite = 1 + sprite = 25 truce_days = 365 is_permanent = yes hostile_against_others = yes can_ask_to_join_war = no + is_independence = yes can_use = { - has_dlc = "Horse Lords" - ROOT = { OR = { AND = { is_tributary = yes + OR = { + AND = { + has_dlc = "Horse Lords" + OR = { + is_tributary = { type = nomadic } + is_tributary = { type = default } + } + } + AND = { + has_dlc = "Jade Dragon" + OR = { + is_tributary = { type = permanent } + is_tributary = { type = offmap } + } + } + } suzerain = { OR = { character = FROM @@ -12059,6 +13124,22 @@ free_tributary_cb = { } any_vassal = { is_tributary = yes + OR = { + AND = { + has_dlc = "Horse Lords" + OR = { + is_tributary = { type = nomadic } + is_tributary = { type = default } + } + } + AND = { + has_dlc = "Jade Dragon" + OR = { + is_tributary = { type = permanent } + is_tributary = { type = offmap } + } + } + } suzerain = { OR = { character = FROM @@ -12072,6 +13153,19 @@ free_tributary_cb = { } } + can_use_gui = { + ROOT = { #Cannot use CB if can take decision to stop paying tribute + conditional_tooltip = { + trigger = { is_decision_potential = tributary_independence_china } + NOT = { is_decision_allowed = tributary_independence_china } + } + conditional_tooltip = { + trigger = { is_decision_potential = tributary_independence_normal } + NOT = { is_decision_allowed = tributary_independence_normal } + } + } + } + is_valid = { ROOT = { OR = { @@ -12101,6 +13195,16 @@ free_tributary_cb = { } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success = { FROM = { prestige = -100 @@ -12384,6 +13488,16 @@ cb_install_khan = { } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success = { FROM = { any_demesne_title = { @@ -12395,8 +13509,7 @@ cb_install_khan = { killer = ROOT } } - any_attacker = { - limit = { character = ROOT } + ROOT = { participation_scaled_prestige = 250 } any_attacker = { @@ -12416,8 +13529,7 @@ cb_install_khan = { prestige = -200 prisoner = FROM } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 50 } any_defender = { @@ -12470,7 +13582,6 @@ nomad_dispute = { allow_distant = yes allowed_to_target_tributaries = no - allowed_to_target_suzerains = no can_use = { has_dlc = "Horse Lords" @@ -12508,11 +13619,20 @@ nomad_dispute = { } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success_title = { usurp_title_plus_barony_if_unlanded = { target = ROOT type = invasion } - any_attacker = { - limit = { character = ROOT } + ROOT = { participation_scaled_prestige = 100 participation_scaled_piety = 50 } @@ -12529,8 +13649,7 @@ nomad_dispute = { ROOT = { prestige = -100 } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 50 } any_defender = { @@ -12547,8 +13666,7 @@ nomad_dispute = { value = 4.0 } } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 100 participation_scaled_piety = 50 } @@ -12593,7 +13711,6 @@ cb_liberate_nomad_duchy = { check_de_jure_tier = DUKE # this scans all dejure duchies for the counties which are held by or vassals(or below) of selected character. Only valid if is_permanent = yes allowed_to_target_tributaries = no - allowed_to_target_suzerains = no infamy_modifier = 0.75 @@ -12632,6 +13749,36 @@ cb_liberate_nomad_duchy = { } } } + + any_de_jure_vassal_title = { # Can only liberate Duchies that are either outside of the Steppe region, or contains a Castle/City/Tribe + tier = COUNT + OR = { + holder_scope = { + character = FROM + } + holder_scope = { + any_liege = { + character = FROM + } + } + } + OR = { + location = { + NOT = { + region = world_steppe + } + } + location = { + any_province_holding = { + OR = { + holding_type = city + holding_type = castle + holding_type = tribal + } + } + } + } + } } is_valid = { @@ -12645,10 +13792,19 @@ cb_liberate_nomad_duchy = { mercenary = no } } + + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } on_success = { - any_attacker = { - limit = { character = ROOT } + ROOT = { participation_scaled_prestige = 200 if = { limit = { @@ -12703,8 +13859,7 @@ cb_liberate_nomad_duchy = { } prestige = -200 } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 300 if = { limit = { @@ -12802,6 +13957,16 @@ cb_minor_clan_revolt = { } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success_title = { usurp_title_plus_barony_if_unlanded = { target = ROOT type = revolt } @@ -12909,7 +14074,6 @@ nomad_subjugation = { is_permanent = yes can_ask_to_join_war = yes allowed_to_target_tributaries = no - allowed_to_target_suzerains = no can_use_gui = { #higher_tier_than between ROOT and FROM would be better but its tooltip doesn't say anything about comparing character tiers @@ -12954,6 +14118,16 @@ nomad_subjugation = { can_use = { ROOT = { + OR = { + ai = yes + multiplayer = no + NOT = { + has_game_rule = { + name = multiplayer_invasions + value = off + } + } + } is_nomadic = yes NOT = { same_realm = FROM } NOT = { is_liege_or_above = FROM } @@ -12970,6 +14144,7 @@ nomad_subjugation = { FROM = { in_revolt = no is_nomadic = no # Nomads cannot be subjugated + NOT = { is_offmap_governor = yes } NOT = { any_war = { defender = { character = PREVPREV } @@ -12980,6 +14155,18 @@ nomad_subjugation = { } } } + + OR = { + ROOT = { + ai = no + } + FROM = { + any_realm_title = { + tier = COUNT + count = 5 + } + } + } } on_add = { @@ -13001,6 +14188,13 @@ nomad_subjugation = { } } } + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } } on_success = { @@ -13048,9 +14242,6 @@ nomad_subjugation = { } ROOT = { piety = 100 - } - any_attacker = { - limit = { character = ROOT } participation_scaled_prestige = 100 } any_attacker = { @@ -13132,9 +14323,6 @@ nomad_subjugation = { on_fail = { FROM = { piety = 50 - } - any_defender = { - limit = { character = FROM } participation_scaled_prestige = 50 } any_defender = { @@ -13172,8 +14360,6 @@ nomad_subjugation = { } FROM = { piety = 100 - } - FROM = { if = { limit = { has_dlc = "Legacy of Rome" @@ -13185,9 +14371,6 @@ nomad_subjugation = { } hidden_tooltip = { character_event = { id = LoR.30 days = 12 } } } - } - any_defender = { - limit = { character = FROM } participation_scaled_prestige = 100 } any_defender = { @@ -13214,8 +14397,19 @@ nomad_subjugation = { ai_will_do = { factor = 10 + modifier = { + factor = 0 + ROOT = { + has_character_flag = is_temujin + has_landed_title = e_mongol_empire + demesne_size = 1 + } + FROM = { + has_landed_title = e_china_west_governor + } + } } -} +} # 62: nomad_invasion = { @@ -13230,7 +14424,6 @@ nomad_invasion = { check_de_jure_tier = KING # this scans all de jure kingdoms for the counties which are held by or vassals(or below) of selected character. Only valid if is_permanent = yes allowed_to_target_tributaries = no - allowed_to_target_suzerains = no can_use_gui = { ROOT = { @@ -13242,21 +14435,53 @@ nomad_invasion = { on_add = { ROOT = { prestige = -100 } + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } } can_use = { ROOT = { is_nomadic = yes + OR = { + ai = yes + multiplayer = no + NOT = { + has_game_rule = { + name = multiplayer_invasions + value = off + } + } + } } ROOT = { NOT = { same_realm = FROM } } + + OR = { # This ensures that the AI doesn't declare this type of war against someone who only holds a few counties within the targeted title... + ROOT = { + ai = no + } + ROOT = { + has_landed_title = e_mongol_empire + } + FROM = { + num_of_realm_counties = { + value = 5 + title = PREV + } + } + } } is_valid_title = { FROM = { - any_realm_title = { + any_realm_province = { de_jure_liege_or_above = PREVPREV } } @@ -13370,9 +14595,6 @@ nomad_invasion = { } } } - } - any_defender = { - limit = { character = FROM } participation_scaled_prestige = 100 } any_defender = { @@ -13420,9 +14642,6 @@ nomad_invasion = { } hidden_tooltip = { character_event = { id = LoR.30 days = 12 } } } - } - any_defender = { - limit = { character = FROM } participation_scaled_prestige = 200 } any_defender = { @@ -13517,6 +14736,17 @@ nomad_invasion = { } } } + modifier = { + factor = 0 + ROOT = { + has_character_flag = is_temujin + has_landed_title = e_mongol_empire + demesne_size = 1 + } + FROM = { + has_landed_title = e_china_west_governor + } + } } } @@ -13531,7 +14761,6 @@ nomad_expansion = { check_de_jure_tier = DUKE # this scans all de jure duchies for the counties which are held by or vassals(or below) of selected character. Only valid if is_permanent = yes allowed_to_target_tributaries = no - allowed_to_target_suzerains = no can_use_gui = { ROOT = { @@ -13552,6 +14781,13 @@ nomad_expansion = { on_add = { ROOT = { prestige = -300 } + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } } can_use = { @@ -13659,9 +14895,6 @@ nomad_expansion = { 100 = { } } } - } - any_attacker = { - limit = { character = ROOT } if = { limit = { uses_decadence = yes @@ -13713,8 +14946,7 @@ nomad_expansion = { } prestige = -200 } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 300 if = { limit = { @@ -13816,6 +15048,17 @@ nomad_expansion = { } } } + modifier = { + factor = 0 + ROOT = { + has_character_flag = is_temujin + has_landed_title = e_mongol_empire + demesne_size = 1 + } + FROM = { + has_landed_title = e_china_west_governor + } + } } } @@ -13873,6 +15116,16 @@ increase_council_power_war = { # Started from faction } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success = { ROOT = { opinion = { @@ -13880,9 +15133,6 @@ increase_council_power_war = { # Started from faction who = FROM months = 12 } - } - any_attacker = { - limit = { character = ROOT } participation_scaled_prestige = 100 hidden_tooltip = { disband_event_forces = faction_revolters @@ -13908,8 +15158,7 @@ increase_council_power_war = { # Started from faction prestige = -100 } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 50 } any_defender = { @@ -13936,8 +15185,7 @@ increase_council_power_war = { # Started from faction prisoner = FROM } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 100 } any_defender = { @@ -13987,9 +15235,9 @@ nomad_humiliate_cb = { hostile_against_others = yes can_ask_to_join_war = no display_on_map = no - coalition_threat = no allowed_to_target_tributaries = no - allowed_to_target_suzerains = no + + defender_unoccupied_warscore = yes can_use = { has_dlc = "Horse Lords" @@ -14060,6 +15308,16 @@ nomad_humiliate_cb = { } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success = { ROOT = { prestige = 300 @@ -14308,6 +15566,16 @@ powerful_vassal_takeover_war = { # Started from faction } } + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } + on_success = { any_attacker = { participation_scaled_prestige = 100 @@ -14404,8 +15672,7 @@ powerful_vassal_takeover_war = { # Started from faction prestige = -100 } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 50 } any_defender = { @@ -14438,8 +15705,7 @@ powerful_vassal_takeover_war = { # Started from faction } - any_defender = { - limit = { character = FROM } + FROM = { participation_scaled_prestige = 100 } any_defender = { @@ -14482,4 +15748,4 @@ powerful_vassal_takeover_war = { # Started from faction defender_ai_defeat_worth = { factor = 100 } -} +} \ No newline at end of file diff --git a/AncientReligions/common/cb_types/ACR_hellenic_cb_types.txt b/AncientReligions/common/cb_types/ACR_hellenic_cb_types.txt index 4cde2176..76d52e0e 100644 --- a/AncientReligions/common/cb_types/ACR_hellenic_cb_types.txt +++ b/AncientReligions/common/cb_types/ACR_hellenic_cb_types.txt @@ -12,7 +12,6 @@ hellenic_county_liberation = { allow_distant = yes allowed_to_target_tributaries = no - allowed_to_target_suzerains = no infamy_modifier = 0.75 @@ -76,6 +75,16 @@ hellenic_county_liberation = { } } } + + on_add = { + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } + } on_success_title = { usurp_title_plus_barony_if_unlanded = ROOT @@ -172,6 +181,7 @@ hellenic_county_liberation = { factor = 100 } } + hellenic_reconquest = { name = CB_NAME_IMPERIAL war_name = WAR_NAME_IMPERIAL @@ -397,7 +407,7 @@ hellenic_reconquest = { NOT = { same_realm = FROM } } } - + on_add = { ROOT = { add_character_modifier = { @@ -406,15 +416,19 @@ hellenic_reconquest = { hidden = yes } } + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } + } } on_success = { ROOT = { clr_character_flag = called_imperial_reconquest set_character_flag = called_imperial_reconquest - } - any_attacker = { - limit = { character = ROOT } participation_scaled_prestige = 100 } any_attacker = { @@ -443,7 +457,7 @@ hellenic_reconquest = { limit = { holder_scope = { character = FROM } } - usurp_title_only = ROOT + usurp_title_only = { target = ROOT type = invasion } } } @@ -471,7 +485,7 @@ hellenic_reconquest = { participation_scaled_prestige = 200 if = { limit = { - religion_group = muslim + uses_decadence = yes } participation_scaled_decadence = -10 } @@ -483,7 +497,7 @@ hellenic_reconquest = { participation_scaled_prestige = 200 if = { limit = { - religion_group = muslim + uses_decadence = yes } participation_scaled_decadence = -10 } @@ -520,7 +534,6 @@ promethean_expansion = { check_de_jure_tier = KING # this scans all de jure kingdoms for the counties which are held by or vassals(or below) of selected character. Only valid if is_permanent = yes allowed_to_target_tributaries = no - allowed_to_target_suzerains = no infamy_modifier = 1.5 @@ -550,13 +563,28 @@ promethean_expansion = { } on_add = { - ROOT = { - prestige = -500 + ROOT = { prestige = -500 } + if = { + limit = { defender = { is_offmap_governor = offmap_china } } + attacker = { + sound_effect = china_angered_emperor + detract_grace_super_huge_effect = yes + } } } can_use_title = { ROOT = { + OR = { + ai = yes + multiplayer = no + NOT = { + has_game_rule = { + name = multiplayer_invasions + value = off + } + } + } independent = yes religion = promethean_pagan higher_tier_than = COUNT @@ -576,9 +604,6 @@ promethean_expansion = { on_success = { ROOT = { prestige = 200 - } - any_attacker = { - limit = { character = ROOT } participation_scaled_prestige = 200 } any_attacker = { @@ -603,11 +628,8 @@ promethean_expansion = { has_dlc = "Reapers" } devestate_province_effect = yes - } - if = { - limit = { - NOT = { has_dlc = "Reapers" } - } + } + else = { remove_province_modifier = depopulated_province add_province_modifier = { name = depopulated_province duration = 10950 } } @@ -627,13 +649,7 @@ promethean_expansion = { 10 = { give_nickname = nick_the_lionheart } 10 = { give_nickname = nick_the_great } 10 = { give_nickname = nick_the_hammer } - 20 = { - modifier = { - factor = 0 - religion_group = christian - } - give_nickname = nick_the_sword_of_god - } + 20 = { give_nickname = nick_the_sword_of_god } } } } @@ -666,11 +682,11 @@ promethean_expansion = { has_nickname = no } random_list = { - 10 = { give_nickname = nick_the_holy } - 10 = { give_nickname = nick_the_glorious } - 10 = { give_nickname = nick_the_lionheart } 10 = { give_nickname = nick_the_great } 10 = { give_nickname = nick_the_hammer } + 10 = { give_nickname = nick_the_avenger } + 10 = { give_nickname = nick_the_lion } + 10 = { give_nickname = nick_the_bold } 20 = { modifier = { factor = 0 @@ -681,9 +697,6 @@ promethean_expansion = { } } } - } - any_defender = { - limit = { character = FROM } participation_scaled_prestige = 100 } any_defender = { @@ -711,24 +724,29 @@ promethean_expansion = { has_nickname = no } random_list = { - 10 = { give_nickname = nick_the_holy } - 10 = { give_nickname = nick_the_glorious } - 10 = { give_nickname = nick_the_lionheart } 10 = { give_nickname = nick_the_great } 10 = { give_nickname = nick_the_hammer } - 20 = { - modifier = { - factor = 0 - religion_group = christian - } - give_nickname = nick_the_sword_of_god - } + 10 = { give_nickname = nick_the_avenger } + 10 = { give_nickname = nick_the_lion } + 10 = { give_nickname = nick_the_bold } } } } - } - any_defender = { - limit = { character = FROM } + + if = { + limit = { + has_dlc = "Legacy of Rome" + OR = { + has_landed_title = e_byzantium + has_landed_title = e_roman_empire + } + OR = { + religion_group = christian + religion = hellenic_pagan + } + } + hidden_tooltip = { character_event = { id = LoR.30 days = 12 } } + } participation_scaled_prestige = 200 } any_defender = { diff --git a/AncientReligions/common/combat_tactics/00_combat_tactics.txt b/AncientReligions/common/combat_tactics/00_combat_tactics.txt index f8bc48b9..57681523 100644 --- a/AncientReligions/common/combat_tactics/00_combat_tactics.txt +++ b/AncientReligions/common/combat_tactics/00_combat_tactics.txt @@ -2329,6 +2329,64 @@ couched_lance_charge_tactic = { } } +# Tibetan +mountain_ambush_tactic = { + days = 18 + sprite = 3 + group = stand_fast + + trigger = { + phase = melee + light_infantry = 0.1 + flank_has_leader = yes + leader = { + martial = 9 + culture_group = tibetan_group + } + location = { + OR = { + terrain = hills + terrain = mountain + } + } + } + + mean_time_to_happen = { + days = 3 + modifier = { + factor = 1.5 + troops = { + who = light_infantry + value = 0.2 + } + } + modifier = { + factor = 2 + flank_has_leader = yes + leader = { + martial = 14 + } + } + modifier = { + factor = 3 + flank_has_leader = yes + leader = { + trait = trickster + } + } + } + + light_cavalry_offensive = 2.4 + light_infantry_offensive = 1.5 + heavy_infantry_offensive = 1.25 + horse_archers_offensive = 1.5 + archers_offensive = 1.2 + enemy = { + group = advance + factor = 3 + } +} + # Arab desert_ambush_tactic = { days = 18 diff --git a/AncientReligions/common/event_modifiers/ACR_hellenic_modifiers.txt b/AncientReligions/common/event_modifiers/ACR_hellenic_modifiers.txt index 592c64d5..86d77f45 100644 --- a/AncientReligions/common/event_modifiers/ACR_hellenic_modifiers.txt +++ b/AncientReligions/common/event_modifiers/ACR_hellenic_modifiers.txt @@ -194,6 +194,7 @@ acr_excellent_performance = { local_revolt_risk = -0.05 } +# province modifier! acr_blasphemous_exhibition = { icon = 36 @@ -203,8 +204,8 @@ acr_blasphemous_exhibition = { acr_grand_sculpture = { icon = 7 - add_prestige_modifier = 0.05 - add_piety_modifier = 0.05 + monthly_character_prestige = 0.05 + monthly_character_piety = 0.05 } acr_good_performance = { @@ -233,3 +234,21 @@ acr_terrible_performance = { general_opinion = -10 monthly_character_prestige = 0.1 } + +##################################################################### +# Wines, Oils, & Dionysus +##################################################################### + +ancrel_winery = { + icon = 83 +} + +ancrel_oilworks = { + icon = 85 +} + +ancrel_held_dionysia = { + icon = 48 + global_revolt_risk = -0.2 + monthly_character_piety = 0.10 +} \ No newline at end of file diff --git a/AncientReligions/common/governments/feudal_governments.txt b/AncientReligions/common/governments/feudal_governments.txt index aec827f2..01d04ef2 100644 --- a/AncientReligions/common/governments/feudal_governments.txt +++ b/AncientReligions/common/governments/feudal_governments.txt @@ -12,6 +12,8 @@ feudal_governments = { } accepts_liege_governments = { # Gets the wrong religion modifier instead muslim_government + theocratic_feudal_government + chinese_imperial_government } free_revoke_on_governments_religion = { # Tribal vassals of other religions can have their titles revoked for free tribal_government @@ -26,6 +28,25 @@ feudal_governments = { religion_group = muslim religion = aten_pagan } + NAND = { + culture_group = tibetan_group + OR = { + religion = bon + religion = buddhist + } + higher_tier_than = BARON + } + NAND = { + tier = EMPEROR + primary_title = { has_title_flag = pretender_chinese_empire } + OR = { + culture_group = chinese_group + culture = khitan + culture = tangut + culture = jurchen + has_character_flag = chinese_imperial_government_preserve + } + } is_patrician = no } @@ -55,6 +76,8 @@ feudal_governments = { } accepts_liege_governments = { # Gets the wrong religion modifier instead feudal_government + theocratic_feudal_government + chinese_imperial_government } free_revoke_on_tiers = { duke @@ -70,8 +93,19 @@ feudal_governments = { NOT = { primary_title = { is_landless_type_title = no } } } OR = { - religion_group = muslim religion = aten_pagan + religion_group = muslim + } + NAND = { + tier = EMPEROR + primary_title = { has_title_flag = pretender_chinese_empire } + OR = { + culture_group = chinese_group + culture = khitan + culture = tangut + culture = jurchen + has_character_flag = chinese_imperial_government_preserve + } } is_patrician = no } @@ -97,4 +131,132 @@ feudal_governments = { capital_move_delay = 600 } + theocratic_feudal_government = { + preferred_holdings = { CASTLE TEMPLE } + allowed_holdings = { + CASTLE + TEMPLE + FORT + HOSPITAL + } + allowed_holdings_culture = { # Will not get the wrong government type penalty for tribes of the same culture + TRIBAL + } + accepts_liege_governments = { # Gets the wrong religion modifier instead + muslim_government + theocracy_government + feudal_government + chinese_imperial_government + } + free_revoke_on_governments_religion = { # Tribal vassals of other religions can have their titles revoked for free + tribal_government + } + frame_suffix = "_theocraticfeudal" + potential = { + NAND = { + controls_religion = yes + NOT = { religion_group = muslim } + NOT = { primary_title = { is_landless_type_title = no } } + } + NOT = { religion_group = muslim } + NOT = { religion = aten_pagan } + AND = { + culture_group = tibetan_group + OR = { + religion = bon + religion = buddhist + } + higher_tier_than = BARON + } + NAND = { + tier = EMPEROR + primary_title = { has_title_flag = pretender_chinese_empire } + OR = { + culture_group = chinese_group + culture = khitan + culture = tangut + culture = jurchen + has_character_flag = chinese_imperial_government_preserve + } + } + is_patrician = no + } + + color = { 207 145 90 } + + uses_piety_for_law_change = yes + dukes_called_kings = yes + barons_need_dynasty = yes + + can_build_tribal = no + + ignore_in_vassal_limit_calculation = { + tribal_government + } + capital_move_delay = 600 + } + + chinese_imperial_government = { + preferred_holdings = { CASTLE CITY } + allowed_holdings = { + CASTLE + CITY + FORT + HOSPITAL + } + allowed_holdings_culture = { # Will not get the wrong government type penalty for tribes of the same culture + TRIBAL + } + accepts_liege_governments = { # Gets the wrong religion modifier instead + feudal_government + muslim_government + theocratic_feudal_government + } + free_revoke_on_tiers = { + duke + } + free_revoke_on_governments_religion = { # Tribal vassals of other religions can have their titles revoked for free + tribal_government + } + frame_suffix = "_chineseimperial" + potential = { + tier = EMPEROR + primary_title = { has_title_flag = pretender_chinese_empire } + OR = { + culture_group = chinese_group + culture = khitan + culture = tangut + culture = jurchen + has_character_flag = chinese_imperial_government_preserve #keeps government when player is given culture change opton + } + is_patrician = no + } + + color = { 118 255 163 } + + barons_need_dynasty = yes + + can_build_tribal = no + + ignore_in_vassal_limit_calculation = { + tribal_government + } + capital_move_delay = 200 + + can_usurp_kingdoms_and_empires = no + can_create_empires = no + can_demand_religious_conversion = no + gets_religion_opinion_penalties = no + gives_religion_opinion_penalties = no + vassal_government_opinion_penalties = no + can_grant_kingdoms_and_empires_to_other_government_group = yes + free_retract_vassalage = yes + + vassal_limit = 10 + + character_modifier = { + monthly_character_piety = 1 + } + } + } \ No newline at end of file diff --git a/AncientReligions/common/governments/nomadic_governments.txt b/AncientReligions/common/governments/nomadic_governments.txt index 6b62136c..845896c6 100644 --- a/AncientReligions/common/governments/nomadic_governments.txt +++ b/AncientReligions/common/governments/nomadic_governments.txt @@ -16,6 +16,8 @@ nomadic_governments = { merchant_republic_government republic_government tribal_government + theocratic_feudal_government + chinese_imperial_government } ignore_in_vassal_limit_calculation = { nomadic_government @@ -26,6 +28,7 @@ nomadic_governments = { NAND = { controls_religion = yes NOT = { religion_group = muslim } + NOT = { religion = aten_pagan } NOT = { primary_title = { is_landless_type_title = no } } } is_patrician = no @@ -48,6 +51,7 @@ nomadic_governments = { can_build_forts = no can_build_hospitals = no can_build_temple = yes + can_demand_religious_conversion = no vassal_limit = -10 commander_limit = -4 diff --git a/AncientReligions/common/governments/republic_governments.txt b/AncientReligions/common/governments/republic_governments.txt index ad4e97f3..c5ef8c0e 100644 --- a/AncientReligions/common/governments/republic_governments.txt +++ b/AncientReligions/common/governments/republic_governments.txt @@ -123,4 +123,51 @@ republic_governments = { capital_move_delay = 600 } + confucian_bureaucracy = { + offmap_power = offmap_china + preferred_holdings = { CASTLE CITY } + allowed_holdings = { + CASTLE + CITY + FORT + HOSPITAL + } + allowed_holdings_culture = { # Will not get the wrong government type penalty for tribes of the same culture + TRIBAL + } + forced_contract = { + feudal_government + muslim_government + theocratic_feudal_government + chinese_imperial_government + theocracy_government + tribal_government + merchant_republic_government + republic_government + } + gets_religion_opinion_penalties = no + vassal_government_opinion_penalties = no + free_revoke_on_governments_religion = { # Tribal vassals of other religions can have their titles revoked for free + tribal_government + } + frame_suffix = "_confucian" + potential = { + is_offmap_tag = offmap_china + } + + color = { 94 187 185 } + + can_imprison_without_reason = no + can_revoke_without_reason = no + + can_build_tribal = no + + capital_move_delay = 600 + + aggression = 0 # AI only attacks by script + can_create_kingdoms = no + can_create_empires = no + can_demand_religious_conversion = no + can_inherit = no + } } \ No newline at end of file diff --git a/AncientReligions/common/governments/tribal_governments.txt b/AncientReligions/common/governments/tribal_governments.txt index fef126e6..e82347e9 100644 --- a/AncientReligions/common/governments/tribal_governments.txt +++ b/AncientReligions/common/governments/tribal_governments.txt @@ -12,6 +12,8 @@ tribal_governments = { merchant_republic_government theocracy_government muslim_government + theocratic_feudal_government + chinese_imperial_government } vassal_call_to_arms = { tribal_government diff --git a/AncientReligions/common/laws/succession_laws.txt b/AncientReligions/common/laws/succession_laws.txt index df6835ac..109cdff6 100644 --- a/AncientReligions/common/laws/succession_laws.txt +++ b/AncientReligions/common/laws/succession_laws.txt @@ -44,9 +44,11 @@ succession_laws = { holder_scope = { is_tribal = yes } } is_primary_type_title = no + NOT = { holder_scope = { government = confucian_bureaucracy } } } allow = { holder_scope = { + show_scope_change = no OR = { is_tribal = no custom_tooltip = { @@ -67,9 +69,19 @@ succession_laws = { } } } - NAND = { - has_law = succession_voting_power_1 - has_law = succ_feudal_elective + conditional_tooltip = { + trigger = { + has_dlc = "Conclave" + } + custom_tooltip = { + text = forced_elective_tt + hidden_tooltip = { + NAND = { + has_law = succession_voting_power_1 + has_law = succ_feudal_elective + } + } + } } } effect = { @@ -121,9 +133,23 @@ succession_laws = { holder_scope = { is_tribal = yes } } is_primary_type_title = no - NAND = { - has_law = succession_voting_power_1 - has_law = succ_feudal_elective + NOT = { holder_scope = { government = confucian_bureaucracy } } + NOT = { holder_scope = { government = chinese_imperial_government } } + } + allow = { + conditional_tooltip = { + trigger = { + has_dlc = "Conclave" + } + custom_tooltip = { + text = forced_elective_tt + hidden_tooltip = { + NAND = { + has_law = succession_voting_power_1 + has_law = succ_feudal_elective + } + } + } } } effect = { @@ -205,41 +231,64 @@ succession_laws = { NOT = { tier = baron } holder_scope = { is_patrician = yes } } + + NOT = { holder_scope = { government = confucian_bureaucracy } } } allow = { - OR = { - has_dlc = "Zeus" - hidden_tooltip = { - has_crown_law_title = no + + conditional_tooltip = { + trigger = { + NOT = { has_dlc = "Conclave" } } - holder_scope = { - is_patrician = yes - OR = { - is_merchant_republic = no - PREV = { - is_primary_holder_title = no - } - NOT = { - in_revolt = yes - succ_law_title = { - title = PREVPREV + OR = { + hidden_tooltip = { + has_crown_law_title = no + } + holder_scope = { + show_scope_change = no + is_patrician = yes + OR = { + is_merchant_republic = no + PREV = { + is_primary_holder_title = no + } + NOT = { + in_revolt = yes + succ_law_title = { + title = PREVPREV + } } } } - } - crownlaw_title = { - OR = { - has_law = crown_authority_2 - has_law = crown_authority_3 - has_law = crown_authority_4 + crownlaw_title = { + OR = { + has_law = crown_authority_2 + has_law = crown_authority_3 + has_law = crown_authority_4 + } } } } - holder_scope = { NOT = { has_character_flag = liege_forced_succ_law } } - NAND = { - has_law = succession_voting_power_1 - has_law = succ_feudal_elective + custom_tooltip = { + text = not_forced_tt + hidden_tooltip = { + holder_scope = { NOT = { has_character_flag = liege_forced_succ_law } } + } + } + conditional_tooltip = { + trigger = { + has_dlc = "Conclave" + } + custom_tooltip = { + text = forced_elective_tt + hidden_tooltip = { + NAND = { + has_law = succession_voting_power_1 + has_law = succ_feudal_elective + } + } + } } } @@ -280,6 +329,7 @@ succession_laws = { } OR = { NOT = { religion_group = pagan_group } + religion = bon is_reformed_religion = yes religion = hellenic_pagan } @@ -299,40 +349,75 @@ succession_laws = { } } } + NOT = { holder_scope = { government = confucian_bureaucracy } } } allow = { - OR = { - holder_scope = { # Viceroyalties can always have primogeniture if not muslim - any_demesne_title = { - is_vice_royalty = yes - } + conditional_tooltip = { + trigger = { + has_dlc = "Conclave" } - AND = { - has_dlc = "Zeus" - holder_scope = { - primary_title = { - OR = { - has_law = ze_administration_laws_1 - has_law = ze_administration_laws_2 + OR = { + holder_scope = { # Viceroyalties can always have primogeniture if not muslim + show_scope_change = no + any_demesne_title = { + is_vice_royalty = yes + } + } + AND = { + holder_scope = { + show_scope_change = no + primary_title = { + show_scope_change = no + OR = { + has_law = ze_administration_laws_1 + has_law = ze_administration_laws_2 + } } } } } - hidden_tooltip = { - has_crown_law_title = no - NOT = { has_dlc = "Zeus" } + } + conditional_tooltip = { + trigger = { + NOT = { has_dlc = "Conclave" } } - crownlaw_title = { - OR = { - has_law = crown_authority_3 - has_law = crown_authority_4 + OR = { + holder_scope = { # Viceroyalties can always have primogeniture if not muslim + show_scope_change = no + any_demesne_title = { + is_vice_royalty = yes + } + } + hidden_tooltip = { + has_crown_law_title = no + } + crownlaw_title = { + OR = { + has_law = crown_authority_3 + has_law = crown_authority_4 + } } } } - holder_scope = { NOT = { has_character_flag = liege_forced_succ_law } } - NAND = { - has_law = succession_voting_power_1 - has_law = succ_feudal_elective + custom_tooltip = { + text = not_forced_tt + hidden_tooltip = { + holder_scope = { NOT = { has_character_flag = liege_forced_succ_law } } + } + } + conditional_tooltip = { + trigger = { + has_dlc = "Conclave" + } + custom_tooltip = { + text = forced_elective_tt + hidden_tooltip = { + NAND = { + has_law = succession_voting_power_1 + has_law = succ_feudal_elective + } + } + } } } @@ -392,9 +477,16 @@ succession_laws = { is_primary_type_title = no NOT = { tier = baron } holder_scope = { is_feudal = yes } + NOT = { holder_scope = { government = confucian_bureaucracy } } + NOT = { holder_scope = { government = chinese_imperial_government } } } allow = { - holder_scope = { NOT = { has_character_flag = liege_forced_succ_law } } + custom_tooltip = { + text = not_forced_tt + hidden_tooltip = { + holder_scope = { NOT = { has_character_flag = liege_forced_succ_law } } + } + } } effect = { succession = feudal_elective @@ -453,16 +545,33 @@ succession_laws = { } holder_scope = { is_feudal = yes } } + NOT = { holder_scope = { government = confucian_bureaucracy } } + NOT = { holder_scope = { government = chinese_imperial_government } } } allow = { OR = { holder_scope = { is_feudal = yes } holder_scope = { is_tribal = yes } } - holder_scope = { NOT = { has_character_flag = liege_forced_succ_law } } - NAND = { - has_law = succession_voting_power_1 - has_law = succ_feudal_elective + custom_tooltip = { + text = not_forced_tt + hidden_tooltip = { + holder_scope = { NOT = { has_character_flag = liege_forced_succ_law } } + } + } + conditional_tooltip = { + trigger = { + has_dlc = "Conclave" + } + custom_tooltip = { + text = forced_elective_tt + hidden_tooltip = { + NAND = { + has_law = succession_voting_power_1 + has_law = succ_feudal_elective + } + } + } } } effect = { @@ -535,37 +644,61 @@ succession_laws = { } } } + NOT = { holder_scope = { government = confucian_bureaucracy } } } allow = { - OR = { - AND = { - has_dlc = "Zeus" - holder_scope = { - primary_title = { - OR = { - has_law = ze_administration_laws_1 - has_law = ze_administration_laws_2 - } + conditional_tooltip = { + trigger = { + has_dlc = "Conclave" + } + holder_scope = { + show_scope_change = no + primary_title = { + show_scope_change = no + OR = { + has_law = ze_administration_laws_1 + has_law = ze_administration_laws_2 } } } - hidden_tooltip = { - has_crown_law_title = no - NOT = { has_dlc = "Zeus" } - } - crownlaw_title = { - OR = { - has_law = crown_authority_1 - has_law = crown_authority_2 - has_law = crown_authority_3 - has_law = crown_authority_4 + } + conditional_tooltip = { + trigger = { + NOT = { has_dlc = "Conclave" } + } + OR = { + hidden_tooltip = { + has_crown_law_title = no + } + crownlaw_title = { + OR = { + has_law = crown_authority_1 + has_law = crown_authority_2 + has_law = crown_authority_3 + has_law = crown_authority_4 + } } } } - holder_scope = { NOT = { has_character_flag = liege_forced_succ_law } } - NAND = { - has_law = succession_voting_power_1 - has_law = succ_feudal_elective + custom_tooltip = { + text = not_forced_tt + hidden_tooltip = { + holder_scope = { NOT = { has_character_flag = liege_forced_succ_law } } + } + } + conditional_tooltip = { + trigger = { + has_dlc = "Conclave" + } + custom_tooltip = { + text = forced_elective_tt + hidden_tooltip = { + NAND = { + has_law = succession_voting_power_1 + has_law = succ_feudal_elective + } + } + } } } @@ -615,6 +748,7 @@ succession_laws = { has_law = succession_voting_power_1 has_law = succ_feudal_elective } + NOT = { holder_scope = { government = confucian_bureaucracy } } } effect = { succession = turkish_succession @@ -650,6 +784,8 @@ succession_laws = { } is_merchant_republic = no } + NOT = { holder_scope = { government = confucian_bureaucracy } } + NOT = { holder_scope = { government = chinese_imperial_government } } } effect = { succession = appointment @@ -711,6 +847,8 @@ succession_laws = { has_law = succession_voting_power_1 has_law = succ_feudal_elective } + NOT = { holder_scope = { government = confucian_bureaucracy } } + NOT = { holder_scope = { government = chinese_imperial_government } } } effect = { @@ -748,6 +886,8 @@ succession_laws = { } } is_primary_type_title = no + NOT = { holder_scope = { government = confucian_bureaucracy } } + NOT = { holder_scope = { government = chinese_imperial_government } } } effect = { succession = catholic_bishopric @@ -771,6 +911,8 @@ succession_laws = { holder_scope = { is_merchant_republic = yes } + NOT = { holder_scope = { government = confucian_bureaucracy } } + NOT = { holder_scope = { government = chinese_imperial_government } } } effect = { succession = patrician_elective @@ -793,6 +935,24 @@ succession_laws = { always = no } } + + succ_offmap_succession = { + potential = { + holder_scope = { + top_liege = { is_offmap_governor = yes } + government = confucian_bureaucracy # To use this with future offmap powers, use an OR clause here with the new government types + } + } + effect = { + succession = offmap_succession + # This succession type generates a character of China's culture and religion + # They have decent (4-10) stats, and good (7-11) stewardship, and will always have a Stewardship education + # The offmap power defined in the top liege's government is used to determine the culture and religion. Will not function if this isn't defined + } + revoke_allowed = { + always = no + } + } } gender_laws = { @@ -912,8 +1072,13 @@ gender_laws = { modifier = { factor = 100 holder_scope = { - NOT = { + NOR = { religion_group = christian + AND = { + culture_group = tibetan_group + NOT = { religion = taoist } + NOT = { culture = tangut } + } } primary_title = { NOT = { has_law = status_of_women_3 } @@ -944,14 +1109,16 @@ gender_laws = { NOT = { religion = aztec } NOT = { religion = aztec_reformed } has_horde_culture = no - is_tribal = no + #is_tribal = no is_nomadic = no is_merchant_republic = no is_patrician = no } AND = { has_dlc = "Zeus" - ROOT = { holder_scope = { primary_title = { has_law = status_of_women_4 } } } + OR = { + ROOT = { holder_scope = { primary_title = { has_law = status_of_women_4 } } } + } OR = { is_patrician = no liege = { @@ -1007,7 +1174,7 @@ gender_laws = { } revoke_allowed = { always = no - } + } } enatic_succession = { @@ -1025,7 +1192,7 @@ gender_laws = { } revoke_allowed = { always = no - } + } } enatic_cognatic_succession = { diff --git a/AncientReligions/common/on_actions/ACR_on_actions.txt b/AncientReligions/common/on_actions/ACR_on_actions.txt index b8a6e34b..092d43ec 100644 --- a/AncientReligions/common/on_actions/ACR_on_actions.txt +++ b/AncientReligions/common/on_actions/ACR_on_actions.txt @@ -231,4 +231,4 @@ on_new_holder = { events = { ancrel.0256 # Pendragon nick } -} \ No newline at end of file +} diff --git a/AncientReligions/common/opinion_modifiers/ACR_other_opinion_modifiers.txt b/AncientReligions/common/opinion_modifiers/ACR_other_opinion_modifiers.txt index 7c71dda7..6a880f06 100644 --- a/AncientReligions/common/opinion_modifiers/ACR_other_opinion_modifiers.txt +++ b/AncientReligions/common/opinion_modifiers/ACR_other_opinion_modifiers.txt @@ -21,3 +21,8 @@ ancrel_pleased = { opinion = 15 months = 24 } + +ancrel_shared_religious_experience = { + opinion = 15 + months = 60 +} \ No newline at end of file diff --git a/AncientReligions/common/religions/00_religions.txt b/AncientReligions/common/religions/00_religions.txt index cb891e8b..524761de 100644 --- a/AncientReligions/common/religions/00_religions.txt +++ b/AncientReligions/common/religions/00_religions.txt @@ -1,5 +1,7 @@ # Religion-specific opinion can be added to modifiers (E.G., norse_pagan_opinion = 5), but the modifier *has* to be defined in 00_modifier_definitions.txt as well. It also needs localisation. Works for groups as well +# join_crusade_if_bordering_hostile = yes # The AI won't refrain from joining a crusade simply because it borders a heathen/heretic realm + # This trigger defines who can see a character's secret religion. The character with the secret religion is FROM, while the viewer is ROOT # Characters can always see their own secret religion. The observer can see all secret religions secret_religion_visibility_trigger = { @@ -358,7 +360,7 @@ christian = { SATAN LUCIFER THE_DEVIL } - autocephaly = yes + autocephaly = no can_excommunicate = yes can_grant_divorce = yes can_grant_invasion_cb = invasion @@ -369,6 +371,11 @@ christian = { religious_clothing_head = 2 religious_clothing_priest = 2 + + intermarry = taoist + intermarry = bon + intermarry = buddhist + intermarry = zoroastrian_group } messalian = { @@ -730,6 +737,7 @@ pagan_group = { priests_can_marry = yes can_call_crusade = yes + join_crusade_if_bordering_hostile = yes allow_looting = yes allow_rivermovement = yes @@ -842,6 +850,7 @@ pagan_group = { priests_can_marry = yes allow_looting = yes can_call_crusade = yes + join_crusade_if_bordering_hostile = yes max_consorts = 3 aggression = 2.0 # AI aggression factor @@ -850,6 +859,9 @@ pagan_group = { religious_clothing_priest = 4 allow_in_ruler_designer = no + + intermarry = buddhist + intermarry = zoroastrian_group } @@ -901,6 +913,9 @@ pagan_group = { religious_clothing_priest = 4 dislike_tribal_organization = yes + + intermarry = buddhist + intermarry = zoroastrian_group } baltic_pagan_reformed = { @@ -953,6 +968,7 @@ pagan_group = { priests_can_marry = yes female_temple_holders = yes can_call_crusade = yes + join_crusade_if_bordering_hostile = yes allow_looting = yes max_consorts = 3 @@ -1073,6 +1089,7 @@ pagan_group = { priests_can_marry = yes female_temple_holders = yes can_call_crusade = yes + join_crusade_if_bordering_hostile = yes allow_looting = yes max_consorts = 3 @@ -1178,6 +1195,7 @@ pagan_group = { priests_can_marry = yes max_consorts = 3 can_call_crusade = yes + join_crusade_if_bordering_hostile = yes aggression = 2.0 # AI aggression factor @@ -1279,6 +1297,7 @@ pagan_group = { priests_can_marry = yes female_temple_holders = yes can_call_crusade = yes + join_crusade_if_bordering_hostile = yes allow_looting = yes max_consorts = 3 @@ -1374,6 +1393,7 @@ pagan_group = { } can_call_crusade = yes + join_crusade_if_bordering_hostile = yes unit_modifier = { garrison_size = 0.4 @@ -1505,6 +1525,7 @@ pagan_group = { priests_can_marry = yes can_call_crusade = yes + join_crusade_if_bordering_hostile = yes max_consorts = 3 religious_clothing_head = 6 @@ -1594,6 +1615,71 @@ pagan_group = { dynamic_cult = no secret_religion = no } + + bon = { + graphical_culture = mongolgfx + secondary_event_pictures = tengri_pagan + + icon = 55 + heresy_icon = 56 + + color = { 8 140 131 } + + scripture_name = MDODUS + priest_title = LAMA + piety_name = KARMA + + high_god_name = GOD_SANGPO_BUMTRI + + god_names = { + GOD_SHENLA_OKAR GOD_YESHE_WALMO GOD_ZHANG_ZHUNG_MERI GOD_DRALHA_YESI GOD_SHINJE GOD_AMNYE_MACHEN GOD_ADI GOD_SHERAB_CHAMMA + } + + evil_god_names = { + GOD_THE_EVIL_ONES + } + + unit_modifier = { + garrison_size = 0.4 + + key = "DEF_RELIGION" + } + unit_home_modifier = { + land_morale = 0.8 + light_infantry_defensive = 0.8 + heavy_infantry_defensive = 0.8 + pikemen_defensive = 0.8 + light_cavalry_defensive = 0.8 + knights_defensive = 0.8 + archers_defensive = 0.8 + horse_archers_defensive = 0.8 + camel_cavalry_defensive = 0.8 + war_elephants_defensive = 0.8 + + garrison_size = 0.4 + + key = "DEF_RELIGION_HOME_TERRITORY" + } + + has_heir_designation = yes + priests_can_inherit = no + defensive_attrition = yes + feminist = yes # Nullifies the negative opinion modifier that vassals normally get if ruler is female or has female heir + female_temple_holders = yes + max_consorts = 3 + allow_looting = yes + + hard_to_convert = yes + + religious_clothing_head = 10 + religious_clothing_priest = 10 + + intermarry = indian_group + intermarry = zoroastrian_group + intermarry = nestorian + + dislike_tribal_organization = yes + } } zoroastrian_group = { @@ -1634,6 +1720,7 @@ zoroastrian_group = { can_grant_divorce = yes can_call_crusade = yes + join_crusade_if_bordering_hostile = yes can_grant_invasion_cb = invasion max_consorts = 3 # Can take concubines @@ -1647,6 +1734,11 @@ zoroastrian_group = { intermarry = zun_pagan intermarry = zun_pagan_reformed + intermarry = bon + intermarry = nestorian + intermarry = buddhist + intermarry = tengri_pagan + intermarry = tengri_pagan_reformed } mazdaki = { @@ -1672,15 +1764,21 @@ zoroastrian_group = { can_grant_divorce = yes can_call_crusade = yes + join_crusade_if_bordering_hostile = yes can_grant_invasion_cb = invasion - - max_consorts = 3 # Can take concubines + feminist = yes # Nullifies the negative opinion modifier that vassals normally get if ruler is female or has female heir + female_temple_holders = yes religious_clothing_head = 5 religious_clothing_priest = 5 intermarry = zun_pagan intermarry = zun_pagan_reformed + intermarry = bon + intermarry = nestorian + intermarry = buddhist + intermarry = tengri_pagan + intermarry = tengri_pagan_reformed } manichean = { @@ -1693,6 +1791,9 @@ zoroastrian_group = { color = { 0.7 0.7 0.4 } crusade_name = GREAT_HOLY_WAR + scripture_name = THE_EVANGELION + + priest_title = DIDASKOLOS high_god_name = GOD_ZURVAN @@ -1700,10 +1801,60 @@ zoroastrian_group = { GOD_ZURVAN GOD_OHRMAZD PROPHET_MANI GOD_MIHRYAZD } + evil_god_names = { + THE_DEMIURGE + } + + can_retire_to_monastery = yes + female_temple_holders = yes + + parent = zoroastrian + + can_grant_divorce = yes + priests_can_inherit = no + can_call_crusade = no + can_grant_invasion_cb = invasion + + max_consorts = 0 # Can take concubines + + religious_clothing_head = 5 + religious_clothing_priest = 5 + + intermarry = zun_pagan + intermarry = zun_pagan_reformed + intermarry = taoist + intermarry = bon + intermarry = nestorian + intermarry = buddhist + intermarry = tengri_pagan + intermarry = tengri_pagan_reformed + } + + khurmazta = { + graphical_culture = persiangfx + + secondary_event_pictures = sunni + + icon = 10 + heresy_icon = 12 + + color = { 0.5 0.6 0.3 } + crusade_name = GREAT_HOLY_WAR + scripture_name = THE_GATHAS + + priest_title = VAYNPAT + + high_god_name = GOD_ZARVANA + + god_names = { + GOD_KHURMAZTA GOD_WESHPARKAR GOD_WISHAGHN GOD_NANAIYA + } + parent = zoroastrian can_grant_divorce = yes can_call_crusade = yes + join_crusade_if_bordering_hostile = yes can_grant_invasion_cb = invasion max_consorts = 3 # Can take concubines @@ -1713,6 +1864,11 @@ zoroastrian_group = { intermarry = zun_pagan intermarry = zun_pagan_reformed + intermarry = bon + intermarry = nestorian + intermarry = buddhist + intermarry = tengri_pagan + intermarry = tengri_pagan_reformed } } @@ -1754,6 +1910,7 @@ jewish_group = { can_grant_divorce = yes can_call_crusade = yes + join_crusade_if_bordering_hostile = yes can_grant_invasion_cb = invasion priests_can_marry = yes @@ -1777,6 +1934,7 @@ jewish_group = { can_grant_divorce = yes can_call_crusade = yes + join_crusade_if_bordering_hostile = yes can_grant_invasion_cb = invasion priests_can_marry = yes @@ -1800,6 +1958,7 @@ jewish_group = { can_grant_divorce = yes can_call_crusade = yes + join_crusade_if_bordering_hostile = yes can_grant_invasion_cb = invasion priests_can_marry = yes @@ -1853,6 +2012,8 @@ indian_group = { priests_can_marry = yes allow_looting = yes max_consorts = 3 + caste_opinions = yes + castes = yes unit_modifier = { land_morale = 0.3 @@ -1871,9 +2032,11 @@ indian_group = { intermarry = buddhist intermarry = zun_pagan intermarry = zun_pagan_reformed + intermarry = bon } buddhist = { + has_coa_on_barony_only = yes graphical_culture = buddhistgfx secondary_event_pictures = sunni @@ -1902,6 +2065,7 @@ indian_group = { feminist = yes # Nullifies the negative opinion modifier that vassals normally get if ruler is female or has female heir female_temple_holders = yes max_consorts = 3 + castes = yes short_reign_opinion_year_mult = 0 # No short reign penalty @@ -1916,6 +2080,11 @@ indian_group = { intermarry = hindu intermarry = zun_pagan intermarry = zun_pagan_reformed + intermarry = taoist + intermarry = zoroastrian_group + intermarry = bon + intermarry = tengri_pagan + intermarry = tengri_pagan_reformed } jain = { graphical_culture = jaingfx @@ -1943,6 +2112,7 @@ indian_group = { priests_can_inherit = no peace_piety_gain = 1.0 # Gains 1 piety each month while at peace max_consorts = 3 + castes = yes short_reign_opinion_year_mult = 0 # No short reign penalty @@ -1957,5 +2127,51 @@ indian_group = { intermarry = hindu intermarry = zun_pagan intermarry = zun_pagan_reformed + intermarry = bon + } + taoist = { + graphical_culture = chinesegfx + secondary_event_pictures = sunni + has_coa_on_barony_only = yes + + icon = 53 + heresy_icon = 54 + + color = { 226 241 182 } + + high_god_name = GOD_HEAVENLY_ORDER + + god_names = { + THE_THREE_PURITIES THE_ANCESTORS GOD_YANSHIH_TIENTSUN + } + + evil_god_names = { + KING_YAN YANLUO + } + + character_modifier = { + stewardship = 2 + } + + has_heir_designation = yes + can_grant_divorce = yes + priests_can_inherit = no + max_consorts = 3 + + short_reign_opinion_year_mult = 0 # No short reign penalty + + religious_clothing_head = 10 + religious_clothing_priest = 10 + + scripture_name = TAO_TE_CHING + priest_title = DAOSHI + piety_name = PIETY_TE + + intermarry = buddhist + intermarry = nestorian + intermarry = manichean + intermarry = zun_pagan + intermarry = zun_pagan_reformed + intermarry = bon } } \ No newline at end of file diff --git a/AncientReligions/common/religions/ACR_ancient_religions.txt b/AncientReligions/common/religions/ACR_ancient_religions.txt index 46477960..b78983f2 100644 --- a/AncientReligions/common/religions/ACR_ancient_religions.txt +++ b/AncientReligions/common/religions/ACR_ancient_religions.txt @@ -7,7 +7,7 @@ pagan_group = { pre_reformed = yes icon = 37 - heresy_icon = 62 + heresy_icon = 57 ai_convert_other_group = 2 # always try to convert @@ -54,7 +54,7 @@ pagan_group = { graphical_culture = norsegfx icon = 37 - heresy_icon = 62 + heresy_icon = 57 parent = hellenic_pagan color = { 0.6 0.2 0.2 } @@ -117,7 +117,7 @@ pagan_group = { ai_convert_same_group = 2 # always try to convert icon = 37 - heresy_icon = 62 + heresy_icon = 57 parent = hellenic_pagan color = { 0.6 0 0 } @@ -175,8 +175,8 @@ pagan_group = { # Use norsegfx rather than celticgfx to have the northern pagan rounded CoA on the map graphical_culture = norsegfx - icon = 64 - heresy_icon = 65 + icon = 59 + heresy_icon = 60 ai_convert_other_group = 2 # always try to convert ai_convert_same_group = 2 # always try to convert @@ -244,8 +244,8 @@ pagan_group = { # Use norsegfx rather than celticgfx to have the northern pagan rounded CoA on the map graphical_culture = norsegfx - icon = 63 - heresy_icon = 65 + icon = 58 + heresy_icon = 60 color = { 0.14 0.36 0.16 } crusade_name = GREAT_HOLY_WAR @@ -312,8 +312,8 @@ pagan_group = { pre_reformed = yes - icon = 66 - heresy_icon = 67 + icon = 61 + heresy_icon = 62 ai_convert_other_group = 2 # always try to convert ai_convert_same_group = 2 # always try to convert @@ -371,8 +371,8 @@ pagan_group = { pre_reformed = yes - icon = 66 - heresy_icon = 67 + icon = 61 + heresy_icon = 62 ai_convert_other_group = 2 # always try to convert ai_convert_same_group = 2 # always try to convert diff --git a/AncientReligions/common/scripted_effects/00_scripted_effects.txt b/AncientReligions/common/scripted_effects/00_scripted_effects.txt index 689d1655..70aec0cd 100644 --- a/AncientReligions/common/scripted_effects/00_scripted_effects.txt +++ b/AncientReligions/common/scripted_effects/00_scripted_effects.txt @@ -816,6 +816,14 @@ remove_trait_cruel_effect = { } } +remove_trait_depressed_effect = { + if = { + limit = { trait = depressed } + remove_trait = depressed + hidden_tooltip = { character_event = { id = 38314 } } + } +} + remove_trait_diligent_effect = { if = { limit = { trait = diligent } @@ -2262,17 +2270,6 @@ jailor_mutilate_effect = { } } - random_list = { - 80 = { - add_trait = stressed - } - 10 = { - add_trait = lunatic - } - 10 = { - #no effect - } - } add_trait = severely_injured hidden_tooltip = { @@ -2286,6 +2283,21 @@ jailor_mutilate_effect = { } } } + + custom_tooltip = { text = might_affect_mental_health_tt } + hidden_effect = { + random_list = { + 80 = { + add_trait = stressed + } + 10 = { + add_trait = lunatic + } + 10 = { + #no effect + } + } + } } prisoner_torture_effect = { @@ -2866,114 +2878,114 @@ increase_prosperity_effect = { } add_disease_level_effect = { - random_list = { - 65 = { - custom_tooltip = { - text = become_normal_ill - } - } - 20 = { - modifier = { - factor = 2 - trait = strong - } - modifier = { - factor = 2 - trait = robust - } - custom_tooltip = { - text = become_mild_ill - hidden_tooltip = { - add_character_modifier = { name = mild_illness duration = -1 } + random_list = { + 65 = { + custom_tooltip = { + text = become_normal_ill } } - } - 10 = { - modifier = { - factor = 1.5 - trait = feeble - } - modifier = { - factor = 1.5 - trait = weak - } - modifier = { - factor = 0.5 - trait = strong - } - modifier = { - factor = 0.5 - trait = robust - } - modifier = { - factor = 1.5 - age = 50 - } - modifier = { - factor = 1.5 - age = 60 - } - modifier = { - factor = 1.5 - age = 70 - } - modifier = { - factor = 1.5 - age = 80 - } - custom_tooltip = { - text = become_severe_ill - hidden_tooltip = { - add_character_modifier = { name = severe_illness duration = -1 } + 20 = { + modifier = { + factor = 2 + trait = strong + } + modifier = { + factor = 2 + trait = robust + } + custom_tooltip = { + text = become_mild_ill + hidden_tooltip = { + add_character_modifier = { name = mild_illness duration = -1 } + } } } - } - 5= { - modifier = { - factor = 0 - immortal = yes - } - modifier = { - factor = 2 - trait = feeble - } - modifier = { - factor = 2 - trait = weak - } - modifier = { - factor = 0.5 - trait = strong - } - modifier = { - factor = 0.5 - trait = robust - } - modifier = { - factor = 2 - age = 50 - } - modifier = { - factor = 2 - age = 60 - } - modifier = { - factor = 2 - age = 70 - } - modifier = { - factor = 2 - age = 80 + 10 = { + modifier = { + factor = 1.5 + trait = feeble + } + modifier = { + factor = 1.5 + trait = weak + } + modifier = { + factor = 0.5 + trait = strong + } + modifier = { + factor = 0.5 + trait = robust + } + modifier = { + factor = 1.5 + age = 50 + } + modifier = { + factor = 1.5 + age = 60 + } + modifier = { + factor = 1.5 + age = 70 + } + modifier = { + factor = 1.5 + age = 80 + } + custom_tooltip = { + text = become_severe_ill + hidden_tooltip = { + add_character_modifier = { name = severe_illness duration = -1 } + } + } } - custom_tooltip = { - text = become_bedridden_ill - hidden_tooltip = { - add_character_modifier = { name = bedridden_illness duration = -1 } - add_trait = sick_incapable + 5= { + modifier = { + factor = 0 + immortal = yes + } + modifier = { + factor = 2 + trait = feeble + } + modifier = { + factor = 2 + trait = weak + } + modifier = { + factor = 0.5 + trait = strong + } + modifier = { + factor = 0.5 + trait = robust + } + modifier = { + factor = 2 + age = 50 + } + modifier = { + factor = 2 + age = 60 + } + modifier = { + factor = 2 + age = 70 + } + modifier = { + factor = 2 + age = 80 + } + custom_tooltip = { + text = become_bedridden_ill + hidden_tooltip = { + add_character_modifier = { name = bedridden_illness duration = -1 } + add_trait = sick_incapable + } } } } - } } clear_disease_level_effect = { @@ -3103,6 +3115,7 @@ give_pneumonic_effect = { } } + give_has_tuberculosis_effect = { if = { limit = { NOT = { trait = has_tuberculosis } } @@ -3465,7 +3478,7 @@ venereal_disease_effect_event_target = { #Tries to impregnate either event_target:sex_partner or THIS if all conditions are met impregnate_effect_event_target = { if = { - limit = { is_opposite_sex = FROM } + limit = { is_opposite_sex = event_target:sex_partner } #If THIS is a female which can get pregnant if = { @@ -4010,6 +4023,7 @@ remove_assassins_debt_effect = { set_variable = { which = assassins_debt value = 0 } } clr_character_flag = assassins_target_debt + clear_delayed_event = { id = MNM.6009 } } } @@ -4784,7 +4798,7 @@ remove_random_negative_congenital_effect = { } } -join_from_devil_worshiper_society = { +join_from_devil_worshiper_society_effect = { FROM = { if = { limit = { @@ -4855,6 +4869,24 @@ join_from_devil_worshiper_society = { } } +remove_demonic_blessing_effect = { + if = { limit = { has_character_modifier = blessing_of_azazel } + remove_character_modifier = blessing_of_azazel + } + if = { limit = { has_character_modifier = blessing_of_avnas } + remove_character_modifier = blessing_of_avnas + } + if = { limit = { has_character_modifier = blessing_of_belial } + remove_character_modifier = blessing_of_belial + } + if = { limit = { has_character_modifier = blessing_of_mammon } + remove_character_modifier = blessing_of_mammon + } + if = { limit = { has_character_modifier = blessing_of_vetis } + remove_character_modifier = blessing_of_vetis + } +} + add_prolong_life_effect = { if = { limit = { @@ -4909,7 +4941,7 @@ add_prolong_life_effect = { } } -join_prev_devil_worshiper_society = { +join_prev_devil_worshiper_society_effect = { if = { limit = { PREV = { society_member_of = the_satanists } } join_society = the_satanists @@ -4977,6 +5009,7 @@ remove_lifestyle_trait_effect = { remove_trait = mystic remove_trait = impaler remove_trait = duelist + remove_trait = hunter remove_trait = seducer remove_trait = seductress remove_trait = administrator @@ -5023,30 +5056,18 @@ monastic_order_purity_effect = { } random = { - chance = 5 - modifier = { - factor = 0.7 - is_wicked = yes - } - modifier = { - factor = 1.3 - is_virtous = yes - } - modifier = { - factor = 1.3 - society_rank >= 1 - } + chance = 20 modifier = { factor = 1.3 - society_rank >= 2 + society_rank == 2 } modifier = { - factor = 1.3 - society_rank >= 3 + factor = 1.5 + society_rank == 3 } modifier = { - factor = 1.3 - society_rank >= 4 + factor = 1.7 + society_rank == 4 } modifier = { factor = 1.1 @@ -5136,6 +5157,28 @@ clr_artifact_searcher_effect = { limit = { has_character_modifier = pays_for_artifact_hunt_major } remove_character_modifier = pays_for_artifact_hunt_major } + # from the progress events.... + if = { + limit = { has_character_modifier = treasure_hunting_diplomats } + remove_character_modifier = treasure_hunting_diplomats + } + if = { + limit = { has_character_modifier = treasure_hunting_soldiers } + remove_character_modifier = treasure_hunting_soldiers + } + if = { + limit = { has_character_modifier = treasure_hunting_stewards } + remove_character_modifier = treasure_hunting_stewards + } + if = { + limit = { has_character_modifier = treasure_hunting_spies } + remove_character_modifier = treasure_hunting_spies + } + if = { + limit = { has_character_modifier = treasure_hunting_scholars } + remove_character_modifier = treasure_hunting_scholars + } + clr_character_flag = they_asked_for_your_help } hidden_effect = { event_target:relic_hunter = { clr_character_flag = relic_hunter } @@ -5190,37 +5233,21 @@ random_accident_death_effect = { } spawn_peasant_army_effect = { - random_list = { - 17 = { - - spawn_unit = { - province = ROOT - home = ROOT - owner = THIS - #leader = THIS - scaled_by_biggest_garrison = 0.75 - troops = { - archers = { 6 6 } - light_cavalry = { 4 4 } - light_infantry = { 10 10 } - } - attrition = 1.0 - } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 30 - trait = peasant_leader - trait = tough_soldier - } - new_character = { + if = { + limit = { + has_game_rule = { + name = provincial_revolt_strength + value = default + } + } + random_list = { + 17 = { + spawn_unit = { province = ROOT home = ROOT - owner = PREV + owner = THIS + #leader = THIS scaled_by_biggest_garrison = 0.75 troops = { archers = { 6 6 } @@ -5228,64 +5255,64 @@ spawn_peasant_army_effect = { light_infantry = { 10 10 } } attrition = 1.0 - disband_on_peace = yes } - } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 31 - trait = peasant_leader - trait = tough_soldier - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - scaled_by_biggest_garrison = 0.75 - troops = { - archers = { 6 6 } - light_cavalry = { 4 4 } - light_infantry = { 10 10 } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.75 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 1.0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 31 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.75 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 1.0 + disband_on_peace = yes } - attrition = 1.0 - disband_on_peace = yes } } - } - 17 = { - spawn_unit = { - province = ROOT - home = ROOT - owner = THIS - #leader = THIS - scaled_by_biggest_garrison = 0.5 - troops = { - archers = { 6 6 } - light_cavalry = { 4 4 } - light_infantry = { 10 10 } - } - attrition = 1.0 - } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 30 - trait = peasant_leader - trait = tough_soldier - } - new_character = { + 17 = { spawn_unit = { province = ROOT home = ROOT - owner = PREV + owner = THIS + #leader = THIS scaled_by_biggest_garrison = 0.5 troops = { archers = { 6 6 } @@ -5293,64 +5320,64 @@ spawn_peasant_army_effect = { light_infantry = { 10 10 } } attrition = 1.0 - disband_on_peace = yes } - } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 31 - trait = peasant_leader - trait = tough_soldier - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - scaled_by_biggest_garrison = 0.5 - troops = { - archers = { 6 6 } - light_cavalry = { 4 4 } - light_infantry = { 10 10 } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.5 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 1.0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 31 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.5 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 1.0 + disband_on_peace = yes } - attrition = 1.0 - disband_on_peace = yes } } - } - 16 = { - spawn_unit = { - province = ROOT - home = ROOT - owner = THIS - #leader = THIS - scaled_by_biggest_garrison = 0.75 - troops = { - archers = { 6 6 } - light_cavalry = { 3 3 } - light_infantry = { 11 11 } - } - attrition = 1.0 - } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 30 - trait = peasant_leader - trait = tough_soldier - } - new_character = { + 16 = { spawn_unit = { province = ROOT home = ROOT - owner = PREV + owner = THIS + #leader = THIS scaled_by_biggest_garrison = 0.75 troops = { archers = { 6 6 } @@ -5358,1767 +5385,3635 @@ spawn_peasant_army_effect = { light_infantry = { 11 11 } } attrition = 1.0 - disband_on_peace = yes + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.75 + troops = { + archers = { 6 6 } + light_cavalry = { 3 3 } + light_infantry = { 11 11 } + } + attrition = 1.0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 31 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.75 + troops = { + archers = { 6 6 } + light_cavalry = { 3 3 } + light_infantry = { 11 11 } + } + attrition = 1.0 + disband_on_peace = yes + } } } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 31 - trait = peasant_leader - trait = tough_soldier - } - new_character = { + 17 = { spawn_unit = { province = ROOT home = ROOT - owner = PREV - scaled_by_biggest_garrison = 0.75 + owner = THIS + #leader = THIS + scaled_by_biggest_garrison = 0.5 troops = { archers = { 6 6 } light_cavalry = { 3 3 } light_infantry = { 11 11 } } attrition = 1.0 - disband_on_peace = yes + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.5 + troops = { + archers = { 6 6 } + light_cavalry = { 3 3 } + light_infantry = { 11 11 } + } + attrition = 1.0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 31 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.5 + troops = { + archers = { 6 6 } + light_cavalry = { 3 3 } + light_infantry = { 11 11 } + } + attrition = 1.0 + disband_on_peace = yes + } } } - } - 17 = { - spawn_unit = { - province = ROOT - home = ROOT - owner = THIS - #leader = THIS - scaled_by_biggest_garrison = 0.5 - troops = { - archers = { 6 6 } - light_cavalry = { 3 3 } - light_infantry = { 11 11 } - } - attrition = 1.0 - } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 30 - trait = peasant_leader - trait = tough_soldier - } - new_character = { + 16 = { spawn_unit = { province = ROOT home = ROOT - owner = PREV - scaled_by_biggest_garrison = 0.5 + owner = THIS + #leader = THIS + scaled_by_biggest_garrison = 0.75 troops = { archers = { 6 6 } - light_cavalry = { 3 3 } - light_infantry = { 11 11 } + light_infantry = { 14 14 } } attrition = 1.0 - disband_on_peace = yes + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.75 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 1.0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 31 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.75 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 1.0 + disband_on_peace = yes + } } } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 31 - trait = peasant_leader - trait = tough_soldier - } - new_character = { + 17 = { spawn_unit = { province = ROOT home = ROOT - owner = PREV + owner = THIS + #leader = THIS scaled_by_biggest_garrison = 0.5 troops = { archers = { 6 6 } - light_cavalry = { 3 3 } - light_infantry = { 11 11 } + light_infantry = { 14 14 } } attrition = 1.0 - disband_on_peace = yes + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.5 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 1.0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 31 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.5 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 1.0 + disband_on_peace = yes + } } } } - 16 = { - spawn_unit = { - province = ROOT - home = ROOT - owner = THIS - #leader = THIS - scaled_by_biggest_garrison = 0.75 - troops = { - archers = { 6 6 } - light_infantry = { 14 14 } + } + if = { + limit = { + NOT = { + has_game_rule = { + name = provincial_revolt_strength + value = default } - attrition = 1.0 - } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 30 - trait = peasant_leader - trait = tough_soldier } - new_character = { + } + random_list = { + 17 = { + spawn_unit = { province = ROOT home = ROOT - owner = PREV + owner = THIS + #leader = THIS scaled_by_biggest_garrison = 0.75 troops = { archers = { 6 6 } - light_infantry = { 14 14 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 0 + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.75 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 31 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.75 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 0 + disband_on_peace = yes } - attrition = 1.0 - disband_on_peace = yes } } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 31 - trait = peasant_leader - trait = tough_soldier - } - new_character = { + 17 = { spawn_unit = { province = ROOT home = ROOT - owner = PREV - scaled_by_biggest_garrison = 0.75 + owner = THIS + #leader = THIS + scaled_by_biggest_garrison = 0.5 troops = { archers = { 6 6 } - light_infantry = { 14 14 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 0 + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.5 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 31 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.5 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 0 + disband_on_peace = yes } - attrition = 1.0 - disband_on_peace = yes - } - } - } - 17 = { - spawn_unit = { - province = ROOT - home = ROOT - owner = THIS - #leader = THIS - scaled_by_biggest_garrison = 0.5 - troops = { - archers = { 6 6 } - light_infantry = { 14 14 } } - attrition = 1.0 } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 30 - trait = peasant_leader - trait = tough_soldier - } - new_character = { + 16 = { spawn_unit = { province = ROOT home = ROOT - owner = PREV - scaled_by_biggest_garrison = 0.5 + owner = THIS + #leader = THIS + scaled_by_biggest_garrison = 0.75 troops = { archers = { 6 6 } - light_infantry = { 14 14 } + light_cavalry = { 3 3 } + light_infantry = { 11 11 } + } + attrition = 0 + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.75 + troops = { + archers = { 6 6 } + light_cavalry = { 3 3 } + light_infantry = { 11 11 } + } + attrition = 0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 31 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.75 + troops = { + archers = { 6 6 } + light_cavalry = { 3 3 } + light_infantry = { 11 11 } + } + attrition = 0 + disband_on_peace = yes } - attrition = 1.0 - disband_on_peace = yes } } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 31 - trait = peasant_leader - trait = tough_soldier - } - new_character = { + 17 = { spawn_unit = { province = ROOT home = ROOT - owner = PREV + owner = THIS + #leader = THIS scaled_by_biggest_garrison = 0.5 troops = { archers = { 6 6 } - light_infantry = { 14 14 } + light_cavalry = { 3 3 } + light_infantry = { 11 11 } } - attrition = 1.0 - disband_on_peace = yes - } - } - } - } -} - -spawn_peasant_reinforcements_effect = { - random_list = { - 17 = { - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 25 - trait = peasant_leader - trait = tough_soldier - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - scaled_by_biggest_garrison = 0.75 - troops = { - archers = { 6 6 } - light_cavalry = { 4 4 } - light_infantry = { 10 10 } + attrition = 0 + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.5 + troops = { + archers = { 6 6 } + light_cavalry = { 3 3 } + light_infantry = { 11 11 } + } + attrition = 0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 31 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.5 + troops = { + archers = { 6 6 } + light_cavalry = { 3 3 } + light_infantry = { 11 11 } + } + attrition = 0 + disband_on_peace = yes } - attrition = 1.0 } } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 30 - trait = peasant_leader - trait = tough_soldier - } - new_character = { + 16 = { spawn_unit = { province = ROOT home = ROOT - owner = PREV + owner = THIS + #leader = THIS scaled_by_biggest_garrison = 0.75 troops = { archers = { 6 6 } - light_cavalry = { 4 4 } - light_infantry = { 10 10 } + light_infantry = { 14 14 } + } + attrition = 0 + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.75 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 31 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.75 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 0 + disband_on_peace = yes } - attrition = 1.0 - disband_on_peace = yes } } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 31 - trait = peasant_leader - trait = tough_soldier - } - new_character = { + 17 = { spawn_unit = { province = ROOT home = ROOT - owner = PREV - scaled_by_biggest_garrison = 0.75 + owner = THIS + #leader = THIS + scaled_by_biggest_garrison = 0.5 troops = { archers = { 6 6 } - light_cavalry = { 4 4 } - light_infantry = { 10 10 } + light_infantry = { 14 14 } + } + attrition = 0 + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.5 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 31 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.5 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 0 + disband_on_peace = yes } - attrition = 1.0 - disband_on_peace = yes } } } - 17 = { - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 25 - trait = peasant_leader - trait = tough_soldier + } +} + +spawn_peasant_reinforcements_effect = { + if = { + limit = { + has_game_rule = { + name = provincial_revolt_strength + value = default } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - scaled_by_biggest_garrison = 0.5 - troops = { - archers = { 6 6 } - light_cavalry = { 4 4 } - light_infantry = { 10 10 } + } + random_list = { + 17 = { + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 25 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.75 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 1.0 + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.75 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 1.0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 31 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.75 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 1.0 + disband_on_peace = yes + } + } + } + 17 = { + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 25 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.5 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 1.0 + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.5 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 1.0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 31 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.5 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 1.0 + disband_on_peace = yes + } + } + } + 16 = { + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 25 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.75 + troops = { + archers = { 6 6 } + light_cavalry = { 3 3 } + light_infantry = { 11 11 } + } + attrition = 1.0 + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.75 + troops = { + archers = { 6 6 } + light_cavalry = { 3 3 } + light_infantry = { 11 11 } + } + attrition = 1.0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 31 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.75 + troops = { + archers = { 6 6 } + light_cavalry = { 3 3 } + light_infantry = { 11 11 } + } + attrition = 1.0 + disband_on_peace = yes + } + } + } + 17 = { + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 25 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.5 + troops = { + archers = { 6 6 } + light_cavalry = { 3 3 } + light_infantry = { 11 11 } + } + attrition = 1.0 + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.5 + troops = { + archers = { 6 6 } + light_cavalry = { 3 3 } + light_infantry = { 11 11 } + } + attrition = 1.0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 31 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.5 + troops = { + archers = { 6 6 } + light_cavalry = { 3 3 } + light_infantry = { 11 11 } + } + attrition = 1.0 + disband_on_peace = yes + } + } + } + 16 = { + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 25 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.75 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 1.0 + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.75 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 1.0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 31 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.75 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 1.0 + disband_on_peace = yes + } + } + } + 17 = { + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 25 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.5 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 1.0 + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.5 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 1.0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 31 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.5 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 1.0 + disband_on_peace = yes } - attrition = 1.0 } } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 30 - trait = peasant_leader - trait = tough_soldier + } + } + if = { + limit = { + NOT = { + has_game_rule = { + name = provincial_revolt_strength + value = default + } } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - scaled_by_biggest_garrison = 0.5 - troops = { - archers = { 6 6 } - light_cavalry = { 4 4 } - light_infantry = { 10 10 } + } + random_list = { + 17 = { + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 25 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.75 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 0 + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.75 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 31 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.75 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 0 + disband_on_peace = yes + } + } + } + 17 = { + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 25 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.5 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 0 + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.5 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 31 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.5 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 0 + disband_on_peace = yes + } + } + } + 16 = { + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 25 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.75 + troops = { + archers = { 6 6 } + light_cavalry = { 3 3 } + light_infantry = { 11 11 } + } + attrition = 0 + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.75 + troops = { + archers = { 6 6 } + light_cavalry = { 3 3 } + light_infantry = { 11 11 } + } + attrition = 0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 31 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.75 + troops = { + archers = { 6 6 } + light_cavalry = { 3 3 } + light_infantry = { 11 11 } + } + attrition = 0 + disband_on_peace = yes + } + } + } + 17 = { + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 25 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.5 + troops = { + archers = { 6 6 } + light_cavalry = { 3 3 } + light_infantry = { 11 11 } + } + attrition = 0 + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.5 + troops = { + archers = { 6 6 } + light_cavalry = { 3 3 } + light_infantry = { 11 11 } + } + attrition = 0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 31 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.5 + troops = { + archers = { 6 6 } + light_cavalry = { 3 3 } + light_infantry = { 11 11 } + } + attrition = 0 + disband_on_peace = yes + } + } + } + 16 = { + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 25 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.75 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 0 + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.75 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 31 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.75 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 0 + disband_on_peace = yes + } + } + } + 17 = { + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 25 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.5 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 0 + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.5 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 31 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 0.5 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 0 + disband_on_peace = yes } - attrition = 1.0 - disband_on_peace = yes } } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 31 - trait = peasant_leader - trait = tough_soldier + } + } +} + +spawn_heretic_army_effect = { + if = { + limit = { + has_game_rule = { + name = provincial_revolt_strength + value = default } - new_character = { + } + random_list = { + 34 = { spawn_unit = { province = ROOT home = ROOT - owner = PREV - scaled_by_biggest_garrison = 0.5 + owner = THIS + #leader = THIS + scaled_by_biggest_garrison = 1.0 troops = { archers = { 6 6 } light_cavalry = { 4 4 } light_infantry = { 10 10 } } attrition = 1.0 - disband_on_peace = yes } - } - } - 16 = { - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 25 - trait = peasant_leader - trait = tough_soldier - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - scaled_by_biggest_garrison = 0.75 - troops = { - archers = { 6 6 } - light_cavalry = { 3 3 } - light_infantry = { 11 11 } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 1.0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 23 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 1.0 + disband_on_peace = yes } - attrition = 1.0 } } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 30 - trait = peasant_leader - trait = tough_soldier - } - new_character = { + 33 = { spawn_unit = { province = ROOT home = ROOT - owner = PREV - scaled_by_biggest_garrison = 0.75 + owner = THIS + #leader = THIS + scaled_by_biggest_garrison = 1.0 troops = { archers = { 6 6 } - light_cavalry = { 3 3 } - light_infantry = { 11 11 } + light_cavalry = { 2 2 } + light_infantry = { 12 12 } } attrition = 1.0 - disband_on_peace = yes } - } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 31 - trait = peasant_leader - trait = tough_soldier - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - scaled_by_biggest_garrison = 0.75 - troops = { - archers = { 6 6 } - light_cavalry = { 3 3 } - light_infantry = { 11 11 } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 2 2 } + light_infantry = { 12 12 } + } + attrition = 1.0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 23 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 2 2 } + light_infantry = { 12 12 } + } + attrition = 1.0 + disband_on_peace = yes } - attrition = 1.0 - disband_on_peace = yes } } - } - 17 = { - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 25 - trait = peasant_leader - trait = tough_soldier - } - new_character = { + 33 = { spawn_unit = { province = ROOT home = ROOT - owner = PREV - scaled_by_biggest_garrison = 0.5 + owner = THIS + #leader = THIS + scaled_by_biggest_garrison = 1.0 troops = { archers = { 6 6 } - light_cavalry = { 3 3 } - light_infantry = { 11 11 } + light_infantry = { 14 14 } } attrition = 1.0 } - } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 30 - trait = peasant_leader - trait = tough_soldier - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - scaled_by_biggest_garrison = 0.5 - troops = { - archers = { 6 6 } - light_cavalry = { 3 3 } - light_infantry = { 11 11 } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 1.0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 23 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 1.0 + disband_on_peace = yes } - attrition = 1.0 - disband_on_peace = yes } } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 31 - trait = peasant_leader - trait = tough_soldier - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - scaled_by_biggest_garrison = 0.5 - troops = { - archers = { 6 6 } - light_cavalry = { 3 3 } - light_infantry = { 11 11 } - } - attrition = 1.0 - disband_on_peace = yes + } + } + if = { + limit = { + NOT = { + has_game_rule = { + name = provincial_revolt_strength + value = default } } } - 16 = { - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 25 - trait = peasant_leader - trait = tough_soldier - } - new_character = { + random_list = { + 34 = { spawn_unit = { province = ROOT home = ROOT - owner = PREV - scaled_by_biggest_garrison = 0.75 + owner = THIS + #leader = THIS + scaled_by_biggest_garrison = 1.0 troops = { archers = { 6 6 } - light_infantry = { 14 14 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 0 + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 23 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 0 + disband_on_peace = yes } - attrition = 1.0 } } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 30 - trait = peasant_leader - trait = tough_soldier - } - new_character = { + 33 = { spawn_unit = { province = ROOT home = ROOT - owner = PREV - scaled_by_biggest_garrison = 0.75 + owner = THIS + #leader = THIS + scaled_by_biggest_garrison = 1.0 troops = { archers = { 6 6 } - light_infantry = { 14 14 } + light_cavalry = { 2 2 } + light_infantry = { 12 12 } + } + attrition = 0 + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 2 2 } + light_infantry = { 12 12 } + } + attrition = 0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 23 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 2 2 } + light_infantry = { 12 12 } + } + attrition = 0 + disband_on_peace = yes } - attrition = 1.0 - disband_on_peace = yes } } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 31 - trait = peasant_leader - trait = tough_soldier - } - new_character = { + 33 = { spawn_unit = { province = ROOT home = ROOT - owner = PREV - scaled_by_biggest_garrison = 0.75 + owner = THIS + #leader = THIS + scaled_by_biggest_garrison = 1.0 troops = { archers = { 6 6 } light_infantry = { 14 14 } } - attrition = 1.0 - disband_on_peace = yes + attrition = 0 + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 23 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 0 + disband_on_peace = yes + } } } } - 17 = { - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 25 - trait = peasant_leader - trait = tough_soldier - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - scaled_by_biggest_garrison = 0.5 - troops = { - archers = { 6 6 } - light_infantry = { 14 14 } + } +} + +spawn_heretic_reinforcements_effect = { + if = { + limit = { + has_game_rule = { + name = provincial_revolt_strength + value = default + } + } + random_list = { + 34 = { + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 25 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 1.0 + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 1.0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 23 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 1.0 + disband_on_peace = yes + } + } + } + 33 = { + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 25 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 2 2 } + light_infantry = { 12 12 } + } + attrition = 1.0 + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 2 2 } + light_infantry = { 12 12 } + } + attrition = 1.0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 23 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 2 2 } + light_infantry = { 12 12 } + } + attrition = 1.0 + disband_on_peace = yes + } + } + } + 33 = { + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 25 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 1.0 + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 1.0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 23 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 1.0 + disband_on_peace = yes + } + } + } + } + } + if = { + limit = { + NOT = { + has_game_rule = { + name = provincial_revolt_strength + value = default + } + } + } + random_list = { + 34 = { + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 25 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 0 + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 23 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 0 + disband_on_peace = yes + } + } + } + 33 = { + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 25 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 2 2 } + light_infantry = { 12 12 } + } + attrition = 0 + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 2 2 } + light_infantry = { 12 12 } + } + attrition = 0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 23 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 2 2 } + light_infantry = { 12 12 } + } + attrition = 0 + disband_on_peace = yes + } + } + } + 33 = { + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 25 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 0 + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 23 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 0 + disband_on_peace = yes } - attrition = 1.0 } } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 30 - trait = peasant_leader - trait = tough_soldier + } + } +} + +spawn_nationalist_army_effect = { + create_character = { + random_traits = yes + dynasty = none + religion = ROOT + culture = ROOT + female = no + age = 34 + attributes = { + martial = 7 + } + trait = skilled_tactician + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + #leader = THIS + scaled_by_biggest_garrison = 1.75 + troops = { + archers = { 6 6 } + light_cavalry = { 3 3 } + knights = { 1 1 } + light_infantry = { 7 7 } + heavy_infantry = { 3 3 } + } + } + } + + create_character = { + random_traits = yes + dynasty = none + religion = ROOT + culture = ROOT + female = no + age = 23 + attributes = { + martial = 7 + } + trait = skilled_tactician + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + #leader = THIS + scaled_by_biggest_garrison = 1.75 + troops = { + archers = { 6 6 } + light_cavalry = { 3 3 } + knights = { 1 1 } + light_infantry = { 7 7 } + heavy_infantry = { 3 3 } + } + } + } +} + +spawn_nationalist_reinforcements_effect = { + create_character = { + random_traits = yes + dynasty = none + religion = ROOT + culture = ROOT + female = no + age = 24 + attributes = { + martial = 7 + } + trait = skilled_tactician + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + #leader = THIS + scaled_by_biggest_garrison = 1.75 + troops = { + archers = { 6 6 } + light_cavalry = { 3 3 } + knights = { 1 1 } + light_infantry = { 7 7 } + heavy_infantry = { 3 3 } + } + } + } + create_character = { + random_traits = yes + dynasty = none + religion = ROOT + culture = ROOT + female = no + age = 27 + attributes = { + martial = 7 + } + trait = skilled_tactician + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + #leader = THIS + scaled_by_biggest_garrison = 1.75 + troops = { + archers = { 6 6 } + light_cavalry = { 3 3 } + knights = { 1 1 } + light_infantry = { 7 7 } + heavy_infantry = { 3 3 } + } + } + } + create_character = { + random_traits = yes + dynasty = none + religion = ROOT + culture = ROOT + female = no + age = 30 + attributes = { + martial = 7 + } + trait = skilled_tactician + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + #leader = THIS + scaled_by_biggest_garrison = 1.75 + troops = { + archers = { 6 6 } + light_cavalry = { 3 3 } + knights = { 1 1 } + light_infantry = { 7 7 } + heavy_infantry = { 3 3 } + } + } + } +} + +spawn_religious_army_effect = { + if = { + limit = { + has_game_rule = { + name = provincial_revolt_strength + value = default } - new_character = { + } + random_list = { + 34 = { spawn_unit = { province = ROOT home = ROOT - owner = PREV - scaled_by_biggest_garrison = 0.5 + owner = THIS + #leader = THIS + scaled_by_biggest_garrison = 1.0 troops = { archers = { 6 6 } - light_infantry = { 14 14 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } } attrition = 1.0 - disband_on_peace = yes + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 1.0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 23 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 1.0 + disband_on_peace = yes + } } } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 31 - trait = peasant_leader - trait = tough_soldier - } - new_character = { + 33 = { spawn_unit = { province = ROOT home = ROOT - owner = PREV - scaled_by_biggest_garrison = 0.5 + owner = THIS + #leader = THIS + scaled_by_biggest_garrison = 1.0 troops = { archers = { 6 6 } - light_infantry = { 14 14 } + light_cavalry = { 2 2 } + light_infantry = { 12 12 } } attrition = 1.0 - disband_on_peace = yes + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 2 2 } + light_infantry = { 12 12 } + } + attrition = 1.0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 23 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 2 2 } + light_infantry = { 12 12 } + } + attrition = 1.0 + disband_on_peace = yes + } } } - } - } -} - -spawn_heretic_army_effect = { - random_list = { - 34 = { - spawn_unit = { - province = ROOT - home = ROOT - owner = THIS - #leader = THIS - scaled_by_biggest_garrison = 1.0 - troops = { - archers = { 6 6 } - light_cavalry = { 4 4 } - light_infantry = { 10 10 } - } - attrition = 1.0 - } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 30 - trait = peasant_leader - trait = tough_soldier - } - new_character = { + 33 = { spawn_unit = { province = ROOT home = ROOT - owner = PREV + owner = THIS + #leader = THIS scaled_by_biggest_garrison = 1.0 troops = { archers = { 6 6 } - light_cavalry = { 4 4 } - light_infantry = { 10 10 } + light_infantry = { 14 14 } } attrition = 1.0 - disband_on_peace = yes + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 1.0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 23 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 1.0 + disband_on_peace = yes + } } } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 23 - trait = peasant_leader - trait = tough_soldier + } + } + if = { + limit = { + NOT = { + has_game_rule = { + name = provincial_revolt_strength + value = default + } } - new_character = { + } + random_list = { + 34 = { spawn_unit = { province = ROOT home = ROOT - owner = PREV + owner = THIS + #leader = THIS scaled_by_biggest_garrison = 1.0 troops = { archers = { 6 6 } light_cavalry = { 4 4 } light_infantry = { 10 10 } } - attrition = 1.0 - disband_on_peace = yes + attrition = 0 + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 23 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 0 + disband_on_peace = yes + } } } - } - 33 = { - spawn_unit = { - province = ROOT - home = ROOT - owner = THIS - #leader = THIS - scaled_by_biggest_garrison = 1.0 - troops = { - archers = { 6 6 } - light_cavalry = { 2 2 } - light_infantry = { 12 12 } - } - attrition = 1.0 - } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 30 - trait = peasant_leader - trait = tough_soldier - } - new_character = { + 33 = { spawn_unit = { province = ROOT home = ROOT - owner = PREV + owner = THIS + #leader = THIS scaled_by_biggest_garrison = 1.0 troops = { archers = { 6 6 } light_cavalry = { 2 2 } light_infantry = { 12 12 } } - attrition = 1.0 - disband_on_peace = yes + attrition = 0 + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 2 2 } + light_infantry = { 12 12 } + } + attrition = 0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 23 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 2 2 } + light_infantry = { 12 12 } + } + attrition = 0 + disband_on_peace = yes + } } } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 23 - trait = peasant_leader - trait = tough_soldier - } - new_character = { + 33 = { spawn_unit = { province = ROOT home = ROOT - owner = PREV - scaled_by_biggest_garrison = 1.0 - troops = { - archers = { 6 6 } - light_cavalry = { 2 2 } - light_infantry = { 12 12 } - } - attrition = 1.0 - disband_on_peace = yes - } - } - } - 33 = { - spawn_unit = { - province = ROOT - home = ROOT - owner = THIS - #leader = THIS - scaled_by_biggest_garrison = 1.0 - troops = { - archers = { 6 6 } - light_infantry = { 14 14 } - } - attrition = 1.0 - } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 30 - trait = peasant_leader - trait = tough_soldier - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV + owner = THIS + #leader = THIS scaled_by_biggest_garrison = 1.0 troops = { archers = { 6 6 } light_infantry = { 14 14 } } - attrition = 1.0 - disband_on_peace = yes - } - } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 23 - trait = peasant_leader - trait = tough_soldier - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - scaled_by_biggest_garrison = 1.0 - troops = { - archers = { 6 6 } - light_infantry = { 14 14 } + attrition = 0 + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 23 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 0 + disband_on_peace = yes } - attrition = 1.0 - disband_on_peace = yes } } } } } -spawn_heretic_reinforcements_effect = { - random_list = { - 34 = { - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 25 - trait = peasant_leader - trait = tough_soldier - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - scaled_by_biggest_garrison = 1.0 - troops = { - archers = { 6 6 } - light_cavalry = { 4 4 } - light_infantry = { 10 10 } - } - attrition = 1.0 - } - } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 30 - trait = peasant_leader - trait = tough_soldier - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - scaled_by_biggest_garrison = 1.0 - troops = { - archers = { 6 6 } - light_cavalry = { 4 4 } - light_infantry = { 10 10 } - } - attrition = 1.0 - disband_on_peace = yes - } - } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 23 - trait = peasant_leader - trait = tough_soldier - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - scaled_by_biggest_garrison = 1.0 - troops = { - archers = { 6 6 } - light_cavalry = { 4 4 } - light_infantry = { 10 10 } - } - attrition = 1.0 - disband_on_peace = yes - } +spawn_religious_reinforcements_effect = { + if = { + limit = { + has_game_rule = { + name = provincial_revolt_strength + value = default } } - 33 = { - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 25 - trait = peasant_leader - trait = tough_soldier - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - scaled_by_biggest_garrison = 1.0 - troops = { - archers = { 6 6 } - light_cavalry = { 2 2 } - light_infantry = { 12 12 } - } - attrition = 1.0 - } - } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 30 - trait = peasant_leader - trait = tough_soldier - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - scaled_by_biggest_garrison = 1.0 - troops = { - archers = { 6 6 } - light_cavalry = { 2 2 } - light_infantry = { 12 12 } + random_list = { + 34 = { + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 25 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 1.0 + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 1.0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 23 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 1.0 + disband_on_peace = yes + } + } + } + 33 = { + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 25 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 2 2 } + light_infantry = { 12 12 } + } + attrition = 1.0 + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 2 2 } + light_infantry = { 12 12 } + } + attrition = 1.0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 23 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 2 2 } + light_infantry = { 12 12 } + } + attrition = 1.0 + disband_on_peace = yes + } + } + } + 33 = { + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 25 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 1.0 + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 1.0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 23 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 1.0 + disband_on_peace = yes } - attrition = 1.0 - disband_on_peace = yes } } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 23 - trait = peasant_leader - trait = tough_soldier - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - scaled_by_biggest_garrison = 1.0 - troops = { - archers = { 6 6 } - light_cavalry = { 2 2 } - light_infantry = { 12 12 } - } - attrition = 1.0 - disband_on_peace = yes + } + } + if = { + limit = { + NOT = { + has_game_rule = { + name = provincial_revolt_strength + value = default } } } - 33 = { - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 25 - trait = peasant_leader - trait = tough_soldier - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - scaled_by_biggest_garrison = 1.0 - troops = { - archers = { 6 6 } - light_infantry = { 14 14 } - } - attrition = 1.0 - } - } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 30 - trait = peasant_leader - trait = tough_soldier - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - scaled_by_biggest_garrison = 1.0 - troops = { - archers = { 6 6 } - light_infantry = { 14 14 } - } - attrition = 1.0 - disband_on_peace = yes - } - } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 23 - trait = peasant_leader - trait = tough_soldier - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - scaled_by_biggest_garrison = 1.0 - troops = { - archers = { 6 6 } - light_infantry = { 14 14 } + random_list = { + 34 = { + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 25 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 0 + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 23 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 4 4 } + light_infantry = { 10 10 } + } + attrition = 0 + disband_on_peace = yes + } + } + } + 33 = { + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 25 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 2 2 } + light_infantry = { 12 12 } + } + attrition = 0 + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 2 2 } + light_infantry = { 12 12 } + } + attrition = 0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 23 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_cavalry = { 2 2 } + light_infantry = { 12 12 } + } + attrition = 0 + disband_on_peace = yes + } + } + } + 33 = { + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 25 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 0 + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 30 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 0 + disband_on_peace = yes + } + } + create_character = { + random_traits = yes + dynasty = none + religion = THIS + culture = THIS + female = no + age = 23 + trait = peasant_leader + trait = tough_soldier + } + new_character = { + spawn_unit = { + province = ROOT + home = ROOT + owner = PREV + scaled_by_biggest_garrison = 1.0 + troops = { + archers = { 6 6 } + light_infantry = { 14 14 } + } + attrition = 0 + disband_on_peace = yes } - attrition = 1.0 - disband_on_peace = yes } } } } } -spawn_nationalist_army_effect = { - create_character = { - random_traits = yes - dynasty = none - religion = ROOT - culture = ROOT - female = no - age = 34 - attributes = { - martial = 7 - } - trait = skilled_tactician - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - #leader = THIS - scaled_by_biggest_garrison = 1.75 - troops = { - archers = { 6 6 } - light_cavalry = { 3 3 } - knights = { 1 1 } - light_infantry = { 7 7 } - heavy_infantry = { 3 3 } - } +add_ascetic_trait_effect = { + if = { + limit = { is_female = yes } + if = { + limit = { religion_group = christian } + add_trait = nun } - } - - create_character = { - random_traits = yes - dynasty = none - religion = ROOT - culture = ROOT - female = no - age = 23 - attributes = { - martial = 7 + if = { + limit = { religion = jain } + add_trait = aryika } - trait = skilled_tactician - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - #leader = THIS - scaled_by_biggest_garrison = 1.75 - troops = { - archers = { 6 6 } - light_cavalry = { 3 3 } - knights = { 1 1 } - light_infantry = { 7 7 } - heavy_infantry = { 3 3 } - } + if = { + limit = { religion = buddhist } + add_trait = bhikkhuni } - } -} - -spawn_nationalist_reinforcements_effect = { - create_character = { - random_traits = yes - dynasty = none - religion = ROOT - culture = ROOT - female = no - age = 24 - attributes = { - martial = 7 + if = { + limit = { religion = hindu } + add_trait = sanyasini } - trait = skilled_tactician } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - #leader = THIS - scaled_by_biggest_garrison = 1.75 - troops = { - archers = { 6 6 } - light_cavalry = { 3 3 } - knights = { 1 1 } - light_infantry = { 7 7 } - heavy_infantry = { 3 3 } - } + if = { + limit = { is_female = no } + if = { + limit = { religion_group = christian } + add_trait = monk + } + if = { + limit = { religion = jain } + add_trait = muni + } + if = { + limit = { religion = buddhist } + add_trait = bhikkhu + } + if = { + limit = { religion = hindu } + add_trait = sanyasi } } - create_character = { - random_traits = yes - dynasty = none - religion = ROOT - culture = ROOT - female = no - age = 27 - attributes = { - martial = 7 +} + +print_scope_effect = { + log = "------------------------------" + log = "- Printing the current scope -" + log = "- This: [This.GetName][This.GetBestName]" + log = "- Root: [Root.GetName][Root.GetBestName]" + log = "- Prev: [Prev.GetName][Prev.GetBestName]" + log = "- PrevPrev: [PrevPrev.GetName][PrevPrev.GetBestName]" + log = "- PrevPrevPrev: [PrevPrevPrev.GetName][PrevPrevPrev.GetBestName]" + log = "- PrevPrevPrevPrev: [PrevPrevPrevPrev.GetName][PrevPrevPrevPrev.GetBestName]" + log = "- From: [From.GetName][From.GetBestName]" + log = "- FromFrom: [FromFrom.GetName][FromFrom.GetBestName]" + log = "- FromFromFrom: [FromFromFrom.GetName][FromFromFrom.GetBestName]" + log = "- FromFromFromFrom: [FromFromFromFrom.GetName][FromFromFromFrom.GetBestName]" + log = "- Event_target:test_target1: [test_target1.GetName][test_target1.GetBestName]" + log = "- Event_target:test_target2: [test_target2.GetName][test_target2.GetBestName]" + log = "- Event_target:test_target3: [test_target3.GetName][test_target3.GetBestName]" + log = "------------------------------" +} + +add_sympathy_for_prevs_true_religion_effect = { + if = { + limit = { + PREV = { true_religion_group_christian_trigger = yes } + NOT = { religion_group = christian } } - trait = skilled_tactician + add_trait = sympathy_christendom } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - #leader = THIS - scaled_by_biggest_garrison = 1.75 - troops = { - archers = { 6 6 } - light_cavalry = { 3 3 } - knights = { 1 1 } - light_infantry = { 7 7 } - heavy_infantry = { 3 3 } - } + if = { + limit = { + PREV = { true_religion_group_muslim_trigger = yes } + NOT = { religion_group = muslim } } + add_trait = sympathy_islam } - create_character = { - random_traits = yes - dynasty = none - religion = ROOT - culture = ROOT - female = no - age = 30 - attributes = { - martial = 7 + if = { + limit = { + PREV = { true_religion_group_pagan_group_trigger = yes } + NOT = { religion_group = pagan_group } } - trait = skilled_tactician + add_trait = sympathy_pagans } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - #leader = THIS - scaled_by_biggest_garrison = 1.75 - troops = { - archers = { 6 6 } - light_cavalry = { 3 3 } - knights = { 1 1 } - light_infantry = { 7 7 } - heavy_infantry = { 3 3 } - } + if = { + limit = { + PREV = { true_religion_group_zoroastrian_group_trigger = yes } + NOT = { religion_group = zoroastrian_group } } + add_trait = sympathy_zoroastrianism + } + if = { + limit = { + PREV = { true_religion_group_jewish_group_trigger = yes } + NOT = { religion_group = jewish_group } + } + add_trait = sympathy_judaism + } + if = { + limit = { + PREV = { true_religion_group_indian_group_trigger = yes } + NOT = { religion_group = indian_group } + } + add_trait = sympathy_indian } } -spawn_religious_army_effect = { - random_list = { - 34 = { - spawn_unit = { - province = ROOT - home = ROOT - owner = THIS - #leader = THIS - scaled_by_biggest_garrison = 1.0 - troops = { - archers = { 6 6 } - light_cavalry = { 4 4 } - light_infantry = { 10 10 } - } - attrition = 1.0 - } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 30 - trait = peasant_leader - trait = tough_soldier - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - scaled_by_biggest_garrison = 1.0 - troops = { - archers = { 6 6 } - light_cavalry = { 4 4 } - light_infantry = { 10 10 } - } - attrition = 1.0 - disband_on_peace = yes - } - } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 23 - trait = peasant_leader - trait = tough_soldier - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - scaled_by_biggest_garrison = 1.0 - troops = { - archers = { 6 6 } - light_cavalry = { 4 4 } - light_infantry = { 10 10 } - } - attrition = 1.0 - disband_on_peace = yes - } - } +add_sympathy_for_prevs_open_religion_effect = { + if = { + limit = { + PREV = { religion_group = christian } + NOT = { religion_group = christian } } - 33 = { - spawn_unit = { - province = ROOT - home = ROOT - owner = THIS - #leader = THIS - scaled_by_biggest_garrison = 1.0 - troops = { - archers = { 6 6 } - light_cavalry = { 2 2 } - light_infantry = { 12 12 } - } - attrition = 1.0 - } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 30 - trait = peasant_leader - trait = tough_soldier - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - scaled_by_biggest_garrison = 1.0 - troops = { - archers = { 6 6 } - light_cavalry = { 2 2 } - light_infantry = { 12 12 } - } - attrition = 1.0 - disband_on_peace = yes - } - } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 23 - trait = peasant_leader - trait = tough_soldier - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - scaled_by_biggest_garrison = 1.0 - troops = { - archers = { 6 6 } - light_cavalry = { 2 2 } - light_infantry = { 12 12 } - } - attrition = 1.0 - disband_on_peace = yes - } - } + add_trait = sympathy_christendom + } + if = { + limit = { + PREV = { religion_group = muslim } + NOT = { religion_group = muslim } } - 33 = { - spawn_unit = { - province = ROOT - home = ROOT - owner = THIS - #leader = THIS - scaled_by_biggest_garrison = 1.0 - troops = { - archers = { 6 6 } - light_infantry = { 14 14 } - } - attrition = 1.0 - } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 30 - trait = peasant_leader - trait = tough_soldier - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - scaled_by_biggest_garrison = 1.0 - troops = { - archers = { 6 6 } - light_infantry = { 14 14 } - } - attrition = 1.0 - disband_on_peace = yes - } - } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 23 - trait = peasant_leader - trait = tough_soldier - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - scaled_by_biggest_garrison = 1.0 - troops = { - archers = { 6 6 } - light_infantry = { 14 14 } - } - attrition = 1.0 - disband_on_peace = yes - } - } + add_trait = sympathy_islam + } + if = { + limit = { + PREV = { religion_group = pagan_group } + NOT = { religion_group = pagan_group } + } + add_trait = sympathy_pagans + } + if = { + limit = { + PREV = { religion_group = zoroastrian_group } + NOT = { religion_group = zoroastrian_group } + } + add_trait = sympathy_zoroastrianism + } + if = { + limit = { + PREV = { religion_group = jewish_group } + NOT = { religion_group = jewish_group } + } + add_trait = sympathy_judaism + } + if = { + limit = { + PREV = { religion_group = indian_group } + NOT = { religion_group = indian_group } } - } -} - -spawn_religious_reinforcements_effect = { - random_list = { - 34 = { - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 25 - trait = peasant_leader - trait = tough_soldier - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - scaled_by_biggest_garrison = 1.0 - troops = { - archers = { 6 6 } - light_cavalry = { 4 4 } - light_infantry = { 10 10 } - } - attrition = 1.0 - } - } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 30 - trait = peasant_leader - trait = tough_soldier - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - scaled_by_biggest_garrison = 1.0 - troops = { - archers = { 6 6 } - light_cavalry = { 4 4 } - light_infantry = { 10 10 } - } - attrition = 1.0 - disband_on_peace = yes - } - } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 23 - trait = peasant_leader - trait = tough_soldier - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - scaled_by_biggest_garrison = 1.0 - troops = { - archers = { 6 6 } - light_cavalry = { 4 4 } - light_infantry = { 10 10 } - } - attrition = 1.0 - disband_on_peace = yes - } - } - } - 33 = { - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 25 - trait = peasant_leader - trait = tough_soldier - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - scaled_by_biggest_garrison = 1.0 - troops = { - archers = { 6 6 } - light_cavalry = { 2 2 } - light_infantry = { 12 12 } - } - attrition = 1.0 - } - } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 30 - trait = peasant_leader - trait = tough_soldier - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - scaled_by_biggest_garrison = 1.0 - troops = { - archers = { 6 6 } - light_cavalry = { 2 2 } - light_infantry = { 12 12 } - } - attrition = 1.0 - disband_on_peace = yes - } - } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 23 - trait = peasant_leader - trait = tough_soldier - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - scaled_by_biggest_garrison = 1.0 - troops = { - archers = { 6 6 } - light_cavalry = { 2 2 } - light_infantry = { 12 12 } - } - attrition = 1.0 - disband_on_peace = yes - } - } - } - 33 = { - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 25 - trait = peasant_leader - trait = tough_soldier - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - scaled_by_biggest_garrison = 1.0 - troops = { - archers = { 6 6 } - light_infantry = { 14 14 } - } - attrition = 1.0 - } - } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 30 - trait = peasant_leader - trait = tough_soldier - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - scaled_by_biggest_garrison = 1.0 - troops = { - archers = { 6 6 } - light_infantry = { 14 14 } - } - attrition = 1.0 - disband_on_peace = yes - } - } - create_character = { - random_traits = yes - dynasty = none - religion = THIS - culture = THIS - female = no - age = 23 - trait = peasant_leader - trait = tough_soldier - } - new_character = { - spawn_unit = { - province = ROOT - home = ROOT - owner = PREV - scaled_by_biggest_garrison = 1.0 - troops = { - archers = { 6 6 } - light_infantry = { 14 14 } - } - attrition = 1.0 - disband_on_peace = yes - } - } - } - } -} - -add_ascetic_trait_effect = { - if = { - limit = { is_female = yes } - if = { - limit = { religion_group = christian } - add_trait = nun - } - if = { - limit = { religion = jain } - add_trait = aryika - } - if = { - limit = { religion = buddhist } - add_trait = bhikkhuni - } - if = { - limit = { religion = hindu } - add_trait = sanyasini - } - } - if = { - limit = { is_female = no } - if = { - limit = { religion_group = christian } - add_trait = monk - } - if = { - limit = { religion = jain } - add_trait = muni - } - if = { - limit = { religion = buddhist } - add_trait = bhikkhu - } - if = { - limit = { religion = hindu } - add_trait = sanyasi - } - } -} - -print_scope_effect = { - log = "------------------------------" - log = "- Printing the current scope -" - log = "- This: [This.GetName][This.GetBestName]" - log = "- Root: [Root.GetName][Root.GetBestName]" - log = "- Prev: [Prev.GetName][Prev.GetBestName]" - log = "- PrevPrev: [PrevPrev.GetName][PrevPrev.GetBestName]" - log = "- PrevPrevPrev: [PrevPrevPrev.GetName][PrevPrevPrev.GetBestName]" - log = "- PrevPrevPrevPrev: [PrevPrevPrevPrev.GetName][PrevPrevPrevPrev.GetBestName]" - log = "- From: [From.GetName][From.GetBestName]" - log = "- FromFrom: [FromFrom.GetName][FromFrom.GetBestName]" - log = "- FromFromFrom: [FromFromFrom.GetName][FromFromFrom.GetBestName]" - log = "- FromFromFromFrom: [FromFromFromFrom.GetName][FromFromFromFrom.GetBestName]" - log = "- Event_target:test_target1: [test_target1.GetName][test_target1.GetBestName]" - log = "- Event_target:test_target2: [test_target2.GetName][test_target2.GetBestName]" - log = "- Event_target:test_target3: [test_target3.GetName][test_target3.GetBestName]" - log = "------------------------------" -} - -add_sympathy_for_prevs_true_religion_effect = { - if = { - limit = { PREV = { true_religion_group_christian_trigger = yes } } - add_trait = sympathy_christendom - } - if = { - limit = { PREV = { true_religion_group_muslim_trigger = yes } } - add_trait = sympathy_islam - } - if = { - limit = { PREV = { true_religion_group_pagan_group_trigger = yes } } - add_trait = sympathy_pagans - } - if = { - limit = { PREV = { true_religion_group_zoroastrian_group_trigger = yes } } - add_trait = sympathy_zoroastrianism - } - if = { - limit = { PREV = { true_religion_group_jewish_group_trigger = yes } } - add_trait = sympathy_judaism - } - if = { - limit = { PREV = { true_religion_group_indian_group_trigger = yes } } - add_trait = sympathy_indian + add_trait = sympathy_indian } } @@ -7141,7 +9036,7 @@ add_secret_religion_trait_trigger_is_religion_or_old_religion_flag_clear_flag_af OR = { AND = { NOT = { - has_character_was_religion_flag_trigger = yes + has_character_was_religion_flag_trigger = yes } religion = catholic } @@ -7253,7 +9148,7 @@ add_secret_religion_trait_trigger_is_religion_or_old_religion_flag_clear_flag_af OR = { AND = { NOT = { - has_character_was_religion_flag_trigger = yes + has_character_was_religion_flag_trigger = yes } religion = monophysite } @@ -7584,6 +9479,58 @@ add_secret_religion_trait_trigger_is_religion_or_old_religion_flag_clear_flag_af clr_character_flag = character_was_manichean break = yes } + + if = { + limit = { + OR = { + AND = { + NOT = { + has_character_was_religion_flag_trigger = yes + } + religion = khurmazta + } + has_character_flag = character_was_khurmazta + } + } + set_secret_religion = khurmazta + clr_character_flag = character_was_khurmazta + break = yes + } + + if = { + limit = { + OR = { + AND = { + NOT = { + has_character_was_religion_flag_trigger = yes + } + religion = bon + } + has_character_flag = character_was_bon + } + } + set_secret_religion = bon + clr_character_flag = character_was_bon + break = yes + } + + if = { + limit = { + OR = { + AND = { + NOT = { + has_character_was_religion_flag_trigger = yes + } + religion = taoist + } + has_character_flag = character_was_taoist + } + } + set_secret_religion = taoist + clr_character_flag = character_was_taoist + break = yes + } + if = { limit = { OR = { @@ -7856,126 +9803,12 @@ add_secret_religion_trait_trigger_is_religion_or_old_religion_flag_clear_flag_af clr_character_flag = character_was_zun_pagan break = yes } +} - ### ACR ### - if = { - limit = { - OR = { - AND = { - NOT = { - has_character_was_religion_flag_trigger = yes - } - religion = celtic_pagan - } - has_character_flag = character_was_celtic_pagan - } - } - set_secret_religion = celtic_pagan - clr_character_flag = character_was_celtic_pagan - break = yes - } - if = { - limit = { - OR = { - AND = { - NOT = { - has_character_was_religion_flag_trigger = yes - } - religion = celtic_pagan_reformed - } - has_character_flag = character_was_celtic_pagan_reformed - } - } - set_secret_religion = celtic_pagan_reformed - clr_character_flag = character_was_celtic_pagan_reformed - break = yes - } - if = { - limit = { - OR = { - AND = { - NOT = { - has_character_was_religion_flag_trigger = yes - } - religion = hellenic_pagan - } - has_character_flag = character_was_hellenic_pagan - } - } - set_secret_religion = hellenic_pagan - clr_character_flag = character_was_hellenic_pagan - break = yes - } - if = { - limit = { - OR = { - AND = { - NOT = { - has_character_was_religion_flag_trigger = yes - } - religion = promethean_pagan - } - has_character_flag = character_was_promethean_pagan - } - } - set_secret_religion = promethean_pagan - clr_character_flag = character_was_promethean_pagan - break = yes - } - if = { - limit = { - OR = { - AND = { - NOT = { - has_character_was_religion_flag_trigger = yes - } - religion = titan_pagan - } - has_character_flag = character_was_titan_pagan - } - } - set_secret_religion = titan_pagan - clr_character_flag = character_was_titan_pagan - break = yes - } - if = { - limit = { - OR = { - AND = { - NOT = { - has_character_was_religion_flag_trigger = yes - } - religion = egyptian_pagan - } - has_character_flag = character_was_egyptian_pagan - } - } - set_secret_religion = egyptian_pagan - clr_character_flag = character_was_egyptian_pagan - break = yes - } - if = { - limit = { - OR = { - AND = { - NOT = { - has_character_was_religion_flag_trigger = yes - } - religion = aten_pagan - } - has_character_flag = character_was_aten_pagan - } - } - set_secret_religion = aten_pagan - clr_character_flag = character_was_aten_pagan - break = yes - } -} - -add_religion_char_flag_effect = { - if = { - limit = { religion = catholic } - set_character_flag = character_was_catholic +add_religion_char_flag_effect = { + if = { + limit = { religion = catholic } + set_character_flag = character_was_catholic } if = { limit = { religion = cathar } @@ -8084,6 +9917,18 @@ add_religion_char_flag_effect = { if = { limit = { religion = manichean } set_character_flag = character_was_manichean + } + if = { + limit = { religion = khurmazta } + set_character_flag = character_was_khurmazta + } + if = { + limit = { religion = bon } + set_character_flag = character_was_bon + } + if = { + limit = { religion = taoist } + set_character_flag = character_was_taoist } if = { limit = { religion = hindu } @@ -8222,6 +10067,9 @@ clr_religion_char_flag_effect = { clr_character_flag = character_was_zoroastrian clr_character_flag = character_was_mazdaki clr_character_flag = character_was_manichean + clr_character_flag = character_was_khurmazta + clr_character_flag = character_was_bon + clr_character_flag = character_was_taoist clr_character_flag = character_was_hindu clr_character_flag = character_was_buddhist clr_character_flag = character_was_jain @@ -8242,7 +10090,6 @@ clr_religion_char_flag_effect = { clr_character_flag = character_was_aztec clr_character_flag = character_was_aztec_reformed - ### ACR ### clr_character_flag = character_was_celtic_pagan clr_character_flag = character_was_celtic_pagan_reformed clr_character_flag = character_was_hellenic_pagan @@ -8448,6 +10295,27 @@ event_target_old_religion_from_flag_effect = { limit = { religion = manichean } save_event_target_as = old_religion } + } + if = { + limit = { has_character_flag = character_was_khurmazta } + random_character = { + limit = { religion = khurmazta } + save_event_target_as = old_religion + } + } + if = { + limit = { has_character_flag = character_was_bon } + random_character = { + limit = { religion = bon } + save_event_target_as = old_religion + } + } + if = { + limit = { has_character_flag = character_was_taoist } + random_character = { + limit = { religion = taoist } + save_event_target_as = old_religion + } } if = { limit = { has_character_flag = character_was_hindu } @@ -8584,55 +10452,20 @@ event_target_old_religion_from_flag_effect = { } ### ACR ### - if = { + if = { limit = { has_character_flag = character_was_celtic_pagan } random_character = { limit = { religion = celtic_pagan } save_event_target_as = old_religion } } - if = { + if = { limit = { has_character_flag = character_was_celtic_pagan_reformed } random_character = { limit = { religion = celtic_pagan_reformed } save_event_target_as = old_religion } } - if = { - limit = { has_character_flag = character_was_hellenic_pagan } - random_character = { - limit = { religion = hellenic_pagan } - save_event_target_as = old_religion - } - } - if = { - limit = { has_character_flag = character_was_promethean_pagan } - random_character = { - limit = { religion = promethean_pagan } - save_event_target_as = old_religion - } - } - if = { - limit = { has_character_flag = character_was_titan_pagan } - random_character = { - limit = { religion = titan_pagan } - save_event_target_as = old_religion - } - } - if = { - limit = { has_character_flag = character_was_egyptian_pagan } - random_character = { - limit = { religion = egyptian_pagan } - save_event_target_as = old_religion - } - } - if = { - limit = { has_character_flag = character_was_aten_pagan } - random_character = { - limit = { religion = aten_pagan } - save_event_target_as = old_religion - } - } } increase_visibility_effect = { @@ -10187,6 +12020,39 @@ flip_secret_religious_community_provinces = { } } } + secret_religious_society_khurmazta = { + ROOT = { + any_demesne_province = { + limit = { + has_province_modifier = secret_khurmazta_community + } + religion = khurmazta + remove_province_modifier = secret_khurmazta_community + } + } + } + secret_religious_society_bon = { + ROOT = { + any_demesne_province = { + limit = { + has_province_modifier = secret_bon_community + } + religion = bon + remove_province_modifier = secret_bon_community + } + } + } + secret_religious_society_taoist = { + ROOT = { + any_demesne_province = { + limit = { + has_province_modifier = secret_taoist_community + } + religion = taoist + remove_province_modifier = secret_taoist_community + } + } + } secret_religious_society_hindu = { ROOT = { any_demesne_province = { @@ -10395,7 +12261,87 @@ flip_secret_religious_community_provinces = { remove_province_modifier = secret_aztec_reformed_community } } - } + } + + + ### ACR ### + secret_religious_society_celtic_pagan = { + ROOT = { + any_demesne_province = { + limit = { + has_province_modifier = secret_celtic_pagan_community + } + religion = celtic_pagan + remove_province_modifier = secret_celtic_pagan_community + } + } + } + secret_religious_society_celtic_pagan_reformed = { + ROOT = { + any_demesne_province = { + limit = { + has_province_modifier = secret_celtic_pagan_reformed_community + } + religion = celtic_pagan + remove_province_modifier = secret_celtic_pagan_reformed_community + } + } + } + secret_religious_society_hellenic_pagan = { + ROOT = { + any_demesne_province = { + limit = { + has_province_modifier = secret_hellenic_pagan_community + } + religion = hellenic_pagan + remove_province_modifier = secret_hellenic_pagan_community + } + } + } + secret_religious_society_promethean_pagan = { + ROOT = { + any_demesne_province = { + limit = { + has_province_modifier = secret_promethean_pagan_community + } + religion = promethean_pagan + remove_province_modifier = secret_promethean_pagan_community + } + } + } + secret_religious_society_titan_pagan = { + ROOT = { + any_demesne_province = { + limit = { + has_province_modifier = secret_titan_pagan_community + } + religion = titan_pagan + remove_province_modifier = secret_titan_pagan_community + } + } + } + secret_religious_society_egyptian_pagan = { + ROOT = { + any_demesne_province = { + limit = { + has_province_modifier = secret_egyptian_pagan_community + } + religion = egyptian_pagan + remove_province_modifier = secret_egyptian_pagan_community + } + } + } + secret_religious_society_aten_pagan = { + ROOT = { + any_demesne_province = { + limit = { + has_province_modifier = secret_aten_pagan_community + } + religion = aten_pagan + remove_province_modifier = secret_aten_pagan_community + } + } + } } } @@ -10537,742 +12483,2406 @@ clean_up_after_leaving_society_effect = { } } -increase_council_power_effect = { - custom_tooltip = { - text = council_power_increased - hidden_tooltip = { - set_variable = { which = "laws" value = 0 } - if = { - limit = { - has_law = law_voting_power_0 +increase_council_power_effect = { + custom_tooltip = { + text = council_power_increased + hidden_tooltip = { + set_variable = { which = "laws" value = 0 } + if = { + limit = { + has_law = law_voting_power_0 + NOT = { + check_variable = { which = "laws" value = 2 } + } + } + add_law_w_cooldown = law_voting_power_1 + change_variable = { which = "laws" value = 1 } + } + if = { + limit = { + has_law = war_voting_power_0 + NOT = { + check_variable = { which = "laws" value = 2 } + } + } + add_law_w_cooldown = war_voting_power_1 + change_variable = { which = "laws" value = 1 } + } + if = { + limit = { + has_law = revoke_title_voting_power_0 + NOT = { + check_variable = { which = "laws" value = 2 } + } + } + add_law_w_cooldown = revoke_title_voting_power_1 + change_variable = { which = "laws" value = 1 } + } + if = { + limit = { + has_law = imprison_voting_power_0 + NOT = { + check_variable = { which = "laws" value = 2 } + } + } + add_law_w_cooldown = imprison_voting_power_1 + change_variable = { which = "laws" value = 1 } + } + if = { + limit = { + has_law = grant_title_voting_power_0 + NOT = { + check_variable = { which = "laws" value = 2 } + } + } + add_law_w_cooldown = grant_title_voting_power_1 + change_variable = { which = "laws" value = 1 } + } + if = { + limit = { + has_law = banish_voting_power_0 + NOT = { + check_variable = { which = "laws" value = 2 } + } + } + add_law_w_cooldown = banish_voting_power_1 + change_variable = { which = "laws" value = 1 } + } + if = { + limit = { + has_law = execution_voting_power_0 + NOT = { + check_variable = { which = "laws" value = 2 } + } + } + add_law_w_cooldown = execution_voting_power_1 + change_variable = { which = "laws" value = 1 } + } + set_variable = { which = "laws" value = 0 } + } + } +} + +increase_vassal_freedom_effect = { + if = { + limit = { + has_law = vassal_wars_law_1 + } + add_law_w_cooldown = vassal_wars_law_0 + } + if = { + limit = { + has_law = vassal_wars_law_2 + } + add_law_w_cooldown = vassal_wars_law_1 + } +} + +spawn_good_commander_effect = { + create_random_soldier = { + random_traits = yes + dynasty = random + female = no + attributes = { + diplomacy = 2 + learning = 2 + stewardship = 2 + intrigue = 2 + martial = 8 + } + } + new_character = { + remove_trait = weak + remove_trait = slow + remove_trait = imbecile + remove_trait = dull + + remove_trait = mystic + remove_trait = socializer + remove_trait = gamer + remove_trait = hedonist + remove_trait = duelist + remove_trait = hunter + remove_trait = strategist + remove_trait = administrator + remove_trait = architect + remove_trait = gardener + remove_trait = schemer + remove_trait = impaler + remove_trait = seducer + remove_trait = seductress + remove_trait = theologian + remove_trait = scholar + + random_list = { # Flavor Randomization + 35 = { + # Nothing + } + 15 = { + change_martial = 2 + } + 10 = { + add_trait = robust + } + 10 = { + add_trait = duelist + } + 10 = { + add_trait = hunter + } + 5 = { + add_trait = strategist + } + 5 = { + change_martial = 4 + } + 5 = { + if = { + limit = { + has_dlc = "Reapers" + } + add_trait = one_eyed + } + } + 5 = { + add_trait = shrewd + } + } + hidden_tooltip = { + if = { + limit = { + has_dharmic_religion_trigger = yes + } + add_trait = kshatriya + character_event = { id = RoI.30121 } + } + } + set_character_flag = invited_soldier + save_event_target_as = invited_character + } +} + +select_random_hermetic_ingredient_herb_effect = { # If run once, this will set a flag on ONE herbal ingredient. If run twice, it will set a second flag on another herbal ingredient... + if = { + limit = { + any_artifact = { + has_artifact_flag = selected_ingredient_1 + } + NOT = { + any_artifact = { + has_artifact_flag = selected_ingredient_2 + } + } + } + random_artifact = { + limit = { + is_ingredient_herb_trigger = yes + NOT = { has_artifact_flag = selected_ingredient_1 } + NOT = { has_artifact_flag = selected_ingredient_2 } + } + set_artifact_flag = selected_ingredient_2 + } + } + if = { + limit = { + NOT = { + any_artifact = { + has_artifact_flag = selected_ingredient_1 + } + } + } + random_artifact = { + limit = { + is_ingredient_herb_trigger = yes + NOT = { has_artifact_flag = selected_ingredient_1 } + NOT = { has_artifact_flag = selected_ingredient_2 } + } + set_artifact_flag = selected_ingredient_1 + } + } +} + +select_random_hermetic_ingredient_animal_part_effect = { + if = { + limit = { + any_artifact = { + has_artifact_flag = selected_ingredient_1 + } + NOT = { + any_artifact = { + has_artifact_flag = selected_ingredient_2 + } + } + } + random_artifact = { + limit = { + is_ingredient_animal_part_trigger = yes + NOT = { has_artifact_flag = selected_ingredient_1 } + NOT = { has_artifact_flag = selected_ingredient_2 } + } + set_artifact_flag = selected_ingredient_2 + } + } + if = { + limit = { + NOT = { + any_artifact = { + has_artifact_flag = selected_ingredient_1 + } + } + } + random_artifact = { + limit = { + is_ingredient_animal_part_trigger = yes + NOT = { has_artifact_flag = selected_ingredient_1 } + NOT = { has_artifact_flag = selected_ingredient_2 } + } + set_artifact_flag = selected_ingredient_1 + } + } +} + +select_random_hermetic_ingredient_powder_effect = { + if = { + limit = { + any_artifact = { + has_artifact_flag = selected_ingredient_1 + } + NOT = { + any_artifact = { + has_artifact_flag = selected_ingredient_2 + } + } + } + random_artifact = { + limit = { + is_ingredient_powder_trigger = yes + NOT = { has_artifact_flag = selected_ingredient_1 } + NOT = { has_artifact_flag = selected_ingredient_2 } + } + set_artifact_flag = selected_ingredient_2 + } + } + if = { + limit = { + NOT = { + any_artifact = { + has_artifact_flag = selected_ingredient_1 + } + } + } + random_artifact = { + limit = { + is_ingredient_powder_trigger = yes + NOT = { has_artifact_flag = selected_ingredient_1 } + NOT = { has_artifact_flag = selected_ingredient_2 } + } + set_artifact_flag = selected_ingredient_1 + } + } +} + +select_random_hermetic_ingredient_liquid_effect = { + if = { + limit = { + any_artifact = { + has_artifact_flag = selected_ingredient_1 + } + NOT = { + any_artifact = { + has_artifact_flag = selected_ingredient_2 + } + } + } + random_artifact = { + limit = { + is_ingredient_liquid_trigger = yes + NOT = { has_artifact_flag = selected_ingredient_1 } + NOT = { has_artifact_flag = selected_ingredient_2 } + } + set_artifact_flag = selected_ingredient_2 + } + } + if = { + limit = { + NOT = { + any_artifact = { + has_artifact_flag = selected_ingredient_1 + } + } + } + random_artifact = { + limit = { + is_ingredient_liquid_trigger = yes + NOT = { has_artifact_flag = selected_ingredient_1 } + NOT = { has_artifact_flag = selected_ingredient_2 } + } + set_artifact_flag = selected_ingredient_1 + } + } +} + +select_random_hermetic_ingredient_effect = { #when it doesn't matter if it's a herb/animal part/metal/liquid + if = { + limit = { + has_selected_ingredient_1_trigger = yes + has_selected_ingredient_2_trigger = no + } + random_artifact = { + limit = { + NOT = { has_artifact_flag = selected_ingredient_1 } + NOT = { has_artifact_flag = selected_ingredient_2 } + has_artifact_flag = ingredient + } + set_artifact_flag = selected_ingredient_2 + } + } + if = { + limit = { + has_selected_ingredient_1_trigger = no + any_artifact = { + has_artifact_flag = ingredient + } + } + random_artifact = { + limit = { + NOT = { has_artifact_flag = selected_ingredient_1 } + NOT = { has_artifact_flag = selected_ingredient_2 } + has_artifact_flag = ingredient + } + set_artifact_flag = selected_ingredient_1 + } + } +} + +remove_selection_of_ingredients_effect = { #for clearing selection of ingredients + hidden_effect = { + any_artifact = { + clr_artifact_flag = selected_ingredient_1 + clr_artifact_flag = selected_ingredient_2 + } + } +} + +destroy_selected_ingredient_1_effect = { #for removing the ingredient in question + custom_tooltip = { text = destroy_selected_ingredient_1_tt } + hidden_effect = { + random_artifact = { + limit = { has_artifact_flag = selected_ingredient_1 } + destroy_artifact = yes + } + } +} + +destroy_selected_ingredient_2_effect = { #for removing the ingredient in question + custom_tooltip = { text = destroy_selected_ingredient_2_tt } + hidden_effect = { + random_artifact = { + limit = { has_artifact_flag = selected_ingredient_2 } + destroy_artifact = yes + } + } +} + +destroy_selected_ingredient_1_and_2_effect = { #for removing both selected ingredients + custom_tooltip = { text = destroy_selected_ingredient_1_and_2_tt } + hidden_effect = { + random_artifact = { + limit = { has_artifact_flag = selected_ingredient_1 } + destroy_artifact = yes + } + random_artifact = { + limit = { has_artifact_flag = selected_ingredient_2 } + destroy_artifact = yes + } + } +} + +destroy_selected_ingredient_1_plus_random_other_ingredient_effect = { #for removing the ingredient in question PLUS a random other one (unnamed in tooltip) + custom_tooltip = { text = destroy_selected_ingredient_1_plus_random_other_ingredient_tt } + hidden_effect = { + random_artifact = { + limit = { has_artifact_flag = selected_ingredient_1 } + destroy_artifact = yes + } + random_artifact = { + limit = { + has_artifact_flag = ingredient + } + destroy_artifact = yes + } + } +} + +destroy_random_herb_ingredient_effect = { + random_artifact = { + limit = { + has_artifact_flag = ingredient + is_ingredient_herb_trigger = yes + } + destroy_artifact = yes + } +} + +destroy_random_animal_part_ingredient_effect = { + random_artifact = { + limit = { + has_artifact_flag = ingredient + is_ingredient_animal_part_trigger = yes + } + destroy_artifact = yes + } +} + +destroy_random_powder_ingredient_effect = { + random_artifact = { + limit = { + has_artifact_flag = ingredient + is_ingredient_powder_trigger = yes + } + destroy_artifact = yes + } +} + +destroy_random_liquid_ingredient_effect = { + random_artifact = { + limit = { + has_artifact_flag = ingredient + is_ingredient_liquid_trigger = yes + } + destroy_artifact = yes + } +} + +destroy_random_herb_or_animal_part_ingredients_effect = { + hidden_effect = { + random_list = { + 5 = { + trigger = { has_a_herb_ingredient_trigger = yes } + destroy_random_herb_ingredient_effect = yes + } + 5 = { + trigger = { has_an_animal_part_ingredient_trigger = yes } + destroy_random_animal_part_ingredient_effect = yes + } + 20 = { + trigger = { + any_artifact = { + count = 2 + is_ingredient_herb_trigger = yes + has_artifact_flag = ingredient + } + } + destroy_random_herb_ingredient_effect = yes + destroy_random_herb_ingredient_effect = yes + } + 20 = { + trigger = { + any_artifact = { + count = 2 + is_ingredient_animal_part_trigger = yes + has_artifact_flag = ingredient + } + } + destroy_random_animal_part_ingredient_effect = yes + destroy_random_animal_part_ingredient_effect = yes + } + 20 = { + trigger = { + has_a_herb_ingredient_trigger = yes + has_an_animal_part_ingredient_trigger = yes + } + destroy_random_herb_ingredient_effect = yes + destroy_random_animal_part_ingredient_effect = yes + } + 20 = { + trigger = { + any_artifact = { + count = 3 + is_ingredient_herb_trigger = yes + has_artifact_flag = ingredient + } + } + destroy_random_herb_ingredient_effect = yes + destroy_random_herb_ingredient_effect = yes + destroy_random_herb_ingredient_effect = yes + } + 20 = { + trigger = { + any_artifact = { + count = 3 + is_ingredient_animal_part_trigger = yes + has_artifact_flag = ingredient + } + } + destroy_random_animal_part_ingredient_effect = yes + destroy_random_animal_part_ingredient_effect = yes + destroy_random_animal_part_ingredient_effect = yes + } + 50 = { + trigger = { + any_artifact = { + count = 2 + is_ingredient_herb_trigger = yes + has_artifact_flag = ingredient + } + has_an_animal_part_ingredient_trigger = yes + } + destroy_random_herb_ingredient_effect = yes + destroy_random_herb_ingredient_effect = yes + destroy_random_animal_part_ingredient_effect = yes + } + 50 = { + trigger = { + any_artifact = { + count = 2 + is_ingredient_animal_part_trigger = yes + has_artifact_flag = ingredient + } + has_a_herb_ingredient_trigger = yes + } + destroy_random_herb_ingredient_effect = yes + destroy_random_animal_part_ingredient_effect = yes + destroy_random_animal_part_ingredient_effect = yes + } + } + } +} + +destroy_random_ingredients_effect = { + custom_tooltip = { text = random_ingredients_are_destroyed_tt } + hidden_effect = { + random_list = { + 5 = { + random_artifact = { + limit = { has_artifact_flag = ingredient } + destroy_artifact = yes + } + } + 50 = { + trigger = { + any_artifact = { + count = 2 + has_artifact_flag = ingredient + } + } + random_artifact = { + limit = { has_artifact_flag = ingredient } + destroy_artifact = yes + } + random_artifact = { + limit = { has_artifact_flag = ingredient } + destroy_artifact = yes + } + } + 100 = { + trigger = { + any_artifact = { + count = 3 + has_artifact_flag = ingredient + } + } + random_artifact = { + limit = { has_artifact_flag = ingredient } + destroy_artifact = yes + } + random_artifact = { + limit = { has_artifact_flag = ingredient } + destroy_artifact = yes + } + random_artifact = { + limit = { has_artifact_flag = ingredient } + destroy_artifact = yes + } + } + 150 = { + trigger = { + any_artifact = { + count = 4 + has_artifact_flag = ingredient + } + } + random_artifact = { + limit = { has_artifact_flag = ingredient } + destroy_artifact = yes + } + random_artifact = { + limit = { has_artifact_flag = ingredient } + destroy_artifact = yes + } + random_artifact = { + limit = { has_artifact_flag = ingredient } + destroy_artifact = yes + } + random_artifact = { + limit = { has_artifact_flag = ingredient } + destroy_artifact = yes + } + } + } + } +} + +destroy_all_ingredients_effect = { + custom_tooltip = { text = destroy_all_ingredients_tt } + hidden_effect = { + if = { + limit = { + any_artifact = { + has_artifact_flag = ingredient + } + } + any_artifact = { + limit = { has_artifact_flag = ingredient } + destroy_artifact = yes + } + } + } +} + +calculate_health_level_of_ingredient_1_effect = { + hidden_effect = { + set_variable = { # Reset potion quality + which = current_potion_quality + value = 0 + } + if = { + limit = { + any_artifact = { has_artifact_flag = selected_ingredient_1 } + ingredient_is_perceived_healthy_trigger = yes + } + ROOT = { + change_variable = { + which = current_potion_quality + value = 1 + } + } + } + if = { + limit = { + any_artifact = { has_artifact_flag = selected_ingredient_1 } + ingredient_is_unhealthy_trigger = yes + } + ROOT = { + change_variable = { + which = current_potion_quality + value = -1 + } + } + } + } +} + +calculate_health_level_of_ingredient_2_effect = { + hidden_effect = { + set_variable = { # Reset potion quality + which = current_potion_quality + value = 0 + } + if = { + limit = { + any_artifact = { has_artifact_flag = selected_ingredient_2 } + ingredient_is_perceived_healthy_trigger = yes + } + ROOT = { + change_variable = { + which = current_potion_quality + value = 1 + } + } + } + if = { + limit = { + any_artifact = { has_artifact_flag = selected_ingredient_2 } + ingredient_is_unhealthy_trigger = yes + } + ROOT = { + change_variable = { + which = current_potion_quality + value = -1 + } + } + } + } +} + +calculate_health_level_of_ingredient_1_and_2_effect = { + hidden_effect = { + set_variable = { # Reset potion quality + which = current_potion_quality + value = 0 + } + while = { + limit = { + any_artifact = { + OR = { + has_artifact_flag = selected_ingredient_1 + has_artifact_flag = selected_ingredient_2 + } + NOT = { has_artifact_flag = ingredient_counted } + } + } + random_artifact = { + limit = { + OR = { + has_artifact_flag = selected_ingredient_1 + has_artifact_flag = selected_ingredient_2 + } + NOT = { has_artifact_flag = ingredient_counted } + } + set_artifact_flag = ingredient_counted + if = { + limit = { + ingredient_is_perceived_healthy_trigger = yes + } + ROOT = { + change_variable = { + which = current_potion_quality + value = 1 + } + } + } + if = { + limit = { + ingredient_is_unhealthy_trigger = yes + } + ROOT = { + change_variable = { + which = current_potion_quality + value = -1 + } + } + } + } + } + any_artifact = { + clr_artifact_flag = ingredient_counted + } + } +} + +calculate_health_level_of_all_ingredients_effect = { + hidden_effect = { + while = { + limit = { + any_artifact = { + has_artifact_flag = ingredient + NOT = { has_artifact_flag = ingredient_counted } + } + } + random_artifact = { + limit = { + has_artifact_flag = ingredient + NOT = { has_artifact_flag = ingredient_counted } + } + set_artifact_flag = ingredient_counted + if = { + limit = { + ingredient_is_perceived_healthy_trigger = yes + } + ROOT = { + change_variable = { + which = current_potion_quality + value = 1 + } + } + } + if = { + limit = { + ingredient_is_unhealthy_trigger = yes + } + ROOT = { + change_variable = { + which = current_potion_quality + value = -1 + } + } + } + } + } + any_artifact = { + clr_artifact_flag = ingredient_counted + } + } +} + + +#Raiding adventurer war declaration effect +raiding_adventurer_war_declaration_effect = { + custom_tooltip = { text = raiding_adventurer_war_declaration_tooltip } + + event_target:selling_province = { + event_target:raiding_adventurer = { + unsafe_war = { + target = PREVPREV + casus_belli = duchy_adventure + thirdparty_title = PREV + tier = DUKE + } + any_army = { + set_can_toggle_looting = yes + set_looting = no + } + } + } + + clr_character_flag = adventurer_unsafe_duchy_war + clr_character_flag = adventurer_safe_duchy_war + clr_character_flag = negotiating_with_adventurer + + hidden_effect = { + event_target:raiding_adventurer = { + clr_character_flag = raiding_adventurer + } + } +} + + +#Grace effects +add_grace_trivial_effect = { + add_offmap_currency = { + offmap = offmap_china + value = 100 + } +} + +add_grace_minor_effect = { + add_offmap_currency = { + offmap = offmap_china + value = 200 + } +} + +add_grace_medium_effect = { + add_offmap_currency = { + offmap = offmap_china + value = 300 + } +} + +add_grace_major_effect = { + add_offmap_currency = { + offmap = offmap_china + value = 500 + } +} + +add_grace_massive_effect = { + add_offmap_currency = { + offmap = offmap_china + value = 1000 + } +} + +add_grace_super_huge_effect = { + add_offmap_currency = { + offmap = offmap_china + value = 2000 + } +} + +detract_grace_trivial_effect = { + add_offmap_currency = { + offmap = offmap_china + value = -100 + } +} + +detract_grace_minor_effect = { + add_offmap_currency = { + offmap = offmap_china + value = -200 + } +} + +detract_grace_medium_effect = { + add_offmap_currency = { + offmap = offmap_china + value = -300 + } +} + +detract_grace_major_effect = { + add_offmap_currency = { + offmap = offmap_china + value = -500 + } +} + +detract_grace_massive_effect = { + add_offmap_currency = { + offmap = offmap_china + value = -1000 + } +} + +detract_grace_super_huge_effect = { + add_offmap_currency = { + offmap = offmap_china + value = -2000 + } +} + +set_china_boon_cd_effect = { #added via tribute to China decisions... Always one year. + add_character_modifier = { + hidden = yes + name = jd_china_boon_cd + days = 365 #If this is changed, edit china_offmap_boon_decisions_enabled_trigger_cd_tt + } +} + +set_china_tribute_cd_effect = { #added via tribute to China decisions... Always one year. + add_character_modifier = { + hidden = yes + name = jd_china_tribute_cd + days = 365 + } +} + +leave_court_for_china_effect = { # NOTE: this does not set a "killer", meaning if you want them to be ORDERED to go to China, a killer needs to be set (eg: "killer = ROOT") + custom_tooltip = { + text = will_leave_for_china_tt + } + set_character_flag = ignore_refund + hidden_effect = { death = { death_reason = death_went_to_china } } +} + +return_to_china_effect = { # NOTE: this does not set a "killer", meaning if you want them to be ORDERED to go to China, a killer needs to be set (eg: "killer = ROOT") + custom_tooltip = { + text = will_return_to_china_tt + } + set_character_flag = ignore_refund + hidden_effect = { death = { death_reason = death_went_back_to_china } } +} + +# Utilizes china_war_minimum_commander_martial variable on the current scope to spawn characters with at least that amount of martial skill. +china_spawn_commander_effect = { + create_random_soldier = { + random_traits = yes + religion = liege + culture = liege + dynasty = none + female = no + age = 28 + } + new_character = { + unsafe_give_minor_title = title_commander + + set_variable = { + which = china_war_minimum_commander_martial + which = PREV + } + if = { + limit = { + NOT = { trait = brilliant_strategist } + } + remove_trait = misguided_warrior + remove_trait = tough_soldier + remove_trait = skilled_tactician + add_trait = skilled_tactician + # Make sure they have a tier 3 or tier 4 education + } + random_list = { # Give a chance to get Chinese commander traits + 30 = { + trigger = { + can_have_more_leadership_traits = yes + NOT = { trait = master_of_flame } + } + add_trait = master_of_flame + } + 30 = { + trigger = { + can_have_more_leadership_traits = yes + NOT = { trait = logistics_expert } + } + add_trait = logistics_expert + } + 30 = { + trigger = { + can_have_more_leadership_traits = yes + NOT = { trait = levy_coordinator } + } + add_trait = levy_coordinator + } + 30 = { + trigger = { + can_have_more_leadership_traits = yes + NOT = { trait = sapper } + } + add_trait = sapper + } + 90 = {} + } + while = { # Increase the martial skill with base or martial traits until the minimum is reached + limit = { + NOT = { + martial = china_war_minimum_commander_martial + } + } + random_list = { + 40 = { + change_martial = 1 + } + 5 = { + trigger = { + NOR = { + trait = strong + trait = robust + calc_true_if = { + amount = 3 + trait = strong + trait = robust + trait = shrewd + trait = duelist + trait = hunter + trait = strategist + trait = architect + trait = diligent + trait = brave + trait = ambitious + } + } + } + add_trait = strong + } + 5 = { + trigger = { + NOR = { + trait = strong + trait = robust + calc_true_if = { + amount = 3 + trait = strong + trait = robust + trait = shrewd + trait = duelist + trait = hunter + trait = strategist + trait = architect + trait = diligent + trait = brave + trait = ambitious + } + } + } + add_trait = robust + } + 5 = { + trigger = { + NOR = { + trait = shrewd + trait = genius + calc_true_if = { + amount = 3 + trait = strong + trait = robust + trait = shrewd + trait = duelist + trait = hunter + trait = strategist + trait = architect + trait = diligent + trait = brave + trait = ambitious + } + } + } + add_trait = shrewd + } + 5 = { + trigger = { + NOR = { + trait = duelist + trait = hunter + trait = strategist + trait = architect + calc_true_if = { + amount = 3 + trait = strong + trait = robust + trait = shrewd + trait = duelist + trait = hunter + trait = strategist + trait = architect + trait = diligent + trait = brave + trait = ambitious + } + } + } + add_trait = duelist + } + 5 = { + trigger = { + NOR = { + trait = duelist + trait = hunter + trait = strategist + trait = architect + calc_true_if = { + amount = 3 + trait = strong + trait = robust + trait = shrewd + trait = duelist + trait = hunter + trait = strategist + trait = architect + trait = diligent + trait = brave + trait = ambitious + } + } + } + add_trait = hunter + } + 5 = { + trigger = { + NOR = { + trait = duelist + trait = hunter + trait = strategist + trait = architect + calc_true_if = { + amount = 3 + trait = strong + trait = robust + trait = shrewd + trait = duelist + trait = hunter + trait = strategist + trait = architect + trait = diligent + trait = brave + trait = ambitious + } + } + } + add_trait = strategist + } + 5 = { + trigger = { + NOR = { + trait = duelist + trait = hunter + trait = strategist + trait = architect + calc_true_if = { + amount = 3 + trait = strong + trait = robust + trait = shrewd + trait = duelist + trait = hunter + trait = strategist + trait = architect + trait = diligent + trait = brave + trait = ambitious + } + } + } + add_trait = architect + } + 5 = { + trigger = { + NOR = { + trait = diligent + calc_true_if = { + amount = 3 + trait = strong + trait = robust + trait = shrewd + trait = duelist + trait = hunter + trait = strategist + trait = architect + trait = diligent + trait = brave + trait = ambitious + } + } + } + add_trait = diligent + } + 5 = { + trigger = { + NOR = { + trait = brave + calc_true_if = { + amount = 3 + trait = strong + trait = robust + trait = shrewd + trait = duelist + trait = hunter + trait = strategist + trait = architect + trait = diligent + trait = brave + trait = ambitious + } + } + } + add_trait = brave + } + 5 = { + trigger = { + NOR = { + trait = ambitious + calc_true_if = { + amount = 3 + trait = strong + trait = robust + trait = shrewd + trait = duelist + trait = hunter + trait = strategist + trait = architect + trait = diligent + trait = brave + trait = ambitious + } + } + } + add_trait = ambitious + } + } + } + } +} + +china_war_spawn_troops_effect = { + # Requires the current things to function properly: + # event_target:spawn_province + # variable: china_war_troop_quality + # variable: china_war_troop_quantity + while = { + limit = { + check_variable = { + which = china_war_troop_quantity + value = 1 + } + } + change_variable = { + which = china_war_troop_quantity + value = -1 + } + + random_list = { # Not really random but decent flow control + 10 = { + trigger = { NOT = { - check_variable = { which = "laws" value = 2 } + check_variable = { + which = china_war_troop_quality + value = 2 + } } } - add_law_w_cooldown = law_voting_power_1 - change_variable = { which = "laws" value = 1 } + spawn_unit = { + owner = THIS + province = event_target:spawn_province + home = event_target:spawn_province + troops = { + archers = { 168 168 } + light_infantry = { 284 284 } + heavy_infantry = { 0 0 } + pikemen = { 0 0 } + light_cavalry = { 41 41 } + knights = { 0 0 } + } + #attrition = 1 + disband_on_peace = yes + merge = yes + } } - if = { - limit = { - has_law = war_voting_power_0 + 10 = { + trigger = { + check_variable = { + which = china_war_troop_quality + value = 2 + } NOT = { - check_variable = { which = "laws" value = 2 } + check_variable = { + which = china_war_troop_quality + value = 3 + } } } - add_law_w_cooldown = war_voting_power_1 - change_variable = { which = "laws" value = 1 } + spawn_unit = { + owner = THIS + province = event_target:spawn_province + home = event_target:spawn_province + troops = { + archers = { 148 148 } + light_infantry = { 264 264 } + heavy_infantry = { 0 0 } + pikemen = { 0 0 } + light_cavalry = { 81 81 } + knights = { 0 0 } + } + #attrition = 1 + disband_on_peace = yes + merge = yes + } } - if = { - limit = { - has_law = revoke_title_voting_power_0 + 10 = { + trigger = { + check_variable = { + which = china_war_troop_quality + value = 3 + } NOT = { - check_variable = { which = "laws" value = 2 } + check_variable = { + which = china_war_troop_quality + value = 4 + } } } - add_law_w_cooldown = revoke_title_voting_power_1 - change_variable = { which = "laws" value = 1 } + spawn_unit = { + owner = THIS + province = event_target:spawn_province + home = event_target:spawn_province + troops = { + archers = { 144 144 } + light_infantry = { 221 221 } + heavy_infantry = { 49 49 } + pikemen = { 0 0 } + light_cavalry = { 79 79 } + knights = { 0 0 } + } + #attrition = 1 + disband_on_peace = yes + merge = yes + } } - if = { - limit = { - has_law = imprison_voting_power_0 + 10 = { + trigger = { + check_variable = { + which = china_war_troop_quality + value = 4 + } NOT = { - check_variable = { which = "laws" value = 2 } + check_variable = { + which = china_war_troop_quality + value = 5 + } } } - add_law_w_cooldown = imprison_voting_power_1 - change_variable = { which = "laws" value = 1 } + spawn_unit = { + owner = THIS + province = event_target:spawn_province + home = event_target:spawn_province + troops = { + archers = { 144 144 } + light_infantry = { 203 203 } + heavy_infantry = { 66 66 } + pikemen = { 19 19 } + light_cavalry = { 61 61 } + knights = { 0 0 } + } + #attrition = 1 + disband_on_peace = yes + merge = yes + } } - if = { - limit = { - has_law = grant_title_voting_power_0 + 10 = { + trigger = { + check_variable = { + which = china_war_troop_quality + value = 5 + } NOT = { - check_variable = { which = "laws" value = 2 } + check_variable = { + which = china_war_troop_quality + value = 6 + } } } - add_law_w_cooldown = grant_title_voting_power_1 - change_variable = { which = "laws" value = 1 } + spawn_unit = { + owner = THIS + province = event_target:spawn_province + home = event_target:spawn_province + troops = { + archers = { 136 136 } + light_infantry = { 134 134 } + heavy_infantry = { 102 102 } + pikemen = { 41 41 } + light_cavalry = { 80 80 } + knights = { 0 0 } + } + #attrition = 1 + disband_on_peace = yes + merge = yes + } } - if = { - limit = { - has_law = banish_voting_power_0 + 10 = { + trigger = { + check_variable = { + which = china_war_troop_quality + value = 6 + } NOT = { - check_variable = { which = "laws" value = 2 } + check_variable = { + which = china_war_troop_quality + value = 7 + } } } - add_law_w_cooldown = banish_voting_power_1 - change_variable = { which = "laws" value = 1 } + spawn_unit = { + owner = THIS + province = event_target:spawn_province + home = event_target:spawn_province + troops = { + archers = { 122 122 } + light_infantry = { 71 71 } + heavy_infantry = { 85 85 } + pikemen = { 78 78 } + light_cavalry = { 113 113 } + knights = { 24 24 } + } + #attrition = 1 + disband_on_peace = yes + merge = yes + } } - if = { - limit = { - has_law = execution_voting_power_0 - NOT = { - check_variable = { which = "laws" value = 2 } + 10 = { + trigger = { + check_variable = { + which = china_war_troop_quality + value = 7 } } - add_law_w_cooldown = execution_voting_power_1 - change_variable = { which = "laws" value = 1 } + spawn_unit = { + owner = THIS + province = event_target:spawn_province + home = event_target:spawn_province + troops = { + archers = { 107 107 } + light_infantry = { 22 22 } + heavy_infantry = { 106 106 } + pikemen = { 96 96 } + light_cavalry = { 111 111 } + knights = { 51 51 } + } + #attrition = 1 + disband_on_peace = yes + merge = yes + } } - set_variable = { which = "laws" value = 0 } } } } -increase_vassal_freedom_effect = { - if = { +china_war_spawn_troops_no_disband_effect = { + # Requires the current things to function properly: + # event_target:spawn_province + # variable: china_war_troop_quality + # variable: china_war_troop_quantity + while = { limit = { - has_law = vassal_wars_law_1 + check_variable = { + which = china_war_troop_quantity + value = 1 + } } - add_law_w_cooldown = vassal_wars_law_0 - } - if = { - limit = { - has_law = vassal_wars_law_2 + change_variable = { + which = china_war_troop_quantity + value = -1 } - add_law_w_cooldown = vassal_wars_law_1 - } -} - -select_random_hermetic_ingredient_herb_effect = { # If run once, this will set a flag on ONE herbal ingredient. If run twice, it will set a second flag on another herbal ingredient... - if = { - limit = { - any_artifact = { - has_artifact_flag = selected_ingredient_1 + + random_list = { # Not really random but decent flow control + 10 = { + trigger = { + NOT = { + check_variable = { + which = china_war_troop_quality + value = 2 + } + } + } + spawn_unit = { + owner = THIS + province = event_target:spawn_province + home = event_target:spawn_province + troops = { + archers = { 168 168 } + light_infantry = { 284 284 } + heavy_infantry = { 0 0 } + pikemen = { 0 0 } + light_cavalry = { 41 41 } + knights = { 0 0 } + } + attrition = 0.1 + disband_on_peace = no + merge = yes + } } - NOT = { - any_artifact = { - has_artifact_flag = selected_ingredient_2 + 10 = { + trigger = { + check_variable = { + which = china_war_troop_quality + value = 2 + } + NOT = { + check_variable = { + which = china_war_troop_quality + value = 3 + } + } + } + spawn_unit = { + owner = THIS + province = event_target:spawn_province + home = event_target:spawn_province + troops = { + archers = { 148 148 } + light_infantry = { 264 264 } + heavy_infantry = { 0 0 } + pikemen = { 0 0 } + light_cavalry = { 81 81 } + knights = { 0 0 } + } + attrition = 0.1 + disband_on_peace = no + merge = yes + } + } + 10 = { + trigger = { + check_variable = { + which = china_war_troop_quality + value = 3 + } + NOT = { + check_variable = { + which = china_war_troop_quality + value = 4 + } + } + } + spawn_unit = { + owner = THIS + province = event_target:spawn_province + home = event_target:spawn_province + troops = { + archers = { 144 144 } + light_infantry = { 221 221 } + heavy_infantry = { 49 49 } + pikemen = { 0 0 } + light_cavalry = { 79 79 } + knights = { 0 0 } + } + attrition = 0.1 + disband_on_peace = no + merge = yes + } + } + 10 = { + trigger = { + check_variable = { + which = china_war_troop_quality + value = 4 + } + NOT = { + check_variable = { + which = china_war_troop_quality + value = 5 + } + } + } + spawn_unit = { + owner = THIS + province = event_target:spawn_province + home = event_target:spawn_province + troops = { + archers = { 144 144 } + light_infantry = { 203 203 } + heavy_infantry = { 66 66 } + pikemen = { 19 19 } + light_cavalry = { 61 61 } + knights = { 0 0 } + } + attrition = 0.1 + disband_on_peace = no + merge = yes + } + } + 10 = { + trigger = { + check_variable = { + which = china_war_troop_quality + value = 5 + } + NOT = { + check_variable = { + which = china_war_troop_quality + value = 6 + } + } + } + spawn_unit = { + owner = THIS + province = event_target:spawn_province + home = event_target:spawn_province + troops = { + archers = { 136 136 } + light_infantry = { 134 134 } + heavy_infantry = { 102 102 } + pikemen = { 41 41 } + light_cavalry = { 80 80 } + knights = { 0 0 } + } + attrition = 0.1 + disband_on_peace = no + merge = yes + } + } + 10 = { + trigger = { + check_variable = { + which = china_war_troop_quality + value = 6 + } + NOT = { + check_variable = { + which = china_war_troop_quality + value = 7 + } + } + } + spawn_unit = { + owner = THIS + province = event_target:spawn_province + home = event_target:spawn_province + troops = { + archers = { 122 122 } + light_infantry = { 71 71 } + heavy_infantry = { 85 85 } + pikemen = { 78 78 } + light_cavalry = { 113 113 } + knights = { 24 24 } + } + attrition = 0.1 + disband_on_peace = no + merge = yes } } - } - random_artifact = { - limit = { - is_ingredient_herb_trigger = yes - NOT = { has_artifact_flag = selected_ingredient_1 } - NOT = { has_artifact_flag = selected_ingredient_2 } - } - set_artifact_flag = selected_ingredient_2 - } - } - if = { - limit = { - NOT = { - any_artifact = { - has_artifact_flag = selected_ingredient_1 + 10 = { + trigger = { + check_variable = { + which = china_war_troop_quality + value = 7 + } + } + spawn_unit = { + owner = THIS + province = event_target:spawn_province + home = event_target:spawn_province + troops = { + archers = { 107 107 } + light_infantry = { 22 22 } + heavy_infantry = { 106 106 } + pikemen = { 96 96 } + light_cavalry = { 111 111 } + knights = { 51 51 } + } + attrition = 0.1 + disband_on_peace = no + merge = yes } - } - } - random_artifact = { - limit = { - is_ingredient_herb_trigger = yes - NOT = { has_artifact_flag = selected_ingredient_1 } - NOT = { has_artifact_flag = selected_ingredient_2 } } - set_artifact_flag = selected_ingredient_1 } } } -select_random_hermetic_ingredient_animal_part_effect = { - if = { - limit = { - any_artifact = { - has_artifact_flag = selected_ingredient_1 - } - NOT = { - any_artifact = { - has_artifact_flag = selected_ingredient_2 - } +china_war_modify_variables_by_status_effect = { + # variable: china_war_troop_quality + # variable: china_war_troop_quantity + # variable: china_war_minimum_commander_martial + # variable: china_war_target_match_mult + + random_list = { + 1 = { + trigger = { + offmap_china = { has_status = china_stable } } + change_variable = { which = china_war_troop_quality value = 1 } + change_variable = { which = china_war_minimum_commander_martial value = 3 } } - random_artifact = { - limit = { - is_ingredient_animal_part_trigger = yes - NOT = { has_artifact_flag = selected_ingredient_1 } - NOT = { has_artifact_flag = selected_ingredient_2 } + 1 = { + trigger = { + offmap_china = { has_status = china_unrest } } - set_artifact_flag = selected_ingredient_2 - } - } - if = { - limit = { - NOT = { - any_artifact = { - has_artifact_flag = selected_ingredient_1 - } - } + change_variable = { which = china_war_troop_quantity value = -6 } + change_variable = { which = china_war_target_match_mult value = -0.15 } } - random_artifact = { - limit = { - is_ingredient_animal_part_trigger = yes - NOT = { has_artifact_flag = selected_ingredient_1 } - NOT = { has_artifact_flag = selected_ingredient_2 } + 1 = { + trigger = { + offmap_china = { has_status = china_civil_war } } - set_artifact_flag = selected_ingredient_1 + change_variable = { which = china_war_troop_quantity value = -6 } + change_variable = { which = china_war_target_match_mult value = -0.25 } + change_variable = { which = china_war_troop_quality value = -1 } + change_variable = { which = china_war_minimum_commander_martial value = -6 } } - } -} - -select_random_hermetic_ingredient_powder_effect = { - if = { - limit = { - any_artifact = { - has_artifact_flag = selected_ingredient_1 - } - NOT = { - any_artifact = { - has_artifact_flag = selected_ingredient_2 + 1 = { + trigger = { + OR = { + offmap_china = { has_status = china_jurchen_invasion } + offmap_china = { has_status = china_mongol_invasion } } } + change_variable = { which = china_war_troop_quantity value = -7 } + change_variable = { which = china_war_target_match_mult value = -0.4 } + change_variable = { which = china_war_troop_quality value = -1 } + change_variable = { which = china_war_minimum_commander_martial value = -2 } } - random_artifact = { - limit = { - is_ingredient_powder_trigger = yes - NOT = { has_artifact_flag = selected_ingredient_1 } - NOT = { has_artifact_flag = selected_ingredient_2 } + 1 = { + trigger = { + offmap_china = { has_status = china_famine } } - set_artifact_flag = selected_ingredient_2 + change_variable = { which = china_war_troop_quantity value = -4 } + change_variable = { which = china_war_target_match_mult value = -0.30 } + change_variable = { which = china_war_troop_quality value = -2 } + change_variable = { which = china_war_minimum_commander_martial value = -2 } } - } - if = { - limit = { - NOT = { - any_artifact = { - has_artifact_flag = selected_ingredient_1 - } - } + 1 = { + trigger = { + offmap_china = { has_status = china_plague } + } + change_variable = { which = china_war_troop_quantity value = -6 } + change_variable = { which = china_war_target_match_mult value = -0.35 } + change_variable = { which = china_war_troop_quality value = -1 } + change_variable = { which = china_war_minimum_commander_martial value = -4 } } - random_artifact = { - limit = { - is_ingredient_powder_trigger = yes - NOT = { has_artifact_flag = selected_ingredient_1 } - NOT = { has_artifact_flag = selected_ingredient_2 } + 1 = { + trigger = { + offmap_china = { has_status = china_golden_age } } - set_artifact_flag = selected_ingredient_1 + change_variable = { which = china_war_target_match_mult value = 0.65 } + change_variable = { which = china_war_troop_quality value = 2 } + change_variable = { which = china_war_minimum_commander_martial value = 5 } } } } -select_random_hermetic_ingredient_liquid_effect = { - if = { - limit = { - any_artifact = { - has_artifact_flag = selected_ingredient_1 + +#Checks whether the Emperor likes target and shows tooltips (used in event JD.10010) +check_likes_or_dislikes_THIS_effect = { + if = { #If the current Emperor LIKES target + limit = { + is_liked_by_China_trigger = yes + } + offmap_china = { + show_scope_change = no + custom_tooltip = { text = emperor_likes_THIS_tt } + } + } + + if = { #If the current Emperor DISLIKES target + limit = { + is_disliked_by_China_trigger = yes + } + offmap_china = { + show_scope_change = no + custom_tooltip = { text = emperor_dislikes_THIS_tt } + } + } + + if = { #If the current Emperor LIKES *and* DISLIKES target + limit = { + is_liked_and_disliked_by_China = yes + } + offmap_china = { + show_scope_change = no + custom_tooltip = { text = emperor_has_ambiguous_feelings_of_THIS_tt } + } + } +} + +print_china_status_update_effect = { + log = "----------------" + log = "China Logging:" + log = "China's status of [This.GetPrevStatus] ended after [global_temp_status_years.GetValue] years." + log = "China's new status is [This.GetStatus]." + log = "----------------" + set_variable = { + which = global_temp_status_years + value = 0 + } + random_list = { + 10 = { + trigger = { + has_status = china_stable } - NOT = { - any_artifact = { - has_artifact_flag = selected_ingredient_2 - } + change_variable = { + which = global_amount_of_times_china_stable + value = 1 } } - random_artifact = { - limit = { - is_ingredient_liquid_trigger = yes - NOT = { has_artifact_flag = selected_ingredient_1 } - NOT = { has_artifact_flag = selected_ingredient_2 } + 10 = { + trigger = { + has_status = china_unrest } - set_artifact_flag = selected_ingredient_2 - } - } - if = { - limit = { - NOT = { - any_artifact = { - has_artifact_flag = selected_ingredient_1 - } - } - } - random_artifact = { - limit = { - is_ingredient_liquid_trigger = yes - NOT = { has_artifact_flag = selected_ingredient_1 } - NOT = { has_artifact_flag = selected_ingredient_2 } + change_variable = { + which = global_amount_of_times_china_unrest + value = 1 } - set_artifact_flag = selected_ingredient_1 - } - } -} - -select_random_hermetic_ingredient_effect = { #when it doesn't matter if it's a herb/animal part/metal/liquid - if = { - limit = { - has_selected_ingredient_1_trigger = yes - has_selected_ingredient_2_trigger = no } - random_artifact = { - limit = { - NOT = { has_artifact_flag = selected_ingredient_1 } - NOT = { has_artifact_flag = selected_ingredient_2 } - has_artifact_flag = ingredient + 10 = { + trigger = { + has_status = china_civil_war } - set_artifact_flag = selected_ingredient_2 - } - } - if = { - limit = { - has_selected_ingredient_1_trigger = no - any_artifact = { - has_artifact_flag = ingredient + change_variable = { + which = global_amount_of_times_china_civil_war + value = 1 } } - random_artifact = { - limit = { - NOT = { has_artifact_flag = selected_ingredient_1 } - NOT = { has_artifact_flag = selected_ingredient_2 } - has_artifact_flag = ingredient + 10 = { + trigger = { + has_status = china_mongol_invasion + } + change_variable = { + which = global_amount_of_times_china_mongol_invasion + value = 1 } - set_artifact_flag = selected_ingredient_1 - } - } -} - -remove_selection_of_ingredients_effect = { #for clearing selection of ingredients - hidden_effect = { - any_artifact = { - clr_artifact_flag = selected_ingredient_1 - clr_artifact_flag = selected_ingredient_2 - } - } -} - -destroy_selected_ingredient_1_effect = { #for removing the ingredient in question - custom_tooltip = { text = destroy_selected_ingredient_1_tt } - hidden_effect = { - random_artifact = { - limit = { has_artifact_flag = selected_ingredient_1 } - destroy_artifact = yes - } - } -} - -destroy_selected_ingredient_2_effect = { #for removing the ingredient in question - custom_tooltip = { text = destroy_selected_ingredient_2_tt } - hidden_effect = { - random_artifact = { - limit = { has_artifact_flag = selected_ingredient_2 } - destroy_artifact = yes } - } -} - -destroy_selected_ingredient_1_and_2_effect = { #for removing both selected ingredients - custom_tooltip = { text = destroy_selected_ingredient_1_and_2_tt } - hidden_effect = { - random_artifact = { - limit = { has_artifact_flag = selected_ingredient_1 } - destroy_artifact = yes + 10 = { + trigger = { + has_status = china_jurchen_invasion + } + change_variable = { + which = global_amount_of_times_china_jurchen_invasion + value = 1 + } } - random_artifact = { - limit = { has_artifact_flag = selected_ingredient_2 } - destroy_artifact = yes + 10 = { + trigger = { + has_status = china_famine + } + change_variable = { + which = global_amount_of_times_china_famine + value = 1 + } } - } -} - -destroy_selected_ingredient_1_plus_random_other_ingredient_effect = { #for removing the ingredient in question PLUS a random other one (unnamed in tooltip) - custom_tooltip = { text = destroy_selected_ingredient_1_plus_random_other_ingredient_tt } - hidden_effect = { - random_artifact = { - limit = { has_artifact_flag = selected_ingredient_1 } - destroy_artifact = yes + 10 = { + trigger = { + has_status = china_plague + } + change_variable = { + which = global_amount_of_times_china_plague + value = 1 + } } - random_artifact = { - limit = { - has_artifact_flag = ingredient + 10 = { + trigger = { + has_status = china_golden_age + NOT = { has_policy = china_expansionist } + } + change_variable = { + which = global_amount_of_times_china_golden_age + value = 1 } - destroy_artifact = yes } - } -} - -destroy_random_herb_ingredient_effect = { - random_artifact = { - limit = { - has_artifact_flag = ingredient - is_ingredient_herb_trigger = yes + 10 = { + trigger = { + has_status = china_golden_age + has_policy = china_expansionist + } + change_variable = { + which = global_amount_of_times_china_golden_age_expansionist + value = 1 + } } - destroy_artifact = yes } } -destroy_random_animal_part_ingredient_effect = { - random_artifact = { - limit = { - has_artifact_flag = ingredient - is_ingredient_animal_part_trigger = yes - } - destroy_artifact = yes +print_china_policy_update_effect = { + log = "----------------" + log = "China Logging:" + log = "China's policy of [This.GetPrevPolicy] ended after [global_temp_policy_years.GetValue] years." + log = "China's new policy is [This.GetPolicy]." + log = "----------------" + set_variable = { + which = global_temp_policy_years + value = 0 } -} - -destroy_random_powder_ingredient_effect = { - random_artifact = { - limit = { - has_artifact_flag = ingredient - is_ingredient_powder_trigger = yes + random_list = { + 10 = { + trigger = { + has_policy = china_open + } } - destroy_artifact = yes - } -} - -destroy_random_liquid_ingredient_effect = { - random_artifact = { - limit = { - has_artifact_flag = ingredient - is_ingredient_liquid_trigger = yes + 10 = { + trigger = { + has_policy = china_isolationist + } + change_variable = { + which = global_amount_of_times_china_isolationist_policy + value = 1 + } + } + 10 = { + trigger = { + has_policy = china_expansionist + } + change_variable = { + which = global_amount_of_times_china_expansionist_policy + value = 1 + } } - destroy_artifact = yes } } -destroy_random_herb_or_animal_part_ingredients_effect = { - hidden_effect = { - random_list = { - 5 = { - trigger = { has_a_herb_ingredient_trigger = yes } - destroy_random_herb_ingredient_effect = yes + +china_war_modify_variables_by_century_effect = { + random_list = { + 10 = { + trigger = { + year = 700 + NOT = { year = 800 } } - 5 = { - trigger = { has_an_animal_part_ingredient_trigger = yes } - destroy_random_animal_part_ingredient_effect = yes + } + 10 = { + trigger = { + year = 800 + NOT = { year = 900 } } - 20 = { - trigger = { - any_artifact = { - count = 2 - is_ingredient_herb_trigger = yes - has_artifact_flag = ingredient - } - } - destroy_random_herb_ingredient_effect = yes - destroy_random_herb_ingredient_effect = yes + change_variable = { + which = china_war_troop_quantity + value = 2 } - 20 = { - trigger = { - any_artifact = { - count = 2 - is_ingredient_animal_part_trigger = yes - has_artifact_flag = ingredient - } - } - destroy_random_animal_part_ingredient_effect = yes - destroy_random_animal_part_ingredient_effect = yes + } + 10 = { + trigger = { + year = 900 + NOT = { year = 1000 } } - 20 = { - trigger = { - has_a_herb_ingredient_trigger = yes - has_an_animal_part_ingredient_trigger = yes - } - destroy_random_herb_ingredient_effect = yes - destroy_random_animal_part_ingredient_effect = yes + change_variable = { + which = china_war_troop_quantity + value = 3 } - 20 = { - trigger = { - any_artifact = { - count = 3 - is_ingredient_herb_trigger = yes - has_artifact_flag = ingredient - } - } - destroy_random_herb_ingredient_effect = yes - destroy_random_herb_ingredient_effect = yes - destroy_random_herb_ingredient_effect = yes + } + 10 = { + trigger = { + year = 1000 + NOT = { year = 1100 } } - 20 = { - trigger = { - any_artifact = { - count = 3 - is_ingredient_animal_part_trigger = yes - has_artifact_flag = ingredient - } - } - destroy_random_animal_part_ingredient_effect = yes - destroy_random_animal_part_ingredient_effect = yes - destroy_random_animal_part_ingredient_effect = yes + change_variable = { + which = china_war_troop_quantity + value = 4 } - 50 = { - trigger = { - any_artifact = { - count = 2 - is_ingredient_herb_trigger = yes - has_artifact_flag = ingredient - } - has_an_animal_part_ingredient_trigger = yes - } - destroy_random_herb_ingredient_effect = yes - destroy_random_herb_ingredient_effect = yes - destroy_random_animal_part_ingredient_effect = yes + } + 10 = { + trigger = { + year = 1100 + NOT = { year = 1200 } } - 50 = { - trigger = { - any_artifact = { - count = 2 - is_ingredient_animal_part_trigger = yes - has_artifact_flag = ingredient - } - has_a_herb_ingredient_trigger = yes - } - destroy_random_herb_ingredient_effect = yes - destroy_random_animal_part_ingredient_effect = yes - destroy_random_animal_part_ingredient_effect = yes + change_variable = { + which = china_war_troop_quantity + value = 5 + } + change_variable = { + which = china_war_target_match_mult + value = 0.05 + } + } + 10 = { + trigger = { + year = 1200 + NOT = { year = 1300 } + } + change_variable = { + which = china_war_troop_quantity + value = 7 + } + change_variable = { + which = china_war_target_match_mult + value = 0.05 + } + change_variable = { + which = china_war_troop_quality + value = 1 + } + } + 10 = { + trigger = { + year = 1300 + } + change_variable = { + which = china_war_troop_quantity + value = 8 + } + change_variable = { + which = china_war_target_match_mult + value = 0.05 + } + change_variable = { + which = china_war_troop_quality + value = 1 } } } } -destroy_random_ingredients_effect = { - custom_tooltip = { text = random_ingredients_are_destroyed_tt } - hidden_effect = { - random_list = { - 5 = { - random_artifact = { - limit = { has_artifact_flag = ingredient } - destroy_artifact = yes - } +print_china_ruler_update_effect = { + log = "----------------" + log = "Ruler of China died at the age of [From.GetAgeYears]." + log = "New Ruler of China is [Root.GetBestName] ([From.GetCulture], From.GetReligion])." + log = "----------------" +} + +# THIS is getting the trait added, the kinslayer_target target is the person dying +# Save the event target before running this effect any time you publicly kill someone, the effect automatically checks they are a relative so you don't need to +# The event target is cleared after the trait is added so re-save the target and re-run the effect to check for another character in the same event +# The traits will overwrite each other kinslayer > familial_kinslayer > dynastic_kinslayer +add_kinslayer_trait_effect = { + if = { #Parents, children, direct ancestors or descendants + limit = { + NOT = { trait = kinslayer } + NOT = { religion_group = muslim } + OR = { + is_ancestor_of = event_target:kinslayer_target + is_descendant_of = event_target:kinslayer_target + sibling = event_target:kinslayer_target } - 50 = { - trigger = { - any_artifact = { - count = 2 - has_artifact_flag = ingredient - } - } - random_artifact = { - limit = { has_artifact_flag = ingredient } - destroy_artifact = yes - } - random_artifact = { - limit = { has_artifact_flag = ingredient } - destroy_artifact = yes - } + } + add_trait = kinslayer + hidden_effect = { + character_event = { + id = 38287 #Notify Kinslayer } - 100 = { - trigger = { - any_artifact = { - count = 3 - has_artifact_flag = ingredient - } - } - random_artifact = { - limit = { has_artifact_flag = ingredient } - destroy_artifact = yes - } - random_artifact = { - limit = { has_artifact_flag = ingredient } - destroy_artifact = yes - } - random_artifact = { - limit = { has_artifact_flag = ingredient } - destroy_artifact = yes - } + } + } + else_if = { #Cousins, aunts/uncles (blood ones only), nieces/nephews + limit = { + NOR = { + trait = kinslayer + trait = familial_kinslayer } - 150 = { - trigger = { - any_artifact = { - count = 4 - has_artifact_flag = ingredient - } - } - random_artifact = { - limit = { has_artifact_flag = ingredient } - destroy_artifact = yes - } - random_artifact = { - limit = { has_artifact_flag = ingredient } - destroy_artifact = yes - } - random_artifact = { - limit = { has_artifact_flag = ingredient } - destroy_artifact = yes - } - random_artifact = { - limit = { has_artifact_flag = ingredient } - destroy_artifact = yes - } + NOT = { religion_group = muslim } + OR = { + is_cousin_of = event_target:kinslayer_target + is_aunt_uncle_of = event_target:kinslayer_target + is_nibling_of = event_target:kinslayer_target + } + } + add_trait = familial_kinslayer + hidden_effect = { + character_event = { + id = 38287 #Notify Kinslayer + } + } + } + else_if = { #Dynasty members + limit = { + NOR = { + trait = kinslayer + trait = familial_kinslayer + trait = dynastic_kinslayer + } + NOT = { religion_group = muslim } + is_lowborn = no + dynasty = event_target:kinslayer_target + } + add_trait = dynastic_kinslayer + hidden_effect = { + character_event = { + id = 38287 #Notify Kinslayer } } } + else = { + } + clear_event_target = kinslayer_target +} + +set_higher_quality_of_book_flags_effect = { + if = { + limit = { + NOT = { has_character_flag = decent_book_potential } + has_character_flag = good_book_potential + has_character_flag = great_book_potential + } + clr_character_flag = good_book_potential + } + if = { + limit = { + NOT = { has_character_flag = decent_book_potential } + has_character_flag = good_book_potential + NOT = { has_character_flag = great_book_potential } + } + set_character_flag = great_book_potential + } + if = { + limit = { + has_character_flag = decent_book_potential + has_character_flag = good_book_potential + has_character_flag = great_book_potential + } + clr_character_flag = decent_book_potential + } + if = { + limit = { + has_character_flag = decent_book_potential + has_character_flag = good_book_potential + NOT = { has_character_flag = great_book_potential } + } + set_character_flag = great_book_potential + } + if = { + limit = { + has_character_flag = decent_book_potential + NOT = { has_character_flag = good_book_potential } + NOT = { has_character_flag = great_book_potential } + } + set_character_flag = good_book_potential + } } -destroy_all_ingredients_effect = { - custom_tooltip = { text = destroy_all_ingredients_tt } - hidden_effect = { - if = { - limit = { - any_artifact = { - has_artifact_flag = ingredient - } - } - any_artifact = { - limit = { has_artifact_flag = ingredient } - destroy_artifact = yes - } - } +set_lower_quality_of_book_flags_effect = { + if = { + limit = { + has_character_flag = decent_book_potential + has_character_flag = good_book_potential + NOT = { has_character_flag = great_book_potential } + } + clr_character_flag = good_book_potential + } + if = { + limit = { + NOT = { has_character_flag = decent_book_potential } + has_character_flag = good_book_potential + NOT = { has_character_flag = great_book_potential } + } + set_character_flag = decent_book_potential + } + if = { + limit = { + has_character_flag = decent_book_potential + has_character_flag = good_book_potential + has_character_flag = great_book_potential + } + clr_character_flag = great_book_potential + } + if = { + limit = { + NOT = { has_character_flag = decent_book_potential } + has_character_flag = good_book_potential + has_character_flag = great_book_potential + } + set_character_flag = decent_book_potential + } + if = { + limit = { + NOT = { has_character_flag = decent_book_potential } + NOT = { has_character_flag = good_book_potential } + has_character_flag = great_book_potential + } + set_character_flag = good_book_potential } } +send_final_book_outcome_event_effect = { + #character_event = { id = JD.10070 days = 5 random = 10 } #Testing values... + character_event = { id = JD.10070 days = 565 random = 3650 } +} -calculate_health_level_of_ingredient_1_effect = { - hidden_effect = { - set_variable = { # Reset potion quality - which = current_potion_quality - value = 0 - } - if = { - limit = { - any_artifact = { has_artifact_flag = selected_ingredient_1 } - ingredient_is_perceived_healthy_trigger = yes - } - ROOT = { - change_variable = { - which = current_potion_quality - value = 1 - } - } - } - if = { - limit = { - any_artifact = { has_artifact_flag = selected_ingredient_1 } - ingredient_is_unhealthy_trigger = yes - } - ROOT = { - change_variable = { - which = current_potion_quality - value = -1 - } - } - } - } +abort_kow_tow_effect = { + if = { + limit = { + NOT = { has_character_flag = kow_tow_hide_abort_notification } + } + character_event = { id = JD.32299 } + } + clear_delayed_event = { id = JD.32005 } + clear_delayed_event = { id = JD.32200 } + clear_delayed_event = { id = JD.32113 } + clear_delayed_event = { id = JD.32111 } + clear_delayed_event = { id = JD.32210 } + clear_delayed_event = { id = JD.32290 } + clr_character_flag = went_on_kow_tow_pilgrimage + clean_up_after_kow_tow_effect = yes } -calculate_health_level_of_ingredient_2_effect = { +return_to_travel_tombola_effect = { hidden_effect = { - set_variable = { # Reset potion quality - which = current_potion_quality - value = 0 - } - if = { - limit = { - any_artifact = { has_artifact_flag = selected_ingredient_2 } - ingredient_is_perceived_healthy_trigger = yes - } - ROOT = { - change_variable = { - which = current_potion_quality - value = 1 - } - } - } - if = { - limit = { - any_artifact = { has_artifact_flag = selected_ingredient_2 } - ingredient_is_unhealthy_trigger = yes - } - ROOT = { - change_variable = { - which = current_potion_quality - value = -1 - } - } - } - } + event_target:kow_tow_traveler = { + subtract_variable = { + which = china_kow_tow_travel_events + value = 1 + } + character_event = { + id = JD.32005 + days = 90 + random = 60 + } + } + } } -calculate_health_level_of_ingredient_1_and_2_effect = { +return_to_china_tombola_effect = { hidden_effect = { - set_variable = { # Reset potion quality - which = current_potion_quality - value = 0 - } - while = { - limit = { - any_artifact = { - OR = { - has_artifact_flag = selected_ingredient_1 - has_artifact_flag = selected_ingredient_2 - } - NOT = { has_artifact_flag = ingredient_counted } - } - } - random_artifact = { - limit = { - OR = { - has_artifact_flag = selected_ingredient_1 - has_artifact_flag = selected_ingredient_2 - } - NOT = { has_artifact_flag = ingredient_counted } - } - set_artifact_flag = ingredient_counted - if = { - limit = { - ingredient_is_perceived_healthy_trigger = yes - } - ROOT = { - change_variable = { - which = current_potion_quality - value = 1 - } - } - } - if = { - limit = { - ingredient_is_unhealthy_trigger = yes - } - ROOT = { - change_variable = { - which = current_potion_quality - value = -1 - } - } - } - } - } - any_artifact = { - clr_artifact_flag = ingredient_counted + event_target:kow_tow_traveler = { + subtract_variable = { + which = china_kow_tow_travel_events + value = 1 + } + character_event = { + id = JD.32210 + days = 70 + random = 30 + } } - } + } } -calculate_health_level_of_all_ingredients_effect = { +clean_up_after_kow_tow_effect = { + remove_trait = kow_tow_travels + clr_character_flag = do_not_disturb + + clr_character_flag = read_the_guanzi + clr_character_flag = missed_loved_one + clr_character_flag = met_mercenaries + clr_character_flag = met_traveling_merchant + clr_character_flag = visited_market + clr_character_flag = kow_tow_invited_by_local_lord + clr_character_flag = kow_tow_heavy_rain + clr_character_flag = kow_tow_played_go + clr_character_flag = kow_tow_hide_abort_notification + clr_character_flag = kow_tow_visited_temple +} + +add_chinese_artifact_effect = { #Used in event JD.15016 (possible to use elsewhere!) hidden_effect = { - while = { - limit = { - any_artifact = { - has_artifact_flag = ingredient - NOT = { has_artifact_flag = ingredient_counted } - } - } - random_artifact = { - limit = { - has_artifact_flag = ingredient - NOT = { has_artifact_flag = ingredient_counted } - } - set_artifact_flag = ingredient_counted - if = { - limit = { - ingredient_is_perceived_healthy_trigger = yes - } - ROOT = { - change_variable = { - which = current_potion_quality - value = 1 - } - } - } - if = { - limit = { - ingredient_is_unhealthy_trigger = yes - } - ROOT = { - change_variable = { - which = current_potion_quality - value = -1 - } - } - } - } + random_list = { + 10 = { + trigger = { ROOT = { NOT = { has_artifact = chinese_artwork } } } + add_artifact = chinese_artwork + new_artifact = { + set_name = chinese_artwork_name + } + } + 10 = { + trigger = { ROOT = { NOT = { has_artifact = chinese_calligraphy } } } + add_artifact = chinese_calligraphy + new_artifact = { + set_name = chinese_calligraphy_name + } + } + 10 = { + trigger = { ROOT = { NOT = { has_artifact = chinese_sculpture } } } + add_artifact = chinese_sculpture + new_artifact = { + set_name = chinese_sculpture_name + } + } + 10 = { + trigger = { ROOT = { NOT = { has_artifact = chinese_ceremonial_robes } } } + add_artifact = chinese_ceremonial_robes + } + 10 = { + offmap_china = { + offmap_prev_ruler = { + save_event_target_as = prev_emperor + } + } + add_artifact = chinese_prev_emperor_sculpture + new_artifact = { + set_name = chinese_figurine_name + } + } + 10 = { + trigger = { ROOT = { NOT = { has_artifact = chinese_arm_protector } } } + add_artifact = chinese_arm_protector + new_artifact = { + set_name = chinese_arm_protector_name + } + } + 10 = { + trigger = { ROOT = { NOT = { has_artifact = chinese_serpent_spear } } } + add_artifact = chinese_serpent_spear + } + 10 = { + trigger = { ROOT = { NOT = { has_artifact = chinese_ji } } } + add_artifact = chinese_ji + } + 10 = { + trigger = { ROOT = { NOT = { has_artifact = chinese_crossbow } } } + add_artifact = chinese_crossbow + } + 10 = { + trigger = { ROOT = { NOT = { has_artifact = chinese_bronze_sculpture } } } + add_artifact = chinese_bronze_sculpture + new_artifact = { + set_name = chinese_bronze_sculpture_name + } + } + 10 = { + trigger = { ROOT = { NOT = { has_artifact = chinese_book_health } } } + add_artifact = chinese_book_health + new_artifact = { + set_name = chinese_book_health_name + } + } + 10 = { + trigger = { ROOT = { NOT = { has_artifact = chinese_book_law } } } + add_artifact = chinese_book_law + new_artifact = { + set_name = chinese_book_law_name + } + } + 10 = { + trigger = { ROOT = { NOT = { has_artifact = chinese_book_history } } } + add_artifact = chinese_book_history + new_artifact = { + set_name = chinese_book_history_name + } + } + 10 = { + trigger = { ROOT = { NOT = { has_artifact = chinese_book_economy } } } + add_artifact = chinese_book_economy + new_artifact = { + set_name = chinese_book_economy_name + } + } + 1 = { + trigger = { ROOT = { NOT = { has_artifact = chinese_painting_of_glitterhoof } } } + add_artifact = chinese_painting_of_glitterhoof + } + 10 = { + trigger = { ROOT = { NOT = { has_artifact = chinese_tapestry } } } + random_independent_ruler = { + limit = { + any_realm_province = { + trade_route = silk_road + } + } + random_realm_province = { + limit = { + trade_route = silk_road + } + save_event_target_as = tapestry_target + } + } + add_artifact = chinese_tapestry + new_artifact = { + set_name = chinese_tapestry_name + } + } + 10 = { + trigger = { ROOT = { NOT = { has_artifact = chinese_tapestry_grand } } } + add_artifact = chinese_tapestry_grand + new_artifact = { + set_name = chinese_tapestry_grand_name + } + trigger = { ROOT = { NOT = { has_artifact = chinese_tapestry_grand } } } + } } - any_artifact = { - clr_artifact_flag = ingredient_counted + new_artifact = { + save_event_target_as = chinese_artifact } - } + } } \ No newline at end of file diff --git a/AncientReligions/common/scripted_effects/ACR_scripted_effects.txt b/AncientReligions/common/scripted_effects/ACR_scripted_effects.txt index 2e05dccf..5cdd5f13 100644 --- a/AncientReligions/common/scripted_effects/ACR_scripted_effects.txt +++ b/AncientReligions/common/scripted_effects/ACR_scripted_effects.txt @@ -23,14 +23,7 @@ clear_nile_flooding_effect = { banish_to_monastery_effect = { # expand this to allow banishing to a random holy order # should one exist for the (liege's?) religion - if = { - limit = { is_female = yes } - add_trait = nun - } - if = { - limit = { is_female = no } - add_trait = monk - } + add_ascetic_trait_effect = yes liege = { random_realm_lord = { limit = { is_theocracy = yes } diff --git a/AncientReligions/common/scripted_triggers/00_scripted_triggers.txt b/AncientReligions/common/scripted_triggers/00_scripted_triggers.txt index 03739730..1d5942a5 100644 --- a/AncientReligions/common/scripted_triggers/00_scripted_triggers.txt +++ b/AncientReligions/common/scripted_triggers/00_scripted_triggers.txt @@ -71,6 +71,8 @@ #child_personality_learning_trigger Has a child trait with learning bonus. #is_learned_trigger Has a scholarly trait, learning-oriented trait. +#has_any_lifestyle_trait Has any of the above lifestyle traits. + #Religion #has_crusade_trait_trigger Has a crusade type trait. #has_secret_religion_trait_trigger Has a secret religion trait. @@ -261,7 +263,6 @@ has_unattractive_trait_trigger = { trait = arbitrary trait = cruel trait = stubborn - trait = eunuch trait = blinded trait = horse trait = one_eyed @@ -383,6 +384,25 @@ has_symptom_trigger = { } } +has_minor_disease_trigger = { + OR = { + trait = malaise + trait = fatigue + trait = abdominal_pain + trait = headache + trait = rash + trait = cramps + trait = chest_pain + trait = vomiting + trait = diarrhea + trait = fever + trait = cough + trait = ill + trait = lovers_pox + trait = flu + } +} + has_injury_trigger = { OR = { trait = wounded @@ -543,11 +563,14 @@ child_personality_diplomacy_trigger = { ##MARTIAL## has_education_martial_trigger = { - OR = { - trait = misguided_warrior - trait = tough_soldier - trait = skilled_tactician - trait = brilliant_strategist + custom_tooltip = { + text = has_martial_education_tt + OR = { + trait = misguided_warrior + trait = tough_soldier + trait = skilled_tactician + trait = brilliant_strategist + } } } @@ -667,6 +690,17 @@ is_learned_trigger = { } +has_any_lifestyle_trait = { + OR = { + has_lifestyle_diplomacy_trigger = yes + has_lifestyle_martial_trigger = yes + has_lifestyle_stewardship_trigger = yes + has_lifestyle_intrigue_trigger = yes + has_lifestyle_learning_trigger = yes + } +} + + ##RELIGION## has_crusade_trait_trigger = { @@ -1196,10 +1230,7 @@ can_be_spiritual_trigger = { } OR = { - NOT = { - religion = celtic_pagan - religion = celtic_pagan_reformed - } + NOT = { religion_openly_in_celtic_subgroup_trigger = yes } trait = druid trait = bad_druid @@ -1330,7 +1361,7 @@ physician_good_trigger = { } } -is_inaccessible_trigger = { +is_inaccessible_trigger = { #Remember to write this "is_inaccessible_trigger = no" when scripting, or the tooltip will be messed up (it reads "Is NOT in Hiding, in Seclusion, or out traveling") custom_tooltip = { text = is_inaccessible_tooltip hidden_tooltip = { @@ -1338,9 +1369,12 @@ is_inaccessible_trigger = { trait = in_hiding trait = on_hajj trait = on_pilgrimage + trait = on_indian_pilgrimage + trait = kow_tow_travels has_character_modifier = in_seclusion has_character_modifier = in_meditation has_character_modifier = doing_penance + has_character_modifier = out_traveling } } } @@ -1559,6 +1593,7 @@ death_execution_trigger = { death_reason = death_execution_boar death_reason = death_execution_eaten death_reason = death_execution_aztec_sacrifice + death_reason = death_executed_by_chinese_emperor } } @@ -1591,20 +1626,16 @@ death_suicide_trigger = { death_reason = death_suicide_fall death_reason = death_suicide_hanging death_reason = death_suicide_poison - death_reason = death_suicide_possessed_fall } } block_general_event_trigger = { OR = { - trait = incapable is_adult = no + trait = incapable prisoner = yes is_inaccessible_trigger = yes - is_alive = no - hidden_trigger = { - NOT = { always = yes } - } + hidden_trigger = { is_alive = no } } } @@ -1803,6 +1834,18 @@ true_religion_manichean_trigger = { true_religion = manichean } +true_religion_khurmazta_trigger = { + true_religion = khurmazta +} + +true_religion_bon_trigger = { + true_religion = bon +} + +true_religion_taoist_trigger = { + true_religion = taoist +} + true_religion_hindu_trigger = { true_religion = hindu } @@ -1919,7 +1962,8 @@ relationship_with_root_trigger = { } } -family_of_root_trigger = { +###Use the actual is__of = scope triggers now +family_of_root_trigger = { #use is_blood_relative_of_root_trigger for all relatives OR = { is_close_relative = ROOT #spouse, parents, children, siblings, grandparents, grandchildren cousin_of_root_trigger = yes #cousins @@ -1930,44 +1974,23 @@ family_of_root_trigger = { } cousin_of_root_trigger = { - OR = { - mother_even_if_dead = { mother_even_if_dead = { any_child = { any_child = { character = ROOT } } } } - mother_even_if_dead = { father_even_if_dead = { any_child = { any_child = { character = ROOT } } } } - father_even_if_dead = { father_even_if_dead = { any_child = { any_child = { character = ROOT } } } } - father_even_if_dead = { mother_even_if_dead = { any_child = { any_child = { character = ROOT } } } } - } + is_cousin_of = ROOT } sibling_of_root_trigger = { - OR = { - mother_even_if_dead = { any_child = { character = ROOT } } - father_even_if_dead = { any_child = { character = ROOT } } - } + sibling = ROOT } sibling_child_of_root_trigger = { - OR = { - mother_even_if_dead = { mother_even_if_dead = { any_child = { character = ROOT } } } - mother_even_if_dead = { father_even_if_dead = { any_child = { character = ROOT } } } - father_even_if_dead = { father_even_if_dead = { any_child = { character = ROOT } } } - father_even_if_dead = { mother_even_if_dead = { any_child = { character = ROOT } } } - } + is_nibling_of = ROOT } parent_sibling_of_root_trigger = { - OR = { - mother_even_if_dead = { any_child = { any_child = { character = ROOT } } } - father_even_if_dead = { any_child = { any_child = { character = ROOT } } } - } + is_aunt_uncle_of = ROOT } grandchild_of_root_trigger = { - OR = { - mother_even_if_dead = { mother_even_if_dead = { character = ROOT } } - mother_even_if_dead = { father_even_if_dead = { character = ROOT } } - father_even_if_dead = { mother_even_if_dead = { character = ROOT } } - father_even_if_dead = { father_even_if_dead = { character = ROOT } } - } + is_grandchild_of = ROOT } sibling_in_law_of_root_trigger = { @@ -1986,6 +2009,13 @@ is_murder_quest_target_of_prev_trigger = { } } +is_murder_quest_target_of_root_trigger = { + ROOT = { + has_quest = quest_the_assassins_assassination + quest_target = { character = PREVPREV } + } +} + assassins_appropriate_target_trigger = { is_within_diplo_range = ROOT is_adult = yes @@ -2195,15 +2225,18 @@ is_monastic_member_trigger = { } is_ascetic_trigger = { - OR = { - trait = monk - trait = nun - trait = muni - trait = aryika - trait = bhikkhu - trait = bhikkhuni - trait = sanyasi - trait = sanyasini + custom_tooltip = { + text = is_ascetic_tooltip + OR = { + trait = monk + trait = nun + trait = muni + trait = aryika + trait = bhikkhu + trait = bhikkhuni + trait = sanyasi + trait = sanyasini + } } } @@ -2344,6 +2377,14 @@ is_aztec_secret_religious_society_member_trigger = { } } +is_bon_secret_religious_society_member_trigger = { + society_member_of = secret_religious_society_bon +} + +is_taoist_secret_religious_society_member_trigger = { + society_member_of = secret_religious_society_taoist +} + is_openly_of_prevs_secret_religion_trigger = { religion = { target = PREV target_type = secret } } @@ -2590,6 +2631,18 @@ is_in_prevs_interesting_society_trigger = { society_member_of = secret_religious_society_manichean PREV = { interested_in_society = secret_religious_society_manichean } } + AND = { + society_member_of = secret_religious_society_khurmazta + PREV = { interested_in_society = secret_religious_society_khurmazta } + } + AND = { + society_member_of = secret_religious_society_bon + PREV = { interested_in_society = secret_religious_society_bon } + } + AND = { + society_member_of = secret_religious_society_taoist + PREV = { interested_in_society = secret_religious_society_taoist } + } AND = { society_member_of = secret_religious_society_hindu PREV = { interested_in_society = secret_religious_society_hindu} @@ -2904,6 +2957,24 @@ has_any_char_old_religion = { any_character = { religion = manichean } + } + AND = { + has_character_flag = character_was_khurmazta + any_character = { + religion = khurmazta + } + } + AND = { + has_character_flag = character_was_bon + any_character = { + religion = bon + } + } + AND = { + has_character_flag = character_was_taoist + any_character = { + religion = taoist + } } AND = { has_character_flag = character_was_hindu @@ -3084,7 +3155,31 @@ can_be_sabotaged_trigger = { has_assassins_prerequisites = { age = 16 - true_religion_shiite_trigger = yes + conditional_tooltip = { #recruitment decision + trigger = { FROM = { society_member_of = the_assassins } } + OR = { + FROM = { ai = no } + hidden_trigger = { ai = no } + religion_group = muslim + } + } + conditional_tooltip = { #showing interest via interface + trigger = { NOT = { FROM = { society_member_of = the_assassins } } } + OR = { + true_religion = shiite + religion_group = muslim + AND = { + ai = no + NOT = { trait = zealous } + any_playable_ruler = { + religion = shiite + NOT = { + distance_from_realm = { value = 300 who = ROOT } + } + } + } + } + } OR = { is_female = no has_game_rule = { @@ -3423,6 +3518,27 @@ looting_artifact_event_religious_artifacts_trigger = { ROOT = { religion = manichean } } } + NAND = { + any_artifact = { + has_artifact_flag = looted_artifact_tooltip_1 + has_artifact_flag = khurmazta + ROOT = { religion = khurmazta } + } + } + NAND = { + any_artifact = { + has_artifact_flag = looted_artifact_tooltip_1 + has_artifact_flag = bon + ROOT = { religion = bon } + } + } + NAND = { + any_artifact = { + has_artifact_flag = looted_artifact_tooltip_1 + has_artifact_flag = taoist + ROOT = { religion = taoist } + } + } NAND = { any_artifact = { has_artifact_flag = looted_artifact_tooltip_1 @@ -3682,13 +3798,60 @@ has_power_omen_modifier_trigger = { } } +has_bottom_tier_education_trait_trigger = { + OR = { + trait = naive_appeaser + trait = misguided_warrior + trait = indulgent_wastrel + trait = amateurish_plotter + trait = detached_priest + } +} + +has_2nd_tier_education_trait_trigger = { + OR = { + trait = underhanded_rogue + trait = tough_soldier + trait = thrifty_clerk + trait = flamboyant_schemer + trait = martial_cleric + } +} + +has_3rd_tier_education_trait_trigger = { + custom_tooltip = { + text = tribute_interaction_level4_education_tt + hidden_trigger = { + OR = { + trait = charismatic_negotiator + trait = skilled_tactician + trait = fortune_builder + trait = intricate_webweaver + trait = scholarly_theologian + } + } + } +} + has_top_tier_education_trait_trigger = { + custom_tooltip = { + text = tribute_interaction_level4_education_tt + hidden_trigger = { + OR = { + trait = elusive_shadow + trait = grey_eminence + trait = midas_touched + trait = brilliant_strategist + trait = mastermind_theologian + } + } + } +} + +has_medium_education_trait_trigger = { OR = { - trait = elusive_shadow - trait = grey_eminence - trait = midas_touched - trait = brilliant_strategist - trait = mastermind_theologian + has_2nd_tier_education_trait_trigger = yes + has_3rd_tier_education_trait_trigger = yes } } @@ -4175,6 +4338,8 @@ has_unsafe_secret_religion = { secret_religion = zoroastrian secret_religion = mazdaki secret_religion = manichean + secret_religion = khurmazta + secret_religion = bon secret_religion = norse_pagan secret_religion = norse_pagan_reformed secret_religion = baltic_pagan @@ -4211,6 +4376,10 @@ has_unsafe_secret_religion = { secret_religion = jain } } + AND = { + NOT = { has_dlc = "Jade Dragon" } + secret_religion = taoist + } } } @@ -4594,3 +4763,753 @@ religion_openly_aztec_or_reformed_trigger = { } } +has_dharmic_religion_trigger = { + OR = { + religion = hindu + religion = buddhist + religion = jain + } +} + +###CHINA TRIGGERS### + +#Grace triggers +has_grace_trivial_trigger = { + has_offmap_currency = { offmap = offmap_china value = 10 } +} +has_grace_minor_trigger = { + has_offmap_currency = { offmap = offmap_china value = 50 } +} +has_grace_medium_trigger = { + has_offmap_currency = { offmap = offmap_china value = 150 } +} +has_grace_major_trigger = { + has_offmap_currency = { offmap = offmap_china value = 500 } +} +has_grace_massive_trigger = { + has_offmap_currency = { offmap = offmap_china value = 1000 } +} + + +#Always put this at the end of your triggers! +china_diplo_interaction_trigger = { + offmap_china = { + governor = { + NOT = { war_with = PREVPREV } + is_within_diplo_range = PREVPREV + } + NOT = { has_policy = china_isolationist } + } + conditional_tooltip = { + trigger = { government = chinese_imperial_government } + custom_tooltip = { + text = china_offmap_decisions_pretender_emperor_tt + always = no + } + } +} + +china_is_suffering_trigger = { + offmap_china = { + OR = { + has_status = china_unrest + has_status = china_civil_war + has_status = china_famine + has_status = china_plague + has_status = china_mongol_invasion + has_status = china_jurchen_invasion + } + } +} + +china_is_fine_trigger = { #"fine", read like "fiii-iine", i.e. China is currently treating the world as their oyster + offmap_china = { + OR = { + has_status = china_golden_age + has_status = china_stable + } + OR = { + has_policy = china_open + has_policy = china_expansionist + } + } +} + +china_is_stable_open_trigger = { + offmap_china = { + has_status = china_stable + has_policy = china_open + } +} +china_is_stable_expansionist_trigger = { + offmap_china = { + has_status = china_stable + has_policy = china_expansionist + } +} +china_is_golden_age_open_trigger = { + offmap_china = { + has_status = china_golden_age + has_policy = china_open + } +} +china_is_golden_age_expansionist_trigger = { + offmap_china = { + has_status = china_golden_age + has_policy = china_expansionist + } +} + + +#Found in the 00_offmap_powers file... and the conditions for the decisions +china_offmap_boon_decisions_enabled_trigger = { + china_offmap_decisions_enabled_trigger = yes + custom_tooltip = { + text = china_offmap_boon_decisions_enabled_trigger_cd_tt #From is player character + FROM = { NOT = { has_character_modifier = jd_china_boon_cd } } #boon cooldown, which is set in each decision (one year!)... + } +} + +#Found in the 00_offmap_powers file... and the conditions for the decisions, use custom tooltip for that decisions cooldown modifier +china_offmap_tribute_decisions_enabled_trigger = { + china_offmap_decisions_enabled_trigger = yes +} + +#What goes into the two triggers above... +china_offmap_decisions_enabled_trigger = { + offmap_china = { + NOT = { has_policy = china_isolationist } + custom_tooltip = { + text = china_offmap_decisions_enabled_trigger_war_tt #"Is at peace with §Y[From.GetTitledFirstName]§!" + NOT = { governor = { war_with = FROM } } + } + governor = { + show_scope_change = no + is_within_diplo_range = FROM + hidden_trigger = { NOT = { character = FROM } } #Governor cannot use boon/tributes decisions + } + } + custom_tooltip = { + text = china_offmap_boon_decisions_enabled_trigger_raiding_tt + FROM = { + NOR = { + has_character_modifier = china_raid_active + has_character_modifier = china_raid_grace_cd + } + } + } + hidden_trigger = { has_dlc = "Jade Dragon" } + conditional_tooltip = { + trigger = { FROM = { primary_title = { has_title_flag = rebel_general_title } } } + custom_tooltip = { + text = china_offmap_decisions_pretender_emperor_tt + always = no + } + } + conditional_tooltip = { + trigger = { FROM = { has_character_modifier = failed_invasion_of_china } } + custom_tooltip = { + text = china_offmap_decisions_failed_invasion_tt + always = no + } + } +} + +#Found in the 00_offmap_powers file... and the conditions for the force open china decision +china_offmap_hostile_decisions_enabled_trigger = { + offmap_china = { + custom_tooltip = { + text = china_offmap_decisions_enabled_trigger_war_tt #"Is at peace with §Y[From.GetTitledFirstName]§!" + NOT = { governor = { war_with = FROM } } + } + governor = { + show_scope_change = no + is_within_diplo_range = FROM + hidden_trigger = { NOT = { character = FROM } } #Governor cannot use boon/tributes decisions + } + offmap_ruler = { + NOT = { dynasty = FROM } + } + } + hidden_trigger = { has_dlc = "Jade Dragon" } +} + +#Used with Sending Tribute characters to China... +local_third_party_score_low_trigger = { + NOT = { check_variable = { which = local_third_party_score value = 91 } } +} +local_third_party_score_medium_trigger = { + check_variable = { which = local_third_party_score value = 91 } + NOT = { check_variable = { which = local_third_party_score value = 141 } } +} +local_third_party_score_great_trigger = { + check_variable = { which = local_third_party_score value = 141 } +} + +# For checking the Chinese Emperor's likes & dislikes +is_liked_by_China_trigger = { + liked_by_offmap = { + type = offmap_china + } + NOT = { + disliked_by_offmap = { + type = offmap_china + } + } + offmap_china = { + show_scope_change = no + custom_tooltip = { text = emperor_likes_THIS_tt } + } +} + +is_disliked_by_China_trigger = { + disliked_by_offmap = { + type = offmap_china + } + NOT = { + liked_by_offmap = { + type = offmap_china + } + } + offmap_china = { + show_scope_change = no + custom_tooltip = { text = emperor_dislikes_THIS_tt } + } +} + +is_liked_and_disliked_by_China = { + disliked_by_offmap = { + type = offmap_china + } + liked_by_offmap = { + type = offmap_china + } + offmap_china = { + show_scope_change = no + custom_tooltip = { text = emperor_has_ambiguous_feelings_of_THIS_tt } + } +} + +#Used in the invasion script... +valid_offmap_china_target = { + NOT = { character = ROOT } + NOT = { has_character_modifier = peace_deal_with_china } + NOT = { has_character_flag = defeated_china } + NOT = { is_tributary = { suzerain = ROOT } } + in_revolt = no + is_within_diplo_range = ROOT + is_landed = yes + higher_tier_than = BARON + NOT = { primary_title = { has_title_flag = rebel_general_title } } #uses special cb to target + NOT = { offmap_china = { offmap_ruler = { dynasty = PREVPREV } } } +} + +valid_offmap_china_target_location = { + OR = { + any_realm_province = { region = custom_chinese_invasion_target_region } + any_neighbor_independent_ruler = { + has_landed_title = e_china_west_governor + } + } +} + +valid_offmap_china_target_location_tributary_chain = { + OR = { + #any_realm_province = { region = custom_chinese_invasion_target_region } + any_neighbor_independent_ruler = { + has_landed_title = e_china_west_governor + } + any_neighbor_independent_ruler = { + is_tributary = yes + suzerain = { + has_landed_title = e_china_west_governor + } + } + } +} + +# JADE DRAGON +# EMPEROR LIKES & DISLIKES +likes_concubines = { + context = concubine # Not a trigger, but used by the 'liked_by_offmap' & 'disliked_by_offmap' triggers +} +likes_eunuchs = { + context = eunuch # Not a trigger, but used by the 'liked_by_offmap' & 'disliked_by_offmap' triggers + trait = eunuch +} +likes_wealth = { + context = wealth # Not a trigger, but used by the 'liked_by_offmap' & 'disliked_by_offmap' triggers +} +likes_tributaries = { + context = tributary # Not a trigger, but used by the 'liked_by_offmap' & 'disliked_by_offmap' triggers +} +likes_indians = { + culture_group = indo_aryan_group +} +likes_dravidians = { + culture_group = dravidian_group +} +likes_tibetans = { + culture_group = tibetan_group +} +likes_germanics = { + OR = { + culture_group = north_germanic + culture_group = central_germanic + culture_group = west_germanic + } +} +likes_latino_iberians = { + OR = { + culture_group = latin + culture_group = iberian + } +} +likes_byzantines = { + culture_group = byzantine +} +likes_celts = { + culture_group = celtic +} +likes_finno_ugrics = { + OR = { + culture_group = finno_ugric + culture_group = magyar + } +} +likes_altaics = { + culture_group = altaic +} +likes_balto_slavics = { + OR = { + culture_group = baltic + culture_group = east_slavic + culture_group = west_slavic + culture_group = south_slavic + } +} +likes_arabs = { + culture_group = arabic +} +likes_iranians = { + culture_group = iranian +} +likes_africans = { + OR = { + culture_group = west_african + culture_group = east_african + } +} +likes_mesoamericans = { + culture_group = mesoamerican +} +likes_muslims = { + religion_group = muslim +} +likes_christians = { + religion_group = christian +} +likes_jews = { + religion_group = jewish_group +} +likes_mazdans = { + religion_group = zoroastrian_group +} +likes_zoroastrians = { + religion = zoroastrian +} +likes_mazdakis = { + religion = mazdaki +} +likes_manicheans = { + religion = manichean +} +likes_khurmaztans = { + religion = khurmazta +} +likes_buddhists = { + religion = buddhist +} +likes_hindus = { + religion = hindu +} +likes_jains = { + religion = jain +} +likes_tengris = { + OR = { + religion = tengri_pagan + religion = tengri_pagan_reformed + } +} +likes_zunists = { + OR = { + religion = zun_pagan + religion = zun_pagan_reformed + } +} +likes_bon = { + religion = bon +} + +is_blood_relative_of_root_trigger = { + OR = { + is_ancestor_of = ROOT + is_descendant_of = ROOT + sibling = ROOT + is_cousin_of = ROOT + is_aunt_uncle_of = ROOT + is_nibling_of = ROOT + dynasty = ROOT + } +} + +silk_road_trade_post_trigger = { + custom_tooltip = { + text = silk_road_province_desc + hidden_tooltip = { + OR = { + province_id = 1491 + province_id = 1498 + province_id = 1478 + province_id = 1359 + province_id = 1365 + province_id = 1448 + province_id = 1440 + province_id = 1439 + province_id = 678 + province_id = 764 + province_id = 802 + province_id = 596 + province_id = 667 + province_id = 693 + province_id = 649 + province_id = 646 + province_id = 641 + province_id = 630 + province_id = 1180 + province_id = 1297 + province_id = 1127 + province_id = 1220 + province_id = 1114 + province_id = 1221 + province_id = 1446 + province_id = 868 + province_id = 719 + province_id = 1338 + province_id = 1369 + province_id = 858 + province_id = 903 + province_id = 1185 + province_id = 1129 + province_id = 1318 + province_id = 1297 + province_id = 1163 + province_id = 1154 + province_id = 1151 + province_id = 1481 + province_id = 1115 + province_id = 1288 + province_id = 796 + province_id = 1362 + province_id = 728 + province_id = 774 + province_id = 620 + province_id = 622 + province_id = 775 + province_id = 775 + province_id = 633 + province_id = 664 + province_id = 644 + } + } + } +} + +is_any_kinslayer_trigger = { + OR = { + trait = kinslayer + trait = familial_kinslayer + trait = dynastic_kinslayer + } +} + +has_unsafe_religion = { + NOT = { is_nomadic = yes } + OR = { + AND = { + NOT = { has_dlc = "The Sword of Islam" } + OR = { + religion = sunni + religion = zikri + religion = yazidi + religion = shiite + religion = druze + religion = hurufi + religion = ibadi + religion = kharijite + } + } + AND = { + NOT = { has_dlc = "Sons of Abraham" } + OR = { + religion = jewish + religion = samaritan + religion = karaite + } + } + AND = { + NOT = { has_dlc = "The Old Gods" } + OR = { + religion = zoroastrian + religion = mazdaki + religion = manichean + religion = khurmazta + religion = bon + religion = norse_pagan + religion = norse_pagan_reformed + religion = baltic_pagan + religion = baltic_pagan_reformed + religion = finnish_pagan + religion = finnish_pagan_reformed + religion = slavic_pagan + religion = slavic_pagan_reformed + religion = tengri_pagan + religion = tengri_pagan_reformed + religion = west_african_pagan + religion = west_african_pagan_reformed + religion = zun_pagan + religion = zun_pagan_reformed + religion = hellenic_pagan + religion = pagan + religion = aztec + religion = aztec_reformed + } + } + AND = { + NOT = { has_dlc = "Rajas of India" } + OR = { + religion = hindu + religion = buddhist + religion = jain + } + } + AND = { + NOT = { has_dlc = "Jade Dragon" } + religion = taoist + } + } +} + +courtier_from_china_trigger = { + custom_tooltip = { + text = courtier_from_china_trigger_tt + has_character_flag = originated_from_chinese_court + } +} + +using_unimportant_cb = { + OR = { + using_cb = peasant_revolt + using_cb = heretic_revolt + using_cb = religious_revolt + using_cb = liberation_revolt + } +} + +death_in_china_trigger = { + OR = { + death_reason = death_went_to_china + death_reason = death_offmap + death_reason = death_went_back_to_china + death_reason = death_in_china_historic + } +} + +death_no_trace_trigger = { + OR = { + death_reason = death_missing + death_reason = death_vanished + } +} + +proselytize_convert_independent_trigger = { + owner = { + FROM = { NOT = { religion_group = pagan_group } } + independent = yes + NOT = { religion = FROM } + religion_group = pagan_group + OR = { + NOT = { religion = aztec } + year = 1350 + } + is_reformed_religion = no + capital_scope = { + province = ROOT + } + controls_religion = no + FROM = { + higher_tier_than = COUNT + OR = { + independent = yes + higher_tier_than = DUKE + } + } + NOT = { + has_opinion_modifier = { who = FROM modifier = opinion_sent_preacher } + } + is_within_diplo_range = FROM + } +} + +is_toddler_age_trigger = { + age = 0 + NOT = { age = 4 } +} + +is_young_child_age_trigger = { + age = 4 + NOT = { age = 9 } +} + +is_child_age_trigger = { + age = 9 + NOT = { age = 12 } +} + +is_adolescent_age_trigger = { + age = 12 + NOT = { age = 17 } +} + +is_teenager_age_trigger = { + age = 13 + NOT = { age = 20 } +} + +is_grown_up_age_trigger = { + age = 20 +} + +is_senior_age_trigger = { + age = 50 +} + +# Hardcoded trigger for the Execute Imprisoned interaction. Used for the description warning you of kinslaying +# Root - The executioner +# event_target:kinslayer_target - The person being executed +will_add_kinslayer = { + NOT = { religion_group = muslim } + OR = { + AND = { + NOT = { trait = kinslayer } + OR = { + is_ancestor_of = event_target:kinslayer_target + is_descendant_of = event_target:kinslayer_target + sibling = event_target:kinslayer_target + } + } + AND = { + NOR = { + trait = kinslayer + trait = familial_kinslayer + } + OR = { + is_cousin_of = event_target:kinslayer_target + is_aunt_uncle_of = event_target:kinslayer_target + is_nibling_of = event_target:kinslayer_target + } + } + AND = { + NOR = { + trait = kinslayer + trait = familial_kinslayer + trait = dynastic_kinslayer + } + is_lowborn = no + dynasty = event_target:kinslayer_target + } + } +} + +# Hardcoded trigger for the Assassinate interaction. Used for triggering whether it can be used at all +# Root - The person being assassinated +# From - The person doing the assassination +assassination_interaction_trigger = { + conditional_tooltip = { + trigger = { + multiplayer = yes + } + custom_tooltip = { + text = MP_GAME_RULE_ALLOWED + OR = { + ai = yes + NOT = { + has_game_rule = { + name = multiplayer_assassinations + value = no_players + } + } + } + OR = { + NOT = { + has_game_rule = { + name = multiplayer_assassinations + value = no_players_or_relatives + } + } + AND = { + ai = yes + NOT = { + any_close_relative = { + ai = no + NOT = { character = FROM } + } + } + NOT = { + any_spouse = { + ai = no + NOT = { character = FROM } + } + } + NOT = { + liege = { + ai = no + dynasty = ROOT + NOT = { character = FROM } + } + is_heir = yes + } + } + } + } + } +} + +#checks whether ROOT has one of the following opinion modifiers with the currently scoped character +root_has_terrible_opinion_modifier_of_this_trigger = { + OR = { + reverse_has_opinion_modifier = { who = ROOT modifier = opinion_hate } + reverse_has_opinion_modifier = { who = ROOT modifier = opinion_tortured_me } + reverse_has_opinion_modifier = { who = ROOT modifier = opinion_mutilated_me } + reverse_has_opinion_modifier = { who = ROOT modifier = opinion_imprisoned } + } +} + +#for MNM.9000 chain +the_hunt_for_an_artifact_has_made_enough_progress_trigger = { + OR = { + AND = { + event_target:relic_ruler = { check_variable = { which = relic_score value = 8 } } #15 } } old value + event_target:relic_ruler = { has_character_modifier = relic_rumor_minor } + } + AND = { + event_target:relic_ruler = { check_variable = { which = relic_score value = 14 } } #25 } } old value + event_target:relic_ruler = { has_character_modifier = relic_rumor_medium } + } + AND = { + event_target:relic_ruler = { check_variable = { which = relic_score value = 20 } } #40 } } old value + event_target:relic_ruler = { has_character_modifier = relic_rumor_major } + } + } +} \ No newline at end of file diff --git a/AncientReligions/common/scripted_triggers/ACR_scripted_triggers.txt b/AncientReligions/common/scripted_triggers/ACR_scripted_triggers.txt index 86f5327c..87f1f22e 100644 --- a/AncientReligions/common/scripted_triggers/ACR_scripted_triggers.txt +++ b/AncientReligions/common/scripted_triggers/ACR_scripted_triggers.txt @@ -133,6 +133,9 @@ has_character_was_religion_flag_trigger = { has_character_flag = character_was_zoroastrian has_character_flag = character_was_mazdaki has_character_flag = character_was_manichean + has_character_flag = character_was_khurmazta + has_character_flag = character_was_bon + has_character_flag = character_was_taoist has_character_flag = character_was_hindu has_character_flag = character_was_buddhist has_character_flag = character_was_jain @@ -163,7 +166,7 @@ has_character_was_religion_flag_trigger = { } } -religion_openly_celtic_or_reformed_trigger = { +religion_openly_in_celtic_subgroup_trigger = { custom_tooltip = { text = religion_openly_celtic_or_reformed_tooltip hidden_trigger = { @@ -200,7 +203,7 @@ religion_openly_in_egyptian_subgroup_trigger = { } } -religion_secretly_celtic_pagan_or_reformed_trigger = { +religion_secretly_in_celtic_subgroup_trigger = { custom_tooltip = { text = religion_secretly_celtic_or_reformed_tooltip hidden_trigger = { @@ -293,15 +296,24 @@ is_depopulated_trigger = { #Society triggers has_unseelie_prerequisites = { has_common_devilworship_prerequisites = yes - religion_openly_celtic_or_reformed_trigger = yes + OR = { + religion_openly_in_celtic_subgroup_trigger = yes + religion_secretly_in_celtic_subgroup_trigger = yes + } } has_coven_prerequisites = { has_common_devilworship_prerequisites = yes - religion_openly_in_hellenic_subgroup_trigger = yes + OR = { + religion_openly_in_hellenic_subgroup_trigger = yes + religion_secretly_in_hellenic_subgroup_trigger = yes + } } has_sand_snakes_prerequisites = { has_common_devilworship_prerequisites = yes - religion_openly_in_egyptian_subgroup_trigger = yes + OR = { + religion_openly_in_egyptian_subgroup_trigger = yes + religion_secretly_in_egyptian_subgroup_trigger = yes + } } \ No newline at end of file diff --git a/AncientReligions/common/societies/00_societies.txt b/AncientReligions/common/societies/00_societies.txt index 8d4aebbc..1de1164f 100644 --- a/AncientReligions/common/societies/00_societies.txt +++ b/AncientReligions/common/societies/00_societies.txt @@ -61,6 +61,7 @@ monastic_order_benedictine = { religion = cathar } } + society_member_of = monastic_order_benedictine } } @@ -87,6 +88,7 @@ monastic_order_benedictine = { monthly_character_piety = 0.05 fertility = -0.15 } + custom_tooltip = monastic_order_education_power_tt } society_rank = { @@ -121,7 +123,7 @@ monastic_order_benedictine = { } } - society_rank = { #todo add counselling power + society_rank = { level = 4 limit = 5 startup_limit = 1 @@ -359,7 +361,10 @@ monastic_order_dominican = { } show_society = { - religion = catholic + OR = { + religion = catholic + society_member_of = monastic_order_dominican + } } potential = { religion = catholic } @@ -372,6 +377,7 @@ monastic_order_dominican = { monthly_character_piety = 0.05 fertility = -0.15 } + custom_tooltip = monastic_order_education_power_tt } society_rank = { @@ -387,7 +393,6 @@ monastic_order_dominican = { monastic_orders_go_celibate #Power: toggle celibacy monastic_orders_stop_celibate monastic_orders_spiritual_guidance - #todo? witch hunting bonus } } @@ -407,7 +412,7 @@ monastic_order_dominican = { } } - society_rank = { #todo add counselling power + society_rank = { level = 4 limit = 5 startup_limit = 1 @@ -420,7 +425,6 @@ monastic_order_dominican = { decisions = { monastic_order_convert_county } - #Todo Power: faster religious conversion } monthly_currency_gain = { @@ -667,6 +671,7 @@ monastic_order_orthodox = { religion = paulician } } + society_member_of = monastic_order_orthodox } } @@ -693,6 +698,7 @@ monastic_order_orthodox = { monthly_character_piety = 0.05 fertility = -0.15 } + custom_tooltip = monastic_order_education_power_tt } society_rank = { @@ -727,7 +733,7 @@ monastic_order_orthodox = { } } - society_rank = { #todo add counselling power + society_rank = { level = 4 limit = 5 startup_limit = 1 @@ -976,6 +982,7 @@ monastic_order_nestorian = { is_heretic = no religion = messalian } + society_member_of = monastic_order_nestorian } } @@ -997,6 +1004,7 @@ monastic_order_nestorian = { monthly_character_piety = 0.05 fertility = -0.15 } + custom_tooltip = monastic_order_education_power_tt } society_rank = { @@ -1031,7 +1039,7 @@ monastic_order_nestorian = { } } - society_rank = { #todo add counselling power + society_rank = { level = 4 limit = 5 startup_limit = 1 @@ -1280,6 +1288,7 @@ monastic_order_monophysite = { is_heretic = no religion = monophysite } + society_member_of = monastic_order_monophysite } } @@ -1301,6 +1310,7 @@ monastic_order_monophysite = { monthly_character_piety = 0.05 fertility = -0.15 } + custom_tooltip = monastic_order_education_power_tt } society_rank = { @@ -1335,7 +1345,7 @@ monastic_order_monophysite = { } } - society_rank = { #todo add counselling power + society_rank = { level = 4 limit = 5 startup_limit = 1 @@ -1499,7 +1509,10 @@ monastic_order_hindu = { } show_society = { - religion = hindu + OR = { + religion = hindu + society_member_of = monastic_order_hindu + } } potential = { religion = hindu } @@ -1512,6 +1525,7 @@ monastic_order_hindu = { monthly_character_piety = 0.05 fertility = -0.15 } + custom_tooltip = monastic_order_education_power_tt } society_rank = { @@ -1546,7 +1560,7 @@ monastic_order_hindu = { } } - society_rank = { #todo add counselling power + society_rank = { level = 4 limit = 5 startup_limit = 1 @@ -1748,7 +1762,10 @@ monastic_order_buddhist = { } show_society = { - religion = buddhist + OR = { + religion = buddhist + society_member_of = monastic_order_buddhist + } } potential = { religion = buddhist } @@ -1761,6 +1778,7 @@ monastic_order_buddhist = { monthly_character_piety = 0.05 fertility = -0.15 } + custom_tooltip = dharmic_good_trait_power_tt } society_rank = { @@ -1772,7 +1790,6 @@ monastic_order_buddhist = { diplomacy = 1 fertility = -0.15 } - custom_tooltip = dharmic_good_trait_power_tt decisions = { monastic_orders_go_celibate #Power: toggle celibacy monastic_orders_stop_celibate @@ -1796,7 +1813,7 @@ monastic_order_buddhist = { } } - society_rank = { #todo add counselling power + society_rank = { level = 4 limit = 5 startup_limit = 1 @@ -1998,7 +2015,10 @@ monastic_order_jain = { } show_society = { - religion = jain + OR = { + religion = jain + society_member_of = monastic_order_jain + } } potential = { religion = jain } @@ -2011,6 +2031,7 @@ monastic_order_jain = { monthly_character_piety = 0.05 fertility = -0.15 } + custom_tooltip = dharmic_good_trait_power_tt } society_rank = { @@ -2022,7 +2043,6 @@ monastic_order_jain = { learning = 1 fertility = -0.15 } - custom_tooltip = dharmic_good_trait_power_tt decisions = { monastic_orders_go_celibate #Power: toggle celibacy monastic_orders_stop_celibate @@ -2046,7 +2066,7 @@ monastic_order_jain = { } } - society_rank = { #todo add counselling power + society_rank = { level = 4 limit = 5 startup_limit = 1 @@ -2265,6 +2285,7 @@ hermetics = { } religion = hellenic_pagan religion = promethean_pagan + religion = taoist } NOR = { is_nomadic = yes @@ -2286,16 +2307,13 @@ hermetics = { religion = zun_pagan religion = zun_pagan_reformed religion = hellenic_pagan + religion = taoist + society_member_of = hermetics } } potential = { - NOR = { - is_nomadic = yes - is_tribal = yes - } - age = 16 - #If something else is added here, it could break apprenticeship. Create an event if they can get kicked out. title_hermetics_apprentice + #If something is added here, it could break apprenticeship. Create an event if they can get kicked out. title_hermetics_apprentice } society_rank = { @@ -2511,6 +2529,7 @@ hermetics = { religion = zun_pagan religion = zun_pagan_reformed religion = hellenic_pagan + religion = taoist } } } @@ -2544,7 +2563,28 @@ the_assassins = { } } } - has_assassins_prerequisites = yes + age = 16 + OR = { + true_religion = shiite + religion_group = muslim + AND = { + ai = no + NOT = { trait = zealous } + any_playable_ruler = { + religion = shiite + NOT = { + distance_from_realm = { value = 300 who = ROOT } + } + } + } + } + OR = { + is_female = no + has_game_rule = { + name = gender + value = all + } + } hidden_trigger = { NOT = { has_character_flag = society_join_block } } @@ -2554,6 +2594,17 @@ the_assassins = { OR = { religion_group = muslim secret_religion = shiite + AND = { + ai = no + NOT = { trait = zealous } + any_playable_ruler = { + religion = shiite + NOT = { + distance_from_realm = { value = 300 who = ROOT } + } + } + } + society_member_of = the_assassins } age = 16 OR = { @@ -2586,6 +2637,7 @@ the_assassins = { murder_plot_power_modifier = 0.1 # increased plotpower } decisions = { + decision_abduct assassins_borrow_money assassins_donate assassins_drug_effect @@ -2906,6 +2958,7 @@ the_satanists = { limit = 100 startup_limit = 10 decisions = { + decision_abduct prisoner_dark_sacrifice #Available Decision: Sacrifice Prisoner #Over time, lose virtues, gain vices. A Soul Corruption-effect is on a yearly pulse (with a chance to do nothing) } @@ -3241,6 +3294,7 @@ the_trollcrafters = { limit = 100 startup_limit = 10 decisions = { + decision_abduct prisoner_dark_sacrifice #Available Decision: Sacrifice Prisoner #Over time, lose virtues, gain vices. A Soul Corruption-effect is on a yearly pulse (with a chance to do nothing) } @@ -3577,6 +3631,7 @@ the_cult_of_kali = { limit = 100 startup_limit = 10 decisions = { + decision_abduct prisoner_dark_sacrifice #Available Decision: Sacrifice Prisoner #Over time, lose virtues, gain vices. A Soul Corruption-effect is on a yearly pulse (with a chance to do nothing) } @@ -3904,7 +3959,7 @@ the_cold_ones = { religion = finnish_pagan_reformed secret_religion = finnish_pagan secret_religion = finnish_pagan_reformed - society_member_of = the_cold_ones + society_member_of = the_cold_ones } } @@ -3913,6 +3968,7 @@ the_cold_ones = { limit = 100 startup_limit = 10 decisions = { + decision_abduct prisoner_dark_sacrifice #Available Decision: Sacrifice Prisoner #Over time, lose virtues, gain vices. A Soul Corruption-effect is on a yearly pulse (with a chance to do nothing) } @@ -4238,6 +4294,7 @@ the_plaguebringers = { limit = 100 startup_limit = 10 decisions = { + decision_abduct prisoner_dark_sacrifice #Available Decision: Sacrifice Prisoner #Over time, lose virtues, gain vices. A Soul Corruption-effect is on a yearly pulse (with a chance to do nothing) } @@ -4537,10 +4594,8 @@ secret_religious_society_template = { } show_society = { - OR = { - any_society_member = { society_member_of = FROM } - secret_religion = FROM - } + any_society_member = { society_member_of = FROM } + secret_religion = FROM } potential = { @@ -4550,7 +4605,7 @@ secret_religious_society_template = { society_rank = { level = 1 - limit = 200 + limit = 50 startup_limit = 0 decisions = { secret_religions_induct_child @@ -4560,7 +4615,7 @@ secret_religious_society_template = { society_rank = { level = 2 - limit = 100 + limit = 30 startup_limit = 0 modifier = { is_visible = { @@ -4578,7 +4633,7 @@ secret_religious_society_template = { society_rank = { level = 3 - limit = 50 + limit = 10 startup_limit = 0 modifier = { is_visible = { @@ -4596,7 +4651,7 @@ secret_religious_society_template = { society_rank = { level = 4 - limit = 20 + limit = 1 startup_limit = 0 modifier = { diplomacy = 3 diff --git a/AncientReligions/common/societies/ACR_secret_societies.txt b/AncientReligions/common/societies/ACR_secret_societies.txt index 9e21c730..1a5e4269 100644 --- a/AncientReligions/common/societies/ACR_secret_societies.txt +++ b/AncientReligions/common/societies/ACR_secret_societies.txt @@ -53,7 +53,8 @@ unseelie_petitioners = { } age = 16 OR = { - religion_openly_celtic_or_reformed_trigger = yes + religion_openly_in_celtic_subgroup_trigger = yes + religion_secretly_in_celtic_subgroup_trigger = yes society_member_of = unseelie_petitioners } } @@ -366,6 +367,7 @@ the_coven = { age = 16 OR = { religion_openly_in_hellenic_subgroup_trigger = yes + religion_secretly_in_hellenic_subgroup_trigger = yes society_member_of = the_coven } } @@ -676,7 +678,11 @@ the_sand_snakes = { } } age = 16 - religion_openly_in_egyptian_subgroup_trigger = yes + OR = { + religion_openly_in_egyptian_subgroup_trigger = yes + religion_secretly_in_egyptian_subgroup_trigger = yes + society_member_of = the_sand_snakes + } } potential = { } #no rules @@ -933,4 +939,262 @@ the_sand_snakes = { } ## Other Secret Societies ## -#the_claws_of_shezmu \ No newline at end of file +#the_claws_of_shezmu + +mysteries_dionysus = { + primary_attribute = diplomacy + is_secret = yes + criminal = no + devil_worshipper = no + opinion_to_other_members = +5 + opinion_to_pretenders = -10 #Pretenders is the opinion you have of people perceived/discovered to be in your society. + opinion_to_perceived_members = 0 #Perceived is the opinion you have of people perceived/discovered to be of a society you're not part of + opinion_per_rank_above = +10 + sound = secret_cults_interface # placeholder + society_ranks_gfx = secret_ranks # placeholder + + active = { + has_dlc = "The Old Gods" + } + + indestructible = yes + + can_join_society = { + AND = { + ai = no + has_global_flag = ancrel_debug + } + hidden_trigger = { + NAND = { + ai = yes + is_society_rank_full = { + society = mysteries_dionysus + rank = 1 + } + } + } + has_dionysus_prerequisites = yes + hidden_trigger = { + NOT = { has_character_flag = society_join_block } + } + } + + show_society = { + age = 16 + true_religion_in_hellenic_subgroup_trigger = yes + has_global_flag = ancrel_debug + } + + potential = { } # no rules + + society_rank = { # initiate + level = 1 + limit = 100 + startup_limit = 10 + decisions = { + build_winery + } + } + + society_rank = { # hymnodidaskaloi/"hymn teacher" + level = 2 + limit = 11 + startup_limit = 3 + modifier = { + is_visible = { + OR = { + society_member_of = mysteries_dionysus + FROM = { is_society_discovered = yes } + } + } + diplomacy = 1 + } + decisions = { + hold_tristeria # secret rites + } + } + + society_rank = { # boukolos/cowherd + level = 3 + limit = 7 + startup_limit = 2 + modifier = { + is_visible = { + OR = { + society_member_of = mysteries_dionysus + FROM = { is_society_discovered = yes } + } + } + diplomacy = 2 + } + decisions = { + hold_dionysia # public rites + } + } + + society_rank = { # archiboukolos/"chief cowherd" + level = 4 + limit = 3 + startup_limit = 1 + modifier = { + is_visible = { + OR = { + society_member_of = mysteries_dionysus + FROM = { is_society_discovered = yes } + } + } + diplomacy = 3 + } + decisions = { + + } + } + + plots = { + + } + + ambitions = { + + } + + monthly_currency_gain = { + name = currency_name_mysteries_dionysus + + per_attribute = { + name = diplomacy + value = 1 + } + has_trait = { + trait = possessed + value = 5 + } + has_trait = { + trait = genius + value = 4 + } + has_trait = { + trait = quick + value = 3 + } + has_trait = { + trait = shrewd + value = 3 + } + has_trait = { + trait = hedonist + value = 3 + } + has_trait = { + trait = mystic + value = 3 + } + has_trait = { + trait = seducer + value = 3 + } + has_trait = { + trait = seductress + value = 3 + } + has_trait = { + trait = socializer + value = 3 + } + has_trait = { + trait = drunkard + value = 2 + } + has_trait = { + trait = lustful + value = 1 + } + has_trait = { + trait = gluttonous + value = 1 + } + has_trait = { + trait = arbitrary + value = 1 + } + society_rank = { + rank = 4 + value = 10 + } + } + + member_score_per_attribute = 3 + member_score_per_rank = 100 + + member_score = { + value = 10 + + modifier = { + trait = possessed + factor = 1.4 + } + modifier = { + trait = genius + factor = 1.3 + } + modifier = { + trait = quick + factor = 1.3 + } + modifier = { + trait = shrewd + factor = 1.3 + } + modifier = { + trait = hedonist + factor = 1.3 + } + modifier = { + trait = mystic + factor = 1.3 + } + modifier = { + trait = seducer + factor = 1.3 + } + modifier = { + trait = seductress + factor = 1.3 + } + modifier = { + trait = socializer + factor = 1.3 + } + modifier = { + trait = drunkard + factor = 1.2 + } + modifier = { + trait = lustful + factor = 1.1 + } + modifier = { + trait = gluttonous + factor = 1.1 + } + modifier = { + trait = arbitrary + factor = 1.1 + } + } + + startup_populate = { + trigger = { + ai = yes + controls_religion = no + has_dionysus_prerequisites = yes + age = 16 + is_in_society = no + NOT = { higher_tier_than = DUKE } + NOR = { + mercenary = yes + holy_order = yes + } + } + } +} diff --git a/AncientReligions/common/societies/ACR_societies.txt b/AncientReligions/common/societies/ACR_societies.txt index 3e6ff1b5..32ce8a4a 100644 --- a/AncientReligions/common/societies/ACR_societies.txt +++ b/AncientReligions/common/societies/ACR_societies.txt @@ -4,8 +4,6 @@ # vates -# dionyisan mysteries - # oracles of delphi # vestals diff --git a/AncientReligions/decisions/ACR_druidic_decisions.txt b/AncientReligions/decisions/ACR_druidic_decisions.txt index e69d7a3c..95607b82 100644 --- a/AncientReligions/decisions/ACR_druidic_decisions.txt +++ b/AncientReligions/decisions/ACR_druidic_decisions.txt @@ -554,7 +554,6 @@ decisions = { religion = celtic_pagan religion = celtic_pagan_reformed } - NOT = { has_character_modifier = new_druid_in_court } NOT = { has_character_flag = inviting_druid_over } primary_title = { higher_tier_than = BARON } } @@ -832,7 +831,6 @@ decisions = { random_courtier = { limit = { is_adult = yes - is_female = no trait = poet } give_minor_title = title_court_bard diff --git a/AncientReligions/decisions/ACR_hellenic_decisions.txt b/AncientReligions/decisions/ACR_hellenic_decisions.txt index cd43a1f0..a429fd8b 100644 --- a/AncientReligions/decisions/ACR_hellenic_decisions.txt +++ b/AncientReligions/decisions/ACR_hellenic_decisions.txt @@ -814,6 +814,79 @@ decisions = { } } } + + hold_tristeria = { # secret rites of dionysus + only_playable = yes + + potential = { + tier = COUNT + NOT = { has_character_modifier = ancrel_holding_tristeria } + society_rank = { + society = mysteries_dionysus + rank = 2 + } + } + + allow = { + society_currency >= 100 + } + + effect = { + change_society_currency = { + value = -100 + } + set_character_flag = ancrel_hodling_tristeria + } + + revoke_allowed = { + always = no + } + + ai_will_do = { + factor = 0 # TODO: proper ai weighting + } + } + + hold_dionysia = { # public rites of dionysus + only_playable = yes + is_high_prio = yes + + potential = { + tier = COUNT + + society_rank = { + society = mysteries_dionysus + rank = 3 + } + } + + allow = { + society_currency >= 500 + OR = { + AND = { + month = 3 + NOT = { month = 4 } + } + month = 12 + } + } + + effect = { + change_society_currency = { + value = -500 + scales_with_influence = yes + } + set_character_flag = ancrel_holding_dionysia + } + + revoke_allowed = { + always = no + } + + ai_will_do = { + factor = 0 # TODO: proper ai weighting + } + } } targetted_decisions = { diff --git a/AncientReligions/decisions/ACR_other_decisions.txt b/AncientReligions/decisions/ACR_other_decisions.txt index f964d4d2..6fe1c91b 100644 --- a/AncientReligions/decisions/ACR_other_decisions.txt +++ b/AncientReligions/decisions/ACR_other_decisions.txt @@ -1,999 +1,131 @@ decisions = { - - gone_pagan_zoroastrian = { + paganify_the_world = { is_high_prio = yes - potential = { - culture_group = iranian - has_regent = no - is_adult = yes - is_heretic = no - piety = 0 - NOT = { - has_character_flag = gone_pagan - religion_group = zoroastrian_group - religion = monophysite - religion = miaphysite - religion = pagan - OR = { - AND = { - religion_authority = 0.25 - NOT = { - religion = shiite - religion = druze - religion = hurufi - } - } - religion_authority = 0.15 - } - trait = zealous - trait = incapable - } + has_dlc = "The Old Gods" + ai = no + has_global_flag = ancrel NOT = { - AND = { - religion_group = pagan_group - is_reformed_religion = no - } - AND = { - religion_group = jewish_group - religion_authority = 0.15 - } - } - OR = { - has_game_rule = { - name = acr_ai_revival - value = on - } - ai = no + had_global_flag = { flag = ancrel days = 1 } # only on first day + has_global_flag = acr_paganify } } - - allow = { - war = no - custom_tooltip = { - text = gone_pagan_ctt - hidden_tooltip = { - OR = { - AND = { - any_demesne_province = { religion_group = zoroastrian_group } - NOT = { religion_authority = 0.20 } - } - NOT = { religion_authority = 0.10 } - AND = { - NOT = { religion_authority = 0.40 } - trait = lunatic - } - } + effect = { + k_papal_state = { + holder_scope = { + character_event = { id = ancrel.9001 } } } } - - effect = { - set_character_flag = gone_pagan - character_event = { id = GoPagan.100 } - } - revoke_allowed = { always = no } - ai_will_do = { - factor = 1 - modifier = { - factor = 0 - NOT = { has_character_flag = can_go_pagan } - } + factor = 0 } } - - gone_pagan_celtic_norse = { + + build_winery = { is_high_prio = yes - potential = { + has_global_flag = ancrel_debug OR = { - culture_group = celtic - culture_group = north_germanic - culture_group = west_germanic - culture_group = central_germanic - culture = frankish - culture = occitan - culture = norman - } - has_regent = no - is_adult = yes - is_heretic = no - piety = 0 - NOT = { - has_character_flag = gone_pagan - religion = monophysite - religion = miaphysite - religion = pagan - OR = { - AND = { - religion_authority = 0.25 - NOT = { - religion = shiite - religion = druze - religion = hurufi - } - } - religion_authority = 0.15 - } - trait = zealous - trait = incapable - } - NOT = { - AND = { - religion_group = pagan_group - is_reformed_religion = no - } - AND = { - religion_group = jewish_group - religion_authority = 0.15 - } - AND = { - religion = celtic_pagan_reformed - OR = { - culture_group = celtic - culture_group = west_germanic - culture = frankish - culture = occitan - } - } - AND = { - religion = norse_pagan_reformed - OR = { - culture_group = north_germanic - culture_group = west_germanic - culture_group = central_germanic - culture = norman - } - } + has_focus = carousing + trait = hedonist + trait = drunkard + society_member_of = mysteries_dionysus + society_member_of = shezmu_cult } - OR = { - has_game_rule = { - name = acr_ai_revival - value = on - } - ai = no + NOR = { + has_character_modifier = ancrel_winery + has_character_modifier = ancrel_oilworks } } - - allow = { - war = no - custom_tooltip = { - text = gone_pagan_ctt - hidden_tooltip = { - OR = { - AND = { - any_demesne_province = { - OR = { # Make sure only the culturally relevant religion lowers the MA cost - AND = { - religion = celtic_pagan - ROOT = { - OR = { - culture_group = celtic - culture_group = west_germanic - culture = frankish - culture = occitan - } - } - } - AND = { - religion = norse_pagan - ROOT = { - OR = { - culture_group = north_germanic - culture_group = west_germanic - culture_group = central_germanic - culture = norman - } - } - } - } - } - NOT = { religion_authority = 0.20 } - } - NOT = { religion_authority = 0.10 } - AND = { - NOT = { religion_authority = 0.40 } - trait = lunatic - } - } - } - } + allowed = { + wealth = 200 } - effect = { - set_character_flag = gone_pagan - character_event = { id = GoPagan.101 } - } - - revoke_allowed = { - always = no - } - - ai_will_do = { - factor = 1 - modifier = { - factor = 0 - NOT = { has_character_flag = can_go_pagan } - } - } - } - - gone_pagan_baltic_finnic = { - is_high_prio = yes - - potential = { - OR = { - culture_group = baltic - culture_group = finno_ugric - } - has_regent = no - is_adult = yes - is_heretic = no - piety = 0 - NOT = { - has_character_flag = gone_pagan - religion = monophysite - religion = miaphysite - religion = pagan - OR = { - AND = { - religion_authority = 0.25 - NOT = { - religion = shiite - religion = druze - religion = hurufi - } - } - religion_authority = 0.15 - } - trait = zealous - trait = incapable - } - NOT = { - AND = { - religion_group = pagan_group - is_reformed_religion = no - } - AND = { - religion_group = jewish_group - religion_authority = 0.15 - } - AND = { - religion = baltic_pagan_reformed - OR = { - culture_group = baltic - culture = ugricbaltic - } - } - AND = { - religion = finnish_pagan_reformed - culture_group = finno_ugric - } - } - OR = { - has_game_rule = { - name = acr_ai_revival - value = on - } - ai = no - } - } - - allow = { - war = no - custom_tooltip = { - text = gone_pagan_ctt - hidden_tooltip = { - OR = { - AND = { - any_demesne_province = { - OR = { - AND = { - religion = baltic_pagan - ROOT = { - OR = { - culture_group = baltic - culture = ugricbaltic - } - } - } - AND = { - religion = finnish_pagan - ROOT = { culture_group = finno_ugric } - } - } - } - NOT = { religion_authority = 0.20 } - } - NOT = { religion_authority = 0.10 } - AND = { - NOT = { religion_authority = 0.40 } - trait = lunatic - } - } + wealth = -200 + add_character_modifier = { name = ancrel_winery days = -1 } + if = { + limit = { + society_member_of = shezmu_cult } + add_society_currency_minor_effect = yes } } - - effect = { - set_character_flag = gone_pagan - character_event = { id = GoPagan.102 } - } - revoke_allowed = { always = no } - ai_will_do = { factor = 1 modifier = { - factor = 0 - NOT = { has_character_flag = can_go_pagan } - } - } - } - - gone_pagan_tengri = { - is_high_prio = yes - - potential = { - OR = { - culture_group = altaic - culture = hungarian + factor = 0.001 # slow it down + always = yes } - has_regent = no - is_adult = yes - is_heretic = no - piety = 0 - NOT = { - has_character_flag = gone_pagan - religion = tengri_pagan_reformed - religion = monophysite - religion = miaphysite - religion = pagan - OR = { - AND = { - religion_authority = 0.25 - NOT = { - religion = shiite - religion = druze - religion = hurufi - } - } - religion_authority = 0.15 - } - trait = zealous - trait = incapable - } - NOT = { - AND = { - religion_group = pagan_group - is_reformed_religion = no - } - AND = { - religion_group = jewish_group - religion_authority = 0.15 - } - } - OR = { - has_game_rule = { - name = acr_ai_revival - value = on - } - ai = no - } - } - - allow = { - war = no - custom_tooltip = { - text = gone_pagan_ctt - hidden_tooltip = { - OR = { - AND = { - any_demesne_province = { religion = tengri_pagan } - ROOT = { - OR = { - AND = { - culture_group = altaic - NOT = { culture = turkish } - } - culture = hungarian - } - } - NOT = { religion_authority = 0.20 } - } - NOT = { religion_authority = 0.10 } - AND = { - NOT = { religion_authority = 0.40 } - trait = lunatic - } - } - } - } - } - - effect = { - set_character_flag = gone_pagan - character_event = { id = GoPagan.103 } - } - - revoke_allowed = { - always = no - } - - ai_will_do = { - factor = 1 modifier = { factor = 0 - NOT = { has_character_flag = can_go_pagan } - } - } - } - - gone_pagan_slavic = { - is_high_prio = yes - - potential = { - OR = { - culture_group = east_slavic - culture_group = west_slavic - culture_group = south_slavic - } - has_regent = no - is_adult = yes - is_heretic = no - piety = 0 - NOT = { - has_character_flag = gone_pagan - religion = slavic_pagan_reformed - religion = monophysite - religion = miaphysite - religion = pagan - OR = { - AND = { - religion_authority = 0.25 - NOT = { - religion = shiite - religion = druze - religion = hurufi - } - } - religion_authority = 0.15 - } - trait = zealous - trait = incapable - } - NOT = { - AND = { - religion_group = pagan_group - is_reformed_religion = no - } - AND = { - religion_group = jewish_group - religion_authority = 0.15 + NOT = { + wealth = 400 } } - OR = { - has_game_rule = { - name = acr_ai_revival - value = on - } - ai = no - } - } - - allow = { - war = no - custom_tooltip = { - text = gone_pagan_ctt - hidden_tooltip = { - OR = { - AND = { - any_demesne_province = { religion = slavic_pagan } - NOT = { religion_authority = 0.20 } - } - NOT = { religion_authority = 0.10 } - AND = { - NOT = { religion_authority = 0.40 } - trait = lunatic - } - } - } + modifier = { + factor = 10000 + society_member_of = shezmu_cult } - } - - effect = { - set_character_flag = gone_pagan - character_event = { id = GoPagan.105 } - } - - revoke_allowed = { - always = no - } - - ai_will_do = { - factor = 1 modifier = { - factor = 0 - NOT = { has_character_flag = can_go_pagan } + factor = 10 + society_member_of = mysteries_dionysus } } } - gone_pagan_african = { + build_oilworks = { is_high_prio = yes - potential = { OR = { - culture_group = west_african - culture_group = east_african - } - has_regent = no - is_adult = yes - is_heretic = no - piety = 0 - NOT = { - has_character_flag = gone_pagan - religion = monophysite - religion = miaphysite - religion = pagan - OR = { - AND = { - religion_authority = 0.25 - NOT = { - religion = shiite - religion = druze - religion = hurufi - } - } - religion_authority = 0.15 - } - trait = zealous - trait = incapable - } - NOT = { - AND = { - religion_group = pagan_group - is_reformed_religion = no - } - AND = { - religion_group = jewish_group - religion_authority = 0.15 - } - AND = { - religion = west_african_pagan_reformed - culture_group = west_african - } + has_focus = seduction + trait = hedonist + trait = lustful + society_member_of = shezmu_cult } - OR = { - has_game_rule = { - name = acr_ai_revival - value = on - } - ai = no + NOR = { + has_character_modifier = ancrel_winery + has_character_modifier = ancrel_oilworks } } - - allow = { - war = no - custom_tooltip = { - text = gone_pagan_ctt - hidden_tooltip = { - OR = { - AND = { - any_demesne_province = { - OR = { - AND = { - religion = west_african_pagan - ROOT = { culture_group = west_african } - } - AND = { - religion = pagan - ROOT = { culture_group = east_african } - } - } - } - NOT = { religion_authority = 0.20 } - } - NOT = { religion_authority = 0.10 } - AND = { - NOT = { religion_authority = 0.40 } - trait = lunatic - } - } - } - } + allowed = { + wealth = 200 } - effect = { - set_character_flag = gone_pagan - character_event = { id = GoPagan.106 } - } - - revoke_allowed = { - always = no - } - - ai_will_do = { - factor = 1 - modifier = { - factor = 0 - NOT = { has_character_flag = can_go_pagan } - } - } - } - - gone_pagan_egyptian = { - is_high_prio = yes - - potential = { - culture = egyptian_arabic - has_regent = no - is_adult = yes - is_heretic = no - piety = 0 - NOT = { - has_character_flag = gone_pagan - religion = monophysite - religion = miaphysite - religion = pagan - OR = { - AND = { - religion_authority = 0.25 - NOT = { - religion = shiite - religion = druze - religion = hurufi - } - } - religion_authority = 0.15 - } - trait = zealous - trait = incapable - } - NOT = { - AND = { - religion_group = pagan_group - is_reformed_religion = no - } - AND = { - religion_group = jewish_group - religion_authority = 0.15 - } - } - OR = { - has_game_rule = { - name = acr_ai_revival - value = on - } - ai = no - } - } - - - allow = { - war = no - custom_tooltip = { - text = gone_pagan_ctt - hidden_tooltip = { - OR = { - AND = { - any_demesne_province = { religion = egyptian_pagan } - NOT = { religion_authority = 0.20 } - } - NOT = { religion_authority = 0.10 } - AND = { - NOT = { religion_authority = 0.40 } - trait = lunatic - } - } + wealth = -200 + add_character_modifier = { name = ancrel_oilworks days = -1 } + if = { + limit = { + society_member_of = shezmu_cult } + add_society_currency_minor_effect = yes } } - - effect = { - set_character_flag = gone_pagan - character_event = { id = GoPagan.107 } - } - revoke_allowed = { always = no } - ai_will_do = { factor = 1 modifier = { - factor = 0 - NOT = { has_character_flag = can_go_pagan } - } - } - } - - gone_pagan_judaic = { - is_high_prio = yes - - potential = { - culture_group = israelite - has_regent = no - is_adult = yes - is_heretic = no - piety = 0 - NOR = { - has_character_flag = gone_pagan - religion = monophysite - religion = miaphysite - religion = pagan - OR = { - AND = { - religion_authority = 0.25 - NOT = { - religion = shiite - religion = druze - religion = hurufi - } - } - religion_authority = 0.15 - } - trait = zealous - trait = incapable - } - NOR = { - AND = { - religion_group = pagan_group - is_reformed_religion = no - } - AND = { - religion_group = jewish_group - religion_authority = 0.10 - } + factor = 0.001 # slow it down + always = yes } - OR = { - has_game_rule = { - name = acr_ai_revival - value = on - } - ai = no - } - } - - allow = { - war = no - custom_tooltip = { - text = gone_pagan_ctt - hidden_tooltip = { - OR = { - AND = { - any_demesne_province = { religion_group = jewish_group } - NOT = { religion_authority = 0.20 } - } - NOT = { religion_authority = 0.10 } - AND = { - NOT = { religion_authority = 0.40 } - trait = lunatic - } - } - } - } - } - - effect = { - set_character_flag = gone_pagan - character_event = { id = GoPagan.108 } - } - - revoke_allowed = { - always = no - } - - ai_will_do = { - factor = 1 modifier = { factor = 0 - NOT = { has_character_flag = can_go_pagan } - } - } - } - - gone_pagan_hellenic = { - is_high_prio = yes - - potential = { - OR = { - culture = roman - culture = greek - culture = italian - culture = sicilian - culture = sicilian_greek - culture_group = byzantine - } - has_regent = no - is_adult = yes - is_heretic = no - piety = 0 - NOT = { - has_character_flag = gone_pagan - religion = monophysite - religion = miaphysite - religion = pagan - OR = { - AND = { - religion_authority = 0.25 - NOT = { - religion = shiite - religion = druze - religion = hurufi - } - } - religion_authority = 0.15 - } - trait = zealous - trait = incapable - } - NOT = { - AND = { - religion_group = pagan_group - is_reformed_religion = no - } - AND = { - religion_group = jewish_group - religion_authority = 0.10 - } - AND = { - religion = hellenic_pagan - OR = { - culture = roman - culture = italian - culture = sicilian - culture_group = byzantine - } - } - } - OR = { - has_game_rule = { - name = acr_ai_revival - value = on - } - ai = no - } - } - - allow = { - war = no - custom_tooltip = { - text = gone_pagan_ctt - hidden_tooltip = { - OR = { - AND = { - any_demesne_province = { religion = hellenic_pagan } - NOT = { religion_authority = 0.20 } - } - NOT = { religion_authority = 0.10 } - AND = { - NOT = { religion_authority = 0.40 } - trait = lunatic - } - } + NOT = { + wealth = 400 } } - } - - effect = { - set_character_flag = gone_pagan - character_event = { id = GoPagan.109 } - } - - revoke_allowed = { - always = no - } - - ai_will_do = { - factor = 1 modifier = { - factor = 0 - NOT = { has_character_flag = can_go_pagan } + factor = 10000 + society_member_of = shezmu_cult } } } - - paganify_the_world = { - is_high_prio = yes - potential = { - has_dlc = "The Old Gods" - ai = no - has_global_flag = ancrel - NOT = { - had_global_flag = { flag = ancrel days = 1 } # only on first day - has_global_flag = acr_paganify - } - } - effect = { - k_papal_state = { - holder_scope = { - character_event = { id = ancrel.9001 } - } - } - } - revoke_allowed = { - always = no - } - ai_will_do = { - factor = 0 - } - } -} - -title_decisions = { - # debugging decisions - make_prosperous = { - ai_target_filter = owned - filter = owned - - from_potential = { - has_global_flag = ancrel_debug - } - - potential = { - location = { - NOT = { has_province_modifier = prosperity_modifier_3 } - } - } - - allow = { } - - effect = { - location = { - if = { - limit = { - is_depopulated_trigger = yes - } - decrease_depopulation_effect = yes - } - if = { - limit = { - OR = { - is_prosperous_trigger = yes - is_depopulated_trigger = no - } - } - increase_prosperity_effect = yes - } - } - } - - ai_will_do = { - factor = 0 # debug only! - } - } - - depopulate = { - ai_target_filter = owned - filter = owned - - from_potential = { - has_global_flag = ancrel_debug - } - - potential = { - location = { - NOT = { - has_province_modifier = depopulated_3 - } - } - } - - allow = { } - - effect = { - location = { decrease_prosperity_effect = yes} - } - - ai_will_do = { - factor = 0 # debug only! - } - } } \ No newline at end of file diff --git a/AncientReligions/decisions/ACR_society_decisions.txt b/AncientReligions/decisions/ACR_society_decisions.txt index e56193ea..1ef48788 100644 --- a/AncientReligions/decisions/ACR_society_decisions.txt +++ b/AncientReligions/decisions/ACR_society_decisions.txt @@ -70,7 +70,7 @@ targeted_decisions = { } } allow = { - religion_openly_celtic_or_reformed_trigger = yes + religion_openly_in_celtic_subgroup_trigger = yes is_inaccessible_trigger = no custom_tooltip = { text = unseelie_recruit_block_tooltip @@ -865,6 +865,45 @@ title_decisions = { always = no } + ai_will_do = { + factor = 0 + } + } +} + +decisions = { + hold_tristeria = { # secret rites of dionysus + only_playable = yes + + potential = { + tier = COUNT + society_member_of = mysteries_dionysus + has_global_flag = ancrel_debug + } + + allow = { + wealth = 10 + custom_tooltip = { + text = not_already_holding_tristeria + hidden_tooltip = { + NOT = { + has_character_flag = ancrel_holding_tristeria + } + } + } + } + + effect = { + set_character_flag = ancrel_holding_tristeria + wealth = -10 + # fire starting event (sends invites) + # pre-fire emergency cleanup event + } + + revoke_allowed = { + always = no + } + ai_will_do = { factor = 0 } diff --git a/AncientReligions/decisions/conversion_decisions.txt b/AncientReligions/decisions/conversion_decisions.txt index d20fce4d..390965c6 100644 --- a/AncientReligions/decisions/conversion_decisions.txt +++ b/AncientReligions/decisions/conversion_decisions.txt @@ -252,6 +252,7 @@ targetted_decisions = { holy_order = no mercenary = no has_dlc = "Rajas of India" + NOT = { government = chinese_imperial_government } } allow = { prestige = 500 @@ -261,6 +262,15 @@ targetted_decisions = { capital_scope = { reverse_culture = ROOT } + hidden_tooltip = { + any_child = { + limit = { + is_ruler = no + liege = { character = ROOT } + } + culture = ROOT + } + } } revoke_allowed = { always = no @@ -379,6 +389,14 @@ targetted_decisions = { factor = 0 culture = nahuatl } + modifier = { + factor = 0 + has_landed_title = e_china_west_governor + } + modifier = { + factor = 0 + government = chinese_imperial_government + } } } @@ -404,9 +422,9 @@ targetted_decisions = { # The Indian religions can convert to each other anyway OR = { - NOT = { religion_group = indian_group } + NOT = { has_dharmic_religion_trigger = yes } capital_scope = { - NOT = { religion_group = indian_group } + NOT = { has_dharmic_religion_trigger = yes } } } @@ -627,6 +645,7 @@ targetted_decisions = { any_realm_province = { culture = swedish } + NOT = { government = chinese_imperial_government } } allow = { culture = norse @@ -719,6 +738,7 @@ targetted_decisions = { } } } + convert_to_norwegian = { only_playable = yes @@ -734,6 +754,7 @@ targetted_decisions = { any_realm_province = { culture = norwegian } + NOT = { government = chinese_imperial_government } } allow = { culture = norse @@ -842,6 +863,7 @@ targetted_decisions = { any_realm_province = { culture = danish } + NOT = { government = chinese_imperial_government } } allow = { culture = norse @@ -946,6 +968,7 @@ targetted_decisions = { capital_scope = { culture = norman } + NOT = { government = chinese_imperial_government } } allow = { culture = norse @@ -1139,7 +1162,7 @@ targetted_decisions = { potential = { ai = no is_playable = yes - religion_group = indian_group + has_dharmic_religion_trigger = yes NOT = { religion = hindu } is_theocracy = no } @@ -1194,7 +1217,7 @@ targetted_decisions = { potential = { ai = no is_playable = yes - religion_group = indian_group + has_dharmic_religion_trigger = yes NOT = { religion = buddhist } is_theocracy = no } @@ -1249,7 +1272,7 @@ targetted_decisions = { potential = { ai = no is_playable = yes - religion_group = indian_group + has_dharmic_religion_trigger = yes NOT = { religion = jain } is_theocracy = no } @@ -1305,7 +1328,7 @@ targetted_decisions = { is_playable = yes is_adult = yes is_theocracy = no - religion_group = indian_group + has_dharmic_religion_trigger = yes } allow = { NOT = { trait = zealous } @@ -1356,6 +1379,7 @@ targetted_decisions = { any_realm_province = { culture = frankish } + NOT = { government = chinese_imperial_government } } allow = { culture = old_frankish @@ -1445,6 +1469,7 @@ targetted_decisions = { any_realm_province = { culture = scottish } + NOT = { government = chinese_imperial_government } } allow = { culture = pictish @@ -1544,9 +1569,9 @@ targetted_decisions = { NOT = { culture = andalusian_arabic } + NOT = { government = chinese_imperial_government } } effect = { - culture = andalusian_arabic any_courtier = { limit = { culture = ROOT @@ -1555,6 +1580,7 @@ targetted_decisions = { } culture = andalusian_arabic } + culture = andalusian_arabic } revoke_allowed = { always = no @@ -1631,12 +1657,12 @@ targetted_decisions = { any_realm_province = { culture = castillan } + NOT = { government = chinese_imperial_government } } allow = { culture = visigothic } effect = { - culture = castillan any_courtier = { limit = { culture = ROOT @@ -1645,6 +1671,7 @@ targetted_decisions = { } culture = castillan } + culture = castillan } revoke_allowed = { always = no @@ -1721,12 +1748,12 @@ targetted_decisions = { any_realm_province = { culture = catalan } + NOT = { government = chinese_imperial_government } } allow = { culture = visigothic } effect = { - culture = catalan any_courtier = { limit = { culture = ROOT @@ -1735,6 +1762,7 @@ targetted_decisions = { } culture = catalan } + culture = catalan } revoke_allowed = { always = no @@ -1814,6 +1842,7 @@ targetted_decisions = { any_realm_province = { culture = portuguese } + NOT = { government = chinese_imperial_government } } allow = { OR = { @@ -1822,7 +1851,6 @@ targetted_decisions = { } } effect = { - culture = portuguese any_courtier = { limit = { culture = ROOT @@ -1831,6 +1859,7 @@ targetted_decisions = { } culture = portuguese } + culture = portuguese } revoke_allowed = { always = no @@ -1910,12 +1939,12 @@ targetted_decisions = { any_realm_province = { culture = dutch } + NOT = { government = chinese_imperial_government } } allow = { culture = ROOT } effect = { - culture = dutch any_courtier = { limit = { culture = ROOT @@ -1924,6 +1953,7 @@ targetted_decisions = { } culture = dutch } + culture = dutch } revoke_allowed = { always = no @@ -2005,6 +2035,7 @@ targetted_decisions = { NOT = { culture = lombard } } } + NOT = { government = chinese_imperial_government } } allow = { culture = lombard @@ -2016,7 +2047,6 @@ targetted_decisions = { } } effect = { - culture = italian any_courtier = { limit = { culture = ROOT @@ -2025,6 +2055,7 @@ targetted_decisions = { } culture = italian } + culture = italian } revoke_allowed = { always = no @@ -2109,12 +2140,12 @@ targetted_decisions = { any_realm_province = { culture = occitan } + NOT = { government = chinese_imperial_government } } allow = { culture = ROOT } effect = { - culture = occitan any_courtier = { limit = { culture = ROOT @@ -2123,6 +2154,7 @@ targetted_decisions = { } culture = occitan } + culture = occitan } revoke_allowed = { always = no @@ -2196,6 +2228,7 @@ targetted_decisions = { any_realm_province = { culture = russian } + NOT = { government = chinese_imperial_government } } allow = { culture_group = east_slavic @@ -2436,6 +2469,7 @@ decisions = { # Weak or unreformed religions are allowed to convert to the attacker's religion when under Holy War convert_to_attacker_religion = { only_playable = yes + ai_check_interval = 6 is_high_prio = yes @@ -2448,6 +2482,7 @@ decisions = { NOT = { religion_authority = 0.4 } } NOT = { religion_authority = 0.3 } + is_nomadic = yes } controls_religion = no @@ -2585,7 +2620,7 @@ decisions = { ai_will_do = { factor = 1 modifier = { - factor = 0.1 + factor = 0.5 } modifier = { factor = 0.05 @@ -2689,6 +2724,7 @@ decisions = { custom_tooltip = { text = renounce_iconoclasm_muslim_opinion_tooltip hidden_tooltip = { + generate_tooltip = no any_independent_ruler = { any_realm_lord = { limit = { religion_group = muslim } diff --git a/AncientReligions/decisions/mnm_secret_religious_societies_decisions.txt b/AncientReligions/decisions/mnm_secret_religious_societies_decisions.txt index b466d6d5..766096fa 100644 --- a/AncientReligions/decisions/mnm_secret_religious_societies_decisions.txt +++ b/AncientReligions/decisions/mnm_secret_religious_societies_decisions.txt @@ -361,6 +361,27 @@ society_decisions = { } } + AND = { + has_province_modifier = secret_khurmazta_community + ROOT = { + society_member_of = secret_religious_society_khurmazta + } + } + + AND = { + has_province_modifier = secret_bon_community + ROOT = { + society_member_of = secret_religious_society_bon + } + } + + AND = { + has_province_modifier = secret_taoist_community + ROOT = { + society_member_of = secret_religious_society_taoist + } + } + AND = { has_province_modifier = secret_hindu_community ROOT = { @@ -879,6 +900,39 @@ society_decisions = { } } } + secret_religious_society_khurmazta = { + PREV = { + any_demesne_province = { + limit = { + has_province_modifier = secret_khurmazta_community + } + religion = khurmazta + remove_province_modifier = secret_khurmazta_community + } + } + } + secret_religious_society_bon = { + PREV = { + any_demesne_province = { + limit = { + has_province_modifier = secret_bon_community + } + religion = bon + remove_province_modifier = secret_bon_community + } + } + } + secret_religious_society_taoist = { + PREV = { + any_demesne_province = { + limit = { + has_province_modifier = secret_taoist_community + } + religion = taoist + remove_province_modifier = secret_taoist_community + } + } + } secret_religious_society_hindu = { PREV = { any_demesne_province = { @@ -1609,12 +1663,12 @@ targeted_decisions = { ai_will_do = { factor = 1 modifier = { - FROM = { has_quest = quest_secret_religious_soceities_induct_ruler } + FROM = { has_quest = quest_secret_religious_societies_induct_ruler } is_quest_target_of = FROM factor = 100 } modifier = { - FROM = { has_quest = quest_secret_religious_soceities_induct_ruler } + FROM = { has_quest = quest_secret_religious_societies_induct_ruler } NOT = { is_quest_target_of = FROM } @@ -1661,15 +1715,41 @@ targeted_decisions = { from_potential = { society_member_of = secret_religious_cult - } - - potential = { - same_realm = FROM is_adult = yes prisoner = no NOT = { trait = incapable } NOT = { is_inaccessible_trigger = yes } - FROM = { secret_religion = PREV } + OR = { # Performance saving measures + has_society_currency_tiny_trigger = yes + ai = no + } + OR = { + ai = no + is_society_grandmaster = yes + num_of_society_members < 90 + } + } + + potential = { + OR = { + FROM = { ai = no } #Either a player is using the decision, OR the target is interested in the AI's secret religious cult + ai = yes # Or the target is an AI... + AND = { + ai = no + is_in_society = no + interested_in_society_of_character = FROM + } + } + + FROM = { + OR = { + ai = yes + same_realm = PREV + } + secret_religion = PREV + } + + is_adult = yes NOT = { character = FROM society = { @@ -1704,10 +1784,10 @@ targeted_decisions = { } allow = { - NOT = { - has_character_modifier = accused_apostate - } FROM = { + NOT = { + has_character_modifier = accused_apostate + } prisoner = no is_inaccessible_trigger = no NOT = { trait = incapable } @@ -1808,6 +1888,19 @@ targeted_decisions = { from_potential = { society_member_of = secret_religious_cult society_rank >= 2 + is_adult = yes + prisoner = no + NOT = { trait = incapable } + NOT = { is_inaccessible_trigger = yes } + OR = { # Performance saving measure + has_society_currency_tiny_trigger = yes + ai = no + } + OR = { + ai = no + is_society_grandmaster = yes + num_of_society_members < 90 + } } potential = { @@ -1834,10 +1927,10 @@ targeted_decisions = { } allow = { - NOT = { - has_character_modifier = accused_apostate - } FROM = { + NOT = { + has_character_modifier = accused_apostate + } prisoner = no is_inaccessible_trigger = no NOT = { trait = incapable } @@ -1849,7 +1942,7 @@ targeted_decisions = { text = secret_religions_induct_character_cd_tt OR = { NOT = { has_character_modifier = secret_religion_induction_timer } - has_quest = quest_secret_religious_soceities_induct_ruler + has_quest = quest_secret_religious_societies_induct_ruler } } OR = { @@ -1945,20 +2038,22 @@ targeted_decisions = { ai_will_do = { factor = 1 modifier = { - FROM = { has_quest = quest_secret_religious_soceities_induct_ruler } + FROM = { has_quest = quest_secret_religious_societies_induct_ruler } is_quest_target_of = FROM factor = 100 } modifier = { - FROM = { has_quest = quest_secret_religious_soceities_induct_ruler } + FROM = { has_quest = quest_secret_religious_societies_induct_ruler } NOT = { is_quest_target_of = FROM } factor = 0.01 #to save targets for missions } modifier = { - NOT = { - is_society_grandmaster = yes + FROM = { + NOT = { + is_society_grandmaster = yes + } } factor = 0.1 } @@ -2009,6 +2104,19 @@ targeted_decisions = { from_potential = { society_member_of = secret_religious_cult + is_adult = yes + prisoner = no + NOT = { trait = incapable } + NOT = { is_inaccessible_trigger = yes } + OR = { # Performance saving measure + has_society_currency_tiny_trigger = yes + ai = no + } + OR = { + ai = no + is_society_grandmaster = yes + num_of_society_members < 90 + } } potential = { @@ -2036,6 +2144,9 @@ targeted_decisions = { allow = { FROM = { + NOT = { + has_character_modifier = accused_apostate + } prisoner = no is_inaccessible_trigger = no NOT = { trait = incapable } @@ -2109,32 +2220,34 @@ targeted_decisions = { ai_will_do = { factor = 1 modifier = { - FROM = { has_quest = quest_secret_religious_soceities_sympathy_ruler } + FROM = { has_quest = quest_secret_religious_societies_sympathy_ruler } is_quest_target_of = FROM factor = 100 } modifier = { - FROM = { has_quest = quest_secret_religious_soceities_sympathy_ruler } + FROM = { has_quest = quest_secret_religious_societies_sympathy_ruler } NOT = { is_quest_target_of = FROM } factor = 0.01 #to save targets for missions } modifier = { - FROM = { has_quest = quest_secret_religious_soceities_induct_ruler } #to complete this mission, sympathy is needed first + FROM = { has_quest = quest_secret_religious_societies_induct_ruler } #to complete this mission, sympathy is needed first is_quest_target_of = FROM factor = 100 } modifier = { - FROM = { has_quest = quest_secret_religious_soceities_induct_ruler } + FROM = { has_quest = quest_secret_religious_societies_induct_ruler } NOT = { is_quest_target_of = FROM } factor = 0.01 } modifier = { - NOT = { - is_society_grandmaster = yes + FROM = { + NOT = { + is_society_grandmaster = yes + } } factor = 0.1 } @@ -2189,6 +2302,13 @@ targeted_decisions = { } effect = { + if = { + limit = { + society_member_of = secret_religious_cult + is_society_grandmaster = yes + } + leave_society = yes + } clear_secret_religion = yes } @@ -2370,6 +2490,21 @@ targeted_decisions = { limit = { has_province_modifier = secret_manichean_community } religion = manichean } } + khurmazta = { + any_demesne_province = { + limit = { has_province_modifier = secret_khurmazta_community } religion = khurmazta + } + } + bon = { + any_demesne_province = { + limit = { has_province_modifier = secret_bon_community } religion = bon + } + } + taoist = { + any_demesne_province = { + limit = { has_province_modifier = secret_taoist_community } religion = taoist + } + } hindu = { any_demesne_province = { limit = { has_province_modifier = secret_hindu_community } religion = hindu @@ -2561,7 +2696,10 @@ title_decisions = { potential = { tier = COUNT holder_scope = { - same_realm = FROM + OR = { + character = FROM + any_liege = { character = FROM } + } } OR = { AND = { @@ -2774,6 +2912,27 @@ title_decisions = { NOT = { location = { religion = manichean } } NOT = { location = { has_province_modifier = secret_manichean_community } } } + AND = { + FROM = { + society_member_of = secret_religious_society_khurmazta + } + NOT = { location = { religion = khurmazta } } + NOT = { location = { has_province_modifier = secret_khurmazta_community } } + } + AND = { + FROM = { + society_member_of = secret_religious_society_bon + } + NOT = { location = { religion = bon } } + NOT = { location = { has_province_modifier = secret_bon_community } } + } + AND = { + FROM = { + society_member_of = secret_religious_society_taoist + } + NOT = { location = { religion = taoist } } + NOT = { location = { has_province_modifier = secret_taoist_community } } + } AND = { FROM = { society_member_of = secret_religious_society_hindu @@ -2948,9 +3107,6 @@ title_decisions = { } allow = { - holder_scope = { - same_society_as = FROM - } FROM = { prisoner = no NOT = { trait = incapable } @@ -2960,7 +3116,11 @@ title_decisions = { custom_tooltip = { text = prepare_grounds_allow_tooltip hidden_trigger = { - FROM = { NOT = { has_character_flag = preparing_grounds_in_@ROOT } } + location = { + ROOT_FROM = { + NOT = { has_character_flag = preparing_grounds_in_@PREV } + } + } } } } @@ -2997,7 +3157,7 @@ title_decisions = { } increase_visibility_effect = yes } - set_character_flag = preparing_grounds_in_@ROOT + set_character_flag = preparing_grounds_in_@event_target:target_province character_event = { id = MNM.3849 days = 1200 } } } @@ -3135,10 +3295,18 @@ decisions = { } effect = { character_event = { id = MNM.3951 days = 1 } - piety = -100 - religion_scope = { save_event_target_as = actual_religion } - tooltip = { - set_secret_religion = event_target:actual_religion # This has to actually happen after the religion is set + if = { + limit = { has_secret_religion = yes } + secret_religion_scope = { save_event_target_as = actual_religion } + piety = -50 + custom_tooltip = { text = confess_faith_already_has_secret_rel_tt } + } + else = { + religion_scope = { save_event_target_as = actual_religion } + piety = -100 + tooltip = { + set_secret_religion = event_target:actual_religion # This has to actually happen after the religion is set + } } custom_tooltip = { text = confess_faith_decision_tooltip @@ -3152,14 +3320,10 @@ decisions = { } } liege = { - ROOT = { - religion = PREV - set_secret_religion = event_target:actual_religion - break = yes - } + religion_scope = { save_event_target_as = false_religion } } } - if = { + else_if = { limit = { top_liege = { NOT = { @@ -3168,16 +3332,41 @@ decisions = { } } top_liege = { - ROOT = { - religion = PREV - set_secret_religion = event_target:actual_religion - break = yes + religion_scope = { save_event_target_as = false_religion } + } + } + ROOT = { + religion = event_target:false_religion + set_secret_religion = event_target:actual_religion + } + } + } + custom_tooltip = { + text = confess_faith_courtiers_decision_tooltip + hidden_effect = { + any_courtier = { + limit = { + religion = event_target:actual_religion + employer = { character = ROOT } + NOT = { trait = zealous } + NOT = { has_secret_religion = yes } + } + random = { + chance = 50 + modifier = { + factor = 1.5 + is_close_relative = yes } + modifier = { + factor = 1.2 + trait = cynical + } + religion = event_target:false_religion + set_secret_religion = event_target:actual_religion } } } } - } revoke_allowed = { always = no diff --git a/AncientReligions/decisions/realm_decisions.txt b/AncientReligions/decisions/realm_decisions.txt index ea7d4e99..8f9c773b 100644 --- a/AncientReligions/decisions/realm_decisions.txt +++ b/AncientReligions/decisions/realm_decisions.txt @@ -481,6 +481,7 @@ decisions = { is_high_prio = yes potential = { + is_nomadic = no is_playable = yes has_dlc = "Legacy of Rome" has_landed_title = e_byzantium @@ -828,6 +829,7 @@ decisions = { has_dlc = "The Old Gods" is_playable = yes religion_group = zoroastrian_group + NOT ={ religion = manichean } NOT = { has_global_flag = saoshyant_appears } } allow = { @@ -950,7 +952,7 @@ decisions = { is_playable = yes has_landed_title = d_castilla independent = yes - NOT = { tier = KING } + NOT = { higher_tier_than = DUKE } k_castille = { has_holder = no } @@ -1018,7 +1020,7 @@ decisions = { is_playable = yes has_landed_title = d_porto independent = yes - NOT = { tier = KING } + NOT = { higher_tier_than = DUKE } k_portugal = { has_holder = no } @@ -1085,7 +1087,7 @@ decisions = { is_playable = yes has_landed_title = d_aragon independent = yes - NOT = { tier = KING } + NOT = { higher_tier_than = DUKE } k_aragon = { has_holder = no } @@ -1369,6 +1371,7 @@ decisions = { } NOR = { religion_group = jewish_group + religion = manichean has_character_modifier = expelled_jewish is_nomadic = yes secret_religion = jewish @@ -1490,7 +1493,7 @@ decisions = { has_dlc = "Rajas of India" is_playable = yes is_feudal = yes - religion_group = indian_group + has_dharmic_religion_trigger = yes primary_title = { higher_tier_than = DUKE } @@ -2173,8 +2176,8 @@ decisions = { any_title_under = { limit = { tier = KING - empire = { - has_holder = no + NOT = { + empire = { has_holder = yes } } } de_jure_liege = PREVPREV @@ -2184,8 +2187,8 @@ decisions = { tier = DUKE location = { kingdom = { - empire = { - has_holder = no + NOT = { + empire = { has_holder = yes } } NOT = { de_jure_liege_or_above = PREVPREVPREVPREV } @@ -2310,6 +2313,7 @@ decisions = { OR = { NOT = { religion_group = pagan_group } is_reformed_religion = yes + religion = bon } } } @@ -2334,6 +2338,14 @@ decisions = { if = { limit = { NOT = { religion_group = muslim } + NAND = { + culture_group = tibetan_group + OR = { + religion = bon + religion = buddhist + } + higher_tier_than = BARON + } } if = { @@ -2365,6 +2377,28 @@ decisions = { set_government_type = muslim_government } + if = { + limit = { + culture_group = tibetan_group + OR = { + religion = bon + religion = buddhist + } + higher_tier_than = BARON + } + + if = { + limit = { + ai = no + } + chronicle = { + entry = CHRONICLE_ADOPTED_FEUDALISM + picture = GFX_evt_castle_construction + } + } + set_government_type = theocratic_feudal_government + } + if = { limit = { higher_tier_than = king @@ -2449,6 +2483,7 @@ decisions = { OR = { NOT = { religion_group = pagan_group } is_reformed_religion = yes + religion = bon } } } @@ -2464,19 +2499,36 @@ decisions = { OR = { NOT = { religion_group = pagan_group } is_reformed_religion = yes + religion = bon } } } } } } - capital_holding = { - OR = { - AND = { - holding_type = tribal - has_building = tb_hillfort_4 + OR = { + capital_holding = { + OR = { + AND = { + holding_type = tribal + has_building = tb_hillfort_4 + } + holding_type = castle + } + } + AND = { + NOT = { tier = BARON } + capital_scope = { + any_province_holding = { + holding_type = castle + holder_scope = { + OR = { + character = ROOT + is_liege_or_above = ROOT + } + } + } } - holding_type = castle } } } @@ -2487,6 +2539,14 @@ decisions = { if = { limit = { NOT = { religion_group = muslim } + NAND = { + culture_group = tibetan_group + OR = { + religion = bon + religion = buddhist + } + higher_tier_than = BARON + } } if = { @@ -2518,11 +2578,80 @@ decisions = { set_government_type = muslim_government } + if = { + limit = { + culture_group = tibetan_group + OR = { + religion = bon + religion = buddhist + } + higher_tier_than = BARON + } + + if = { + limit = { + ai = no + } + chronicle = { + entry = CHRONICLE_ADOPTED_FEUDALISM + picture = GFX_evt_castle_construction + } + } + set_government_type = theocratic_feudal_government + } + hidden_tooltip = { + if = { + limit = { + capital_holding = { + holding_type = tribal + ROOT = { NOT = { tier = BARON } } + } + capital_scope = { + any_province_holding = { + holding_type = castle + holder_scope = { + OR = { + character = ROOT + is_liege_or_above = ROOT + } + } + } + } + } + + capital_scope = { + random_province_holding = { + limit = { + holding_type = castle + holder_scope = { + OR = { + character = ROOT + is_liege_or_above = ROOT + } + } + } + if = { + limit = { + NOT = { holder = ROOT } + } + usurp_title = ROOT + } + make_capital_holding = yes + ROOT = { set_character_flag = feudalize_handled_capital } + } + } + } + any_demesne_title = { limit = { tier = baron holding_type = tribal + location = { + capital_holding = { + NOT = { holding_type = castle } + } + } } convert_to = CASTLE refill_holding_levy = yes @@ -2634,6 +2763,7 @@ decisions = { OR = { NOT = { religion_group = pagan_group } is_reformed_religion = yes + religion = bon } } } diff --git a/AncientReligions/events/ACR_00_event_id.txt b/AncientReligions/events/ACR_00_event_id.txt index dcd024ba..f0101650 100644 --- a/AncientReligions/events/ACR_00_event_id.txt +++ b/AncientReligions/events/ACR_00_event_id.txt @@ -35,7 +35,7 @@ # ancrel.2051 - ancrel.2100 Myrmidon/Hellenic Legion Events # ancrel.2100 - ancrel.2109 Courtier Studies the Classics # ancrel.2110 - ancrel.2119 Flamines Maiores -# ancrel.2120 - ancrel.2129 Vestales +# ancrel.2120 - ancrel.2149 Vestales # # ancrel.2150 - ancrel.2159 Revival of the Roman culture # @@ -44,7 +44,8 @@ # ancrel.2230 - ancrel.2239 Roman Events # ancrel.2240 - ancrel.2259 Hellenic Flavour Events # -# ancrel.3000 - ancrel.3399 Epic Bloodlines +# ancrel.3000 - ancrel.3199 Epic Bloodlines +# ancrel.3200 - ancrel.3299 Mysteries of Dionysus Events # ancrel.3400 - ancrel.3549 Promethean Flavor Events # ancrel.3550 - ancrel.3599 Promethean Holy Orders # ancrel.3600 - ancrel.3699 Titan Thysia @@ -67,7 +68,8 @@ # Misc ancient religion events # Event ID ancrel.9000 - ancrel.9999 is reserved # -# GonePagan.1 - GonePagan.199 Gone Pagan events, from CK2+ # ancrel.9001 - ancrel.9009 Paganify Customization Option # +# GonePagan.1 - GonePagan.199 Gone Pagan events, from CK2+ +# ################################### diff --git a/AncientReligions/events/ACR_dionysus_events.txt b/AncientReligions/events/ACR_dionysus_events.txt new file mode 100644 index 00000000..a300f5c8 --- /dev/null +++ b/AncientReligions/events/ACR_dionysus_events.txt @@ -0,0 +1,120 @@ +############################################## +# +# Ancient Religions Reborn +# - Mysteries of Dionysus +# +# Event Ids: ancrel.3200 - 3299 reserved +############################################## + +namespace = ancrel + +#################### +## Society events ## +#################### +# ancrel.3200 - 3249 + +##################### +## Dionysia events ## +##################### +# ancrel.3250 - 3299 + +character_event = { + id = ancrel.3250 + desc = ancrel.3250.desc + picture = GFX_evt_roman_temple + + is_triggered_only = yes + + option = { # invitations have been sent! + name = ancrel.3250 + hidden_tooltip = { + character_event = { id = ancrel.3252 days = 5 } # Dionysia start + clr_character_flag = dionysia_has_ended + any_realm_character = { + limit = { + age = 16 + NOT = { trait = incapable } + prisoner = no + } + clr_character_flag = dionysia_has_ended + character_event = { id = 88250 } + } + any_dynasty_member = { + limit = { + ai = no + NOT = { character = ROOT } + } + character_event = { id = 88300 } + } + } + } +} + +# Invitation +character_event = { + id = ancrel.3251 + title = ancrel.3251.title + desc = ancrel.3251 + picture = GFX_evt_market_stalls + + is_triggered_only = yes + + trigger = { NOT = { is_inaccessible_trigger = yes } } + + option = { + name = ancrel.3251 + ai_chance = { + factor = 100 + } + prestige = 50 + set_character_flag = attending_dionysia + hidden_tooltip = { character_event = { id = ancrel.3299 days = 90 } } # safety catch flag-clearing + + } + option = { + name = ancrel.3251 + ai_chance = { + factor = 0.1 + modifier = { + factor = 100 + religion_openly_in_hellenic_subgroup = no + } + modifier = { + factor = 100 + true_religion_in_hellenic_subgroup = no + } + } + prestige = -100 + } +} + +# Dionysia start +character_event = { + id = ancrel.3252 + desc = ancrel.3252 + picture = GFX_evt_market_stalls + + is_triggered_only = yes + + option = { + + } +} + +########################################### +# Flag management # +########################################### + +# Safety catch - clears character flags and modifiers +character_event = { + id = 3299 + + hide_window = yes + + is_triggered_only = yes + + immediate = { + clr_character_flag = do_not_disturb + clr_character_flag = holding_dionysia + } +} \ No newline at end of file diff --git a/AncientReligions/events/ACR_druidic_caste_events.txt b/AncientReligions/events/ACR_druidic_caste_events.txt index d7d0092e..4e160832 100644 --- a/AncientReligions/events/ACR_druidic_caste_events.txt +++ b/AncientReligions/events/ACR_druidic_caste_events.txt @@ -21,11 +21,6 @@ character_event = { option = { name = EVTOPTAancrel.0152 - add_character_modifier = { - name = "new_druid_in_court" - duration = 730 - hidden = yes - } clr_character_flag = inviting_druid_over random_list = { 35 = { @@ -192,11 +187,6 @@ character_event = { option = { name = EVTOPTAancrel.0154 - add_character_modifier = { - name = "new_druid_in_court" - duration = 730 - hidden = yes - } clr_character_flag = inviting_druid_over random_list = { 35 = { diff --git a/AncientReligions/events/ACR_egyptian_events.txt b/AncientReligions/events/ACR_egyptian_events.txt index bfa88c94..1d436c87 100644 --- a/AncientReligions/events/ACR_egyptian_events.txt +++ b/AncientReligions/events/ACR_egyptian_events.txt @@ -234,10 +234,7 @@ province_event = { NOT = { has_character_flag = pyramid_building_char } - OR = { - religion = egyptian_pagan - religion = aten_pagan - } + true_religion_in_egyptian_subgroup = yes } } owner = { @@ -251,10 +248,7 @@ province_event = { owner = { NOT = { has_character_flag = pyramid_building_char - OR = { - religion = egyptian_pagan - religion = aten_pagan - } + true_religion_in_egyptian_subgroup = yes } } } @@ -292,19 +286,13 @@ narrative_event = { option = { name = EVTOPTA_ancrel_4006 trigger = { - OR = { - religion = egyptian_pagan - religion = aten_pagan - } + true_religion_in_egyptian_subgroup = yes } } option = { name = EVTOPTB_ancrel_4006 trigger = { - NOT = { - religion = egyptian_pagan - religion = aten_pagan - } + true_religion_in_egyptian_subgroup = no } } } @@ -1575,10 +1563,7 @@ character_event = { war = no in_command = no is_abroad = no - OR = { - religion = egyptian_pagan - religion = aten_pagan - } + true_religion_in_egyptian_subgroup = yes } weight_multiplier = { @@ -1668,10 +1653,7 @@ character_event = { war = no in_command = no is_abroad = no - OR = { - religion = egyptian_pagan - religion = aten_pagan - } + true_religion_in_egyptian_subgroup = yes NOT = { capital_scope = { has_province_modifier = VIET_planted_palm_trees @@ -1771,10 +1753,7 @@ character_event = { war = no in_command = no is_abroad = no - OR = { - religion = egyptian_pagan - religion = aten_pagan - } + true_religion_in_egyptian_subgroup = yes NOT = { has_character_modifier = VIET_khnum_amulet } } @@ -1831,10 +1810,7 @@ province_event = { trigger = { NOT = { has_province_modifier = VIET_province_desecrated_egyptian_tombs } - OR = { - religion = egyptian_pagan - religion = aten_pagan - } + true_religion_in_egyptian_subgroup = yes county = { is_on_nile_trigger = yes } } @@ -1958,10 +1934,7 @@ character_event = { war = no in_command = no #is_abroad = no - OR = { - religion = egyptian_pagan - religion = aten_pagan - } + true_religion_in_egyptian_subgroup = yes } weight_multiplier = { @@ -2031,10 +2004,7 @@ character_event = { war = no in_command = no is_abroad = no - OR = { - religion = egyptian_pagan - religion = aten_pagan - } + true_religion_in_egyptian_subgroup = yes OR = { trait = lustful trait = envious @@ -2222,10 +2192,7 @@ character_event = { prisoner = no trigger = { - OR = { - religion = egyptian_pagan - religion = aten_pagan - } + true_religion_in_egyptian_subgroup = yes OR = { trait = kind trait = just @@ -2310,10 +2277,7 @@ character_event = { #war = no #in_command = no #is_abroad = no - OR = { - religion = egyptian_pagan - religion = aten_pagan - } + true_religion_in_egyptian_subgroup = yes OR = { trait = cruel trait = arbitrary @@ -2422,10 +2386,7 @@ character_event = { is_female = yes religion = ROOT } - OR = { - religion = egyptian_pagan - religion = aten_pagan - } + true_religion_in_egyptian_subgroup = yes } weight_multiplier = { @@ -2505,7 +2466,6 @@ character_event = { } # A criminal has killed a cat, a heinous crime! -# cybrxkhan: As a dog person, I wanted to puke writing this pro-Cat event. :( character_event = { id = ancrel.4160 desc = ancrel.4160.desc @@ -2523,10 +2483,7 @@ character_event = { war = no in_command = no is_abroad = no - OR = { - religion = egyptian_pagan - religion = aten_pagan - } + true_religion_in_egyptian_subgroup = yes } weight_multiplier = { @@ -2593,10 +2550,7 @@ character_event = { war = no in_command = no is_abroad = no - OR = { - religion = egyptian_pagan - religion = aten_pagan - } + true_religion_in_egyptian_subgroup = yes } weight_multiplier = { @@ -2701,10 +2655,7 @@ character_event = { religion = ROOT ai = yes } - OR = { - religion = egyptian_pagan - religion = aten_pagan - } + true_religion_in_egyptian_subgroup = yes } weight_multiplier = { @@ -2960,10 +2911,7 @@ character_event = { religion = ROOT ai = yes } - OR = { - religion = egyptian_pagan - religion = aten_pagan - } + true_religion_in_egyptian_subgroup = yes } weight_multiplier = { @@ -3051,9 +2999,11 @@ character_event = { } } OR = { - has_game_rule = { - name = acr_ai_revival - value = on + NOT = { + has_game_rule = { + name = acr_ai_revival + value = off + } } ai = no } @@ -3107,7 +3057,7 @@ character_event = { text = ancrel.4201.a.tt hidden_tooltip = { random_list = { - 10 = { character_event = { id = ancrel.4202 } } + 20 = { character_event = { id = ancrel.4202 } } 10 = { character_event = { id = ancrel.4203 } modifier = { diff --git a/AncientReligions/events/ACR_other_event.txt b/AncientReligions/events/ACR_other_event.txt index 858d9fe2..4cfff6f7 100644 --- a/AncientReligions/events/ACR_other_event.txt +++ b/AncientReligions/events/ACR_other_event.txt @@ -922,7 +922,7 @@ character_event = { has_crusade_trait_trigger = no in_command = yes is_ancient_religion_trigger = yes - NOT = { religion = hellenic_pagan } # vanilla event covers hellenic + religion_openly_in_hellenic_subgroup_trigger = no # vanilla event covers hellenic OR = { AND = { any_war = { @@ -951,10 +951,7 @@ character_event = { option = { name = "8469.a" trigger = { - OR = { - religion = celtic_pagan - religion = celtic_pagan_reformed - } + religion_openly_in_celtic_subgroup_trigger = yes } add_trait = lughs_own } @@ -979,7 +976,7 @@ character_event = { name = 8469.a trigger = { NOR = { - is_celtic_or_reformed_trigger = yes + religion_openly_in_celtic_subgroup_trigger = yes religion = aten_pagan religion = egyptian_pagan } @@ -994,6 +991,10 @@ character_event = { is_triggered_only = yes + trigger = { + has_global_flag = ancrel_debug + } + immediate = { capital_scope = { kingdom = { @@ -1032,6 +1033,10 @@ character_event = { is_triggered_only = yes + trigger = { + has_global_flag = ancrel_debug + } + immediate = { capital_scope = { empire = { @@ -1064,6 +1069,10 @@ character_event = { is_triggered_only = yes + trigger = { + has_global_flag = ancrel_debug + } + immediate = { any_realm_character = { religion = ROOT diff --git a/AncientReligions/events/job_offmap.txt b/AncientReligions/events/job_offmap.txt index 99be4e9e..51123cf1 100644 --- a/AncientReligions/events/job_offmap.txt +++ b/AncientReligions/events/job_offmap.txt @@ -1406,7 +1406,7 @@ character_event = { hidden_tooltip = { if = { limit = { - religion_group = indian_group + has_dharmic_religion_trigger = yes } add_trait = kshatriya character_event = { id = RoI.30121 } @@ -1757,7 +1757,7 @@ character_event = { has_job_action = action_sabotage_province NOT = { has_character_modifier = in_seclusion } location = { - can_be_sabotaged_trigger = yes #TODO maybe have intimidate check and give letter if all done + can_be_sabotaged_trigger = yes } } @@ -1819,7 +1819,7 @@ character_event = { 100 = { modifier = { factor = 0 - has_province_modifier = sabotaged_buildings #TODO Maybe hide list, have letter events telling liege what happened + has_province_modifier = sabotaged_buildings } add_province_modifier = { name = sabotaged_buildings @@ -1854,6 +1854,7 @@ character_event = { letter_event = { id = MNM.70021 desc = MNM.70021.d + picture = GFX_evt_council border = GFX_event_letter_frame_intrigue is_triggered_only = yes @@ -2206,11 +2207,6 @@ character_event = { # Yearly decrease id = MNM.70030 hide_window = yes -<<<<<<< HEAD - is_in_society = yes - -======= ->>>>>>> develop is_triggered_only = yes immediate = { @@ -3164,16 +3160,8 @@ character_event = { # What does the liege wish to do with the apostate? } } } - if = { - limit = { - NOT = { trait = kinslayer } - NOT = { religion_group = muslim } - event_target:accused_apostate = { - dynasty = ROOT - } - } - add_trait = kinslayer - } + event_target:accused_apostate = { save_event_target_as = kinslayer_target } + add_kinslayer_trait_effect = yes hidden_tooltip = { event_target:accused_apostate = { if = { diff --git a/AncientReligions/events/mnm_devil_worshipers_events.txt b/AncientReligions/events/mnm_devil_worshipers_events.txt index eab504c4..1bbbfdda 100644 --- a/AncientReligions/events/mnm_devil_worshipers_events.txt +++ b/AncientReligions/events/mnm_devil_worshipers_events.txt @@ -73,6 +73,8 @@ character_event = { is_triggered_only = yes + prisoner = no + trigger = { has_dlc = Mystics } immediate = { @@ -83,6 +85,14 @@ character_event = { save_event_target_as = satanists_recruit } + fail_trigger_effect = { + clr_character_flag = being_recruited_by_the_satanists + clr_character_flag = being_recruited_by_the_trollcrafters + clr_character_flag = being_recruited_by_the_cult_of_kali + clr_character_flag = being_recruited_by_the_cold_ones + clr_character_flag = being_recruited_by_the_plaguebringers + } + #Approving of heretics option = { name = EVTOPTA_7001 #If God didn't want us to ask questions, why did he make us curious? @@ -260,6 +270,14 @@ character_event = { is_triggered_only = yes immediate = { + if = { + limit = { + prisoner = yes + } + set_character_flag = dw_recruitment_end_unable + character_event = { id = MNM.6995 } + break = yes + } if = { limit = { event_target:satanists_recruiter = { @@ -285,6 +303,14 @@ character_event = { is_triggered_only = yes immediate = { + if = { + limit = { + prisoner = yes + } + set_character_flag = dw_recruitment_end_unable + character_event = { id = MNM.6995 } + break = yes + } if = { limit = { event_target:satanists_recruiter = { @@ -310,6 +336,14 @@ character_event = { is_triggered_only = yes immediate = { + if = { + limit = { + prisoner = yes + } + set_character_flag = dw_recruitment_end_unable + character_event = { id = MNM.6995 } + break = yes + } if = { limit = { event_target:satanists_recruiter = { @@ -335,6 +369,14 @@ character_event = { is_triggered_only = yes immediate = { + if = { + limit = { + prisoner = yes + } + set_character_flag = dw_recruitment_end_unable + character_event = { id = MNM.6995 } + break = yes + } if = { limit = { event_target:satanists_recruiter = { @@ -354,20 +396,37 @@ character_event = { character_event = { # event notifying recruitee that "Something must've gone wrong" (in case recruiter/inductor dies) id = MNM.6995 - desc = EVTDESC_MNM_6995 + desc = { + text = EVTDESCA_MNM_6995 + trigger = { NOT = { has_character_flag = dw_recruitment_end_unable } } + } + desc = { + text = EVTDESCB_MNM_6995 + trigger = { has_character_flag = dw_recruitment_end_unable } + picture = GFX_evt_into_the_dungeon + } picture = GFX_evt_state_diplomacy border = GFX_event_normal_frame_intrigue is_triggered_only = yes + show_root = yes option = { - name = EVTOPTA_MNM_6995 + name = { + text = EVTOPTA_MNM_6995 + trigger = { NOT = { has_character_flag = dw_recruitment_end_unable } } + } + name = { + text = EVTOPTB_MNM_6995 + trigger = { has_character_flag = dw_recruitment_end_unable } + } custom_tooltip = { text = EVTTOOLTIP_MNM_6995 } clr_character_flag = being_recruited_by_the_satanists clr_character_flag = being_recruited_by_the_trollcrafters clr_character_flag = being_recruited_by_the_cult_of_kali clr_character_flag = being_recruited_by_the_cold_ones clr_character_flag = being_recruited_by_the_plaguebringers + clr_character_flag = dw_recruitment_end_unable ### ACR ### clr_character_flag = being_recruited_by_the_unseelie @@ -426,7 +485,7 @@ character_event = { } } -#For the recruit: Recruiter continues offering more radical ideas, gives strange idol +#For the recruit: Recruiter contiunes offering more radical ideas, gives strange idol character_event = { id = MNM.7003 desc = EVTDESC_MNM_7003_A @@ -553,6 +612,7 @@ character_event = { reverse_opinion = { who = event_target:satanists_recruiter modifier = opinion_narrow_minded + years = 5 } set_character_flag = unwilling_to_join @@ -629,7 +689,7 @@ character_event = { ai_chance = { factor = 100 } } - #Too risky, voluntary end (only available if recruit is willing to join) + #Too risky, volontary end (only available if recruit is willing to join) option = { trigger = { FROM = { has_character_flag = willing_to_join } } name = EVTOPTB_7004 @@ -833,6 +893,39 @@ character_event = { is_triggered_only = yes + trigger = { + NOR = { + prisoner = yes + event_target:satanists_recruiter = { + is_alive = no + is_devil_worshiper_trigger = no + } + } + } + + fail_trigger_effect = { + if = { + limit = { + prisoner = yes + } + set_character_flag = dw_recruitment_end_unable + character_event = { id = MNM.6995 } #notify broken chain + break = yes + } + if = { + limit = { + event_target:satanists_recruiter = { + is_alive = no + is_devil_worshiper_trigger = no + } + } + event_target:satanists_recruiter = { + character_event = { id = MNM.6995 } #notify broken chain + } + break = yes + } + } + # I have been blinded by convention option = { name = EVTOPTA_7009 @@ -918,6 +1011,39 @@ character_event = { is_triggered_only = yes + trigger = { + NOR = { + prisoner = yes + event_target:satanists_recruiter = { + is_alive = no + is_devil_worshiper_trigger = no + } + } + } + + fail_trigger_effect = { + if = { + limit = { + prisoner = yes + } + set_character_flag = dw_recruitment_end_unable + character_event = { id = MNM.6995 } #notify broken chain + break = yes + } + if = { + limit = { + event_target:satanists_recruiter = { + is_alive = no + is_devil_worshiper_trigger = no + } + } + event_target:satanists_recruiter = { + character_event = { id = MNM.6995 } #notify broken chain + } + break = yes + } + } + #Yes option = { name = EVTOPTA_7010 @@ -1025,6 +1151,39 @@ letter_event = { is_triggered_only = yes + trigger = { + NOR = { + prisoner = yes + event_target:satanists_recruiter = { + is_alive = no + is_devil_worshiper_trigger = no + } + } + } + + fail_trigger_effect = { + if = { + limit = { + prisoner = yes + } + set_character_flag = dw_recruitment_end_unable + character_event = { id = MNM.6995 } #notify broken chain + break = yes + } + if = { + limit = { + event_target:satanists_recruiter = { + is_alive = no + is_devil_worshiper_trigger = no + } + } + event_target:satanists_recruiter = { + character_event = { id = MNM.6995 } #notify broken chain + } + break = yes + } + } + option = { name = EVTOPTA_7014 custom_tooltip = { text = EVTOPTA_7014_TT } @@ -1502,6 +1661,39 @@ character_event = { is_triggered_only = yes + trigger = { + NOR = { + prisoner = yes + event_target:satanists_inductor = { + is_alive = no + is_devil_worshiper_trigger = no + } + } + } + + fail_trigger_effect = { + if = { + limit = { + prisoner = yes + } + set_character_flag = dw_recruitment_end_unable + character_event = { id = MNM.6993 } #notify broken chain + break = yes + } + if = { + limit = { + event_target:satanists_inductor = { + is_alive = no + is_devil_worshiper_trigger = no + } + } + event_target:satanists_inductor = { + character_event = { id = MNM.6993 } #notify broken chain + } + break = yes + } + } + option = { name = EVTOPTA_7015 @@ -1519,6 +1711,14 @@ character_event = { is_triggered_only = yes immediate = { + if = { + limit = { + prisoner = yes + } + set_character_flag = dw_recruitment_end_unable + character_event = { id = MNM.6993 } + break = yes + } if = { limit = { event_target:satanists_inductor = { is_alive = yes } @@ -1542,6 +1742,14 @@ character_event = { is_triggered_only = yes immediate = { + if = { + limit = { + prisoner = yes + } + set_character_flag = dw_recruitment_end_unable + character_event = { id = MNM.6993 } + break = yes + } if = { limit = { event_target:satanists_inductor = { is_alive = yes } @@ -1565,6 +1773,14 @@ character_event = { is_triggered_only = yes immediate = { + if = { + limit = { + prisoner = yes + } + set_character_flag = dw_recruitment_end_unable + character_event = { id = MNM.6993 } + break = yes + } if = { limit = { event_target:satanists_inductor = { is_alive = yes } @@ -1589,6 +1805,14 @@ character_event = { is_triggered_only = yes immediate = { + if = { + limit = { + prisoner = yes + } + set_character_flag = dw_recruitment_end_unable + character_event = { id = MNM.6993 } + break = yes + } if = { limit = { event_target:satanists_inductor = { is_alive = yes } @@ -1607,20 +1831,37 @@ character_event = { character_event = { id = MNM.6993 - desc = EVTDESC_MNM_6993 + desc = { + text = EVTDESCA_MNM_6993 + trigger = { NOT = { has_character_flag = dw_recruitment_end_unable } } + } + desc = { + text = EVTDESCB_MNM_6993 + trigger = { has_character_flag = dw_recruitment_end_unable } + picture = GFX_evt_into_the_dungeon + } picture = GFX_evt_dark_prayer border = GFX_event_normal_frame_intrigue is_triggered_only = yes + show_root = yes option = { - name = EVTOPTA_MNM_6993 + name = { + text = EVTOPTA_MNM_6993 + trigger = { NOT = { has_character_flag = dw_recruitment_end_unable } } + } + name = { + text = EVTOPTB_MNM_6993 + trigger = { has_character_flag = dw_recruitment_end_unable } + } custom_tooltip = { text = EVTTOOLTIP_MNM_6993 } clr_character_flag = being_recruited_by_the_satanists clr_character_flag = being_recruited_by_the_trollcrafters clr_character_flag = being_recruited_by_the_cult_of_kali clr_character_flag = being_recruited_by_the_cold_ones clr_character_flag = being_recruited_by_the_plaguebringers + clr_character_flag = dw_recruitment_end_unable ### ACR ### clr_character_flag = being_recruited_by_the_unseelie @@ -1638,6 +1879,39 @@ character_event = { is_triggered_only = yes + trigger = { + NOR = { + prisoner = yes + event_target:satanists_inductor = { + is_alive = no + is_devil_worshiper_trigger = no + } + } + } + + fail_trigger_effect = { + if = { + limit = { + prisoner = yes + } + set_character_flag = dw_recruitment_end_unable + character_event = { id = MNM.6993 } #notify broken chain + break = yes + } + if = { + limit = { + event_target:satanists_inductor = { + is_alive = no + is_devil_worshiper_trigger = no + } + } + event_target:satanists_inductor = { + character_event = { id = MNM.6993 } #notify broken chain + } + break = yes + } + } + option = { name = EVTOPTA_7016 custom_tooltip = { text = EVTOPTA_7016_TT } @@ -4703,16 +4977,16 @@ character_event = { remove_trait = one_handed if = { limit = { - has_character_modifier = golden_hand + has_artifact = prosthetic_hand_gold } - remove_character_modifier = golden_hand + destroy_artifact = prosthetic_hand_gold wealth = 10 } if = { limit = { - has_character_modifier = iron_hand + has_artifact = prosthetic_hand_metal } - remove_character_modifier = iron_hand + destroy_artifact = prosthetic_hand_metal } if = { limit = { @@ -4735,9 +5009,9 @@ character_event = { } if = { limit = { - has_character_modifier = prosthetic_leg + has_artifact = prosthetic_leg_artifact } - remove_character_modifier = prosthetic_leg + destroy_artifact = prosthetic_leg_artifact } if = { limit = { @@ -4979,7 +5253,11 @@ character_event = { dynasty = FROM factor = 2 } - join_from_devil_worshiper_society = yes + modifier = { + is_in_society = yes + factor = 0 + } + join_from_devil_worshiper_society_effect = yes } random = { @@ -5992,7 +6270,7 @@ character_event = { limit = { ROOT = { ai = no } } - join_prev_devil_worshiper_society = yes + join_prev_devil_worshiper_society_effect = yes } #Set correct education @@ -6312,326 +6590,49 @@ character_event = { NOT = { has_character_flag = disciple_arriving } } - immediate = { - character_event = { id = MNM.7822 } - } -} - - -##Sacrifice prisoner events -character_event = { #Head of Religion - id = MNM.7500 - picture = GFX_evt_sacrifice - desc = MNM.7500.d - border = GFX_event_normal_frame_intrigue - - is_triggered_only = yes - - option = { - name = MNM.7500.a - FROM = { - hidden_effect = { character_event = { id = MNM.7506 } } - death = { - death_reason = death_missing - } - } - - - #Clear missions and give rewards - if = { - limit = { - FROM = { is_virgin_trigger = yes } - has_quest = quest_the_devil_worshipers_sacrifice_virgin - } - clr_quest = quest_the_devil_worshipers_sacrifice_virgin - if = { - limit = { FROM = { is_female = yes } } - sound_effect = devil_worshippers_sacrifice_virgin_female - } - if = { - limit = { FROM = { is_female = no } } - sound_effect = devil_worshippers_sacrifice_virgin_male - } - add_society_currency_major_effect = yes - increase_visibility_minor_effect = yes - minor_soul_corruption_effect = yes - break = yes - } - if = { - limit = { - OR = { - FROM = { is_priest = yes } - FROM = { is_ascetic_trigger = yes } - } - has_quest = quest_the_devil_worshipers_sacrifice_holy_person - } - clr_quest = quest_the_devil_worshipers_sacrifice_holy_person - if = { - limit = { FROM = { is_female = yes } } - sound_effect = devil_worshippers_sacrifice_holy_woman - } - if = { - limit = { FROM = { is_female = no } } - sound_effect = devil_worshippers_sacrifice_holy_man - } - add_society_currency_major_effect = yes - increase_visibility_minor_effect = yes - minor_soul_corruption_effect = yes - break = yes - } - if = { - limit = { - FROM = { trait = dwarf } - has_quest = quest_the_devil_worshipers_sacrifice_dwarf - } - clr_quest = quest_the_devil_worshipers_sacrifice_dwarf - if = { - limit = { FROM = { is_female = yes } } - sound_effect = devil_worshippers_sacrifice_dwarf_female - } - if = { - limit = { FROM = { is_female = no } } - sound_effect = devil_worshippers_sacrifice_dwarf_male - } - add_society_currency_major_effect = yes - increase_visibility_minor_effect = yes - minor_soul_corruption_effect = yes - break = yes - } - if = { - limit = { - FROM = { is_landed = yes } - has_quest = quest_the_devil_worshipers_sacrifice_ruler - } - clr_quest = quest_the_devil_worshipers_sacrifice_ruler - if = { - limit = { FROM = { is_female = yes } } - sound_effect = devil_worshippers_sacrifice_ruler_female - } - if = { - limit = { FROM = { is_female = no } } - sound_effect = devil_worshippers_sacrifice_ruler_male - } - add_society_currency_major_effect = yes - increase_visibility_minor_effect = yes - minor_soul_corruption_effect = yes - break = yes - } - - #And if there is no quest is completed - add_society_currency_medium_effect = yes - increase_visibility_effect = yes - major_soul_corruption_effect = yes - } -} - -character_event = { #Holy man - id = MNM.7501 - picture = GFX_evt_sacrifice - desc = MNM.7500.d - border = GFX_event_normal_frame_intrigue - - is_triggered_only = yes - - option = { - name = MNM.7500.a - FROM = { - hidden_effect = { character_event = { id = MNM.7506 } } - death = { - death_reason = death_missing - } - } - - #Clear missions and give rewards - if = { - limit = { - FROM = { is_virgin_trigger = yes } - has_quest = quest_the_devil_worshipers_sacrifice_virgin - } - clr_quest = quest_the_devil_worshipers_sacrifice_virgin - if = { - limit = { FROM = { is_female = yes } } - sound_effect = devil_worshippers_sacrifice_virgin_female - } - if = { - limit = { FROM = { is_female = no } } - sound_effect = devil_worshippers_sacrifice_virgin_male - } - add_society_currency_medium_effect = yes - increase_visibility_minor_effect = yes - minor_soul_corruption_effect = yes - break = yes - } - if = { - limit = { - OR = { - FROM = { is_priest = yes } - FROM = { is_ascetic_trigger = yes } - } - has_quest = quest_the_devil_worshipers_sacrifice_holy_person - } - clr_quest = quest_the_devil_worshipers_sacrifice_holy_person - if = { - limit = { FROM = { is_female = yes } } - sound_effect = devil_worshippers_sacrifice_holy_woman - } - if = { - limit = { FROM = { is_female = no } } - sound_effect = devil_worshippers_sacrifice_holy_man - } - add_society_currency_medium_effect = yes - increase_visibility_minor_effect = yes - minor_soul_corruption_effect = yes - break = yes - } - if = { - limit = { - FROM = { trait = dwarf } - has_quest = quest_the_devil_worshipers_sacrifice_dwarf - } - clr_quest = quest_the_devil_worshipers_sacrifice_dwarf - if = { - limit = { FROM = { is_female = yes } } - sound_effect = devil_worshippers_sacrifice_dwarf_female - } - if = { - limit = { FROM = { is_female = no } } - sound_effect = devil_worshippers_sacrifice_dwarf_male - } - add_society_currency_medium_effect = yes - increase_visibility_minor_effect = yes - minor_soul_corruption_effect = yes - break = yes - } - if = { - limit = { - FROM = { is_landed = yes } - has_quest = quest_the_devil_worshipers_sacrifice_ruler - } - clr_quest = quest_the_devil_worshipers_sacrifice_ruler - if = { - limit = { FROM = { is_female = yes } } - sound_effect = devil_worshippers_sacrifice_ruler_female - } - if = { - limit = { FROM = { is_female = no } } - sound_effect = devil_worshippers_sacrifice_ruler_male - } - add_society_currency_medium_effect = yes - increase_visibility_minor_effect = yes - minor_soul_corruption_effect = yes - break = yes - } - - #And if there is no quest is completed - add_society_currency_minor_effect = yes - increase_visibility_effect = yes - major_soul_corruption_effect = yes - } -} - -character_event = { #Dwarf - id = MNM.7502 - picture = GFX_evt_sacrifice - desc = MNM.7502.d - border = GFX_event_normal_frame_intrigue - - is_triggered_only = yes - - option = { - name = MNM.7502.a - FROM = { - hidden_effect = { character_event = { id = MNM.7506 } } - death = { - death_reason = death_missing - } - } - - #Clear missions and give rewards - if = { - limit = { - FROM = { is_virgin_trigger = yes } - has_quest = quest_the_devil_worshipers_sacrifice_virgin - } - clr_quest = quest_the_devil_worshipers_sacrifice_virgin - if = { - limit = { FROM = { is_female = yes } } - sound_effect = devil_worshippers_sacrifice_virgin_female - } - if = { - limit = { FROM = { is_female = no } } - sound_effect = devil_worshippers_sacrifice_virgin_male - } - add_society_currency_medium_effect = yes - increase_visibility_minor_effect = yes - minor_soul_corruption_effect = yes - break = yes - } - if = { - limit = { - OR = { - FROM = { is_priest = yes } - FROM = { is_ascetic_trigger = yes } - } - has_quest = quest_the_devil_worshipers_sacrifice_holy_person - } - clr_quest = quest_the_devil_worshipers_sacrifice_holy_person - if = { - limit = { FROM = { is_female = yes } } - sound_effect = devil_worshippers_sacrifice_holy_woman - } - if = { - limit = { FROM = { is_female = no } } - sound_effect = devil_worshippers_sacrifice_holy_man - } - add_society_currency_medium_effect = yes - increase_visibility_minor_effect = yes - minor_soul_corruption_effect = yes - break = yes - } - if = { - limit = { - FROM = { trait = dwarf } - has_quest = quest_the_devil_worshipers_sacrifice_dwarf - } - clr_quest = quest_the_devil_worshipers_sacrifice_dwarf - if = { - limit = { FROM = { is_female = yes } } - sound_effect = devil_worshippers_sacrifice_dwarf_female - } - if = { - limit = { FROM = { is_female = no } } - sound_effect = devil_worshippers_sacrifice_dwarf_male - } - add_society_currency_medium_effect = yes - increase_visibility_minor_effect = yes - minor_soul_corruption_effect = yes - break = yes - } - if = { - limit = { - FROM = { is_landed = yes } - has_quest = quest_the_devil_worshipers_sacrifice_ruler - } - clr_quest = quest_the_devil_worshipers_sacrifice_ruler - if = { - limit = { FROM = { is_female = yes } } - sound_effect = devil_worshippers_sacrifice_ruler_female - } - if = { - limit = { FROM = { is_female = no } } - sound_effect = devil_worshippers_sacrifice_ruler_male - } - add_society_currency_medium_effect = yes - increase_visibility_minor_effect = yes - minor_soul_corruption_effect = yes - break = yes - } + immediate = { + character_event = { id = MNM.7822 } + } +} - #And if there is no quest is completed - add_society_currency_minor_effect = yes - increase_visibility_effect = yes - major_soul_corruption_effect = yes + +##Sacrifice prisoner events +character_event = { #Head of Religion + id = MNM.7500 + picture = GFX_evt_sacrifice + desc = MNM.7500.d + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = MNM.7500.a + } +} + +character_event = { #Holy man + id = MNM.7501 + picture = GFX_evt_sacrifice + desc = MNM.7500.d + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = MNM.7500.a + } +} + +character_event = { #Dwarf + id = MNM.7502 + picture = GFX_evt_sacrifice + desc = MNM.7502.d + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = MNM.7502.a } } @@ -6645,98 +6646,6 @@ character_event = { #child option = { name = MNM.7503.a - FROM = { - hidden_effect = { character_event = { id = MNM.7506 } } - death = { - death_reason = death_missing - } - } - - #Clear missions and give rewards - if = { - limit = { - FROM = { is_virgin_trigger = yes } - has_quest = quest_the_devil_worshipers_sacrifice_virgin - } - clr_quest = quest_the_devil_worshipers_sacrifice_virgin - if = { - limit = { FROM = { is_female = yes } } - sound_effect = devil_worshippers_sacrifice_virgin_female - } - if = { - limit = { FROM = { is_female = no } } - sound_effect = devil_worshippers_sacrifice_virgin_male - } - add_society_currency_minor_effect = yes - increase_visibility_minor_effect = yes - minor_soul_corruption_effect = yes - break = yes - } - if = { - limit = { - OR = { - FROM = { is_priest = yes } - FROM = { is_ascetic_trigger = yes } - } - has_quest = quest_the_devil_worshipers_sacrifice_holy_person - } - clr_quest = quest_the_devil_worshipers_sacrifice_holy_person - if = { - limit = { FROM = { is_female = yes } } - sound_effect = devil_worshippers_sacrifice_holy_woman - } - if = { - limit = { FROM = { is_female = no } } - sound_effect = devil_worshippers_sacrifice_holy_man - } - add_society_currency_minor_effect = yes - increase_visibility_minor_effect = yes - minor_soul_corruption_effect = yes - break = yes - } - if = { - limit = { - FROM = { trait = dwarf } - has_quest = quest_the_devil_worshipers_sacrifice_dwarf - } - clr_quest = quest_the_devil_worshipers_sacrifice_dwarf - if = { - limit = { FROM = { is_female = yes } } - sound_effect = devil_worshippers_sacrifice_dwarf_female - } - if = { - limit = { FROM = { is_female = no } } - sound_effect = devil_worshippers_sacrifice_dwarf_male - } - add_society_currency_minor_effect = yes - increase_visibility_minor_effect = yes - minor_soul_corruption_effect = yes - break = yes - } - if = { - limit = { - FROM = { is_landed = yes } - has_quest = quest_the_devil_worshipers_sacrifice_ruler - } - clr_quest = quest_the_devil_worshipers_sacrifice_ruler - if = { - limit = { FROM = { is_female = yes } } - sound_effect = devil_worshippers_sacrifice_ruler_female - } - if = { - limit = { FROM = { is_female = no } } - sound_effect = devil_worshippers_sacrifice_ruler_male - } - add_society_currency_minor_effect = yes - increase_visibility_minor_effect = yes - minor_soul_corruption_effect = yes - break = yes - } - - #And if there is no quest is completed - add_society_currency_trivial_effect = yes - increase_visibility_effect = yes - major_soul_corruption_effect = yes } } @@ -6750,98 +6659,6 @@ character_event = { #Virgin option = { name = MNM.7504.a - FROM = { - hidden_effect = { character_event = { id = MNM.7506 } } - death = { - death_reason = death_missing - } - } - - #Clear missions and give rewards - if = { - limit = { - FROM = { is_virgin_trigger = yes } - has_quest = quest_the_devil_worshipers_sacrifice_virgin - } - clr_quest = quest_the_devil_worshipers_sacrifice_virgin - if = { - limit = { FROM = { is_female = yes } } - sound_effect = devil_worshippers_sacrifice_virgin_female - } - if = { - limit = { FROM = { is_female = no } } - sound_effect = devil_worshippers_sacrifice_virgin_male - } - add_society_currency_medium_effect = yes - increase_visibility_minor_effect = yes - minor_soul_corruption_effect = yes - break = yes - } - if = { - limit = { - OR = { - FROM = { is_priest = yes } - FROM = { is_ascetic_trigger = yes } - } - has_quest = quest_the_devil_worshipers_sacrifice_holy_person - } - clr_quest = quest_the_devil_worshipers_sacrifice_holy_person - if = { - limit = { FROM = { is_female = yes } } - sound_effect = devil_worshippers_sacrifice_holy_woman - } - if = { - limit = { FROM = { is_female = no } } - sound_effect = devil_worshippers_sacrifice_holy_man - } - add_society_currency_medium_effect = yes - increase_visibility_minor_effect = yes - minor_soul_corruption_effect = yes - break = yes - } - if = { - limit = { - FROM = { trait = dwarf } - has_quest = quest_the_devil_worshipers_sacrifice_dwarf - } - clr_quest = quest_the_devil_worshipers_sacrifice_dwarf - if = { - limit = { FROM = { is_female = yes } } - sound_effect = devil_worshippers_sacrifice_dwarf_female - } - if = { - limit = { FROM = { is_female = no } } - sound_effect = devil_worshippers_sacrifice_dwarf_male - } - add_society_currency_medium_effect = yes - increase_visibility_minor_effect = yes - minor_soul_corruption_effect = yes - break = yes - } - if = { - limit = { - FROM = { is_landed = yes } - has_quest = quest_the_devil_worshipers_sacrifice_ruler - } - clr_quest = quest_the_devil_worshipers_sacrifice_ruler - if = { - limit = { FROM = { is_female = yes } } - sound_effect = devil_worshippers_sacrifice_ruler_female - } - if = { - limit = { FROM = { is_female = no } } - sound_effect = devil_worshippers_sacrifice_ruler_male - } - add_society_currency_medium_effect = yes - increase_visibility_minor_effect = yes - minor_soul_corruption_effect = yes - break = yes - } - - #And if there is no quest is completed - add_society_currency_minor_effect = yes - increase_visibility_effect = yes - major_soul_corruption_effect = yes } } @@ -6855,98 +6672,6 @@ character_event = { #regular dude option = { name = MNM.7505.a - FROM = { - hidden_effect = { character_event = { id = MNM.7506 } } - death = { - death_reason = death_missing - } - } - - #Clear missions and give rewards - if = { - limit = { - FROM = { is_virgin_trigger = yes } - has_quest = quest_the_devil_worshipers_sacrifice_virgin - } - clr_quest = quest_the_devil_worshipers_sacrifice_virgin - if = { - limit = { FROM = { is_female = yes } } - sound_effect = devil_worshippers_sacrifice_virgin_female - } - if = { - limit = { FROM = { is_female = no } } - sound_effect = devil_worshippers_sacrifice_virgin_male - } - add_society_currency_minor_effect = yes - increase_visibility_minor_effect = yes - minor_soul_corruption_effect = yes - break = yes - } - if = { - limit = { - OR = { - FROM = { is_priest = yes } - FROM = { is_ascetic_trigger = yes } - } - has_quest = quest_the_devil_worshipers_sacrifice_holy_person - } - clr_quest = quest_the_devil_worshipers_sacrifice_holy_person - if = { - limit = { FROM = { is_female = yes } } - sound_effect = devil_worshippers_sacrifice_holy_woman - } - if = { - limit = { FROM = { is_female = no } } - sound_effect = devil_worshippers_sacrifice_holy_man - } - add_society_currency_minor_effect = yes - increase_visibility_minor_effect = yes - minor_soul_corruption_effect = yes - break = yes - } - if = { - limit = { - FROM = { trait = dwarf } - has_quest = quest_the_devil_worshipers_sacrifice_dwarf - } - clr_quest = quest_the_devil_worshipers_sacrifice_dwarf - if = { - limit = { FROM = { is_female = yes } } - sound_effect = devil_worshippers_sacrifice_dwarf_female - } - if = { - limit = { FROM = { is_female = no } } - sound_effect = devil_worshippers_sacrifice_dwarf_male - } - add_society_currency_minor_effect = yes - increase_visibility_minor_effect = yes - minor_soul_corruption_effect = yes - break = yes - } - if = { - limit = { - FROM = { is_landed = yes } - has_quest = quest_the_devil_worshipers_sacrifice_ruler - } - clr_quest = quest_the_devil_worshipers_sacrifice_ruler - if = { - limit = { FROM = { is_female = yes } } - sound_effect = devil_worshippers_sacrifice_ruler_female - } - if = { - limit = { FROM = { is_female = no } } - sound_effect = devil_worshippers_sacrifice_ruler_male - } - add_society_currency_minor_effect = yes - increase_visibility_minor_effect = yes - minor_soul_corruption_effect = yes - break = yes - } - - #And if there is no quest is completed - add_society_currency_trivial_effect = yes - increase_visibility_effect = yes - major_soul_corruption_effect = yes } } @@ -7118,6 +6843,7 @@ character_event = { is_triggered_only = yes is_in_society = yes + only_capable = yes trigger = { is_devil_worshiper_trigger = yes @@ -7146,6 +6872,23 @@ character_event = { factor = 0 is_playable = no } + modifier = { + factor = 0 + NOT = { + any_character = { + is_offmap_ruler = no + is_priest = yes + ai = yes + NOT = { character = ROOT } + is_within_diplo_range = ROOT + is_inaccessible_trigger = no + religion = ROOT + prisoner = no + NOT = { trait = incapable } + NOT = { same_society_as = ROOT } + } + } + } event_target:grand_enchanter = { character_event = { id = MNM.7838 } #Corrupt a priest } @@ -7169,6 +6912,9 @@ character_event = { character = ROOT } } + holder_scope = { + NOT = { same_society_as = ROOT } + } } } } @@ -7288,6 +7034,7 @@ society_quest_event = { holding_type = temple holder_scope = { religion = ROOT } holder_scope = { NOT = { character = ROOT } } + holder_scope = { NOT = { same_society_as = ROOT } } } } random_province_holding = { @@ -7295,6 +7042,7 @@ society_quest_event = { holding_type = temple holder_scope = { religion = ROOT } holder_scope = { NOT = { character = ROOT } } + holder_scope = { NOT = { same_society_as = ROOT } } } save_event_target_as = dw_desecration_target } @@ -7306,12 +7054,14 @@ society_quest_event = { any_province_holding = { holding_type = temple holder_scope = { religion = ROOT } + holder_scope = { NOT = { same_society_as = ROOT } } } } random_province_holding = { limit = { holding_type = temple holder_scope = { religion = ROOT } + holder_scope = { NOT = { same_society_as = ROOT } } } save_event_target_as = dw_desecration_target } @@ -7502,7 +7252,6 @@ character_event = { death = { death_reason = death_sacrificed } - } } hidden_effect = { @@ -7914,6 +7663,7 @@ society_quest_event = { immediate = { random_character = { limit = { + is_offmap_ruler = no is_priest = yes ai = yes NOT = { character = ROOT } @@ -7921,7 +7671,8 @@ society_quest_event = { is_inaccessible_trigger = no religion = ROOT prisoner = no - NOT = { trait = incapable } + NOT = { trait = incapable } + NOT = { same_society_as = ROOT } } save_event_target_as = corrupt_priest_mission_target } @@ -7929,6 +7680,7 @@ society_quest_event = { limit = { society_rank >= 2 } random_character = { limit = { + is_offmap_ruler = no is_ruler = yes ai = yes NOT = { character = ROOT } @@ -7940,6 +7692,7 @@ society_quest_event = { higher_tier_than = BARON lower_tier_than = KING is_priest = yes + NOT = { same_society_as = ROOT } } save_event_target_as = corrupt_priest_mission_target } @@ -7948,6 +7701,7 @@ society_quest_event = { limit = { society_rank >= 3 } random_character = { limit = { + is_offmap_ruler = no is_ruler = yes ai = yes NOT = { character = ROOT } @@ -7958,6 +7712,7 @@ society_quest_event = { NOT = { trait = incapable } higher_tier_than = BARON is_priest = yes + NOT = { same_society_as = ROOT } } save_event_target_as = corrupt_priest_mission_target } @@ -8133,6 +7888,7 @@ society_quest_event = { NOT = { trait = lunatic } NOT = { trait = possessed } is_adult = yes + NOT = { same_society_as = ROOT } } save_event_target_as = demonic_possession_mission_target } @@ -12177,34 +11933,6 @@ narrative_event = { set_character_flag = dw_gain_poet } } - - random_courtier = { - limit = { - prisoner = yes - host = { character = ROOT } - } - death = { - death_reason = death_execution_burning killer = ROOT - } - } - random_courtier = { - limit = { - prisoner = yes - host = { character = ROOT } - } - death = { - death_reason = death_execution_burning killer = ROOT - } - } - random_courtier = { - limit = { - prisoner = yes - host = { character = ROOT } - } - death = { - death_reason = death_execution_burning killer = ROOT - } - } } option = { @@ -13025,6 +12753,11 @@ character_event = { } immediate = { + if = { #Incapable ruler attacked in bed + limit = { is_incapable = yes } + set_character_flag = DW_was_attacked_is_incapable + break = yes + } #chooses who attacks you... random_list = { 10 = { @@ -13137,10 +12870,7 @@ character_event = { limit = { is_incapable = no prisoner = no - OR = { - dynasty = ROOT - family_of_root_trigger = yes - } + is_blood_relative_of_root_trigger = yes NOT = { character = ROOT } } save_event_target_as = other_member_to_blame @@ -13243,6 +12973,11 @@ character_event = { text = EVTDESC_MNM_7855_E picture = GFX_evt_catching_heretic } + desc = { + trigger = { has_character_flag = DW_was_attacked_is_incapable } #Incapable ruler attacked in bed + text = EVTDESC_MNM_7855_F + picture = GFX_evt_illness + } desc = { trigger = { has_character_flag = DW_was_attacked_by_the_slayer_again } #The Slayer II text = EVTDESC_MNM_7855_A_again @@ -13281,6 +13016,7 @@ character_event = { } option = { #fight them... + trigger = { NOT = { has_character_flag = DW_was_attacked_is_incapable } } name = { trigger = { OR = { @@ -13413,6 +13149,7 @@ character_event = { } option = { #attempt to bribe them... + trigger = { NOT = { has_character_flag = DW_was_attacked_is_incapable } } name = { text = EVTOPTC_MNM_7855_A trigger = { has_character_flag = DW_was_attacked_by_the_slayer } @@ -13582,6 +13319,7 @@ character_event = { } trigger = { + NOT = { has_character_flag = DW_was_attacked_is_incapable } has_society_currency_major_trigger = yes num_of_children = 1 any_child = { @@ -13656,12 +13394,18 @@ character_event = { } trigger = { + NOT = { has_character_flag = DW_was_attacked_is_incapable } is_devil_worshiper_trigger = yes society_rank < 4 event_target:other_member_to_blame = { always = yes } } } + option = { + name = EVTOPTE_MNM_7855 + trigger = { has_character_flag = DW_was_attacked_is_incapable } + death = { death_reason = death_execution_burning } + } after = { #CLEAR ALL FLAGS diff --git a/AncientReligions/events/mnm_misc_events.txt b/AncientReligions/events/mnm_misc_events.txt index 9bf17549..9d02e2cb 100644 --- a/AncientReligions/events/mnm_misc_events.txt +++ b/AncientReligions/events/mnm_misc_events.txt @@ -86,8 +86,10 @@ letter_event = { #Yes option = { - name = EVTOPTA_10001 - if = { limit = { society_rank < 4 } #todo: Remember you can rankup to 4 in some societies + name = { + text = EVTOPTA_10001 + } + if = { limit = { society_rank < 4 } #Reminder: Remember you can rankup to 4 in some societies society_rank_up = 1 } clr_character_flag = has_sent_request_to_rank_up @@ -150,6 +152,11 @@ character_event = { } immediate = { + if = { + limit = { prisoner = yes } + repeat_event = { id = MNM.10011 days = 90 random = 640 } + break = yes + } #Assassins if = { limit = { @@ -529,10 +536,43 @@ character_event = { hide_window = yes is_triggered_only = yes immediate = { - society = { - random_society_member = { - limit = { is_society_grandmaster = yes } - character_event = { id = MNM.10022 } + if = { + limit = { #If YOU are the grandmaster and there are others in the society... + OR = { + is_society_grandmaster = yes + society_rank == 4 + } + any_society_member = { + NOT = { character = ROOT } + same_society_as = ROOT + } + } + society = { + random_society_member = { + limit = { NOT = { character = ROOT } } + character_event = { id = MNM.10022 } #Have some rando send the kick-out letter! + } + } + } + if = { + limit = { #If you are NOT the grandmaster/a leader... + NOT = { society_rank == 4 } + } + society = { + random_society_member = { + limit = { + OR = { + is_society_grandmaster = yes + society_rank == 4 + } + } + character_event = { id = MNM.10022 } #Have the Grand Master send the kick-out letter! + } + } + } + else = { #If you are the last of your kind... + ROOT = { + leave_society = yes } } } @@ -2100,6 +2140,7 @@ character_event = { id = MNM.10040 hide_window = yes is_triggered_only = yes + capable_only = yes trigger = { society = { any_society_member = { @@ -2206,6 +2247,7 @@ character_event = { id = MNM.10043 hide_window = yes is_triggered_only = yes + capable_only = yes trigger = { society = { any_society_member = { @@ -2558,9 +2600,25 @@ character_event = { is_triggered_only = yes - trigger = { is_quest_target = yes } + trigger = { + OR = { + is_quest_target = yes + any_opinion_modifier_target = { + reverse_has_opinion_modifier = { who = ROOT modifier = opinion_infiltration_companion } + has_quest = quest_hermetics_infiltrate_laboratory + } + } + } immediate = { + any_opinion_modifier_target = { + limit = { + reverse_has_opinion_modifier = { who = ROOT modifier = opinion_infiltration_companion } + has_quest = quest_hermetics_infiltrate_laboratory + } + reverse_remove_opinion = { who = ROOT modifier = opinion_infiltration_companion } + character_event = { id = MNM.6992 days = 2 } + } any_quester_targeting_this = { limit = { has_character_flag = training_protege @@ -2630,7 +2688,6 @@ character_event = { quest_devil_worshipers_corrupt_priest = { clr_quest = { id = quest_devil_worshipers_corrupt_priest failure = yes } } quest_the_devil_worshipers_demonic_possession = { clr_quest = { id = quest_the_devil_worshipers_demonic_possession failure = yes } } quest_the_assassins_protege = { clr_quest = { id = quest_the_assassins_protege failure = yes } } - quest_hermetics_find_text = { clr_quest = { id = quest_hermetics_find_text failure = yes } } quest_secret_religious_societies_induct_ruler = { clr_quest = { id = quest_secret_religious_societies_induct_ruler failure = yes } } quest_secret_religious_societies_sympathy_ruler = { clr_quest = { id = quest_secret_religious_societies_sympathy_ruler failure = yes } } quest_the_devil_worshipers_demonic_impregnation = { clr_quest = { id = quest_the_devil_worshipers_demonic_impregnation failure = yes } } @@ -2691,7 +2748,6 @@ character_event = { desc = EVTDESC_MNM_10024 picture = GFX_evt_ritual_scroll border = GFX_event_normal_frame_religion - is_triggered_only = yes trigger = { diff --git a/AncientReligions/events/mnm_secret_religious_societies_events.txt b/AncientReligions/events/mnm_secret_religious_societies_events.txt index 7c40bfde..2fea6519 100644 --- a/AncientReligions/events/mnm_secret_religious_societies_events.txt +++ b/AncientReligions/events/mnm_secret_religious_societies_events.txt @@ -265,6 +265,7 @@ character_event = { hide_window = yes is_triggered_only = yes + capable_only = yes trigger = { society_member_of = secret_religious_cult @@ -549,6 +550,27 @@ character_event = { religion = manichean has_province_modifier = secret_manichean_community } + } + AND = { + ROOT = { secret_religion = khurmazta } + NOR = { + religion = khurmazta + has_province_modifier = secret_khurmazta_community + } + } + AND = { + ROOT = { secret_religion = bon } + NOR = { + religion = bon + has_province_modifier = secret_bon_community + } + } + AND = { + ROOT = { secret_religion = taoist } + NOR = { + religion = taoist + has_province_modifier = secret_taoist_community + } } AND = { ROOT = { secret_religion = hindu } @@ -839,6 +861,10 @@ society_quest_event = { } is_triggered_only = yes + + trigger = { + is_in_society = yes + } option = { name = ACCEPT @@ -2813,7 +2839,7 @@ long_character_event = { #Outcome 1 (small gain) ### ACR ### desc = { trigger = { - religion_openly_celtic_or_reformed_trigger = yes + religion_openly_in_celtic_subgroup_trigger = yes } text = mnm.3226.ancrel } @@ -3002,7 +3028,7 @@ long_character_event = { #Outcome 2 (small loss) ### ACR ### desc = { - trigger = { religion_openly_celtic_or_reformed_trigger = yes } + trigger = { religion_openly_in_celtic_subgroup_trigger = yes } text = mnm.3227.ancrel } desc = { @@ -3192,7 +3218,7 @@ long_character_event = { #Outcome 3 (big gain) ### ACR ### desc = { trigger = { - religion_openly_celtic_or_reformed_trigger = yes + religion_openly_in_celtic_subgroup_trigger = yes } text = mnm.3228.ancrel } @@ -3382,7 +3408,7 @@ long_character_event = { #Outcome 4 (big loss) ### ACR ### desc = { trigger = { - religion_openly_celtic_or_reformed_trigger = yes + religion_openly_in_celtic_subgroup_trigger = yes } text = mnm.3229.ancrel } @@ -3679,6 +3705,10 @@ society_quest_event = { } is_triggered_only = yes + + trigger = { + is_in_society = yes + } option = { name = ACCEPT @@ -3733,7 +3763,7 @@ character_event = { in_command = no is_inaccessible_trigger = no NOT = { character = ROOT } - same_realm = yes + same_realm = ROOT } character_event = { id = MNM.3236 } break = yes @@ -4562,7 +4592,7 @@ character_event = { modifier = { FROM = { diplomacy = 12 } factor = 1.4 } modifier = { FROM = { diplomacy = 14 } factor = 1.3 } modifier = { FROM = { diplomacy = 16 } factor = 1.2 } - modifier = { FROM = { ai = yes } factor = 2 } #The AI makes an uniformed choice, so they need this boost + #modifier = { FROM = { ai = yes } factor = 2 } #The AI makes an uniformed choice, so they need this boost modifier = { factor = 3 @@ -4720,6 +4750,7 @@ character_event = { } } + #POWER: Induct character to secret faith character_event = { id = MNM.3408 @@ -4855,7 +4886,7 @@ character_event = { modifier = { FROM = { diplomacy = 18 } factor = 1.3 } modifier = { FROM = { diplomacy = 20 } factor = 1.2 } modifier = { FROM = { diplomacy = 22 } factor = 1.2 } - modifier = { FROM = { ai = yes } factor = 1.5 } #The AI makes an uniformed choice, so they need this boost + #modifier = { FROM = { ai = yes } factor = 1.5 } #The AI makes an uniformed choice, so they need this boost modifier = { factor = 3 @@ -4908,7 +4939,7 @@ character_event = { option = { name = EVTOPTB_MNM_3410 - piety = 100 + piety = 25 hidden_effect = { event_target:secret_religion_inductor = { character_event = { id = MNM.3413 days = 3 } } } #fail event @@ -5005,6 +5036,7 @@ character_event = { } } + #Fail: Inductee hid/didn't read book character_event = { id = MNM.3413 @@ -5205,6 +5237,9 @@ character_event = { society_member_of = secret_religious_society_zoroastrian society_member_of = secret_religious_society_mazdaki society_member_of = secret_religious_society_manichean + society_member_of = secret_religious_society_khurmazta + society_member_of = secret_religious_society_bon + society_member_of = secret_religious_society_taoist society_member_of = secret_religious_society_norse_pagan society_member_of = secret_religious_society_slavic_pagan society_member_of = secret_religious_society_tengri_pagan @@ -5334,6 +5369,15 @@ character_event = { secret_religious_society_manichean = { ROOT = { set_character_flag = adopt_faith_manichean } } + secret_religious_society_khurmazta = { + ROOT = { set_character_flag = adopt_faith_khurmazta } + } + secret_religious_society_bon = { + ROOT = { set_character_flag = adopt_faith_bon } + } + secret_religious_society_taoist = { + ROOT = { set_character_flag = adopt_faith_taoist } + } secret_religious_society_hindu = { ROOT = { set_character_flag = adopt_faith_hindu } } @@ -5662,6 +5706,15 @@ character_event = { adopt_faith_manichean = { religion = manichean } + adopt_faith_khurmazta = { + religion = khurmazta + } + adopt_faith_bon = { + religion = bon + } + adopt_faith_taoist = { + religion = taoist + } adopt_faith_hindu = { religion = hindu } @@ -5796,6 +5849,9 @@ character_event = { clr_character_flag = adopt_faith_zoroastrian clr_character_flag = adopt_faith_mazdaki clr_character_flag = adopt_faith_manichean + clr_character_flag = adopt_faith_khurmazta + clr_character_flag = adopt_faith_bon + clr_character_flag = adopt_faith_taoist clr_character_flag = adopt_faith_hindu clr_character_flag = adopt_faith_buddhist clr_character_flag = adopt_faith_jain @@ -5854,6 +5910,7 @@ character_event = { # Openly Adopt Faith event (for the character who actually f } } + # openly_adopt_faith - Flip provinces with local cult modifier character_event = { id = MNM.3820 @@ -6007,6 +6064,21 @@ character_event = { set_character_flag = sr_manichean_prov_flip } } + secret_religious_society_khurmazta = { + ROOT = { + set_character_flag = sr_khurmazta_prov_flip + } + } + secret_religious_society_bon = { + ROOT = { + set_character_flag = sr_bon_prov_flip + } + } + secret_religious_society_taoist = { + ROOT = { + set_character_flag = sr_taoist_prov_flip + } + } secret_religious_society_hindu = { ROOT = { set_character_flag = sr_hindu_prov_flip @@ -6401,6 +6473,33 @@ character_event = { remove_province_modifier = secret_manichean_community } } + sr_khurmazta_prov_flip = { + any_demesne_province = { + limit = { + has_province_modifier = secret_khurmazta_community + } + religion = khurmazta + remove_province_modifier = secret_khurmazta_community + } + } + sr_bon_prov_flip = { + any_demesne_province = { + limit = { + has_province_modifier = secret_bon_community + } + religion = bon + remove_province_modifier = secret_bon_community + } + } + sr_taoist_prov_flip = { + any_demesne_province = { + limit = { + has_province_modifier = secret_taoist_community + } + religion = taoist + remove_province_modifier = secret_taoist_community + } + } sr_hindu_prov_flip = { any_demesne_province = { limit = { @@ -6666,6 +6765,9 @@ character_event = { clr_character_flag = sr_zoroastrian_prov_flip clr_character_flag = sr_mazdaki_prov_flip clr_character_flag = sr_manichean_prov_flip + clr_character_flag = sr_khurmazta_prov_flip + clr_character_flag = sr_bon_prov_flip + clr_character_flag = sr_taoist_prov_flip clr_character_flag = sr_hindu_prov_flip clr_character_flag = sr_buddhist_prov_flip clr_character_flag = sr_jain_prov_flip @@ -6951,7 +7053,8 @@ character_event = { society = { any_society_member = { block_general_event_trigger = no - NOT = { trait = honest } + NOT = { trait = honest } + NOT = { character = ROOT } } } } @@ -6962,7 +7065,8 @@ character_event = { random_society_member = { limit = { block_general_event_trigger = no - NOT = { trait = honest } + NOT = { trait = honest } + NOT = { character = ROOT } } character_event = { id = MNM.3506 days = 3 } } @@ -6976,7 +7080,8 @@ character_event = { society = { any_society_member = { block_general_event_trigger = no - NOT = { trait = slothful } + NOT = { trait = slothful } + NOT = { character = ROOT } } } } @@ -6987,7 +7092,8 @@ character_event = { random_society_member = { limit = { block_general_event_trigger = no - NOT = { trait = slothful } + NOT = { trait = slothful } + NOT = { character = ROOT } } character_event = { id = MNM.3506 days = 3 } } @@ -7001,7 +7107,8 @@ character_event = { society = { any_society_member = { block_general_event_trigger = no - NOT = { trait = wroth } + NOT = { trait = wroth } + NOT = { character = ROOT } } } } @@ -7012,7 +7119,8 @@ character_event = { random_society_member = { limit = { block_general_event_trigger = no - NOT = { trait = wroth } + NOT = { trait = wroth } + NOT = { character = ROOT } } character_event = { id = MNM.3506 days = 3 } } @@ -7026,7 +7134,8 @@ character_event = { society = { any_society_member = { block_general_event_trigger = no - NOT = { trait = trusting } + NOT = { trait = trusting } + NOT = { character = ROOT } } } } @@ -7037,7 +7146,8 @@ character_event = { random_society_member = { limit = { block_general_event_trigger = no - NOT = { trait = trusting } + NOT = { trait = trusting } + NOT = { character = ROOT } } character_event = { id = MNM.3506 days = 3 } } @@ -7052,6 +7162,7 @@ character_event = { any_society_member = { block_general_event_trigger = no intrigue = 12 + NOT = { character = ROOT } } } } @@ -7062,7 +7173,8 @@ character_event = { random_society_member = { limit = { block_general_event_trigger = no - intrigue = 12 + intrigue = 12 + NOT = { character = ROOT } } character_event = { id = MNM.3506 days = 3 } } @@ -7485,6 +7597,8 @@ character_event = { } } + + ###MISC### #Misc: convert child to secret religion @@ -7584,7 +7698,7 @@ character_event = { } option = { - event_target:secret_religion_influencer = { character_event = { id = MNM.3430 days = 3 random = 9 } } #todo days + event_target:secret_religion_influencer = { character_event = { id = MNM.3430 days = 3 random = 9 } } } } @@ -8188,7 +8302,7 @@ character_event = { } clear_delayed_event = { id = MNM.3849 } clear_delayed_event = { id = MNM.3859 } - clr_character_flag = preparing_grounds_in_@target_province + clr_character_flag = preparing_grounds_in_@event_target:target_province } } @@ -8288,7 +8402,7 @@ character_event = { hidden_effect = { clear_delayed_event = { id = MNM.3859 } clear_delayed_event = { id = MNM.3849 } - clr_character_flag = preparing_grounds_in_@target_province + clr_character_flag = preparing_grounds_in_@event_target:target_province } } } @@ -8529,6 +8643,30 @@ character_event = { } } } + khurmazta = { + event_target:target_province = { + add_province_modifier = { + name = secret_khurmazta_community + duration = -1 + } + } + } + bon = { + event_target:target_province = { + add_province_modifier = { + name = secret_bon_community + duration = -1 + } + } + } + taoist = { + event_target:target_province = { + add_province_modifier = { + name = secret_taoist_community + duration = -1 + } + } + } hindu = { event_target:target_province = { add_province_modifier = { @@ -8752,7 +8890,7 @@ character_event = { add_society_currency_minor_effect = yes } clear_delayed_event = { id = MNM.3849 } - clr_character_flag = preparing_grounds_in_@target_province + clr_character_flag = preparing_grounds_in_@event_target:target_province hidden_effect = { clear_delayed_event = { id = MNM.3859 } @@ -8976,6 +9114,27 @@ society_quest_event = { religion = manichean has_province_modifier = secret_manichean_community } + } + AND = { + ROOT = { secret_religion = khurmazta } + NOR = { + religion = khurmazta + has_province_modifier = secret_khurmazta_community + } + } + AND = { + ROOT = { secret_religion = bon } + NOR = { + religion = bon + has_province_modifier = secret_bon_community + } + } + AND = { + ROOT = { secret_religion = taoist } + NOR = { + religion = taoist + has_province_modifier = secret_taoist_community + } } AND = { ROOT = { secret_religion = hindu } @@ -9338,6 +9497,18 @@ character_event = { AND = { has_character_flag = character_was_manichean liege = { secret_religion = manichean } + } + AND = { + has_character_flag = character_was_khurmazta + liege = { secret_religion = khurmazta } + } + AND = { + has_character_flag = character_was_bon + liege = { secret_religion = bon } + } + AND = { + has_character_flag = character_was_taoist + liege = { secret_religion = taoist } } AND = { has_character_flag = character_was_hindu @@ -9474,7 +9645,7 @@ character_event = { border = GFX_event_normal_frame_religion is_triggered_only = yes - + capable_only = yes only_playable = yes is_in_society = yes @@ -9798,22 +9969,22 @@ character_event = { if = { limit = { has_character_flag = gregarious_success - FROM = { + event_target:worried_secret_member = { trait = paranoid } } - FROM = { + event_target:worried_secret_member = { remove_trait = paranoid } } if = { limit = { has_character_flag = gregarious_success - FROM = { + event_target:worried_secret_member = { trait = stressed } } - FROM = { + event_target:worried_secret_member = { remove_trait = stressed } } @@ -9833,6 +10004,14 @@ character_event = { clear_secret_religion = yes } } + + after = { + clr_character_flag = solidarity_success + clr_character_flag = solidarity_failure + clr_character_flag = devotion_success + clr_character_flag = devotion_failure + clr_character_flag = gregarious_success + } } ### Secret religions - commission painting @@ -10081,7 +10260,7 @@ character_event = { border = GFX_event_normal_frame_religion is_triggered_only = yes - + capable_only = yes is_in_society = yes trigger = { diff --git a/AncientReligions/events/roman_events.txt b/AncientReligions/events/roman_events.txt index b0bb86e2..f225abeb 100644 --- a/AncientReligions/events/roman_events.txt +++ b/AncientReligions/events/roman_events.txt @@ -40,7 +40,7 @@ narrative_event = { completely_controls = d_antioch completely_controls = d_aleppo completely_controls = d_tripoli - completely_controls = d_syria + completely_controls = d_palmyra completely_controls = d_damascus completely_controls = d_galilee completely_controls = d_jerusalem @@ -958,7 +958,7 @@ narrative_event = { #completely_controls = d_antioch #completely_controls = d_aleppo #completely_controls = d_tripoli - completely_controls = d_syria + completely_controls = d_palmyra completely_controls = d_damascus #completely_controls = d_galilee #completely_controls = d_jerusalem diff --git a/AncientReligions/events/soa_various_events.txt b/AncientReligions/events/soa_various_events.txt index b17aab19..3c5e1b0f 100644 --- a/AncientReligions/events/soa_various_events.txt +++ b/AncientReligions/events/soa_various_events.txt @@ -2397,6 +2397,7 @@ character_event = { any_dynasty_member = { limit = { + is_offmap_ruler = no NOT = { character = ROOT } NOT = { is_close_relative = ROOT } } diff --git a/AncientReligions/gfx/interface/religion_icon_strip.dds b/AncientReligions/gfx/interface/religion_icon_strip.dds index 7c8098ca..e4d3e9ab 100644 Binary files a/AncientReligions/gfx/interface/religion_icon_strip.dds and b/AncientReligions/gfx/interface/religion_icon_strip.dds differ diff --git a/AncientReligions/gfx/interface/religion_icon_strip_small.dds b/AncientReligions/gfx/interface/religion_icon_strip_small.dds index 248374fa..99f6a6d4 100644 Binary files a/AncientReligions/gfx/interface/religion_icon_strip_small.dds and b/AncientReligions/gfx/interface/religion_icon_strip_small.dds differ diff --git a/AncientReligions/interface/ACR_artifacts.gfx b/AncientReligions/interface/ACR_artifacts.gfx new file mode 100644 index 00000000..dcd40377 --- /dev/null +++ b/AncientReligions/interface/ACR_artifacts.gfx @@ -0,0 +1,103 @@ +spriteTypes = { + #Wines + spriteType = { + name = "GFX_wine_left_0" + texturefile = "gfx\\interface\\ACR\\artifacts\\wine_left_0.dds" + } + spriteType = { + name = "GFX_wine_left_1" + texturefile = "gfx\\interface\\ACR\\artifacts\\wine_left_1.dds" + } + spriteType = { + name = "GFX_wine_left_2" + texturefile = "gfx\\interface\\ACR\\artifacts\\wine_left_2.dds" + } + spriteType = { + name = "GFX_wine_left_3" + texturefile = "gfx\\interface\\ACR\\artifacts\\wine_left_3.dds" + } + spriteType = { + name = "GFX_wine_left_4" + texturefile = "gfx\\interface\\ACR\\artifacts\\wine_left_4.dds" + } + spriteType = { + name = "GFX_wine_left_5" + texturefile = "gfx\\interface\\ACR\\artifacts\\wine_left_5.dds" + } + + spriteType = { + name = "GFX_wine_right_0" + texturefile = "gfx\\interface\\ACR\\artifacts\\wine_right_0.dds" + } + spriteType = { + name = "GFX_wine_right_1" + texturefile = "gfx\\interface\\ACR\\artifacts\\wine_right_1.dds" + } + spriteType = { + name = "GFX_wine_right_2" + texturefile = "gfx\\interface\\ACR\\artifacts\\wine_right_2.dds" + } + spriteType = { + name = "GFX_wine_right_3" + texturefile = "gfx\\interface\\ACR\\artifacts\\wine_right_3.dds" + } + spriteType = { + name = "GFX_wine_right_4" + texturefile = "gfx\\interface\\ACR\\artifacts\\wine_right_4.dds" + } + spriteType = { + name = "GFX_wine_right_5" + texturefile = "gfx\\interface\\ACR\\artifacts\\wine_right_5.dds" + } + + # Oils + spriteType = { + name = "GFX_oil_left_0" + texturefile = "gfx\\interface\\ACR\\artifacts\\oil_left_0.dds" + } + spriteType = { + name = "GFX_oil_left_1" + texturefile = "gfx\\interface\\ACR\\artifacts\\oil_left_1.dds" + } + spriteType = { + name = "GFX_oil_left_2" + texturefile = "gfx\\interface\\ACR\\artifacts\\oil_left_2.dds" + } + spriteType = { + name = "GFX_oil_left_3" + texturefile = "gfx\\interface\\ACR\\artifacts\\oil_left_3.dds" + } + spriteType = { + name = "GFX_oil_left_4" + texturefile = "gfx\\interface\\ACR\\artifacts\\oil_left_4.dds" + } + spriteType = { + name = "GFX_oil_left_5" + texturefile = "gfx\\interface\\ACR\\artifacts\\oil_left_5.dds" + } + + spriteType = { + name = "GFX_oil_right_0" + texturefile = "gfx\\interface\\ACR\\artifacts\\oil_right_0.dds" + } + spriteType = { + name = "GFX_oil_right_1" + texturefile = "gfx\\interface\\ACR\\artifacts\\oil_right_1.dds" + } + spriteType = { + name = "GFX_oil_right_2" + texturefile = "gfx\\interface\\ACR\\artifacts\\oil_right_2.dds" + } + spriteType = { + name = "GFX_oil_right_3" + texturefile = "gfx\\interface\\ACR\\artifacts\\oil_right_3.dds" + } + spriteType = { + name = "GFX_oil_right_4" + texturefile = "gfx\\interface\\ACR\\artifacts\\oil_right_4.dds" + } + spriteType = { + name = "GFX_oil_right_5" + texturefile = "gfx\\interface\\ACR\\artifacts\\oil_right_5.dds" + } +} \ No newline at end of file diff --git a/AncientReligions/interface/ACR_secret_religious_societies.gfx b/AncientReligions/interface/ACR_secret_religious_societies.gfx deleted file mode 100644 index f4d9a970..00000000 --- a/AncientReligions/interface/ACR_secret_religious_societies.gfx +++ /dev/null @@ -1,44 +0,0 @@ -spriteTypes = { - spriteType = { - name = "GFX_trait_secretly_celtic_pagan" - texturefile = "gfx/traits/secret_religion_ref_germanic.tga" - noOfFrames = 1 - norefcount = yes - effectFile = "gfx/FX/buttonstate.lua" - } - spriteType = { - name = "GFX_trait_secretly_celtic_pagan_reformed" - texturefile = "gfx/traits/secret_religion_ref_germanic.tga" - noOfFrames = 1 - norefcount = yes - effectFile = "gfx/FX/buttonstate.lua" - } - spriteType = { - name = "GFX_trait_secretly_promethean_pagan" - texturefile = "gfx/traits/secret_religion_ref_germanic.tga" - noOfFrames = 1 - norefcount = yes - effectFile = "gfx/FX/buttonstate.lua" - } - spriteType = { - name = "GFX_trait_secretly_titan_pagan" - texturefile = "gfx/traits/secret_religion_ref_germanic.tga" - noOfFrames = 1 - norefcount = yes - effectFile = "gfx/FX/buttonstate.lua" - } - spriteType = { - name = "GFX_trait_secretly_egyptian_pagan" - texturefile = "gfx/traits/secret_religion_ref_germanic.tga" - noOfFrames = 1 - norefcount = yes - effectFile = "gfx/FX/buttonstate.lua" - } - spriteType = { - name = "GFX_trait_secretly_aten_pagan" - texturefile = "gfx/traits/secret_religion_ref_germanic.tga" - noOfFrames = 1 - norefcount = yes - effectFile = "gfx/FX/buttonstate.lua" - } -} \ No newline at end of file diff --git a/AncientReligions/interface/coats_of_arms.txt b/AncientReligions/interface/coats_of_arms.txt index 50ecfa5b..0028f9d5 100644 --- a/AncientReligions/interface/coats_of_arms.txt +++ b/AncientReligions/interface/coats_of_arms.txt @@ -366,6 +366,7 @@ culture = { religion = { "tengri_pagan_reformed" "tengri_pagan" + "bon" } templates = { @@ -446,7 +447,6 @@ culture = { templates = { "coa_plain_muslim:1" -# "coa_plain_pagan:1" } color = { @@ -601,7 +601,11 @@ culture = { } culture = { - religion_group = "indian_group" + religion = { + "buddhist" + "hindu" + "jain" + } templates = { "coa_plain_indian:1" @@ -675,6 +679,78 @@ culture = { } } +culture = { + religion = { + "taoist" + } + + templates = { + "coa_plain_indian:1" + } + + color = { + { 255 231 93 } #0 Or (Gold) + { 245 245 245 } #1 Argent (White ) + { 48 92 164 } #2 Azure ( Blue) + { 201 43 43 } #3 Gules (Red) + { 131 192 114 } #4 Vert (Light Green) + { 20 20 20 } #5 Sable (Black) + { 129 24 164 } #6 Purple + { 113 0 0 } #7 Sanguine (Blood Red) + { 205 87 10 } #8 Tenné (Tawny aka orange) + { 133 194 226 } #9 Bleu-Celeste (Sky Blue) + { 128 0 40 } #10 Murrey (Mulberry) Burgundy + { 17 53 13 } #11 Dark green + { 51 33 20 } #12 Brown + { 50 173 192 } #13 Turqouise + { 1 182 108 } #14 Teal + } + + rebel_colors = { 3 5 7 } + + banned_colors = + { + { 0 1 } #0 + { 0 1 9} #1 + { 2 3 4 6 7 8 9 12 14 } #2 + { 2 3 4 7 9 10 } #3 + { 2 4 6 7 9 10 13 14} #4 + { 5 10 14 15} #5 + { 2 4 6 10 11 12 } #6 + { 2 3 4 7 8 10 13 } #7 + { 2 4 6 7 8 9 } #8 + { 2 3 4 8 9 10 11 13 } #9 + { 3 4 5 6 7 9 10 } #10 + { 6 9 11 } #11 + { 6 12 } #12 + { 4 7 9 13 14 } #13 + { 2 4 13 14 } #14 + } + + emblem = { + file = "gfx\\coats_of_arms\\emblem_muslim.dds" + noOfFrames = 1 + } + + # WHEN ADDING NEW, ALWAYS ADD AT THE END + textures = { + texture = { + file = "gfx\\coats_of_arms\\pattern_china.tga" + size = { x = 10 y = 3 } + noOfFrames = 26 + color = 3 + emblem = no + } + texture = { + file = "gfx\\coats_of_arms\\pattern2_china.tga" + size = { x = 10 y = 3 } + noOfFrames = 26 + color = 3 + emblem = no + } + } +} + culture = { religion = { "hellenic_pagan" diff --git a/AncientReligions/interface/generalstuff.gfx b/AncientReligions/interface/generalstuff.gfx index acd072d0..e2f9ea30 100644 --- a/AncientReligions/interface/generalstuff.gfx +++ b/AncientReligions/interface/generalstuff.gfx @@ -556,6 +556,102 @@ spriteTypes = { allwaystransparent = yes } + # CONFUCIAN GOVERNMENT + spriteType = { + name = "GFX_charframe_150_confucian" + texturefile = "gfx\\interface\\charframe_150_confucian_bureaucracy.tga" + noOfFrames = 6 + allwaystransparent = yes + } + spriteType = { + name = "GFX_charframe_100_confucian" + texturefile = "gfx\\interface\\charframe_100_confucian_bureaucracy.tga" + noOfFrames = 6 + allwaystransparent = yes + } + spriteType = { + name = "GFX_charframe_75_confucian" + texturefile = "gfx\\interface\\charframe_75_confucian_bureaucracy.tga" + noOfFrames = 6 + allwaystransparent = yes + } + spriteType = { + name = "GFX_charframe_50_confucian" + texturefile = "gfx\\interface\\charframe_50_confucian_bureaucracy.tga" + noOfFrames = 6 + allwaystransparent = yes + } + spriteType = { + name = "GFX_charframe_34_confucian" + texturefile = "gfx\\interface\\charframe_34_confucian_bureaucracy.tga" + noOfFrames = 6 + allwaystransparent = yes + } + + # FEUDAL THEOCRACY + spriteType = { + name = "GFX_charframe_150_theocraticfeudal" + texturefile = "gfx\\interface\\charframe_150_theocraticfeudal.tga" + noOfFrames = 6 + allwaystransparent = yes + } + spriteType = { + name = "GFX_charframe_100_theocraticfeudal" + texturefile = "gfx\\interface\\charframe_100_theocraticfeudal.tga" + noOfFrames = 6 + allwaystransparent = yes + } + spriteType = { + name = "GFX_charframe_75_theocraticfeudal" + texturefile = "gfx\\interface\\charframe_75_theocraticfeudal.tga" + noOfFrames = 6 + allwaystransparent = yes + } + spriteType = { + name = "GFX_charframe_50_theocraticfeudal" + texturefile = "gfx\\interface\\charframe_50_theocraticfeudal.tga" + noOfFrames = 6 + allwaystransparent = yes + } + spriteType = { + name = "GFX_charframe_34_theocraticfeudal" + texturefile = "gfx\\interface\\charframe_34_theocraticfeudal.tga" + noOfFrames = 6 + allwaystransparent = yes + } + + # CHINESE IMPERIAL + spriteType = { + name = "GFX_charframe_150_chineseimperial" + texturefile = "gfx\\interface\\charframe_150_chineseimperial.tga" + noOfFrames = 6 + allwaystransparent = yes + } + spriteType = { + name = "GFX_charframe_100_chineseimperial" + texturefile = "gfx\\interface\\charframe_100_chineseimperial.tga" + noOfFrames = 6 + allwaystransparent = yes + } + spriteType = { + name = "GFX_charframe_75_chineseimperial" + texturefile = "gfx\\interface\\charframe_75_chineseimperial.tga" + noOfFrames = 6 + allwaystransparent = yes + } + spriteType = { + name = "GFX_charframe_50_chineseimperial" + texturefile = "gfx\\interface\\charframe_50_chineseimperial.tga" + noOfFrames = 6 + allwaystransparent = yes + } + spriteType = { + name = "GFX_charframe_34_chineseimperial" + texturefile = "gfx\\interface\\charframe_34_chineseimperial.tga" + noOfFrames = 6 + allwaystransparent = yes + } + ##### spriteType = { name = "GFX_char_150" @@ -607,12 +703,14 @@ spriteTypes = { texturefile = "gfx\\interface\\overlay_char_dead.tga" transparencecheck = yes norefcount = yes + noOfFrames = 2 } spriteType = { name = "GFX_overlay_char_dead_small" texturefile = "gfx\\interface\\overlay_char_dead2.tga" transparencecheck = yes norefcount = yes + noOfFrames = 2 } spriteType = { @@ -860,17 +958,17 @@ spriteTypes = { spriteType = { name = "GFX_religion_icon_strip" texturefile = "gfx\\interface\\religion_icon_strip.tga" - noOfFrames = 67 + noOfFrames = 62 } spriteType = { name = "GFX_religion_icon_strip_small" texturefile = "gfx\\interface\\religion_icon_strip_small.tga" - noOfFrames = 67 + noOfFrames = 62 } spriteType = { name = "GFX_religion_icon_strip_big" texturefile = "gfx\\interface\\religion_icon_strip_big.tga" - noOfFrames = 52 + noOfFrames = 56 } spriteType = { name = "GFX_secret_religion_icon_bg" @@ -1042,6 +1140,18 @@ spriteTypes = { name = "GFX_icon_muslim_government" texturefile = "gfx\\interface\\government_icon_iqta.dds" } + spriteType = { + name = "GFX_icon_theocratic_feudal_government" + texturefile = "gfx\\interface\\government_icon_theocratic_feudal.dds" + } + spriteType = { + name = "GFX_icon_chinese_imperial_government" + texturefile = "gfx\\interface\\government_icon_chinese_imperial.dds" + } + spriteType = { + name = "GFX_icon_confucian_bureaucracy" + texturefile = "gfx\\interface\\government_icon_confucian_bureaucracy.dds" + } spriteType = { name = "GFX_icon_tribal_government" texturefile = "gfx\\interface\\government_icon_tribal.dds" @@ -1058,5 +1168,8 @@ spriteTypes = { name = "GFX_icon_republic_government" texturefile = "gfx\\interface\\government_icon_republic.dds" } - + spriteType = { + name = "GFX_checkmark" + texturefile = "gfx\\interface\\checkmark.dds" + } } diff --git a/AncientReligions/localisation/00_ACR_override.csv b/AncientReligions/localisation/00_ACR_override.csv index 729fd2d0..24976857 100644 --- a/AncientReligions/localisation/00_ACR_override.csv +++ b/AncientReligions/localisation/00_ACR_override.csv @@ -4,6 +4,8 @@ SHOW_COLLEGE_OF_CARDINALS;Religious head electors;;;;;;;;;;;;;x POPE_VOTE_SCORE;§YReligious head suitability: $SCORE$§!;;;;;;;;;;;;;x CANDIDATE_SCORE;§YCandidate appointment score§!;;;;;;;;;;;;;x +SUCCESSOR;Current Successor;;;;;;;;;;;;;x +SUCCESSOR_TOOLTIP;This is the current expected successor of the religion head.;;;;;;;;;;;;;x ###### Map;;;;;;;;;;;;;;x b_meir;Akhetaten;;;;;;;;;;;;;x ###### Vanilla religions;;;;;;;;;;;;;;x @@ -18,25 +20,3 @@ west_african_pagan_reformed;Akan;Akan;;;;;;;;;;;;x finnish_pagan;Finnic;Finnic;;;;;;;;;;;;x baltic_pagan;Baltic;Baltic;;;;;;;;;;;;x altaic_pagan;Altaic;Altaic;;;;;;;;;;;;x -###### Missing vanilla title _adj, to avoid Validator errors;;;;;;;;;;;;;;x -k_lanka_adj;Lanka;;;;;;;;;;;;;x -k_telingana_adj;Telingana;;;;;;;;;;;;;x -k_andhra_adj;Andhra;;;;;;;;;;;;;x -k_tamilakam_adj;Tamilakam;;;;;;;;;;;;;x -k_karnata_adj;Karnata;;;;;;;;;;;;;x -k_maharastra_adj;Maharastra;;;;;;;;;;;;;x -k_bihar_adj;Bihar;;;;;;;;;;;;;x -k_orissa_adj;Orissa;;;;;;;;;;;;;x -k_kamarupa_adj;Kamarupa;;;;;;;;;;;;;x -k_bengal_adj;Bengal;;;;;;;;;;;;;x -k_gondwana_adj;Gondwana;;;;;;;;;;;;;x -k_kosala_adj;Kosala;;;;;;;;;;;;;x -k_malwa_adj;Malwa;;;;;;;;;;;;;x -k_rajputana_adj;Rajputana;;;;;;;;;;;;;x -k_gujarat_adj;Gujarat;;;;;;;;;;;;;x -k_delhi_adj;Delhi;;;;;;;;;;;;;x -k_punjab_adj;Punjab;;;;;;;;;;;;;x -k_sindh_adj;Sindh;;;;;;;;;;;;;x -k_mali_adj;Mali;;;;;;;;;;;;;x -k_afghanistan_adj;Afghanistan;;;;;;;;;;;;;x -k_baluchistan_adj;Baluchistan;;;;;;;;;;;;;x diff --git a/AncientReligions/localisation/ACR_cybrxkhan_misc.csv b/AncientReligions/localisation/ACR_cybrxkhan_misc.csv index d4852a2e..a9e067bf 100644 --- a/AncientReligions/localisation/ACR_cybrxkhan_misc.csv +++ b/AncientReligions/localisation/ACR_cybrxkhan_misc.csv @@ -17,7 +17,7 @@ VIET_garlic_distribution_desc;Garlic was a highly revered crop and important to VIET_planted_palm_trees;Planted Palm Trees;;;;;;;;;;;;;x VIET_planted_palm_trees_desc;Seeking to emulate the ancient Egyptians, the ruler of this province has ordered the planting of palm trees for shade, good luck, and prosperity.;;;;;;;;;;;;;x VIET_khnum_amulet;Amulet of Khnum;;;;;;;;;;;;;x -VIET_khnum_amulet_desc;This character possesses an amulet of the Egyptian pagan god Khnum.;;;;;;;;;;;;;x +VIET_khnum_amulet_desc;This character possesses an amulet of the Kemetic god Khnum.;;;;;;;;;;;;;x VIET_province_desecrated_egyptian_tombs;Ancient Tombs Desecrated;;;;;;;;;;;;;x VIET_province_desecrated_egyptian_tombs_desc;Somebody's been ransacking ancient tombs in this province... the gods will punish them in the afterlife. Hopefully.;;;;;;;;;;;;;x VIET_not_upholding_maat;Not Upholding Ma'at;;;;;;;;;;;;;x diff --git a/AncientReligions/localisation/ACR_egyptian.csv b/AncientReligions/localisation/ACR_egyptian.csv index d9fb1544..3ec1677d 100644 --- a/AncientReligions/localisation/ACR_egyptian.csv +++ b/AncientReligions/localisation/ACR_egyptian.csv @@ -77,9 +77,9 @@ job_marshal_aten_pagan;Sesemut;Sesemut;Sesemut;;Sesemut;;;;;;;;;x job_spiritual_aten_pagan;Xroj;Xroj;Xroj;;Xroj;;;;;;;;;x job_treasurer_aten_pagan;Pruj-Hdoj;Pruj-Hdoj;Pruj-Hdoj;;Pruj-Hdoj;;;;;;;;;x ###### Holding types;;;;;;;;;;;;;;x -duchy_of_egyptian_pagan;Nomarchy;Nomarquie;Nomarchy;;Nomarchy;;;;;;;;;x +duchy_of_egyptian_pagan;Nomarchy of;Nomarquie;Nomarchy;;Nomarchy;;;;;;;;;x kingdom_of_aten_pagan;Pharaohate of;Pharaonnat de;Pharaohate of;;Pharaohate of;;;;;;;;;x -duchy_of_aten_pagan;Nomarchy;Nomarquie;Nomarchy;;Nomarchy;;;;;;;;;x +duchy_of_aten_pagan;Nomarchy of;Nomarquie;Nomarchy;;Nomarchy;;;;;;;;;x kingdom_of_egyptian_pagan;Pharaohate of;Pharaonnat de;Pharaohate of;;Pharaohate of;;;;;;;;;x temple_barony_of_egyptian_pagan;Shrine of;Sanctuaire de;Shrine of;;Shrine of;;;;;;;;;x temple_county_of_egyptian_pagan;Temple of;Temple de;Temple of;;Temple of;;;;;;;;;x @@ -94,7 +94,7 @@ title_gods_wife;Gods Wife;;;;;;;;;;;;;x title_gods_wife_desc;The Gods Wife was an important priestly title that was originally held by the sister or wife of the Pharoah. This title is now largely honorary and can be granted to any woman from the Pharoah's dynasty.;;;;;;;;;;;;;x title_divine_adoratrice;Divine Adoratrice;;;;;;;;;;;;;x title_divine_adoratrice_desc;In ancient times this honor was given to a daughter of the pharoah, marking her as the heir to the current God's Wife of Amun. It was the second highest ranking title among priestesses. Much of it's importance has diminished in the intervening centuries, and it is now simply an honorary title granted to royal women.;;;;;;;;;;;;;x -title_fanbearer;Fan-bearer on the Right Side of the King;;;;;;;;;;;;;x +title_fanbearer;Fan-bearer on the Right Hand of the King;;;;;;;;;;;;;x title_fanbearer_desc;One of the highest honors in a Kemetic kingdom, this title marks the bearer as one of the kings most trusted advisors. They stand at the king's side when they hold court, offering whatever opinions they have on the matter at hand. A large golden fan is their badge of office.;;;;;;;;;;;;;x title_iry_pat;Iry-pat;;;;;;;;;;;;;x title_iry_pat_desc;Literally meaning 'member of the elite', this title was originally used to designate the heir-apparent. It is now used to grant royal favor to members of the nobility.;;;;;;;;;;;;;x diff --git a/AncientReligions/localisation/ACR_egyptian_events.csv b/AncientReligions/localisation/ACR_egyptian_events.csv index 89de03fe..35a0c2bf 100644 --- a/AncientReligions/localisation/ACR_egyptian_events.csv +++ b/AncientReligions/localisation/ACR_egyptian_events.csv @@ -141,6 +141,6 @@ ancrel.5004.desc;It has been thousands of years since worship of the Aten has be ancrel.5004.a;Praise Aten!;;;;;;;;;;;;;x ancrel.5004.b;Unexpected...;;;;;;;;;;;;;x ancrel.5005.title;Burning Blades;;;;;;;;;;;;;x -ancrel.5005.desc;Rumor has spread of a band of holy warriors who coat there swords in a strange paste and set them on fire before riding into battle, singing praises to Aten. Organized by [GetTitledName] and led by [Prev.GetTitledName], they are sworn to destroy the enemies of the Aten faith. One would certainly have a large army at their back before challenging these devoted warriors. Or a death wish.;;;;;;;;;;;;;x +ancrel.5005.desc;Rumor has spread of a band of holy warriors who coat there swords in a strange paste and set them on fire before riding into battle, singing praises to Aten. Organized by [GetTitledName] and led by [Prev.GetTitledName], they are sworn to destroy the enemies of the Atenic faith. One would certainly have a large army at their back before challenging these devoted warriors. Or a death wish.;;;;;;;;;;;;;x ancrel.5005.a;Ride, my warriors!;;;;;;;;;;;;;x ancrel.5005.b;Sounds dangerous...;;;;;;;;;;;;;x diff --git a/AncientReligions/localisation/ACR_other.csv b/AncientReligions/localisation/ACR_other.csv index 4fb5a3c9..b24a98ec 100644 --- a/AncientReligions/localisation/ACR_other.csv +++ b/AncientReligions/localisation/ACR_other.csv @@ -37,81 +37,6 @@ ancrel_honored_me;Honored Me;;;;;;;;;;;;;x ancrel_dissapointed;Dissapointed;;;;;;;;;;;;;x ancrel_jealous;Jealous;;;;;;;;;;;;;x ancrel_pleased;Pleased;;;;;;;;;;;;;x -###### Misc pagan events;;;;;;;;;;;;;;x -gone_pagan;Adopt the Old Ways;Adopter la Religion du pays;Adopt the Old Ways;;Adopt the Old Ways;;;;;;;;;x -gone_pagan_zoroastrian;Adopt the Old Ways;Adopter la Religion du pays;Adopt the Old Ways;;Adopt the Old Ways;;;;;;;;;x -gone_pagan_celtic_norse;Adopt the Old Ways;Adopter la Religion du pays;Adopt the Old Ways;;Adopt the Old Ways;;;;;;;;;x -gone_pagan_baltic_finnic;Adopt the Old Ways;Adopter la Religion du pays;Adopt the Old Ways;;Adopt the Old Ways;;;;;;;;;x -gone_pagan_tengri;Adopt the Old Ways;Adopter la Religion du pays;Adopt the Old Ways;;Adopt the Old Ways;;;;;;;;;x -gone_pagan_aztec;Adopt the Old Ways;Adopter la Religion du pays;Adopt the Old Ways;;Adopt the Old Ways;;;;;;;;;x -gone_pagan_slavic;Adopt the Old Ways;Adopter la Religion du pays;Adopt the Old Ways;;Adopt the Old Ways;;;;;;;;;x -gone_pagan_african;Adopt the Old Ways;Adopter la Religion du pays;Adopt the Old Ways;;Adopt the Old Ways;;;;;;;;;x -gone_pagan_egyptian;Adopt the Old Ways;Adopter la Religion du pays;Adopt the Old Ways;;Adopt the Old Ways;;;;;;;;;x -gone_pagan_judaic;Adopt the Old Ways;Adopter la Religion du pays;Adopt the Old Ways;;Adopt the Old Ways;;;;;;;;;x -gone_pagan_hellenic;Adopt the Old Ways;Adopter la Religion du pays;Adopt the Old Ways;;Adopt the Old Ways;;;;;;;;;x -gone_pagan_ctt;One of the following must be true:\n- The §YMoral Authority§! of your religion must be below §R10§!\n- There must be a pagan province in your demesne that is relevant to your culture, in addition to the §YMoral Authority§! of your religion being below §R20§!\n- You must be a lunatic and the §YMoral Authority§! of your religion must be below §R40§!;Une des conditions suivantes doit estre remplie :\n- L'§YAutorité Morale§! de votre religion doit estre inférieure à §R10§!\n- Il doit y avoir une province païenne dans votre domaine qui est proche de votre culture, en plus d'avoir l'§YAutorité Morale§! de votre religion en-dessous de §R20§!\n- vous devez estre dément et l'§YAutorité Morale§! de votre religion doit estre inférieure à §R40§!;One of the following must be true:\n- The §YMoral Authority§! of your religion must be below §R10§!\n- There must be a pagan province in your demesne that is relevant to your culture, in addition to the §YMoral Authority§! of your religion being below §R20§!\n- You must be a lunatic and the §YMoral Authority§! of your religion must be below §R40§!;;One of the following must be true:\n- The §YMoral Authority§! of your religion must be below §R10§!\n- There must be a pagan province in your demesne that is relevant to your culture, in addition to the §YMoral Authority§! of your religion being below §R20§!\n- You must be a lunatic and the §YMoral Authority§! of your religion must be below §R40§!;;;;;;;;;x -gone_pagan_desc;Adopt your culture's native religion.;Adopter la religion d'origine et votre culture.;Adopt your culture's native religion.;;Adopt your culture's native religion.;;;;;;;;;x -gone_pagan_zoroastrian_desc;Adopt your culture's native religion.;Adopter la religion d'origine et votre culture.;Adopt your culture's native religion.;;Adopt your culture's native religion.;;;;;;;;;x -gone_pagan_celtic_norse_desc;Adopt your culture's native religion.;Adopter la religion d'origine et votre culture.;Adopt your culture's native religion.;;Adopt your culture's native religion.;;;;;;;;;x -gone_pagan_baltic_finnic_desc;Adopt your culture's native religion.;Adopter la religion d'origine et votre culture.;Adopt your culture's native religion.;;Adopt your culture's native religion.;;;;;;;;;x -gone_pagan_tengri_desc;Adopt your culture's native religion.;Adopter la religion d'origine et votre culture.;Adopt your culture's native religion.;;Adopt your culture's native religion.;;;;;;;;;x -gone_pagan_aztec_desc;Adopt your culture's native religion.;Adopter la religion d'origine et votre culture.;Adopt your culture's native religion.;;Adopt your culture's native religion.;;;;;;;;;x -gone_pagan_slavic_desc;Adopt your culture's native religion.;Adopter la religion d'origine et votre culture.;Adopt your culture's native religion.;;Adopt your culture's native religion.;;;;;;;;;x -gone_pagan_african_desc;Adopt your culture's native religion.;Adopter la religion d'origine et votre culture.;Adopt your culture's native religion.;;Adopt your culture's native religion.;;;;;;;;;x -gone_pagan_egyptian_desc;Adopt your culture's native religion.;Adopter la religion d'origine et votre culture.;Adopt your culture's native religion.;;Adopt your culture's native religion.;;;;;;;;;x -gone_pagan_judaic_desc;Adopt your culture's native religion.;Adopter la religion d'origine et votre culture.;Adopt your culture's native religion.;;Adopt your culture's native religion.;;;;;;;;;x -gone_pagan_hellenic_desc;Adopt your culture's native religion.;Adopter la religion d'origine et votre culture.;Adopt your culture's native religion.;;Adopt your culture's native religion.;;;;;;;;;x -EVTDESC_GoPagan_100;For quite some time now you have watched the steady decline of the [Root.Religion.GetName] religion. You listen to the [Root.Religion.GetPriestTitle]s as they read from the [Root.Religion.GetScriptureName], and you can't help but wonder if they haven't lost their way. Perhaps the time has come to return to the ways of your [Root.Culture.GetName] ancestors?;For quite some time now you have watched the steady decline of the [Root.Religion.GetName] religion. You listen to the [Root.Religion.GetPriestTitle]s as they read from the [Root.Religion.GetScriptureName], and you can't help but wonder if they haven't lost their way. Perhaps the time has come to return to the ways of your [Root.Culture.GetName] ancestors?;For quite some time now you have watched the steady decline of the [Root.Religion.GetName] religion. You listen to the [Root.Religion.GetPriestTitle]s as they read from the [Root.Religion.GetScriptureName], and you can't help but wonder if they haven't lost their way. Perhaps the time has come to return to the ways of your [Root.Culture.GetName] ancestors?;;For quite some time now you have watched the steady decline of the [Root.Religion.GetName] religion. You listen to the [Root.Religion.GetPriestTitle]s as they read from the [Root.Religion.GetScriptureName], and you can't help but wonder if they haven't lost their way. Perhaps the time has come to return to the ways of your [Root.Culture.GetName] ancestors?;;;;;;;;;x,,,,,,,, -EVTNAME_GoPagan_100;Adopting the Old Ways;Adopter les Coutumes des Temps Anciens;Adopting the Old Ways;;Adopting the Old Ways;;;;;;;;;,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTOPTA_GoPagan_100;Zoroaster will lead us to enlightenment!;Zoroastre nous mènera à l'illumination !;Zoroaster will lead us to enlightenment!;;Zoroaster will lead us to enlightenment!;;;;;;;;;,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTOPTB_GoPagan_100;It's time to visit the elder druids;Il est temps de rendre visite aulx doyens druides;It's time to visit the elder druids;;It's time to visit the elder druids;;;;;;;;;,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTOPTC_GoPagan_100;To the gods of old!;Aulx dieulx d'antan !;To the gods of old!;;To the gods of old!;;;;;;;;;,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTOPTD_GoPagan_100;Valhalla awaits!;Le Valhalla nous attend !;Valhalla awaits!;;Valhalla awaits!;;;;;;;;;,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTOPTE_GoPagan_100;To the gods of old!;Aulx dieulx d'antan !;To the gods of old!;;To the gods of old!;;;;;;;;;,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTOPTL_GoPagan_100;God will not lead us astray;Dieu ne nous fera point dévier de notre route;God will not lead us astray;;God will not lead us astray;;;;;;;;;,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTOPTM_GoPagan_100;Let us look to the pantheon for guidance;Allons demander conseils et direction au panthéon;Let us look to the pantheon for guidance;;Let us look to the pantheon for guidance;;;;;;;;;,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTOPTZ_GoPagan_100;Maybe give them one more chance...;Leur donner peult-estre une aultre chance...;Maybe give them one more chance...;;Maybe give them one more chance...;;;;;;;;;,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTDESC_GoPagan_200;You find yourself touring an impoverished province, when word reaches you of a band of ruffians terrorizing local farmers. You remember Zarathustra preaching not only to live righteously but to actively fight evil whenever one can.;Vous visitez une province miséreuse, quand vous avez vent d'une bande de voyous terrorisant les fermiers du coin. Vous vous souvenez de Zoroastre preschant qu'il ne faut point seulement vivre vertueusement, mais aussi combattre activement le mal à chaque fois que l'on peult.;You find yourself touring an impoverished province, when word reaches you of a band of ruffians terrorizing local farmers. You remember Zarathustra preaching not only to live righteously but to actively fight evil whenever one can.;;You find yourself touring an impoverished province, when word reaches you of a band of ruffians terrorizing local farmers. You remember Zarathustra preaching not only to live righteously but to actively fight evil whenever one can.;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTOPTA_GoPagan_200;Hunt them down yourself;Les traquer vous-mesme;Hunt them down yourself;;Hunt them down yourself;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTOPTB_GoPagan_200;Send a squad of your guards;Envoyer une escouade de vos gardes;Send a squad of your guards;;Send a squad of your guards;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTOPTC_GoPagan_200;Let the locals handle it themselves;Laissez les locaulx s'en charger eulx-mesmes;Let the locals handle it themselves;;Let the locals handle it themselves;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTDESC_GoPagan_201;A petition came today from your Muslim vassals to help them rebuild their mosque destroyed in a recent fire. Will you choose the path of tolerance chosen by many of the famous Zoroastrian Shahs of old, or will you ignore those not following the teachings of Zarathustra?;Une pétition est arrivée le jour d'hui de la part de vos vassaulx musulmans demandant de les aider à reconstruire leur mosquée récemment détruite par un incendie. Choisirez-vous la voie de la tolérance, choisie par moults célèbres Shahs Zoroastriens de jadis, ou ignorerez-vous ceulx qui ne suivent point les enseignements de Zoroastre ?;A petition came today from your Muslim vassals to help them rebuild their mosque destroyed in a recent fire. Will you choose the path of tolerance chosen by many of the famous Zoroastrian Shahs of old, or will you ignore those not following the teachings of Zarathustra?;;A petition came today from your Muslim vassals to help them rebuild their mosque destroyed in a recent fire. Will you choose the path of tolerance chosen by many of the famous Zoroastrian Shahs of old, or will you ignore those not following the teachings of Zarathustra?;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTOPTA_GoPagan_201;Help them;Les aider;Help them;;Help them;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTOPTB_GoPagan_201;Ignore their plight;Ignorer leur détresse;Ignore their plight;;Ignore their plight;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTDESC_GoPagan_202;Today I partake in Sedreh Pushi, an ancient initiation ritual. From this day on I will be a proud member of the Zoroastrian flock;Le jour d'hui, je prends part à Sedreh Pushi, un ancien rite d'initiation. À partir de ce jour, je seroi un fier et féal Zoroastrien;Today I partake in Sedreh Pushi, an ancient initiation ritual. Form this day on I will be a proud member of the Zoroastrian flock;;Today I partake in Sedreh Pushi, an ancient initiation ritual. Form this day on I will be a proud member of the Zoroastrian flock;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTOPTA_GoPagan_202;Ask my father for advice;Demander conseil à mon père;Ask my father for advice;;Ask my father for advice;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTDESC_GoPagan_203;Today your child, [From.GetTitledFirstName], partakes in a Sedreh Pushi, an initiation ceremony. [From.GetSheHeCap] will don a shirt (Sudreh), girdle (Kushti), and a covering for the head and begin a new life as a member of the Zoroastrian flock. You can use this opportunity to teach [From.GetHerHim] something about your faith.;Le jour d'hui, votre enfant prend part à un Sedreh Pushi, une cérémonie d'initiation. [From.GetSheHe] revestira une chemise (Sudreh), un corset (Kushti) et un couvre-chef, et débutera une nouvelle vie en tant que membre de la foi Zoroastrienne. Vous pouvez en profiter pour lui apprendre quelque chose sur votre foi.;Today your child partakes in a Sedreh Pushi, an initiation ceremony. [From.GetSheHe] will don a shirt (sudreh), girdle (kusti) and a covering for the head and begin a new life as a member of the Zoroastrian flock. You can use this opportunity to teach [From.GetHerHim] something about your faith.;;Today your child partakes in a Sedreh Pushi, an initiation ceremony. [From.GetSheHe] will don a shirt (sudreh), girdle (kusti) and a covering for the head and begin a new life as a member of the Zoroastrian flock. You can use this opportunity to teach [From.GetHerHim] something about your faith.;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,, -EVTOPTA_GoPagan_203;Talk to [From.GetHerHim] about Asha, righteousness;Parler à [From.GetHerHim] au sujet d'Asha, rectitude;Talk to [From.GetHerHim] about Asha, righteousness;;Talk to [From.GetHerHim] about Asha, righteousness;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTOPTB_GoPagan_203;Talk to [From.GetHerHim] about Khshatr, divine power;Lui parler de Khshatr, pouvoir divin;Talk to [From.GetHerHim] about Khshatr, divine power;;Talk to [From.GetHerHim] about Khshatr, divine power;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTOPTC_GoPagan_203;Talk to [From.GetHerHim] about Armaiti, devotion;Lui parler au sujet d'Armaiti, dévotion;Talk to [From.GetHerHim] about Armaiti, devotion;;Talk to [From.GetHerHim] about Armaiti, devotion;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTOPTD_GoPagan_203;Talk to [From.GetHerHim] about Vohu Manah, holy spirit;Lui parler de Vohu Manah, le saint esprit;Talk to [From.GetHerHim] about Vohu Manah, holy spirit;;Talk to [From.GetHerHim] about Vohu Manah, holy spirit;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTOPTE_GoPagan_203;I have nothing to teach [From.GetHerHim];Je n'ai rien à lui apprendre.;I have nothing to teach [From.GetHerHim];;I have nothing to teach [From.GetHerHim];;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTDESC_GoPagan_205;You have decided to rebuild the capital of the ancient Persian empire, albeit in a slightly new location. You commission quarries to deliver large amounts of marble and gather masons from around the realm to build it. How ambitious should this project be?;Vous avez décidé de reconstruire la capitale de l'Ancien Empire Perse, bien que dans un lieu légèrement différent. Vous commandez aulx carrières de grandes quantités de marbre et rassemblez des maçons de tout le royaume pour la construction. À quel point ce projet devroit-il estre ambitieulx ?;You have decided to rebuild the capital of the ancient Persian empire, albeit in a slightly new location. You comission quarries to deliver large amounts of marble and gather masons from around the realm to build it. How ambitious should this project be?;;You have decided to rebuild the capital of the ancient Persian empire, albeit in a slightly new location. You comission quarries to deliver large amounts of marble and gather masons from around the realm to build it. How ambitious should this project be?;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTOPTC_GoPagan_205;Make it even greater than it was!;Le rendre encor plus grand qu'il n'estoit !;Make it even greater than it was!;;Make it even greater than it was!;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTNAME_GoPagan_206;Persepolis Rebuilt!;Persépolis Reconstruite !;Persepolis Rebuilt!;;Persepolis Rebuilt!;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTDESC_GoPagan_206;The new city is almost complete. What do you want to work on as a great project to complete the city? You can rebuild the ancient library to further our scholars' work, you can reconstruct the irrigation system to allow you to support more troops, or you can rebuild the Gate of all nations to dazzle the emmisaries from the poeples you subjugated.;Votre nouvelle cité est bientost achevée. Quel seroit le grand projet de votre choilx pour parachever la cité ? Vous pouvez reconstruire l'ancienne bibliothèque pour faire avancer le labeur de nos érudits, vous pouvez reconstruire le système d'irrigation pour vous permettre de sustenir davantage de troupes, ou vous pouvez reconstruire la Porte De Toutes Les Nations pour éblouir les émissaires des peuples que vous avez subjugués.;The new city is almost complete. What do you want to work on as a great project to complete the city? You can rebuild the ancient library to further our scholars' work, you can reconstruct the irrigation system to allow you to support more troops, or you can rebuild the Gate of all nations to dazzle the emmisaries from the poeples you subjugated.;;The new city is almost complete. What do you want to work on as a great project to complete the city? You can rebuild the ancient library to further our scholars' work, you can reconstruct the irrigation system to allow you to support more troops, or you can rebuild the Gate of all nations to dazzle the emmisaries from the poeples you subjugated.;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,, -EVTOPTA_GoPagan_206;Rebuild the library.;Reconstruire la bibliothèque.;Rebuild the library.;;Rebuild the library.;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTOPTB_GoPagan_206;Reconstruct the irrigation system.;Reconstruire le système d'irrigation.;Reconstruct the irrigation system.;;Reconstruct the irrigation system.;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTOPTC_GoPagan_206;Rebuild the Gate of All Nations.;Reconstruire la Porte de toutes les nations.;Rebuild the Gate of all nations.;;Rebuild the Gate of all nations.;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTNAME_GoPagan_207;New Persepolis;Nouvelle Persépolis;New Persepolis;;New Persepolis;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTDESC_GoPagan_207;The task is complete. New Persepolis has been erected.;La besogne est enfin achevée. La Nouvelle Persépolis est érigée.;The task is complete. New Persepolis has been erected.;;The task is complete. New Persepolis has been erected.;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTOPTA_GoPagan_207;Our Empire will never fall again and the world will bathe in our splendor.;Notre Empire ne tombera plus jamais et le monde se pasmera de notre splendeur.;Our Empire will never fall again and the world will bathe in our splendor.;;Our Empire will never fall again and the world will bathe in our splendor.;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTNAME_GoPagan_210;Persepolis is restored!;Persépolis est restaurée !;Persepolis is restored!;;Persepolis is restored!;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTDESC_GoPagan_210;The splendor of Persepolis has been restored many centuries after the destruction of the original in around 330 BC by Alexander the Great. In a new location, New Persepolis seeks to be the beacon of renewed hope at the heart of a new Persian Empire. Already many Persians are seeking to expand the borders of their reborn realm even further.;La splendeur de Persépolis a été rétablie, bien des siècles après la destruction de l'originale autour de 330 av. JC par Alexandre le Grand. Dans un nouveau lieu, La Nouvelle Persépolis a l'ambition d'estre une lueur d'espoir renouvelé au coeur d'un nouvel Empire Perse. Moults Perses quièrent déjà à étendre les frontières de leur royaume renaissant.;The splendor of Persepolis has been restored many centuries after the destruction of the original in around 330 BC by Alexander the Great. In a new location, New Persepolis seeks to be the beacon of renewed hope at the heart of new a Persian Empire. Already many Persians are seeking to expand the borders of their reborn realm even further.;;The splendor of Persepolis has been restored many centuries after the destruction of the original in around 330 BC by Alexander the Great. In a new location, New Persepolis seeks to be the beacon of renewed hope at the heart of new a Persian Empire. Already many Persians are seeking to expand the borders of their reborn realm even further.;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTOPTA_GoPagan_210;Worrisome...;Inquiétant...;Beunruhigend ...;;Inquietante...;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTNAME_GoPagan_215;Immortal Once More;Immortel Une Nouvelle Fois;Immortal Once More;;Immortal Once More;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTDESC_GoPagan_215;With the formation of the Persian kingdom, an old terror returns to the world. The Zhayedan (or, as they are more commonly known, Immortals) number 10000 and seek to strike fear into the hearts of the enemies of the Persians. These elite units are comparable to the Greek cataphracts of their time and are equipped with only the finest of equipment and horses. Truly they are a force worthy of the world’s attention.;Avec la formation du Royaume Perse, une vieille terreur reprend le monde. Les Zhayedan (mieulx connus sous le nom d'Immortels), forts de 10 000 hommes, quièrent à inspirer la peur dans le coeur des ennemis des Perses. Ces unités d'élite sont comparables aulx cataphractes grecques en leur temps et sont équipées avec équipement et chevaulx de tout premier ordre. Ils constituent une force réellement digne de l'attention du monde.;With the formation of the Persian kingdom an old terror returns to the world. The Zhayedan (or, as more commonly known, Immortals) number 10000 and seek to strike fear into the hearts of the enemies of the Persians. These elite units are comparable to the Greek cataphracts of their time and are equipped with only the finest of equipment and horses. Truly they are a force worthy of the world’s attention.;;With the formation of the Persian kingdom an old terror returns to the world. The Zhayedan (or, as more commonly known, Immortals) number 10000 and seek to strike fear into the hearts of the enemies of the Persians. These elite units are comparable to the Greek cataphracts of their time and are equipped with only the finest of equipment and horses. Truly they are a force worthy of the world’s attention.;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,, -EVTNAME_GoPagan_216;A New Persian Empire;Un nouvel Empire Perse;A new Persian Empire;;A new Persian Empire;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTDESC_GoPagan_216;With the reformation of the Persian Empire and the growing of its borders, the Shahanshah has decided that a second force of Zhayedan elites will be required. It would be a grave mistake to underestimate the power of this resurgent Persian Empire, as no one can doubt their legitimacy at this point. But in what direction will their ambitions drive them?;Avec la reformation de l'Empire Perse et l'agrandissement de ses frontières, le Shahanshah a décidé qu'une seconde armée d'élite Zhayedan sera nécessaire. Ce seroit une grave erreur que de sous-estimer cet Empire Perse renaissant, comme personne peult douter de leur force dorénavant. Mais dans quelle direction leur ambition les mènera-t-elle ?;With the reformation of the Persian Empire and the growing of its borders, the Shahanshah has decided that a second force of Zhayedan elites will be required. It would be a grave mistake to underestimate the power of this resurgent Persian Empire, as no one can doubt their legitimacy at this point. But in what direction will their ambitions drive them?;;With the reformation of the Persian Empire and the growing of its borders, the Shahanshah has decided that a second force of Zhayedan elites will be required. It would be a grave mistake to underestimate the power of this resurgent Persian Empire, as no one can doubt their legitimacy at this point. But in what direction will their ambitions drive them?;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,, -EVTNAME_GoPagan_220;The Great Sacrifice;Le Grand Sacrifice;The Great Sacrifice;;The Great Sacrifice;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTDESC_GoPagan_220;You feel the time is right to make a great sacrifice to one of the divinities of Zoroastrianism. As you begin to plan the event, you realize that you haven’t even decided on which divinity to sacrifice to. After some deliberation you decide to make a great sacrifice…;Vous trouvez que c'est le bon moment de faire un grand sacrifice à l'une des divinités du Zoroastrisme. Alors que vous commencez à préparer l'événement, vous réalisez que vous n'avez toujours point décidé à quelle divinité le sacrifice sera dédié. Après délibération, vous décidez de faire un sacrifice à...;You feel the time is right to make a great sacrifice to one of the divinities of Zoroastrianism. As you begin to plan the event, you realize that you haven’t even decided on which divinity to sacrifice to. After some deliberation you decide to make a great sacrifice…;;You feel the time is right to make a great sacrifice to one of the divinities of Zoroastrianism. As you begin to plan the event, you realize that you haven’t even decided on which divinity to sacrifice to. After some deliberation you decide to make a great sacrifice…;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTOPTA_GoPagan_220;... to Mithra, a divinity associated with war.;... à Mithra, une divinité associée à la guerre.;... to Mithra, a divinity associated with war.;;... to Mithra, a divinity associated with war.;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTOPTB_GoPagan_220;... to Parendi, a divinity associated with riches.;... à Parendi, une divinité associée à la richesse.;... to Parendi, a divinity associated with riches.;;... to Parendi, a divinity associated with riches.;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTOPTC_GoPagan_220;... to Chisti, a divinity associated with wisdom.;... à Chisti, une divinité associée à la sagesse.;... to Chisti, a divinity associated with wisdom.;;... to Chisti, a divinity associated with wisdom.;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTOPTD_GoPagan_220;... to none of them. It was a silly idea after all.;... à nul d'entre eulx. C'estoit une idée beste finalement.;... to none of them. It was a silly idea after all.;;... to none of them. It was a silly idea after all.;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTNAME_GoPagan_225;The Cleansing Ritual;Le Rituel de Purification;The Cleansing Ritual;;The Cleansing Ritual;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -EVTDESC_GoPagan_225;You approach a set of 6 holes about two feet deep for the ritual. The closest three are filled with gomez (consecrated bull’s urine, an effective ancient sanitizer). The furthest three are filled with water. There is a holy fire on the far end and you come to the realization that the priests are waiting for you to begin the ritual. As you recite Yasna 49 with the priests and approach the first gomez filled hole.;Vous vous approchez d'un ensemble de 6 trous d'environ 60cm de profondeur pour le rituel. Les trois les plus proches sont remplis de gomez (de l'urine de taureau sanctifiée, un désinfectant ancien mais efficace). Les trois trous les plus éloignés sont remplis d'eau. Il y a un feu sacré tout au bout et vous réalisez que les prestres n'attendent que vous pour commencer le rituel. Tandis que vous récitez le verset 49 du Yasna avec les prestres, vous vous approchez du premier trou rempli de gomez.;You approach a set of 6 holes about two feet deep for the ritual. The closest three are filled with gomez (consecrated bull’s urine, an effective ancient sanitizer). The furthest three are filled with water. There is a holy fire on the far end and you come to the realization that the priests are waiting for you to begin the ritual. As you recite Yasna 49 with the priests and approach the first gomez filled hole.;;You approach a set of 6 holes about two feet deep for the ritual. The closest three are filled with gomez (consecrated bull’s urine, an effective ancient sanitizer). The furthest three are filled with water. There is a holy fire on the far end and you come to the realization that the priests are waiting for you to begin the ritual. As you recite Yasna 49 with the priests and approach the first gomez filled hole.;;;;;;;;;x -EVTOPTA_GoPagan_225;I praise Thee, O Mazda Ahura, in my hymns and expect enjoying what Thou deemest the best.;Loué sois-Tu, Ô Ahura Mazda, mes hymnes T'accompagnent et ma vie sera telle que Tu auras jugé bon qu'elle soit.;I praise Thee, O Mazda Ahura, in my hymns and expect enjoying what Thou deemest the best.;;I praise Thee, O Mazda Ahura, in my hymns and expect enjoying what Thou deemest the best.;;;;;;;;;x,,,,,,,,,,,,,,,,,,,,,,,,, paganify_the_world;Lets. Get. PAGAN!;;;;;;;;;;;;;x paganify_the_world_desc;Convert all characters to a not Christian and not Muslim religion, based on culture. Does not affect religious heads, so the Caliphate remains. May bring older machines to their knees.;;;;;;;;;;;;;x ancrel.paganify.tooltip;Turn the world pagan by culture. This is mostly for development.;;;;;;;;;;;;;x @@ -128,8 +53,37 @@ ancrel.9009.desc;Congrats! You're Tengri Pagan!;;;;;;;;;;;;;x ancrel.9011.desc;Congrats! You're Promethean!;;;;;;;;;;;;;x ancrel.9012.desc;Congrats! You're a Titan Cultist!;;;;;;;;;;;;;x ancrel.9013.desc;Congrats! You're an Aten Pagan!;;;;;;;;;;;;;x -SUCCESSOR;Current Successor;;;;;;;;;;;;;x -SUCCESSOR_TOOLTIP;This is the current expected successor of the religion head.;;;;;;;;;;;;;x MNM.70400.c;This is too much!;;;;;;;;;;;;;x MNM.70400.c.tt;You leave the [Root.GetSocietyName];;;;;;;;;;;;;x -must_not_fear_persecution;This character is too afraid of persecution to join.;;;;;;;;;;;;;x \ No newline at end of file +must_not_fear_persecution;This character is too afraid of persecution to join.;;;;;;;;;;;;;x +###### Generic Artifacts;;;;;;;;;;;;;x +wine_left_0;Poisoned Wine;;;;;;;;;;;;x +wine_left_0_desc;These bottles of otherwise acceptable wine have been infused with a, potentially deadly, poison.;;;;;;;;;;;;x +wine_left_1;Weak Wine;;;;;;;;;;;;x +wine_left_1_desc;This wine is weak, both in flavor and alcohol. It is good for cooking and desperate drunks.;;;;;;;;;;;;x +wine_left_2;Common Wine;;;;;;;;;;;;x +wine_left_2_desc;These bottles contain average wine. It won't offend anyone, but it won't impress either.;;;;;;;;;;;;x +wine_left_3;Fine Wine;;;;;;;;;;;;x +wine_left_3_desc;This wine is of a good quality, something all but the most particular pallete would enjoy.;;;;;;;;;;;;x +wine_left_4;Exquisite Wine;;;;;;;;;;;;x +wine_left_4_desc;This batch of wine is of surpassing quality, very few ever experience the pleasure of drinking a wine like this.;;;;;;;;;;;;x +wine_left_5;Perfect Wine;;;;;;;;;;;;x +wine_left_5_desc;These bottles are the pinnacle of wine-making. Skill alone could not produce such a draught, only divine intervention could provide the necessary circumstances.;;;;;;;;;;;;x +wine_right_0;Deadly Wine;;;;;;;;;;;;x +wine_right_1;Fragrant Wine;;;;;;;;;;;;x +wine_right_2;Heady Wine;;;;;;;;;;;;x +wine_right_3;Tart Wine;;;;;;;;;;;;x +wine_right_4;Potent Wine;;;;;;;;;;;;x +wine_right_5;Spirited Wine;;;;;;;;;;;;x +oil_left_0;Poisoned Oil;;;;;;;;;;;;x +oil_left_1;Annointing Oil;;;;;;;;;;;;x +oil_left_2;Cleansing Oil;;;;;;;;;;;;x +oil_left_3;Perfumed Oil;;;;;;;;;;;;x +oil_left_4;Delicate Oil;;;;;;;;;;;;x +oil_left_5;Pheromone Oil;;;;;;;;;;;;x +oil_right_0;Rancid Oil;;;;;;;;;;;;x +oil_right_1;Musky Oil;;;;;;;;;;;;x +oil_right_2;Floral Oil;;;;;;;;;;;;x +oil_right_3;Woody Oil;;;;;;;;;;;;x +oil_right_4;Fruity Oil;;;;;;;;;;;;x +oil_right_5;Rich Oil;;;;;;;;;;;;x \ No newline at end of file diff --git a/AncientReligions/localisation/ACR_societies.csv b/AncientReligions/localisation/ACR_societies.csv index a6ab55de..2608030d 100644 --- a/AncientReligions/localisation/ACR_societies.csv +++ b/AncientReligions/localisation/ACR_societies.csv @@ -1,7 +1,7 @@ secret_religious_society_celtic_pagan;the Hidden Circle;;;;;;;;x secret_religious_society_celtic_pagan_desc;The followers of the Celtic faith have long known persecution, especially from Roman hands. As always, they persevere, even if they must use deception. Though they utter empty prayers to foreign gods, they secretly meet in private chambers and secluded groves to offer devotion and sacrifice to Danu, the Mother and source of life. They keep their faith knowing that some day mighty Taranis the Thunderer will strike down those who have persecuted the faithful.;;;;;;;;x secret_religious_society_celtic_pagan_reformed;Danu's Faithfull;;;;;;;;x -secret_religious_society_celtic_pagan_reformed_desc;The Druidic faith may be young, but it's followers are no less devout than any other. Even when they must publicly profess faith in false gods, the children of Danu plan and prepare for the day when they might worship the gods in the light of day. They know that none can long stand against might of Lug of the Long Spear, and those that opress them will get what they deserve.;;;;;;;;x +secret_religious_society_celtic_pagan_reformed_desc;The Druidic faith may be young, but it's followers are no less devout than any other. Even when they must publicly profess faith in false gods, the children of Danu plan and prepare for the day when they might worship the gods in the light of day. They know that none can long stand against the might of Lug of the Long Spear, and those that opress them will get what they deserve.;;;;;;;;x secret_religious_society_hellenic_pagan;the True Hellenes;;;;;;;;x secret_religious_society_hellenic_pagan_desc;For centuries the faith of the people of Greece and Rome was followed by millions. Though the number of adherents has dramatically shrunk, those that remain make up for it with their devotion. They deceive the followers of upstart and barbarian gods, though they send their prayers to the Olympians. They have struggled, but the True Hellenes know they will be victorious in the end, because none can stand against the fury of Almighty Zeus.;;;;;;;;x secret_religious_society_promethean_pagan;the Enlightened;;;;;;;;x @@ -166,6 +166,19 @@ the_sand_snakes_leader_desc;The Great Xroj of the Fangs of Apep;;;;;;;;;;;;;x the_sand_snakes_recruit_block_tooltip;Has not been approached by the Fangs of Apep before.;;;;;;;;;;;;;x the_sand_snakes_recruit;Recruit to The Fangs of Apep;;;;;;;;;;;;;x the_sand_snakes_recruit_desc;Attempt to find out whether §Y[Root.GetTitledFirstName]§! is open to the power of the occult. If so, you may invite [Root.GetHerHim] to become a member of The Fangs of Apep.;;;;;;;;;;;;;x +############### Mysteries of Dionysus ;;;;;;;;;;;;;x +mysteries_dionysus;Mysteries of Dionysus;;;;;;;;;;;;;x +mysteries_dionysus_desc;Since the dawn of civilization there have been those who have rejected it's gifts. Those who count themselves as initiates of the Dionysian mysteries commune with their god in secret rituals of revelry and intoxication. Thoroughly intimate affairs, these secret gatherings forge strong bonds between the participants, bonds that frequently persist beyond the secrecy of the rituals. But that's not all, Twice-born Dionysus, they say, knows the secrets of life and death. It is these secrets the initiates hope to earn from their god.;;;;;;;;;;;;;x +currency_name_mysteries_dionysus;Fervor;;;;;;;;;;;;;x +mysteries_dionysus_leader_desc;Hierophant of the Dionysian Mysteries;;;;;;;;;;;;;x +mysteries_dionysus_rank_1_male;Bacchus;;;;;;;;;;;;;x +mysteries_dionysus_rank_1_female;Ariadne;;;;;;;;;;;;;x +mysteries_dionysus_rank_2_male;Hymnodidaskolos;;;;;;;;;;;;;x +mysteries_dionysus_rank_2_female;Hymnodidaskolos;;;;;;;;;;;;;x +mysteries_dionysus_rank_3_male;Boukolos;;;;;;;;;;;;;x +mysteries_dionysus_rank_3_female;Boukolos;;;;;;;;;;;;;x +mysteries_dionysus_rank_4_male;Archiboukolos;;;;;;;;;;;;;x +mysteries_dionysus_rank_4_female;Archiboukolos;;;;;;;;;;;;;x ############### Strings ;;;;;;;;;;;;;x String_ker;Ker;;;;;;;;;;;;;x String_keres;Keres;;;;;;;;;;;;;x diff --git a/AncientReligions/localisation/ACR_titan_events.csv b/AncientReligions/localisation/ACR_titan_events.csv index 6d1ce6b3..ae39a756 100644 --- a/AncientReligions/localisation/ACR_titan_events.csv +++ b/AncientReligions/localisation/ACR_titan_events.csv @@ -70,7 +70,7 @@ EVTDESCancrel.3629;[From.GetTitledFirstName] marches [From.GetTitledHerHis] own EVTDESCancrel.3630;Those assembled at the Thysia gasp in surprise when [FromFrom.GetTitledFirstName], daughter of [From.GetTitledFirstName], is dragged up to the altar for the next sacrifice. She asks her [From.GetFatherMother] for mercy, but none is forthcoming.;;;;;;;;;;;;;x EVTDESCancrel.3631;[FromFrom.GetTitledFirstName], a member of [From.GetFirstName]'s own extended family, is dragged from the dungeons and brought to the temple. Despite, or perhaps because of, the fact that they are of the same blood, [From.GetFirstName] shows no mercy and the sacrifice takes place as planned.;;;;;;;;;;;;;x EVTDESCancrel.3632;[From.GetTitledFirstName] has apparently decided to sacrifice [From.GetHerHis] own spouse, [FromFrom.GetTitledFirstName], to the titans, and [FromFrom.GetSheHe] has been brought in chains to the temple. Despite professing [FromFrom.GetHerHis] continued love, [From.GetFirstName] has decided to go ahead with the sacrifice.;;;;;;;;;;;;;x -EVTDESCancrel.3633;In honor of this Thysia, your liege produces a Olympian from deep within [From.GetHerHis] dungeons. [FromFrom.GetTitledFirstName] is brought to the temple for the sacrifice, and everyone agrees that this is a most worthy sacrifice.;;;;;;;;;;;;;x +EVTDESCancrel.3633;In honor of this Thysia, your liege produces an Olympian from deep within [From.GetHerHis] dungeons. [FromFrom.GetTitledFirstName] is brought to the temple for the sacrifice, and everyone agrees that this is a most worthy sacrifice.;;;;;;;;;;;;;x EVTDESCancrel.3634;As you have no prisoners languishing in your dungeons that are suitable for sacrifice at the thysia, you are forced to make do with some randomly purchased thralls. They are brought to the great altar outside the temple, and soon their limp and lifeless bodies are drained of blood on the ancient stones.;;;;;;;;;;;;;x EVTOPTAancrel.3634;It is better than nothing.;;;;;;;;;;;;;x EVTDESCancrel.3635;As [From.GetTitledFirstName] had no prisoners languishing in [From.GetHerHis] dungeons that were suitable for sacrifice at the thysia, your liege was forced to make do with some randomly purchased thralls. They are brought to the great altar outside the temple, and soon their limp and lifeless bodies are drained of blood on the ancient stones.;;;;;;;;;;;;;x diff --git a/AncientReligions/localisation/customizable_localisation/00_customizable_localisation.txt b/AncientReligions/localisation/customizable_localisation/00_customizable_localisation.txt index 7ab17917..9b99d529 100644 --- a/AncientReligions/localisation/customizable_localisation/00_customizable_localisation.txt +++ b/AncientReligions/localisation/customizable_localisation/00_customizable_localisation.txt @@ -19,6 +19,8 @@ #GetActressActor #GetAscetic #GetQueenKing +#GetPrincessPrince +#GetBrideGroom #GetMasterMistressCap #CHARACTER "DESCRIPTIONS" @@ -82,7 +84,22 @@ #WEATHER, TIME #GetWeatherAdjective #GetTemperature - +#GetSeason #WIP + +#CHINA +#GetLongChineseEmperorName +#GetMediumChineseEmperorName +#GetShortChineseEmperorName +#GetCouncillorLetterGreeting +#GetRulerLetterGreeting +#GetGovernorLetterGreeting +#GetChineseLetterBlessing +#GetChineseComplimentAdjective +#GetChineseOffmapTributaryPrestigeCost +#GetChineseForceOpenDemand +#GetChineseForceOpenDemandChina + +#MISC #GetMatterOfImportance @@ -275,8 +292,18 @@ defined_text = { } } text = { - localisation_key = GetRelation_Cousin + localisation_key = GetRelation_Cousin_Female + trigger = { + is_female = yes + sibling_in_law_of_root_trigger = yes + NOT = { any_spouse = { character = ROOT } } + relationship_with_root_trigger = no + } + } + text = { + localisation_key = GetRelation_Cousin_Male trigger = { + is_female = no sibling_in_law_of_root_trigger = yes NOT = { any_spouse = { character = ROOT } } relationship_with_root_trigger = no @@ -465,6 +492,16 @@ defined_text = { } } } + text = { + localisation_key = GetRelation_Concubine + weight_multiplier = { factor = 100 } + trigger = { + is_consort = ROOT + } + } + fallback_text = { + localisation_key = String_root_relation_fallback #fallback, in case it fails to find relevant info + } } #The relationship This has to Root @@ -638,7 +675,7 @@ defined_text = { trigger = { has_education_diplomacy_trigger = yes } } text = { - localisation_key = String_ledger + localisation_key = String_ledgers trigger = { has_education_stewardship_trigger = yes } } text = { @@ -779,15 +816,41 @@ defined_text = { name = GetQueenKing text = { - trigger = { is_female = no } + trigger = { is_female = yes } localisation_key = String_Queen } text = { - trigger = { is_female = yes } + trigger = { is_female = no } localisation_key = String_King } } +defined_text = { + name = GetPrincessPrince + + text = { + trigger = { is_female = yes } + localisation_key = String_Princess + } + text = { + trigger = { is_female = no } + localisation_key = String_Prince + } +} + +defined_text = { + name = GetBrideGroom + + text = { + trigger = { is_female = yes } + localisation_key = String_bride + } + text = { + trigger = { is_female = no } + localisation_key = String_groom + } +} + defined_text = { name = GetMasterMistressCap @@ -801,39 +864,37 @@ defined_text = { } } - - ###CHARACTER DESCRIPTIONS### defined_text = { name = GetVice text = { trigger = { trait = lustful } - localisation_key = Vice_Lustful + localisation_key = String_Vice_lustful } text = { trigger = { trait = gluttonous } - localisation_key = GetViceGluttonous + localisation_key = String_Vice_gluttonous } text = { trigger = { trait = greedy } - localisation_key = Vice_Greedy + localisation_key = String_Vice_greedy } text = { trigger = { trait = slothful } - localisation_key = Vice_Slothful + localisation_key = String_Vice_slothful } text = { trigger = { trait = wroth } - localisation_key = GetViceWroth + localisation_key = String_Vice_wroth } text = { trigger = { trait = envious } - localisation_key = GetViceEnvious + localisation_key = String_Vice_envious } text = { trigger = { trait = proud } - localisation_key = Vice_Proud + localisation_key = String_Vice_proud } } @@ -865,7 +926,7 @@ defined_text = { localisation_key = String_scarred } text = { - trigger = { is_ill = yes } + trigger = { is_ill_trigger = yes } localisation_key = String_sickly } text = { @@ -1040,19 +1101,6 @@ defined_text = { } } - - -defined_text = { - name = GetComplimentNoun - - text = { - trigger = { - - } - localisation_key = v - } -} - defined_text = { name = GetInsultAdjective text = { @@ -1150,7 +1198,7 @@ defined_text = { text = { trigger = { OR = { - trait = infirm #todo? + trait = infirm } } localisation_key = INSULT_CRIPPLE @@ -1361,6 +1409,10 @@ defined_text = { localisation_key = the_sand_snakes trigger = { society_member_of = the_sand_snakes } } + text = { + localisation_key = mysteries_dionysus + trigger = { society_member_of = mysteries_dionysus } + } } defined_text = { @@ -1440,6 +1492,10 @@ defined_text = { localisation_key = the_sand_snakes trigger = { society_member_of = the_sand_snakes } } + text = { + localisation_key = mysteries_dionysus + trigger = { society_member_of = mysteries_dionysus } + } } @@ -1814,6 +1870,63 @@ defined_text = { } } +defined_text = { + name = GetDWMagicianPlural + + text = { + localisation_key = String_witches + trigger = { + is_female = yes + society_member_of = the_satanists + } + } + text = { + localisation_key = String_warlocks + trigger = { + is_female = no + society_member_of = the_satanists + } + } + text = { + localisation_key = String_koldunyas + trigger = { + is_female = yes + society_member_of = the_cold_ones + } + } + text = { + localisation_key = String_kolduns + trigger = { + is_female = no + society_member_of = the_cold_ones + } + } + text = { + localisation_key = String_seiðkonur + trigger = { + is_female = yes + society_member_of = the_trollcrafters + } + } + text = { + localisation_key = String_seiðmenn + trigger = { + is_female = no + society_member_of = the_trollcrafters + } + } + text = { + localisation_key = string_black_shamans + trigger = { society_member_of = the_plaguebringers } + } + text = { + localisation_key = String_dark_tantriks + trigger = { + society_member_of = the_cult_of_kali + } + } +} + defined_text = { name = GetDWExpression @@ -2138,7 +2251,13 @@ defined_text = { } text = { localisation_key = String_Peace_be_upon_you - trigger = { is_indian_secret_religious_society_member_trigger = yes } + trigger = { + OR = { + is_indian_secret_religious_society_member_trigger = yes + is_bon_secret_religious_society_member_trigger = yes + is_taoist_secret_religious_society_member_trigger = yes + } + } } text = { localisation_key = String_Shalom_aleikhem @@ -2289,6 +2408,16 @@ defined_text = { localisation_key = String_Fire_and_blood trigger = { is_aztec_secret_religious_society_member_trigger = yes } } + text = { + localisation_key = String_May_the_Ancestors_guide_you + trigger = { + OR = { + is_bon_secret_religious_society_member_trigger = yes + is_taoist_secret_religious_society_member_trigger = yes + } + } + } + ### ACR ### text = { @@ -2379,6 +2508,14 @@ defined_text = { localisation_key = String_Fire_and_blood trigger = { is_aztec_secret_religious_society_member_trigger = yes } } + text = { + localisation_key = String_Animal_made_of_bread + trigger = { is_bon_secret_religious_society_member_trigger = yes } + } + text = { + localisation_key = String_Yinyang_symbol + trigger = { is_taoist_secret_religious_society_member_trigger = yes } + } ### ACR ### text = { @@ -2464,7 +2601,7 @@ defined_text = { trigger = { religion_group = pagan_group NOT = { - religion_openly_celtic_or_reformed_trigger = no + religion_openly_in_celtic_subgroup_trigger = no } } } @@ -2488,17 +2625,21 @@ defined_text = { localisation_key = GetHouseOfWorship_Jain trigger = { religion = jain } } + text = { + localisation_key = GetHouseOfWorship_Taoist + trigger = { religion = taoist } + } text = { localisation_key = GetHouseOfWorship_Celtic trigger = { - religion_openly_celtic_or_reformed_trigger = yes + religion_openly_in_celtic_subgroup_trigger = yes NOT = { culture = gaulish } } } text = { localisation_key = GetHouseOfWorship_Gaulish trigger = { - religion_openly_celtic_or_reformed_trigger = yes + religion_openly_in_celtic_subgroup_trigger = yes culture = gaulish } } @@ -2717,6 +2858,10 @@ defined_text = { localisation_key = String_Hindu trigger = { religion = hindu } } + text = { + localisation_key = String_Taoist + trigger = { religion = taoist } + } text = { localisation_key = String_Norse trigger = { @@ -3121,6 +3266,18 @@ defined_text = { } } } + text = { + localisation_key = khurmazta + trigger = { true_religion_khurmazta_trigger = yes } + } + text = { + localisation_key = bon + trigger = { true_religion_bon_trigger = yes } + } + text = { + localisation_key = taoist + trigger = { true_religion_taoist_trigger = yes } + } ### ACR ### text = { @@ -3345,6 +3502,18 @@ defined_text = { localisation_key = zun_pagan trigger = { true_religion_zun_pagan_trigger = yes } } + text = { + localisation_key = khurmazta + trigger = { true_religion_khurmazta_trigger = yes } + } + text = { + localisation_key = bon + trigger = { true_religion_bon_trigger = yes } + } + text = { + localisation_key = taoist + trigger = { true_religion_taoist_trigger = yes } + } ### ACR ### text = { @@ -3496,6 +3665,18 @@ defined_text = { } } } + text = { + localisation_key = GOD_ZARVANA + trigger = { true_religion_khurmazta_trigger = yes } + } + text = { + localisation_key = GOD_SANGPO_BUMTRI + trigger = { true_religion_bon_trigger = yes } + } + text = { + localisation_key = GOD_HEAVENLY_ORDER + trigger = { true_religion_taoist_trigger = yes } + } ### ACR ### text = { @@ -3529,7 +3710,7 @@ defined_text = { } defined_text = { - name = GetTrueReligionScriptureName + name = GetTrueReligionScriptureName text = { localisation_key = String_Bible trigger = { @@ -3604,6 +3785,18 @@ defined_text = { } } } + text = { + localisation_key = THE_GATHAS + trigger = { true_religion_khurmazta_trigger = yes } + } + text = { + localisation_key = MDODUS + trigger = { true_religion_bon_trigger = yes } + } + text = { + localisation_key = TAO_TE_CHING + trigger = { true_religion_taoist_trigger = yes } + } ### ACR ### text = { @@ -3745,6 +3938,18 @@ defined_text = { } } } + text = { + localisation_key = khurmazta + trigger = { true_religion_khurmazta_trigger = yes } + } + text = { + localisation_key = bon + trigger = { true_religion_bon_trigger = yes } + } + text = { + localisation_key = taoist + trigger = { true_religion_taoist_trigger = yes } + } ### ACR ### text = { @@ -3832,6 +4037,10 @@ defined_text = { localisation_key = String_Jain trigger = { religion = jain } } + text = { + localisation_key = String_Taoist + trigger = { religion = taoist } + } text = { localisation_key = String_Norse_Follower trigger = { @@ -3895,6 +4104,18 @@ defined_text = { } } } + text = { + localisation_key = String_khurmazta_faithful + trigger = { true_religion_khurmazta_trigger = yes } + } + text = { + localisation_key = String_bon_faithful + trigger = { true_religion_bon_trigger = yes } + } + text = { + localisation_key = taoist + trigger = { true_religion_taoist_trigger = yes } + } ### ACR ### text = { @@ -4458,115 +4679,543 @@ defined_text = { } +#CHINA +defined_text = { + name = GetLongChineseEmperorName + text = { + trigger = { always = yes } + localisation_key = GetLongChineseEmperorName_string + } +} -###NON-REUSABLE LOC KEYS### defined_text = { - name = GetHermeticInvention + name = GetMediumChineseEmperorName text = { - trigger = { has_character_flag = war_invention } - localisation_key = String_warfare + trigger = { always = yes } + localisation_key = GetMediumChineseEmperorName_string } +} + +defined_text = { + name = GetShortChineseEmperorName text = { - trigger = { has_character_flag = prosperity_invention } - localisation_key = String_prosperity + trigger = { always = yes } + localisation_key = GetShortChineseEmperorName_string } +} + +defined_text = { + name = GetCouncillorLetterGreeting text = { - trigger = { has_character_flag = knowledge_invention } - localisation_key = String_scholarship + trigger = { always = yes } + localisation_key = GetCouncillorLetterGreeting_string } } defined_text = { - name = GetSocietyRankUpTooltip1 + name = GetRulerLetterGreeting + text = { + trigger = { always = yes } + localisation_key = GetRulerLetterGreeting_string + } +} +defined_text = { + name = GetGovernorLetterGreeting text = { - trigger = { society_rank == 1 } - localisation_key = GetSocietyRankUpTooltip1_Standard_Rank1 + trigger = { always = yes } + localisation_key = GetGovernorLetterGreeting_string + } +} + +defined_text = { + name = GetChineseLetterBlessing + text = { + trigger = { FROM = { has_job_title = job_chancellor } } + localisation_key = String_peace_and_unity } text = { - trigger = { society_rank == 2 } - localisation_key = GetSocietyRankUpTooltip1_Standard_Rank2 + trigger = { FROM = { has_job_title = job_marshal } } + localisation_key = String_strength_and_vigor } text = { - trigger = { society_rank == 3 } - localisation_key = GetSocietyRankUpTooltip1_Standard_Rank3 + trigger = { FROM = { has_job_title = job_treasurer } } + localisation_key = String_prospering_lands + } + text = { + trigger = { FROM = { has_job_title = job_spiritual } } + localisation_key = String_divine_guidance + } + text = { + trigger = { always = yes } + localisation_key = String_heavens_blessings + } + text = { + trigger = { always = yes } + localisation_key = String_good_health } } defined_text = { - name = GetSocietyRankUpTooltip2 - + name = GetChineseComplimentAdjective + text = { + localisation_key = String_honored + } text = { trigger = { - NOR = { - society_member_of = monastic_order_jain - society_member_of = monastic_order_buddhist + OR = { + trait = chaste + trait = celibate + AND = { + NOT = { num_of_lovers = 1 } + is_married = no + NOR = { + trait = seducer + trait = seductress + trait = lustful + has_focus = focus_seduction + } + } } } - localisation_key = "" + localisation_key = String_chaste } text = { - trigger = { - society_rank == 1 + trigger = { OR = { - society_member_of = monastic_order_jain - society_member_of = monastic_order_buddhist + is_strong_trigger = yes + trait = fair } } - localisation_key = GetSocietyRankUpTooltip2_MOBuddhistJain_Rank1 + localisation_key = String_radiant } text = { - trigger = { - society_rank >= 2 + trigger = { OR = { - society_member_of = monastic_order_jain - society_member_of = monastic_order_buddhist + is_learned_trigger = yes + tier = EMPEROR } } - localisation_key = GetSocietyRankUpTooltip2_MOBuddhistJain_Rank2 + localisation_key = String_illustrious } -} - -defined_text = { - name = GetSocietyRankUpTooltip3 - text = { - trigger = { + trigger = { + OR = { + trait = brave + trait = charitable + trait = honest + trait = diligent + trait = patient + trait = kind + trait = humble + trait = just + } NOR = { - society_member_of = monastic_order_jain - society_member_of = monastic_order_buddhist + trait = drunkard + trait = deceitful + trait = cruel + trait = gluttonous + trait = slothful + trait = schemer + trait = wroth + is_any_kinslayer_trigger = yes + trait = cannibal_trait } } - localisation_key = "" + localisation_key = String_honorable } text = { trigger = { OR = { - society_member_of = monastic_order_jain - society_member_of = monastic_order_buddhist + is_smart_trigger = yes + is_learned_trigger = yes + learning = 15 } } - localisation_key = request_to_rank_up_within_society_no_vices + localisation_key = String_wise } -} - -defined_text = { - name = GetSocietyRankUpTooltip4 - text = { - trigger = { - NOR = { - society_member_of = monastic_order_jain - society_member_of = monastic_order_buddhist + trigger = { + OR = { + is_smart_trigger = yes + is_learned_trigger = yes + learning = 15 } } - localisation_key = "" + localisation_key = String_sage } text = { - trigger = { - society_rank == 1 + trigger = { OR = { - society_member_of = monastic_order_jain + piety = 1000 + trait = zealous + trait = content + } + NOT = { trait = cynical } + } + localisation_key = String_pious + } + text = { + trigger = { + OR = { + trait = just + AND = { + OR = { + trait = kind + trait = charitable + } + NOR = { + trait = arbitrary + trait = craven + trait = slothful + trait = content + } + } + } + } + localisation_key = String_righteous + } + text = { + trigger = { + OR = { + trait = just + trait = kind + trait = charitable + } + NOR = { + trait = wroth + trait = cruel + trait = impaler + } + } + localisation_key = String_benevolent + } + text = { + trigger = { trait = brave } + localisation_key = String_brave + } + text = { + trigger = { trait = honest } + localisation_key = String_sincere + } + text = { + trigger = { + is_female = yes + is_attractive_trigger = yes + } + localisation_key = String_lovely + } + text = { + trigger = { + OR = { + trait = fair + trait = gregarious + trait = socializer + } + has_unpleasant_trait_trigger = no + NOR = { + trait = ugly + trait = drunkard + trait = hedonist + trait = lustful + } + } + localisation_key = String_graceful + } + text = { + trigger = { + higher_tier_than = DUKE + } + localisation_key = String_great + } + text = { + trigger = { + higher_tier_than = DUKE + } + localisation_key = String_eminent + } + text = { + trigger = { + tier = EMPEROR + } + localisation_key = String_exalted + } + text = { + trigger = { + tier = EMPEROR + } + localisation_key = String_magnificent + } + text = { + trigger = { + is_offmap_ruler = yes + } + localisation_key = String_heavenly + } +} + +defined_text = { + name = GetChineseOffmapTributaryPrestigeCost + text = { + trigger = { FROM = { tier = COUNT } } + localisation_key = String_offmap_cost_prestige_count + } + text = { + trigger = { FROM = { tier = DUKE } } + localisation_key = String_offmap_cost_prestige_duke + } + text = { + trigger = { FROM = { tier = KING is_nomadic = no } } + localisation_key = String_offmap_cost_prestige_king + } + text = { + trigger = { FROM = { tier = EMPEROR is_nomadic = no } } + localisation_key = String_offmap_cost_prestige_emperor + } + text = { + trigger = { FROM = { tier = KING is_nomadic = yes } } + localisation_key = String_offmap_cost_prestige_king_nomad + } + text = { + trigger = { FROM = { tier = EMPEROR is_nomadic = yes } } + localisation_key = String_offmap_cost_prestige_emperor_nomad + } +} + +defined_text = { #being ordered context + name = GetChineseForceOpenDemand + text = { + trigger = { has_character_flag = force_open_china_demands_tribute } + localisation_key = String_force_open_china_demands_tribute + } + text = { + trigger = { has_character_flag = force_open_china_demands_trade_post } + localisation_key = String_force_open_china_demands_trade_post + } + text = { + trigger = { has_character_flag = force_open_china_demands_wealth } + localisation_key = String_force_open_china_demands_wealth + } + text = { + trigger = { has_character_flag = force_open_china_demands_eunuch } + localisation_key = String_force_open_china_demands_eunuch + } + text = { + trigger = { has_character_flag = force_open_china_demands_concubine } + localisation_key = String_force_open_china_demands_concubine + } + text = { + trigger = { has_character_flag = force_open_china_demands_return_chinese } + localisation_key = String_force_open_china_demands_chinese + } + text = { + trigger = { has_character_flag = force_open_china_demands_backup } + localisation_key = String_force_open_china_demands_wealth #backup does reduced wealth + } +} + +defined_text = { #third person context + name = GetChineseForceOpenDemandChina + text = { + trigger = { has_character_flag = force_open_china_demands_tribute } + localisation_key = String_force_open_china_demands_tribute_china + } + text = { + trigger = { has_character_flag = force_open_china_demands_trade_post } + localisation_key = String_force_open_china_demands_trade_post_china + } + text = { + trigger = { has_character_flag = force_open_china_demands_wealth } + localisation_key = String_force_open_china_demands_wealth_china + } + text = { + trigger = { has_character_flag = force_open_china_demands_eunuch } + localisation_key = String_force_open_china_demands_eunuch_china + } + text = { + trigger = { has_character_flag = force_open_china_demands_concubine } + localisation_key = String_force_open_china_demands_concubine_china + } + text = { + trigger = { has_character_flag = force_open_china_demands_return_chinese } + localisation_key = String_force_open_china_demands_chinese_china + } + text = { + trigger = { has_character_flag = force_open_china_demands_backup } + localisation_key = String_force_open_china_demands_wealth_china #backup does reduced wealth + } +} + + + + + + + + + + + +###NON-REUSABLE LOC KEYS### +defined_text = { + name = GetCGMission + text = { + trigger = { has_character_flag = cg_diplomatic_visit } + localisation_key = GetCGMission_diplomatic_visit + } + text = { + trigger = { has_character_flag = cg_oversee_troops } + localisation_key = GetCGMission_oversee_troops + } + text = { + trigger = { has_character_flag = cg_study_military } + localisation_key = GetCGMission_study_military + } + text = { + trigger = { has_character_flag = cg_oversee_tax_collection } + localisation_key = GetCGMission_oversee_tax_collection + } + text = { + trigger = { has_character_flag = cg_trade } + localisation_key = GetCGMission_trade + } + text = { + trigger = { has_character_flag = cg_preaching } + localisation_key = GetCGMission_preaching + } + text = { + trigger = { has_character_flag = cg_study_theology } + localisation_key = GetCGMission_study_theology + } +} + +defined_text = { + name = GetCGMissionOutcome + text = { + trigger = { has_character_flag = cg_diplomatic_visit } + localisation_key = GetCGMissionOutcome_diplomatic_visit + } + text = { + trigger = { has_character_flag = cg_oversee_troops } + localisation_key = GetCGMissionOutcome_oversee_troops + } + text = { + trigger = { has_character_flag = cg_study_military } + localisation_key = GetCGMissionOutcome_study_military + } + text = { + trigger = { has_character_flag = cg_oversee_tax_collection } + localisation_key = GetCGMissionOutcome_oversee_tax_collection + } + text = { + trigger = { has_character_flag = cg_trade } + localisation_key = GetCGMissionOutcome_trade + } + text = { + trigger = { has_character_flag = cg_preaching } + localisation_key = GetCGMissionOutcome_preaching + } + text = { + trigger = { has_character_flag = cg_study_theology } + localisation_key = GetCGMissionOutcome_study_theology + } +} + + +defined_text = { + name = GetHermeticInvention + text = { + trigger = { has_character_flag = war_invention } + localisation_key = String_warfare + } + text = { + trigger = { has_character_flag = prosperity_invention } + localisation_key = String_prosperity + } + text = { + trigger = { has_character_flag = knowledge_invention } + localisation_key = String_scholarship + } +} + +defined_text = { + name = GetSocietyRankUpTooltip1 + + text = { + trigger = { society_rank == 1 } + localisation_key = GetSocietyRankUpTooltip1_Standard_Rank1 + } + text = { + trigger = { society_rank == 2 } + localisation_key = GetSocietyRankUpTooltip1_Standard_Rank2 + } + text = { + trigger = { society_rank == 3 } + localisation_key = GetSocietyRankUpTooltip1_Standard_Rank3 + } +} + +defined_text = { + name = GetSocietyRankUpTooltip2 + + text = { + trigger = { + NOR = { + society_member_of = monastic_order_jain + society_member_of = monastic_order_buddhist + } + } + localisation_key = "" + } + text = { + trigger = { + society_rank == 1 + OR = { + society_member_of = monastic_order_jain + society_member_of = monastic_order_buddhist + } + } + localisation_key = GetSocietyRankUpTooltip2_MOBuddhistJain_Rank1 + } + text = { + trigger = { + society_rank == 2 + OR = { + society_member_of = monastic_order_jain + society_member_of = monastic_order_buddhist + } + } + localisation_key = GetSocietyRankUpTooltip2_MOBuddhistJain_Rank2 + } + text = { + trigger = { + society_rank == 3 + OR = { + society_member_of = monastic_order_jain + society_member_of = monastic_order_buddhist + } + } + localisation_key = GetSocietyRankUpTooltip2_MOBuddhistJain_Rank3 + } +} + +defined_text = { + name = GetSocietyRankUpTooltip4 + + text = { + trigger = { + NOR = { + society_member_of = monastic_order_jain + society_member_of = monastic_order_buddhist + } + } + localisation_key = "" + } + text = { + trigger = { + society_rank == 1 + OR = { + society_member_of = monastic_order_jain society_member_of = monastic_order_buddhist } } @@ -5164,15 +5813,32 @@ defined_text = { trigger = { has_character_flag = weapon_bow } localisation_key = String_bow } + text = { + trigger = { has_character_flag = armor_set } + localisation_key = String_set_of_armor + } } defined_text = { - name = GetSunName - + name = GetWeaponArmorSmith + text = { - trigger = { - NOR = { - religion_group = muslim + trigger = { has_character_flag = weaponsmith } + localisation_key = String_weaponsmith + } + text = { + trigger = { has_character_flag = armorsmith } + localisation_key = String_armorsmith + } +} + +defined_text = { + name = GetSunName + + text = { + trigger = { + NOR = { + religion_group = muslim culture = nahuatl religion_openly_in_hellenic_subgroup_trigger = yes religion_openly_in_egyptian_subgroup_trigger = yes @@ -7571,3 +8237,2103 @@ defined_text = { } } } + +### Empress or Emperor +defined_text = { + name = GetEmpressEmperor + + text = { + localisation_key = String_empress + trigger = { is_female = yes } + } + text = { + localisation_key = String_emperor + trigger = { is_female = no } + } +} + +defined_text = { + name = GetEmpressEmperorCap + + text = { + localisation_key = String_Empress + trigger = { is_female = yes } + } + text = { + localisation_key = String_Emperor + trigger = { is_female = no } + } +} + +### Chinese flavor +defined_text = { + name = GetChineseConvoTopic #Note that these are a little dry sounding and don't necessarily mention China by name. How to use in a sentence: + # "As we discuss [adventurous_spirit.GetHerHis] travels to the [the_protector_general.Offmap.GetFullName] [adventurous_spirit.GetSheHe] speaks passionately about [adventurous_spirit.GetChineseConvoTopic]" + text = { + localisation_key = String_such_a_wealthy_realm + trigger = { china_is_fine_trigger = yes } + } + text = { + localisation_key = String_such_white_papers + trigger = { trait = poet } + } + text = { + localisation_key = String_so_full_of_life + } + text = { + localisation_key = String_the_street_jugglers + } + text = { + localisation_key = String_the_many_festivals + } + text = { + localisation_key = String_crowded_water_routes + } + text = { + localisation_key = String_artisan_potters + } + text = { + localisation_key = String_the_melody_of_Chinese_language + trigger = { + OR = { + has_character_modifier = multilingual + has_character_modifier = student_of_language + learning = 15 + } + } + } + text = { + localisation_key = String_the_magnificent_architecture + } + text = { + localisation_key = String_a_religious_ceremony + } + text = { + localisation_key = String_a_pleasure_trip_on_a_lake + } + text = { + localisation_key = String_the_construction_of_Chinese_boats + } + text = { + localisation_key = String_the_Chinese_food + } + text = { + localisation_key = String_the_intricacies_of_Chinese_government + } + text = { + localisation_key = String_the_artistic_sensibility + } + text = { + localisation_key = String_friendly_to_outsiders + trigger = { + offmap_china = { + offmap_ruler = { + culture = mongol + } + } + } + } +} + +defined_text = { # Must only be used after having visited China, as it talks in past tense and uses pronouns, eg: "When asked about [From.GetHerHis] travels, [From.GetSheHe] just mutters about [adventurous_spirit.GetNegativeChineseConvoTopic]." + name = GetNegativeChineseConvoTopic + text = { + localisation_key = String_too_much_people + } + text = { + localisation_key = String_firecrackers + } + text = { + localisation_key = String_bad_weather_and_language_barrier + } + #pirates? + ##Disdain for traders +} + + +#GetRootMatchingPersonalityStreak +defined_text = { + name = GetRootMatchingPersonalityStreak # Example: "I had a lovely conversation with myself the other day! I and [Root.GetFirstName] spoke for hours about [GetRootMatchingPersonalityStreak]." + + #General personality groups + text = { + localisation_key = String_personality_benevolent + weight_multiplier = { + factor = 10 + } + trigger = { + is_benevolent_trigger = yes + ROOT = { is_benevolent_trigger = yes } + } + } + text = { + localisation_key = String_personality_evil + weight_multiplier = { + factor = 10 + } + trigger = { + is_evil_trigger = yes + ROOT = { is_evil_trigger = yes } + } + } + text = { + localisation_key = String_personality_pious + weight_multiplier = { + factor = 10 + } + trigger = { + is_pious_trigger = yes + ROOT = { is_pious_trigger = yes } + } + } + text = { + localisation_key = String_personality_impious + weight_multiplier = { + factor = 10 + } + trigger = { + is_impious_trigger = yes + ROOT = { is_impious_trigger = yes } + } + } + text = { + localisation_key = String_personality_pleasant + weight_multiplier = { + factor = 10 + } + trigger = { + has_pleasant_personality_trigger = yes + ROOT = { has_pleasant_personality_trigger = yes } + } + } + text = { + localisation_key = String_personality_unpleasant + weight_multiplier = { + factor = 10 + } + trigger = { + has_unpleasant_personality_trigger = yes + ROOT = { has_unpleasant_personality_trigger = yes } + } + } + text = { + localisation_key = String_personality_attractive + weight_multiplier = { + factor = 10 + } + trigger = { + trait = fair + ROOT = { trait = fair } + } + } + text = { + localisation_key = String_personality_unattractive + weight_multiplier = { + factor = 10 + } + trigger = { + trait = ugly + ROOT = { trait = ugly } + } + } + text = { + localisation_key = String_personality_smart_0 + weight_multiplier = { + factor = 10 + } + trigger = { + is_smart_trigger = yes + ROOT = { is_smart_trigger = yes } + } + } + text = { + localisation_key = String_personality_smart_1 + weight_multiplier = { + factor = 10 + } + trigger = { + is_smart_trigger = yes + ROOT = { is_smart_trigger = yes } + } + } + text = { + localisation_key = String_personality_smart_2 + weight_multiplier = { + factor = 10 + } + trigger = { + is_smart_trigger = yes + ROOT = { is_smart_trigger = yes } + } + } + text = { + localisation_key = String_personality_dumb + weight_multiplier = { + factor = 10 + } + trigger = { + is_dumb_trigger = yes + ROOT = { is_dumb_trigger = yes } + } + } + text = { + localisation_key = String_personality_strong + weight_multiplier = { + factor = 10 + } + trigger = { + is_strong_trigger = yes + ROOT = { is_strong_trigger = yes } + } + } + text = { + localisation_key = String_personality_weak + weight_multiplier = { + factor = 10 + } + trigger = { + is_weak_trigger = yes + ROOT = { is_weak_trigger = yes } + } + } + text = { + localisation_key = String_personality_disease_symptom + weight_multiplier = { + factor = 10 + } + trigger = { + has_symptom_trigger = yes + ROOT = { has_symptom_trigger = yes } + } + } + text = { + localisation_key = String_personality_disease + weight_multiplier = { + factor = 10 + } + trigger = { + has_disease_trigger = yes + ROOT = { has_disease_trigger = yes } + } + } + text = { + localisation_key = String_personality_injury + weight_multiplier = { + factor = 10 + } + trigger = { + has_injury_trigger = yes + ROOT = { has_injury_trigger = yes } + } + } + text = { + localisation_key = String_personality_medium_disability + weight_multiplier = { + factor = 10 + } + trigger = { + has_medium_disability_trigger = yes + ROOT = { has_medium_disability_trigger = yes } + } + } + text = { + localisation_key = String_personality_stressed_depressed + weight_multiplier = { + factor = 10 + } + trigger = { + OR = { + trait = stressed + trait = depressed + } + ROOT = { + OR = { + trait = stressed + trait = depressed + } + } + } + } + ## Education... + text = { + localisation_key = String_personality_top_education + weight_multiplier = { + factor = 10 + } + trigger = { + has_top_tier_education_trait_trigger = yes + ROOT = { has_top_tier_education_trait_trigger = yes } + } + } + text = { + localisation_key = String_personality_same_top_education + weight_multiplier = { + factor = 10 + } + trigger = { + has_top_tier_education_trait_trigger = yes + ROOT = { has_top_tier_education_trait_trigger = yes } + OR = { + AND = { + has_education_diplomacy_trigger = yes + ROOT = { has_education_diplomacy_trigger = yes } + } + AND = { + has_education_martial_trigger = yes + ROOT = { has_education_martial_trigger = yes } + } + AND = { + has_education_stewardship_trigger = yes + ROOT = { has_education_stewardship_trigger = yes } + } + AND = { + has_education_intrigue_trigger = yes + ROOT = { has_education_intrigue_trigger = yes } + } + AND = { + has_education_learning_trigger = yes + ROOT = { has_education_learning_trigger = yes } + } + } + } + } + text = { + localisation_key = String_personality_education_diplomacy + weight_multiplier = { + factor = 10 + } + trigger = { + has_education_diplomacy_trigger = yes + ROOT = { has_education_diplomacy_trigger = yes } + } + } + text = { + localisation_key = String_personality_education_martial + weight_multiplier = { + factor = 10 + } + trigger = { + has_education_martial_trigger = yes + ROOT = { has_education_martial_trigger = yes } + } + } + text = { + localisation_key = String_personality_education_stewardship + weight_multiplier = { + factor = 10 + } + trigger = { + has_education_stewardship_trigger = yes + ROOT = { has_education_stewardship_trigger = yes } + } + } + text = { + localisation_key = String_personality_education_intrigue + weight_multiplier = { + factor = 10 + } + trigger = { + has_education_intrigue_trigger = yes + ROOT = { has_education_intrigue_trigger = yes } + } + } + text = { + localisation_key = String_personality_education_learning + weight_multiplier = { + factor = 10 + } + trigger = { + has_education_learning_trigger = yes + ROOT = { has_education_learning_trigger = yes } + } + } + ### lifestyle/misc + text = { + localisation_key = String_personality_gardener + weight_multiplier = { + factor = 10 + } + trigger = { + trait = gardener + ROOT = { trait = gardener } + } + } + text = { + localisation_key = String_personality_hunter + weight_multiplier = { + factor = 10 + } + trigger = { + trait = hunter + ROOT = { trait = hunter } + } + } + text = { + localisation_key = String_personality_poet + weight_multiplier = { + factor = 10 + } + trigger = { + trait = poet + ROOT = { trait = poet } + } + } + text = { + localisation_key = String_personality_falconer + weight_multiplier = { + factor = 10 + } + trigger = { + trait = falconer + ROOT = { trait = falconer } + } + } + text = { + localisation_key = String_personality_mystic + weight_multiplier = { + factor = 10 + } + trigger = { + trait = mystic + ROOT = { trait = mystic } + } + } + text = { + localisation_key = String_personality_learned + weight_multiplier = { + factor = 10 + } + trigger = { + is_learned_trigger = yes + ROOT = { is_learned_trigger = yes } + } + } + text = { + localisation_key = String_personality_council_member + weight_multiplier = { + factor = 10 + } + trigger = { + has_job_title = yes + ROOT = { has_job_title = yes } + } + } + text = { + localisation_key = String_personality_council_member_same_liege + weight_multiplier = { + factor = 10 + } + trigger = { + OR = { + has_job_title = yes + is_voter = yes + } + liege = { + OR = { + any_courtier = { + character = ROOT + prisoner = no + OR = { + has_job_title = yes + is_voter = yes + } + } + any_vassal = { + character = ROOT + prisoner = no + OR = { + has_job_title = yes + is_voter = yes + } + } + } + } + } + } + fallback_text = { + localisation_key = String_personality_fallback + } +} + +defined_text = { + name = GetMediumDisabilityDesc + + text = { + localisation_key = String_GetMediumDisabilityDesc_one_legged + trigger = { trait = one_legged } + } + text = { + localisation_key = String_GetMediumDisabilityDesc_one_handed + trigger = { trait = one_handed } + } + text = { + localisation_key = String_GetMediumDisabilityDesc_one_eyed + trigger = { trait = one_eyed } + } + text = { + localisation_key = String_GetMediumDisabilityDesc_clubfooted + trigger = { trait = clubfooted } + } + text = { + localisation_key = String_GetMediumDisabilityDesc_hunchback + trigger = { trait = hunchback } + } + text = { + localisation_key = String_GetMediumDisabilityDesc_dwarf + trigger = { trait = dwarf } + } +} + +#For sending a Eunuch/Concubine to China... +defined_text = { + name = GetImpressionOfTribute #gets general impression, depending on how much Grace you gained from it, essentially... + + text = { + localisation_key = String_negative_impression_eunuch + trigger = { ROOT = { has_character_flag = sent_bad_tribute has_character_flag = sent_eunuch_tribute } } + } + text = { + localisation_key = String_decent_impression_eunuch + trigger = { ROOT = { has_character_flag = sent_decent_tribute has_character_flag = sent_eunuch_tribute } } + } + text = { + localisation_key = String_positive_impression_eunuch + trigger = { ROOT = { has_character_flag = sent_great_tribute has_character_flag = sent_eunuch_tribute } } + } + text = { + localisation_key = String_negative_impression_concubine + trigger = { ROOT = { has_character_flag = sent_bad_tribute has_character_flag = sent_concubine_tribute } } + } + text = { + localisation_key = String_decent_impression_concubine + trigger = { ROOT = { has_character_flag = sent_decent_tribute has_character_flag = sent_concubine_tribute } } + } + text = { + localisation_key = String_positive_impression_concubine + trigger = { ROOT = { has_character_flag = sent_great_tribute has_character_flag = sent_concubine_tribute } } + } + fallback_text = { + localisation_key = String_tribute_impression_fallback + } +} + +#... Eunuch: If the Grace gain was very low... +defined_text = { + name = GetNegativeImpressionOfEunuch + + text = { + localisation_key = String_eunuch_is_dumb + trigger = { is_dumb_trigger = yes } + weight_multiplier = { + factor = 10 + + modifier = { + factor = 5 + trait = dull + } + modifier = { + factor = 5 + trait = slow + } + modifier = { + factor = 10 + trait = imbecile + } + } + } + text = { + localisation_key = String_eunuch_is_ugly + trigger = { + is_unattractive_trigger = yes + } + weight_multiplier = { + factor = 10 + + modifier = { + factor = 10 + trait = ugly + } + modifier = { + factor = 1.5 + is_weak_trigger = yes + } + } + } + text = { + localisation_key = String_eunuch_is_uncharming + trigger = { + is_adult = yes + OR = { + is_impious_trigger = yes + is_evil_trigger = yes + has_unpleasant_personality_trigger = yes + } + } + weight_multiplier = { + factor = 10 + + modifier = { + factor = 0.5 + is_smart_trigger = yes + } + modifier = { + factor = 0.1 + is_strong_trigger = yes + } + modifier = { + factor = 2 + is_impious_trigger = yes + is_evil_trigger = yes + } + modifier = { + factor = 2 + is_evil_trigger = yes + has_unpleasant_personality_trigger = yes + } + modifier = { + factor = 2 + is_impious_trigger = yes + has_unpleasant_personality_trigger = yes + } + } + } + text = { + localisation_key = String_eunuch_has_bad_education + trigger = { + has_bottom_tier_education_trait_trigger = yes + } + weight_multiplier = { + factor = 10 + + modifier = { + factor = 0.5 + is_smart_trigger = yes + } + } + } + text = { + localisation_key = String_eunuch_has_bad_stats_adult + trigger = { + is_adult = yes + NOT = { diplomacy = 6 } + NOT = { martial = 6 } + NOT = { stewardship = 6 } + NOT = { intrigue = 6 } + NOT = { learning = 6 } + } + weight_multiplier = { + factor = 10 + } + } + text = { + localisation_key = String_eunuch_has_bad_stats_child + trigger = { + is_adult = no + NOT = { diplomacy = 2 } + NOT = { martial = 2 } + NOT = { stewardship = 2 } + NOT = { intrigue = 2 } + NOT = { learning = 2 } + } + weight_multiplier = { + factor = 10 + + modifier = { + factor = 0.5 + is_smart_trigger = yes + } + } + } + fallback_text = { + localisation_key = String_eunuch_fallback_bad + } +} + +#... Eunuch: If the Grace gain was OK... +defined_text = { + name = GetDecentImpressionOfEunuch + + text = { + localisation_key = String_eunuch_has_decent_education + trigger = { has_medium_education_trait_trigger = yes } + } + text = { + localisation_key = String_eunuch_is_close_relative_decent + trigger = { is_close_relative = ROOT } + } + text = { + localisation_key = String_eunuch_has_decent_diplo + trigger = { diplomacy = 10 } + } + text = { + localisation_key = String_eunuch_has_decent_martial + trigger = { martial = 10 } + } + text = { + localisation_key = String_eunuch_has_decent_stewardship + trigger = { stewardship = 10 } + } + text = { + localisation_key = String_eunuch_has_decent_intrigue + trigger = { intrigue = 10 } + } + text = { + localisation_key = String_eunuch_has_decent_learning + trigger = { learning = 10 } + } + text = { + localisation_key = String_eunuch_is_strong_decent + trigger = { is_strong_trigger = yes} + } + text = { + localisation_key = String_eunuch_is_smart_decent + trigger = { is_smart_trigger = yes } + } + text = { + localisation_key = String_eunuch_is_attractive_decent + trigger = { trait = fair } + } + text = { + localisation_key = String_eunuch_is_architect_decent + trigger = { trait = architect } + } + text = { + localisation_key = String_eunuch_is_strategist_decent + trigger = { trait = strategist } + } + text = { + localisation_key = String_eunuch_is_scholar_decent + trigger = { trait = scholar } + } + text = { + localisation_key = String_eunuch_is_faqih_decent + trigger = { trait = faqih } + } + fallback_text = { + localisation_key = String_eunuch_fallback_decent + } +} + +#... Eunuch: If the Grace gain was great...! +defined_text = { + name = GetPositiveImpressionOfEunuch + + text = { + localisation_key = String_eunuch_has_top_education + trigger = { has_top_tier_education_trait_trigger = yes } + } + text = { + localisation_key = String_eunuch_is_close_relative + trigger = { is_close_relative = ROOT } + } + text = { + localisation_key = String_eunuch_has_high_diplo + trigger = { diplomacy = 16 } + } + text = { + localisation_key = String_eunuch_has_high_martial + trigger = { martial = 16 } + } + text = { + localisation_key = String_eunuch_has_high_stewardship + trigger = { stewardship = 16 } + } + text = { + localisation_key = String_eunuch_has_high_intrigue + trigger = { intrigue = 16 } + } + text = { + localisation_key = String_eunuch_has_high_learning + trigger = { learning = 16 } + } + text = { + localisation_key = String_eunuch_is_strong + trigger = { is_strong_trigger = yes} + } + text = { + localisation_key = String_eunuch_is_smart + trigger = { is_smart_trigger = yes } + } + text = { + localisation_key = String_eunuch_is_attractive + trigger = { trait = fair } + } + text = { + localisation_key = String_eunuch_is_architect + trigger = { trait = architect } + } + text = { + localisation_key = String_eunuch_is_strategist + trigger = { trait = strategist } + } + text = { + localisation_key = String_eunuch_is_scholar + trigger = { trait = scholar } + } + text = { + localisation_key = String_eunuch_is_faqih + trigger = { trait = faqih } + } + fallback_text = { + localisation_key = String_eunuch_fallback_great + } +} + +#... Concubine: If the Grace gain was very low... +defined_text = { + name = GetNegativeImpressionOfConcubine + + text = { + localisation_key = String_concubine_is_dumb + trigger = { is_dumb_trigger = yes } + } + text = { + localisation_key = String_concubine_is_ugly + trigger = { + is_unattractive_trigger = yes + } + } + text = { + localisation_key = String_concubine_is_uncharming + trigger = { + is_adult = yes + OR = { + is_impious_trigger = yes + is_evil_trigger = yes + has_unpleasant_personality_trigger = yes + } + } + } + text = { + localisation_key = String_concubine_has_bad_education + trigger = { has_bottom_tier_education_trait_trigger = yes } + } + text = { + localisation_key = String_concubine_has_bad_stats_adult + trigger = { + is_adult = yes + NOT = { diplomacy = 6 } + NOT = { martial = 6 } + NOT = { stewardship = 6 } + NOT = { intrigue = 6 } + NOT = { learning = 6 } + } + } + text = { + localisation_key = String_concubine_has_bad_stats_child + trigger = { + is_adult = no + NOT = { diplomacy = 2 } + NOT = { martial = 2 } + NOT = { stewardship = 2 } + NOT = { intrigue = 2 } + NOT = { learning = 2 } + } + } + fallback_text = { + localisation_key = String_concubine_fallback_bad + } +} + +#... Concubine: If the Grace gain was OK... +defined_text = { + name = GetDecentImpressionOfConcubine + + text = { + localisation_key = String_concubine_has_decent_education + trigger = { has_medium_education_trait_trigger = yes } + } + text = { + localisation_key = String_concubine_is_close_relative_decent + trigger = { is_close_relative = ROOT } + } + text = { + localisation_key = String_concubine_has_decent_diplo + trigger = { diplomacy = 10 } + } + text = { + localisation_key = String_concubine_has_decent_martial + trigger = { martial = 10 } + } + text = { + localisation_key = String_concubine_has_decent_stewardship + trigger = { stewardship = 10 } + } + text = { + localisation_key = String_concubine_has_decent_intrigue + trigger = { intrigue = 10 } + } + text = { + localisation_key = String_concubine_has_decent_learning + trigger = { learning = 10 } + } + text = { + localisation_key = String_concubine_is_strong_decent + trigger = { is_strong_trigger = yes} + } + text = { + localisation_key = String_concubine_is_smart_decent + trigger = { is_smart_trigger = yes } + } + text = { + localisation_key = String_concubine_is_attractive_decent + trigger = { trait = fair } + } + text = { + localisation_key = String_concubine_is_architect_decent + trigger = { trait = architect } + } + text = { + localisation_key = String_concubine_is_strategist_decent + trigger = { trait = strategist } + } + text = { + localisation_key = String_concubine_is_scholar_decent + trigger = { trait = scholar } + } + text = { + localisation_key = String_concubine_is_faqih_decent + trigger = { trait = faqih } + } + fallback_text = { + localisation_key = String_concubine_fallback_decent + } +} + +#... Eunuch: If the Grace gain was great...! +defined_text = { + name = GetPositiveImpressionOfConcubine + + text = { + localisation_key = String_concubine_has_top_education + trigger = { has_top_tier_education_trait_trigger = yes } + } + text = { + localisation_key = String_concubine_is_close_relative + trigger = { is_close_relative = ROOT } + } + text = { + localisation_key = String_concubine_has_high_diplo + trigger = { diplomacy = 16 } + } + text = { + localisation_key = String_concubine_has_high_martial + trigger = { martial = 16 } + } + text = { + localisation_key = String_concubine_has_high_stewardship + trigger = { stewardship = 16 } + } + text = { + localisation_key = String_concubine_has_high_intrigue + trigger = { intrigue = 16 } + } + text = { + localisation_key = String_concubine_has_high_learning + trigger = { learning = 16 } + } + text = { + localisation_key = String_concubine_is_strong + trigger = { is_strong_trigger = yes} + } + text = { + localisation_key = String_concubine_is_smart + trigger = { is_smart_trigger = yes } + } + text = { + localisation_key = String_concubine_is_attractive + trigger = { trait = fair } + } + text = { + localisation_key = String_concubine_is_architect + trigger = { trait = architect } + } + text = { + localisation_key = String_concubine_is_strategist + trigger = { trait = strategist } + } + text = { + localisation_key = String_concubine_is_scholar + trigger = { trait = scholar } + } + text = { + localisation_key = String_concubine_is_faqih + trigger = { trait = faqih } + } + fallback_text = { + localisation_key = String_concubine_fallback_great + } +} + +# Description of Chinese activity when Isolationist +defined_text = { + name = GetChinaIsolationPastime + + text = { + localisation_key = String_Iso_Peach_Gardens + } + text = { + localisation_key = String_Iso_Giant_Mausoleum + } + text = { + localisation_key = String_Iso_Calligraphy + } + text = { + localisation_key = String_Iso_Lao_Tse + } + text = { + localisation_key = String_Iso_I_Ching + } + text = { + localisation_key = String_Iso_Great_Wall + } +} + +# Description of the end of a Chinese Status +defined_text = { + name = GetChinaPreviousStatusEnd + + text = { + localisation_key = String_End_Stable + trigger = { + prev_status = china_stable + } + } + text = { + localisation_key = String_End_Unrest + trigger = { + prev_status = china_unrest + china_is_suffering_trigger = no + } + } + text = { + localisation_key = String_End_Unrest_Worsened + trigger = { + prev_status = china_unrest + china_is_suffering_trigger = yes + } + } + text = { + localisation_key = String_End_Famine + trigger = { + prev_status = china_famine + } + } + text = { + localisation_key = String_End_Plague + trigger = { + prev_status = china_plague + } + } + text = { + localisation_key = String_End_Mongols + trigger = { + prev_status = china_mongol_invasion + } + } + text = { + localisation_key = String_End_Jurchen + trigger = { + prev_status = china_jurchen_invasion + } + } + text = { + localisation_key = String_End_Civil_War + trigger = { + prev_status = china_civil_war + NOR = { + has_status = china_mongol_invasion + has_status = china_jurchen_invasion + } + } + } + text = { + localisation_key = String_End_Civil_War_to_Invasion + trigger = { + prev_status = china_civil_war + OR = { + has_status = china_mongol_invasion + has_status = china_jurchen_invasion + } + } + } + text = { + localisation_key = String_End_Golden_Age + trigger = { + prev_status = china_golden_age + } + } +} + +# Names of important Chinese regions off-map +defined_text = { + name = GetRandomChineseRegion + + text = { + localisation_key = String_Luoyang + } + text = { + localisation_key = String_Chengdu + } + text = { + localisation_key = String_Datong + } + text = { + localisation_key = String_Guangzhou + } + text = { + localisation_key = String_Hangzhou + } + text = { + localisation_key = String_Kaifeng + } + text = { + localisation_key = String_Nanjing + } + text = { + localisation_key = String_Changan + } +} + +# Names of typical Chinese troublemakers +defined_text = { + name = GetRandomChineseFaction + + text = { + localisation_key = String_Militant_Monks + } + text = { + localisation_key = String_Rogue_Mandarins + } + text = { + localisation_key = String_Ambitious_Eunuchs + } + text = { + localisation_key = String_Disgruntled_Officers + } +} + +# Chinese focus +defined_text = { #Read like: we are busy focusing on the [GetRandomChineseFocus] so can not open the Silk Road. + name = GetRandomChineseFocus + text = { + localisation_key = String_random_region + trigger = { + OR = { + has_status = china_stable + has_status = china_golden_age + } + } + } + text = { + localisation_key = String_random_faction + trigger = { has_status = china_unrest } + } + text = { + localisation_key = String_current_invasion + trigger = { + OR = { + has_status = china_mongol_invasion + has_status = china_jurchen_invasion + } + } + } + text = { + localisation_key = String_current_status + trigger = { + OR = { + has_status = china_civil_war + has_status = china_famine + has_status = china_plague + } + } + } +} + +# Gets the name of the current month +defined_text = { + name = GetMonth + + text = { + trigger = { + month = 0 + NOT = { month = 1 } + } + localisation_key = String_January + } + text = { + trigger = { + month = 1 + NOT = { month = 2 } + } + localisation_key = String_February + } + text = { + trigger = { + month = 2 + NOT = { month = 3 } + } + localisation_key = String_March + } + text = { + trigger = { + month = 3 + NOT = { month = 4 } + } + localisation_key = String_April + } + text = { + trigger = { + month = 4 + NOT = { month = 5 } + } + localisation_key = String_May + } + text = { + trigger = { + month = 5 + NOT = { month = 6 } + } + localisation_key = String_June + } + text = { + trigger = { + month = 6 + NOT = { month = 7 } + } + localisation_key = String_July + } + text = { + trigger = { + month = 7 + NOT = { month = 8 } + } + localisation_key = String_August + } + text = { + trigger = { + month = 8 + NOT = { month = 9 } + } + localisation_key = String_September + } + text = { + trigger = { + month = 9 + NOT = { month = 10 } + } + localisation_key = String_October + } + text = { + trigger = { + month = 10 + NOT = { month = 11 } + } + localisation_key = String_November + } + text = { + trigger = { + month = 11 + NOT = { month = 12 } + } + localisation_key = String_December + } +} + + + +# Gets the name of the Chinese refugee's specialty +defined_text = { + name = GetChineseProfession + + text = { + trigger = { + has_character_flag = is_chinese_administrator + } + localisation_key = String_administrator + } + text = { + trigger = { + has_character_flag = is_chinese_master_engineer + } + localisation_key = String_engineer + } + text = { + trigger = { + has_character_flag = is_chinese_strategist + } + localisation_key = String_strategist + } + text = { + trigger = { + has_character_flag = is_chinese_doctor + } + localisation_key = String_physician + } + fallback_text = { + localisation_key = String_chinese_profession_fallback #Chinese refugee + } +} + +# Gets the name of the Chinese courtier's invite reason (for when they die, mostly? Could be used elsewhere though.) +defined_text = { + name = GetChineseCharacterRole + + text = { + trigger = { + has_character_flag = is_chinese_administrator + } + localisation_key = String_administrator + } + text = { + trigger = { + has_character_flag = is_chinese_master_engineer + } + localisation_key = String_engineer + } + text = { + trigger = { + has_character_flag = is_chinese_siege_engineer + } + localisation_key = String_siege_engineer + } + text = { + trigger = { + has_character_flag = is_chinese_strategist + } + localisation_key = String_strategist + } + text = { + trigger = { + has_character_flag = is_chinese_doctor + } + localisation_key = String_physician + } + text = { + trigger = { + has_character_flag = is_chinese_imperial_marriage + } + localisation_key = String_chinese_royalty + } + fallback_text = { + localisation_key = String_chinese_character_role_fallback #courtier + } +} + + +defined_text = { + name = GetRegionalBigAnimal + + text = { + localisation_key = String_stag + trigger = { + capital_scope = { + OR = { + region = world_europe_south + region = world_europe_west + region = world_asia_minor + } + } + } + } + text = { + localisation_key = String_bear + trigger = { + capital_scope = { + OR = { + region = world_europe_north + region = world_europe_east + region = world_steppe + } + } + } + } + text = { + localisation_key = String_tiger + trigger = { + capital_scope = { + OR = { + region = world_india + region = world_persia + } + } + } + } + text = { + localisation_key = String_lion + trigger = { + capital_scope = { + OR = { + region = world_middle_east + region = world_africa + } + } + } + } + fallback_text = { + localisation_key = String_animal_fallback #Beast + } +} +defined_text = { + name = GetRegionalBigAnimalCap + + text = { + localisation_key = String_Stag + trigger = { + capital_scope = { + OR = { + region = world_europe_south + region = world_europe_west + region = world_asia_minor + } + } + } + } + text = { + localisation_key = String_Bear + trigger = { + capital_scope = { + OR = { + region = world_europe_north + region = world_europe_east + region = world_steppe + } + } + } + } + text = { + localisation_key = String_Tiger + trigger = { + capital_scope = { + OR = { + region = world_india + region = world_persia + } + } + } + } + text = { + localisation_key = String_Lion + trigger = { + capital_scope = { + OR = { + region = world_middle_east + region = world_africa + } + } + } + } + fallback_text = { + localisation_key = String_animalCap_fallback #Beast + } +} + +defined_text = { + name = GetPublicOpinionOfWork + + #Vices + text = { + trigger = { + trait = lustful + } + weight_multiplier = { + factor = 10 + modifier = { + factor = 10 + OR = { + has_focus = focus_seduction + has_lifestyle_diplomacy_trigger = yes + } + } + } + localisation_key = String_suggestive + } + text = { + trigger = { + trait = gluttonous + } + weight_multiplier = { + factor = 10 + modifier = { + factor = 10 + has_focus = focus_carousing + } + } + localisation_key = String_over_indulgent + } + text = { + trigger = { + trait = greedy + } + weight_multiplier = { factor = 10 } + localisation_key = String_lackluster + } + text = { + trigger = { + trait = slothful + } + weight_multiplier = { factor = 10 } + localisation_key = String_stale + } + text = { + trigger = { + trait = wroth + } + weight_multiplier = { factor = 10 } + localisation_key = String_indignant + } + text = { + trigger = { + trait = envious + } + weight_multiplier = { factor = 10 } + localisation_key = String_belligerent + } + text = { + trigger = { + trait = proud + } + weight_multiplier = { factor = 10 } + localisation_key = String_pompous + } + #Virtues + text = { + trigger = { + trait = chaste + } + weight_multiplier = { factor = 10 } + localisation_key = String_dull + } + text = { + trigger = { + trait = temperate + } + weight_multiplier = { factor = 10 } + localisation_key = String_uninspired + } + text = { + trigger = { + trait = charitable + } + weight_multiplier = { factor = 10 } + localisation_key = String_too_accommodating + } + text = { + trigger = { + trait = diligent + } + weight_multiplier = { factor = 10 } + localisation_key = String_too_detailed + } + text = { + trigger = { + trait = patient + } + weight_multiplier = { factor = 10 } + localisation_key = String_dreary + } + text = { + trigger = { + trait = kind + } + weight_multiplier = { factor = 10 } + localisation_key = String_ceremonious + } + text = { + trigger = { + trait = humble + } + weight_multiplier = { factor = 10 } + localisation_key = String_soft_spoken + } + + #Other + text = { + trigger = { + trait = deceitful + } + weight_multiplier = { factor = 10 } + localisation_key = String_confusing + } + text = { + trigger = { + trait = honest + } + weight_multiplier = { factor = 10 } + localisation_key = String_misguided + } + text = { + trigger = { + trait = craven + } + weight_multiplier = { factor = 10 } + localisation_key = String_timid + } + text = { + trigger = { + trait = brave + } + weight_multiplier = { factor = 10 } + localisation_key = String_bold + } + text = { + trigger = { + trait = shy + } + weight_multiplier = { factor = 10 } + localisation_key = String_trite + } + text = { + trigger = { + trait = gregarious + } + weight_multiplier = { factor = 10 } + localisation_key = String_entertaining + } + text = { + trigger = { + trait = ambitious + } + weight_multiplier = { factor = 10 } + localisation_key = String_ambitious + } + text = { + trigger = { + trait = content + } + weight_multiplier = { factor = 10 } + localisation_key = String_mundane + } + text = { + trigger = { + trait = arbitrary + } + weight_multiplier = { factor = 10 } + localisation_key = String_random + } + text = { + trigger = { + trait = just + } + weight_multiplier = { factor = 10 } + localisation_key = String_dispassionate + } + text = { + trigger = { + trait = cynical + } + weight_multiplier = { factor = 10 } + localisation_key = String_contemptuous + } + text = { + trigger = { + trait = zealous + } + weight_multiplier = { factor = 10 } + localisation_key = String_uptight + } + text = { + trigger = { + trait = paranoid + } + weight_multiplier = { factor = 10 } + localisation_key = String_paranoid + } + text = { + trigger = { + trait = trusting + } + weight_multiplier = { factor = 10 } + localisation_key = String_naive + } + text = { + trigger = { + trait = cruel + } + weight_multiplier = { factor = 10 } + localisation_key = String_callous + } + text = { + trigger = { + trait = erudite + } + weight_multiplier = { factor = 10 } + localisation_key = String_pedantic + } + text = { + trigger = { + trait = stubborn + } + weight_multiplier = { factor = 10 } + localisation_key = String_narrow_minded + } + + #scripted groups (should be prioritized) + text = { + trigger = { + is_benevolent_trigger = yes + } + weight_multiplier = { factor = 100 } + localisation_key = String_too_much + } + text = { + trigger = { + is_evil_trigger = yes + } + weight_multiplier = { factor = 100 } + localisation_key = String_petty + } + text = { + trigger = { + is_pious_trigger = yes + } + weight_multiplier = { factor = 100 } + localisation_key = String_judgmental + } + text = { + trigger = { + is_impious_trigger = yes + } + weight_multiplier = { factor = 100 } + localisation_key = String_spiteful + } + text = { + trigger = { + is_smart_trigger = yes + } + weight_multiplier = { factor = 100 } + localisation_key = String_convoluted + } + text = { + trigger = { + is_dumb_trigger = yes + } + weight_multiplier = { factor = 100 } + localisation_key = String_amusing + } + + fallback_text = { + localisation_key = String_opinion_fallback #decent + } +} + +defined_text = { #NOTE: only used when writing a book (due to event_target:new_book)! + name = GetExpectationOfWork + + #fast writers... + text = { + trigger = { + has_character_flag = currently_working_on_a_book + NOT = { had_character_flag = { flag = currently_working_on_a_book days = 1825 } } #five years + event_target:new_book = { + quality = 1 + NOT = { quality = 2 } + } + } + localisation_key = String_disappointed_in_my_scribes #wrote lowest quality book, fast + } + text = { + trigger = { + has_character_flag = currently_working_on_a_book + NOT = { had_character_flag = { flag = currently_working_on_a_book days = 1825 } } #five years + event_target:new_book = { + quality = 2 + NOT = { quality = 3 } + } + } + localisation_key = String_pleased_with_scribes #wrote medium quality book, fast + } + text = { + trigger = { + has_character_flag = currently_working_on_a_book + NOT = { had_character_flag = { flag = currently_working_on_a_book days = 1825 } } #five years + event_target:new_book = { + OR = { + quality = 3 + quality = 4 + } + } + } + localisation_key = String_in_awe_of_my_scribes_as_well_as_myself #wrote great quality book, fast + } + + #slower writers... + text = { + trigger = { + had_character_flag = { flag = currently_working_on_a_book days = 1825 } #five years + NOT = { had_character_flag = { flag = currently_working_on_a_book days = 3650 } } #ten years + event_target:new_book = { + quality = 1 + NOT = { quality = 2 } + } + } + localisation_key = String_disappointed_in_myself_and_my_scribes #wrote lowest quality book, medium speed + } + text = { + trigger = { + had_character_flag = { flag = currently_working_on_a_book days = 1825 } #five years + NOT = { had_character_flag = { flag = currently_working_on_a_book days = 3650 } } #ten years + event_target:new_book = { + quality = 2 + NOT = { quality = 3 } + } + } + localisation_key = String_not_disappointed_in_my_scribes #wrote medium quality book, medium speed + } + text = { + trigger = { + had_character_flag = { flag = currently_working_on_a_book days = 1825 } #five years + NOT = { had_character_flag = { flag = currently_working_on_a_book days = 3650 } } #ten years + event_target:new_book = { + OR = { + quality = 3 + quality = 4 + } + } + } + localisation_key = String_grateful_to_my_scribes #wrote great quality book, medium speed + } + + #the slowest of all... + text = { + trigger = { + had_character_flag = { flag = currently_working_on_a_book days = 3650 } #ten years + NOT = { had_character_flag = { flag = currently_working_on_a_book days = 7300 } } #twenty years + event_target:new_book = { + quality = 1 + NOT = { quality = 2 } + } + } + localisation_key = String_having_trouble_understanding_what_I_could_have_done_differently #wrote lowest quality book, over a long time + } + text = { + trigger = { + had_character_flag = { flag = currently_working_on_a_book days = 3650 } #ten years + NOT = { had_character_flag = { flag = currently_working_on_a_book days = 7300 } } #twenty years + event_target:new_book = { + quality = 2 + NOT = { quality = 3 } + } + } + localisation_key = String_almost_surprised_it_was_finally_finished #wrote medium quality book, over a long time + } + text = { + trigger = { + had_character_flag = { flag = currently_working_on_a_book days = 3650 } #ten years + NOT = { had_character_flag = { flag = currently_working_on_a_book days = 7300 } } #twenty years + event_target:new_book = { + OR = { + quality = 3 + quality = 4 + } + } + } + localisation_key = String_filled_with_a_sense_of_well_deserved_pride #wrote great quality book, over a long time + } + fallback_text = { + localisation_key = String_expectation_of_work_fallback #decent + } +} +defined_text = { + name = GetTimeItTookToWriteBook + + text = { + trigger = { + has_character_flag = currently_working_on_a_book + NOT = { had_character_flag = { flag = currently_working_on_a_book days = 1095 } } #three years + } + weight_multiplier = { factor = 100 } + localisation_key = String_most_of_my_spare_time + } + text = { + trigger = { + had_character_flag = { flag = currently_working_on_a_book days = 1095 } #three years + NOT = { had_character_flag = { flag = currently_working_on_a_book days = 2920 } } #eight years + } + weight_multiplier = { factor = 100 } + localisation_key = String_several_years + } + text = { + trigger = { + had_character_flag = { flag = currently_working_on_a_book days = 2920 } #eight years + NOT = { had_character_flag = { flag = currently_working_on_a_book days = 4380 } } #twelve years + } + weight_multiplier = { factor = 100 } + localisation_key = String_years_and_years + } + text = { + trigger = { + had_character_flag = { flag = currently_working_on_a_book days = 4380 } #twelve years + NOT = { had_character_flag = { flag = currently_working_on_a_book days = 6570 } } #18 years + } + weight_multiplier = { factor = 100 } + localisation_key = String_over_a_decade + } + text = { + trigger = { + had_character_flag = { flag = currently_working_on_a_book days = 6570 } #18 years + NOT = { had_character_flag = { flag = currently_working_on_a_book days = 7300 } } #20 years + } + weight_multiplier = { factor = 100 } + localisation_key = String_the_better_part_of_a_lifetime + } + text = { + trigger = { + had_character_flag = { flag = currently_working_on_a_book days = 7300 } #20 years + } + weight_multiplier = { factor = 100 } + localisation_key = String_most_of_my_life + } + fallback_text = { + localisation_key = String_what_feels_like_forever + } +} + + +defined_text = { + name = GetRaidCD + + text = { + trigger = { + has_character_modifier = china_raid_grace_cd + } + localisation_key = string_raid_cd + } +} + +defined_text = { + name = GetNegotiateCD + + text = { + trigger = { + has_character_modifier = adventurer_negotiate_cd + } + localisation_key = string_negotiate_cd + } +} + +defined_text = { + name = GetSmithCD + + text = { + trigger = { + has_character_modifier = employ_a_smith_cd + } + localisation_key = string_smith_cd + } +} + + +defined_text = { + name = GetArtifactDescriptor #has to be in an artifact scope!! + text = { + localisation_key = String_valuable + trigger = { + has_artifact_flag = chinese + has_artifact_flag = book + } + } + text = { + localisation_key = String_dangerous + trigger = { + has_artifact_flag = chinese + has_artifact_flag = combat_weapon + } + } + text = { + localisation_key = String_beautiful + trigger = { + has_artifact_flag = chinese + has_artifact_flag = decor + } + } + fallback_text = { + localisation_key = String_lovely + } +} + +defined_text = { + name = GetMourningBehavior + text = { + localisation_key = String_still_distraught + trigger = { + trait = depressed + OR = { + AND = { + is_married = no + has_character_flag = mourner_is_spouse + } + has_character_flag = mourner_is_grown_child + } + } + } + text = { + localisation_key = String_still_dont_understand + trigger = { + has_character_flag = mourner_is_small_child + } + } + text = { + localisation_key = String_done_my_best_to_accept_it + trigger = { + NOT = { trait = depressed } + is_evil_trigger = no + has_character_flag = mourner_is_spouse + OR = { + is_married = yes + trait = content + } + } + } + text = { + localisation_key = String_hate_to_admit_it + trigger = { + has_benevolent_trait_trigger = no + has_character_flag = mourner_is_spouse + } + } + text = { + localisation_key = String_feel_angry + trigger = { + trait = wroth + OR = { + has_character_flag = mourner_is_spouse + has_character_flag = mourner_is_grown_child + } + } + } + text = { + localisation_key = String_i_miss_them + trigger = { + has_character_flag = mourner_is_grown_child + } + } + text = { + localisation_key = String_i_see_them_everywhere + trigger = { + trait = lunatic + } + } + fallback_text = { + localisation_key = String_still_saddens_me + } +} + +defined_text = { + name = GetCapitalLocation + text = { + localisation_key = String_capital_name + trigger = { + is_feudal = yes + } + } + text = { + localisation_key = String_capital_location + trigger = { + NOT = { is_feudal = yes } + } + } + fallback_text = { + localisation_key = String_capital_province + } +} diff --git a/AncientReligions/sound/death_lost_desert.wav b/AncientReligions/sound/death_lost_desert.wav deleted file mode 100644 index 10244397..00000000 Binary files a/AncientReligions/sound/death_lost_desert.wav and /dev/null differ