Diff to HTML by rtfpessoa

Files changed (11) hide show
  1. common/peace_treaties/00_claim_elector_role.txt +57 -0
  2. common/peace_treaties/00_claim_norwegian_throne.txt +41 -0
  3. common/peace_treaties/00_enforce_primary_culture.txt +49 -0
  4. common/peace_treaties/00_enforce_primary_culture_same_culture_group.txt +47 -0
  5. common/peace_treaties/00_establish_eyalet.txt +90 -0
  6. common/peace_treaties/00_establish_trade_protectorate.txt +48 -0
  7. common/peace_treaties/00_extinguish_the_revolution.txt +51 -0
  8. common/peace_treaties/00_raid_churches.txt +115 -0
  9. common/peace_treaties/00_reintegrate_into_hre.txt +60 -0
  10. common/peace_treaties/01_annex_tribe.txt +60 -0
  11. common/peace_treaties/01_force_border_changes.txt +40 -0
common/peace_treaties/00_claim_elector_role.txt ADDED
@@ -0,0 +1,57 @@
1
+ # Adds a special Claim Electorate cb which allows you to become an elector by force.
2
+ #Make sure to use this peace treaty only in scripted wars though
3
+ po_claim_elector_role = {
4
+ category = 6
5
+ power_projection = humiliated_rival
6
+ power_cost_base = 1.0
7
+ prestige_base = 1.0 # Base factor for prestige gain and loss. Scales with war score cost.
8
+ ae_base = 0.35
9
+ warscore_cost = {
10
+ # Which of the giver's provinces' war score costs are included and by how much. All entries default to 0. Any combination of entries can be used. Try negative values at your own risk.
11
+ all_provinces = 0.0 # All the giver's provinces
12
+ no_provinces = 40.0 # This is just a constant. Equivalent to a single province with with war score cost 1
13
+ owner_keeps = 0.0 # The provinces that are not of any of the types below
14
+ conquered = 0.0 # Provinces that are selected by a Demand Province treaty
15
+ returned_core = 0.0 # Provinces that are selected by a Return Core treaty
16
+ released_nation = 0.0 # Provinces that will become a part of a selected released-to-be nation
17
+ cancelled_subject = 0.0 # This one should not be relevant here since Giver can't be a cancelled subject. Including anyway for completeness
18
+ concede_colonial_region = 0.0 # Ditto
19
+ }
20
+ warscore_cap = 60 # Warscore cost will never go above this value. Only enabled if non-negative. This value defaults to -1.
21
+ requires_demand_independence = yes # Whether this can be demanded by the former subject in an independence war without also demanding independence.
22
+ is_make_subject = yes # This will make the treaty mutually exclusive with other treaties that makes the giver a subject, or that explicitly frees the giver from their current overlord.
23
+ requires_is_allowed = yes # If set to "yes", treaty will only be visible when explicitly allowed by casus belli. If not, it will be available but cost diplomatic power.
24
+
25
+ is_visible = { # Defaults to equivalent of "always = yes"
26
+ always = yes
27
+ }
28
+ is_allowed = { # Defaults to equivalent of "always = yes"
29
+ FROM = { is_emperor = yes }
30
+ is_part_of_hre = yes
31
+ is_elector = no
32
+ any_subject_country = {
33
+ is_elector = yes
34
+ }
35
+ }
36
+ effect = { # Defaults to empty effect (which makes error log entry but is safe)
37
+ random_subject_country = {
38
+ limit = {
39
+ is_elector = yes
40
+ }
41
+ elector = no
42
+ hidden_effect = {
43
+ country_event = {
44
+ id = hre_event.14
45
+ }
46
+ }
47
+ }
48
+ elector = yes
49
+ emperor = { add_imperial_influence = -10 }
50
+ }
51
+ ai_weight = { # Defaults to always evaluate to 0
52
+ export_to_variable = {
53
+ variable_name = ai_value # Mandatory to have entry called "ai_value". Its value at the end of the ai_weight scope is what will be used
54
+ value = 50
55
+ }
56
+ }
57
+ }
common/peace_treaties/00_claim_norwegian_throne.txt ADDED
@@ -0,0 +1,41 @@
1
+ # Adds a special peace treaty in order to get Norway as PU from Denmark because a transfer subject peace treaty breaks the PU.
2
+ #Make sure to use this peace treaty only in scripted wars though
3
+ po_claim_norwegian_throne = {
4
+ category = 6
5
+ power_projection = humiliated_rival
6
+ power_cost_base = 1.0
7
+ prestige_base = 1.0 # Base factor for prestige gain and loss. Scales with war score cost.
8
+ ae_base = 0.35
9
+ warscore_cost = {
10
+ # Which of the giver's provinces' war score costs are included and by how much. All entries default to 0. Any combination of entries can be used. Try negative values at your own risk.
11
+ all_provinces = 0.0 # All the giver's provinces
12
+ no_provinces = 60.0 # This is just a constant. Equivalent to a single province with with war score cost 1
13
+ owner_keeps = 0.0 # The provinces that are not of any of the types below
14
+ conquered = 0.0 # Provinces that are selected by a Demand Province treaty
15
+ returned_core = 0.0 # Provinces that are selected by a Return Core treaty
16
+ released_nation = 0.0 # Provinces that will become a part of a selected released-to-be nation
17
+ cancelled_subject = 0.0 # This one should not be relevant here since Giver can't be a cancelled subject. Including anyway for completeness
18
+ concede_colonial_region = 0.0 # Ditto
19
+ }
20
+ warscore_cap = 60 # Warscore cost will never go above this value. Only enabled if non-negative. This value defaults to -1.
21
+ requires_demand_independence = yes # Whether this can be demanded by the former subject in an independence war without also demanding independence.
22
+ is_make_subject = no # This will make the treaty mutually exclusive with other treaties that makes the giver a subject, or that explicitly frees the giver from their current overlord.
23
+ requires_is_allowed = yes # If set to "yes", treaty will only be visible when explicitly allowed by casus belli. If not, it will be available but cost diplomatic power.
24
+
25
+ is_visible = { # Defaults to equivalent of "always = yes"
26
+ always = yes
27
+ }
28
+ is_allowed = { # Defaults to equivalent of "always = yes"
29
+ NOR = { junior_union_with = FROM }
30
+ }
31
+ effect = { # Defaults to empty effect (which makes error log entry but is safe)
32
+ NOR = { grant_independence = yes }
33
+ create_union = NOR
34
+ }
35
+ ai_weight = { # Defaults to always evaluate to 0
36
+ export_to_variable = {
37
+ variable_name = ai_value # Mandatory to have entry called "ai_value". Its value at the end of the ai_weight scope is what will be used
38
+ value = 50
39
+ }
40
+ }
41
+ }
common/peace_treaties/00_enforce_primary_culture.txt ADDED
@@ -0,0 +1,49 @@
1
+ # Adds a special Establish Eyalet treaty for the Ottomans to use in order to expand.
2
+ #Make sure to use this peace treaty only in scripted wars though
3
+ po_change_culture = {
4
+ category = 6
5
+ power_projection = humiliated_rival
6
+ power_cost_base = 1.0
7
+ prestige_base = 1.0 # Base factor for prestige gain and loss. Scales with war score cost.
8
+ ae_base = 0
9
+ warscore_cost = {
10
+ # Which of the giver's provinces' war score costs are included and by how much. All entries default to 0. Any combination of entries can be used. Try negative values at your own risk.
11
+ all_provinces = 1.0 # All the giver's provinces
12
+ no_provinces = 0.0 # This is just a constant. Equivalent to a single province with with war score cost 1
13
+ owner_keeps = 0.0 # The provinces that are not of any of the types below
14
+ conquered = 0.0 # Provinces that are selected by a Demand Province treaty
15
+ returned_core = 0.0 # Provinces that are selected by a Return Core treaty
16
+ released_nation = 0.0 # Provinces that will become a part of a selected released-to-be nation
17
+ cancelled_subject = 0.0 # This one should not be relevant here since Giver can't be a cancelled subject. Including anyway for completeness
18
+ concede_colonial_region = 0.0 # Ditto
19
+ }
20
+ warscore_cap = -1 # Warscore cost will never go above this value. Only enabled if non-negative. This value defaults to -1.
21
+ requires_demand_independence = yes # Whether this can be demanded by the former subject in an independence war without also demanding independence.
22
+ is_make_subject = no # This will make the treaty mutually exclusive with other treaties that makes the giver a subject, or that explicitly frees the giver from their current overlord.
23
+ requires_is_allowed = no # If set to "yes", treaty will only be visible when explicitly allowed by casus belli. If not, it will be available but cost diplomatic power.
24
+
25
+ is_visible = { # Defaults to equivalent of "always = yes"
26
+ has_government_attribute = can_enforce_primary_culture
27
+ FROM = { NOT = { primary_culture = root } }
28
+ FROM = { NOT = { culture_group = root } }
29
+ }
30
+ is_allowed = { # Defaults to equivalent of "always = yes"
31
+ always = yes
32
+ }
33
+ effect = { # Defaults to empty effect (which makes error log entry but is safe)
34
+ FROM = {
35
+ capital_scope = { change_culture = root }
36
+ change_primary_culture = root
37
+ }
38
+ change_variable = {
39
+ which = num_of_forced_culture_conversions
40
+ value = 1
41
+ }
42
+ }
43
+ ai_weight = { # Defaults to always evaluate to 0
44
+ export_to_variable = {
45
+ variable_name = ai_value # Mandatory to have entry called "ai_value". Its value at the end of the ai_weight scope is what will be used
46
+ value = 0
47
+ }
48
+ }
49
+ }
common/peace_treaties/00_enforce_primary_culture_same_culture_group.txt ADDED
@@ -0,0 +1,47 @@
1
+ po_change_culture_same_culture_group = {
2
+ category = 6
3
+ power_projection = humiliated_rival
4
+ power_cost_base = 1.0
5
+ prestige_base = 1.0 # Base factor for prestige gain and loss. Scales with war score cost.
6
+ ae_base = 0
7
+ warscore_cost = {
8
+ # Which of the giver's provinces' war score costs are included and by how much. All entries default to 0. Any combination of entries can be used. Try negative values at your own risk.
9
+ all_provinces = 0.5 # All the giver's provinces
10
+ no_provinces = 0.0 # This is just a constant. Equivalent to a single province with with war score cost 1
11
+ owner_keeps = 0.0 # The provinces that are not of any of the types below
12
+ conquered = 0.0 # Provinces that are selected by a Demand Province treaty
13
+ returned_core = 0.0 # Provinces that are selected by a Return Core treaty
14
+ released_nation = 0.0 # Provinces that will become a part of a selected released-to-be nation
15
+ cancelled_subject = 0.0 # This one should not be relevant here since Giver can't be a cancelled subject. Including anyway for completeness
16
+ concede_colonial_region = 0.0 # Ditto
17
+ }
18
+ warscore_cap = -1 # Warscore cost will never go above this value. Only enabled if non-negative. This value defaults to -1.
19
+ requires_demand_independence = yes # Whether this can be demanded by the former subject in an independence war without also demanding independence.
20
+ is_make_subject = no # This will make the treaty mutually exclusive with other treaties that makes the giver a subject, or that explicitly frees the giver from their current overlord.
21
+ requires_is_allowed = no # If set to "yes", treaty will only be visible when explicitly allowed by casus belli. If not, it will be available but cost diplomatic power.
22
+
23
+ is_visible = { # Defaults to equivalent of "always = yes"
24
+ has_government_attribute = can_enforce_primary_culture
25
+ FROM = { NOT = { primary_culture = root } }
26
+ FROM = { culture_group = root }
27
+ }
28
+ is_allowed = { # Defaults to equivalent of "always = yes"
29
+ always = yes
30
+ }
31
+ effect = { # Defaults to empty effect (which makes error log entry but is safe)
32
+ FROM = {
33
+ capital_scope = { change_culture = root }
34
+ change_primary_culture = root
35
+ }
36
+ change_variable = {
37
+ which = num_of_forced_culture_conversions
38
+ value = 1
39
+ }
40
+ }
41
+ ai_weight = { # Defaults to always evaluate to 0
42
+ export_to_variable = {
43
+ variable_name = ai_value # Mandatory to have entry called "ai_value". Its value at the end of the ai_weight scope is what will be used
44
+ value = 0
45
+ }
46
+ }
47
+ }
common/peace_treaties/00_establish_eyalet.txt ADDED
@@ -0,0 +1,90 @@
1
+ # Adds a special Establish Eyalet treaty for the Ottomans to use in order to expand.
2
+ #Make sure to use this peace treaty only in scripted wars though
3
+ po_establish_eyalet = {
4
+ category = 6
5
+ power_projection = humiliated_rival
6
+ power_cost_base = 1.0
7
+ prestige_base = 1.0 # Base factor for prestige gain and loss. Scales with war score cost.
8
+ ae_base = 0.4
9
+ warscore_cost = {
10
+ # Which of the giver's provinces' war score costs are included and by how much. All entries default to 0. Any combination of entries can be used. Try negative values at your own risk.
11
+ all_provinces = 0.75 # All the giver's provinces
12
+ no_provinces = 0.0 # This is just a constant. Equivalent to a single province with with war score cost 1
13
+ owner_keeps = 0.0 # The provinces that are not of any of the types below
14
+ conquered = 0.0 # Provinces that are selected by a Demand Province treaty
15
+ returned_core = 0.0 # Provinces that are selected by a Return Core treaty
16
+ released_nation = 0.0 # Provinces that will become a part of a selected released-to-be nation
17
+ cancelled_subject = 0.0 # This one should not be relevant here since Giver can't be a cancelled subject. Including anyway for completeness
18
+ concede_colonial_region = 0.0 # Ditto
19
+ }
20
+ warscore_cap = 60 # Warscore cost will never go above this value. Only enabled if non-negative. This value defaults to -1.
21
+ requires_demand_independence = yes # Whether this can be demanded by the former subject in an independence war without also demanding independence.
22
+ is_make_subject = yes # This will make the treaty mutually exclusive with other treaties that makes the giver a subject, or that explicitly frees the giver from their current overlord.
23
+ requires_is_allowed = yes # If set to "yes", treaty will only be visible when explicitly allowed by casus belli. If not, it will be available but cost diplomatic power.
24
+ applies_to_war_target = yes # only applies to the target of the war, not the war leader
25
+
26
+ is_visible = { # Defaults to equivalent of "always = yes"
27
+ always = yes
28
+ }
29
+ is_allowed = { # Defaults to equivalent of "always = yes"
30
+ custom_trigger_tooltip = {
31
+ tooltip = IS_INVASION_TARGET_TT
32
+ # FROM = { has_country_flag = got_invasion_cb_fabricated_by_@ROOT }
33
+ }
34
+ }
35
+ effect = { # Defaults to empty effect (which makes error log entry but is safe)
36
+ create_subject = {
37
+ who = FROM
38
+ subject_type = eyalet
39
+ }
40
+ FROM = {
41
+ # clr_country_flag = got_invasion_cb_fabricated_by_@ROOT
42
+ if = {
43
+ limit = {
44
+ NOT = { has_reform = papacy_reform }
45
+ NOT = { has_reform = celestial_empire }
46
+ NOT = { has_reform = shogunate }
47
+ }
48
+ if = {
49
+ limit = {
50
+ OR = {
51
+ culture_group = maghrebi
52
+ has_reform = pirate_republic_reform
53
+ }
54
+ }
55
+ set_country_flag = pirate_eyalet
56
+ }
57
+ if = {
58
+ limit = { NOT = { government = monarchy } }
59
+ change_government = monarchy
60
+ }
61
+ if = {
62
+ limit = { has_country_flag = pirate_eyalet }
63
+ clr_country_flag = pirate_eyalet
64
+ add_government_reform = barbary_eyalet_government
65
+ }
66
+ else = {
67
+ add_government_reform = eyalet_government
68
+ }
69
+ set_country_flag = has_eyalet_color
70
+ set_country_flag = has_overriden_color_flag
71
+ if = {
72
+ limit = { ROOT = { tag = TUR } }
73
+ change_country_color = { color = { 169 220 165 } }
74
+ }
75
+ else_if = {
76
+ limit = { ROOT = { tag = RUM } }
77
+ change_country_color = { color = { 75 190 228 } }
78
+ }
79
+ else = { change_country_color = { country = ROOT } }
80
+ eyalet_dynamic_name_change_effect = yes
81
+ }
82
+ }
83
+ }
84
+ ai_weight = { # Defaults to always evaluate to 0
85
+ export_to_variable = {
86
+ variable_name = ai_value # Mandatory to have entry called "ai_value". Its value at the end of the ai_weight scope is what will be used
87
+ value = 50
88
+ }
89
+ }
90
+ }
common/peace_treaties/00_establish_trade_protectorate.txt ADDED
@@ -0,0 +1,48 @@
1
+ # Adds a special peace treaty in order to esbalish your own trade protectorates
2
+ #Make sure to use this peace treaty only in scripted wars though
3
+ po_establish_trade_protectorate = {
4
+ category = 6
5
+ power_projection = humiliated_rival
6
+ power_cost_base = 1.0
7
+ prestige_base = 1.0 # Base factor for prestige gain and loss. Scales with war score cost.
8
+ ae_base = 0.2
9
+ warscore_cost = {
10
+ # Which of the giver's provinces' war score costs are included and by how much. All entries default to 0. Any combination of entries can be used. Try negative values at your own risk.
11
+ all_provinces = 0.0 # All the giver's provinces
12
+ no_provinces = 1.0 # This is just a constant. Equivalent to a single province with with war score cost 1
13
+ owner_keeps = 0.0 # The provinces that are not of any of the types below
14
+ conquered = 0.0 # Provinces that are selected by a Demand Province treaty
15
+ returned_core = 0.0 # Provinces that are selected by a Return Core treaty
16
+ released_nation = 0.0 # Provinces that will become a part of a selected released-to-be nation
17
+ cancelled_subject = 0.0 # This one should not be relevant here since Giver can't be a cancelled subject. Including anyway for completeness
18
+ concede_colonial_region = 0.0 # Ditto
19
+ }
20
+ warscore_cap = 60 # Warscore cost will never go above this value. Only enabled if non-negative. This value defaults to -1.
21
+ requires_demand_independence = yes # Whether this can be demanded by the former subject in an independence war without also demanding independence.
22
+ is_make_subject = yes # This will make the treaty mutually exclusive with other treaties that makes the giver a subject, or that explicitly frees the giver from their current overlord.
23
+ requires_is_allowed = no # If set to "yes", treaty will only be visible when explicitly allowed by casus belli. If not, it will be available but cost diplomatic power.
24
+
25
+ is_visible = { # Defaults to equivalent of "always = yes"
26
+ always = no
27
+ }
28
+ is_allowed = { # Defaults to equivalent of "always = yes"
29
+ always = yes
30
+ }
31
+ effect = { # Defaults to empty effect (which makes error log entry but is safe)
32
+ FROM = {
33
+ every_war_enemy_country = {
34
+ white_peace = PREV
35
+ }
36
+ }
37
+ create_subject = {
38
+ who = FROM
39
+ subject_type = trade_protectorate
40
+ }
41
+ }
42
+ ai_weight = { # Defaults to always evaluate to 0
43
+ export_to_variable = {
44
+ variable_name = ai_value # Mandatory to have entry called "ai_value". Its value at the end of the ai_weight scope is what will be used
45
+ value = 50
46
+ }
47
+ }
48
+ }
common/peace_treaties/00_extinguish_the_revolution.txt ADDED
@@ -0,0 +1,51 @@
1
+ # Adds Peace treaty for the really rare case that two different "Crush the Revolution" happen against the same target, and one of them does crush the revoltuion while the other is stuck in this war for no reason
2
+ po_extinguish_the_revolution = {
3
+ category = 6
4
+ power_projection = humiliated_rival
5
+ power_cost_base = 1.0
6
+ prestige_base = 0.1 # Base factor for prestige gain and loss. Scales with war score cost.
7
+ ae_base = 0.0
8
+ warscore_cost = {
9
+ # Which of the giver's provinces' war score costs are included and by how much. All entries default to 0. Any combination of entries can be used. Try negative values at your own risk.
10
+ all_provinces = 0.0 # All the giver's provinces
11
+ no_provinces = 40.0 # This is just a constant. Equivalent to a single province with with war score cost 1
12
+ owner_keeps = 0.0 # The provinces that are not of any of the types below
13
+ conquered = 0.0 # Provinces that are selected by a Demand Province treaty
14
+ returned_core = 0.0 # Provinces that are selected by a Return Core treaty
15
+ released_nation = 0.0 # Provinces that will become a part of a selected released-to-be nation
16
+ cancelled_subject = 0.0 # This one should not be relevant here since Giver can't be a cancelled subject. Including anyway for completeness
17
+ concede_colonial_region = 0.0 # Ditto
18
+ }
19
+ warscore_cap = 40 # Warscore cost will never go above this value. Only enabled if non-negative. This value defaults to -1.
20
+ requires_demand_independence = yes # Whether this can be demanded by the former subject in an independence war without also demanding independence.
21
+ is_make_subject = yes # This will make the treaty mutually exclusive with other treaties that makes the giver a subject, or that explicitly frees the giver from their current overlord.
22
+ requires_is_allowed = yes # If set to "yes", treaty will only be visible when explicitly allowed by casus belli. If not, it will be available but cost diplomatic power.
23
+
24
+ is_visible = { # Defaults to equivalent of "always = yes"
25
+ FROM = {
26
+ is_revolutionary = no
27
+ }
28
+ }
29
+ is_allowed = { # Defaults to equivalent of "always = yes"
30
+ always = yes
31
+ }
32
+ effect = { # Defaults to empty effect (which makes error log entry but is safe)
33
+ FROM = {
34
+ every_owned_province = {
35
+ limit = {
36
+ has_revolution_in_province = yes
37
+ }
38
+ set_revolution_in_province = no
39
+ }
40
+ }
41
+ add_adm_power = 100
42
+ add_dip_power = 100
43
+ add_mil_power = 100
44
+ }
45
+ ai_weight = { # Defaults to always evaluate to 0
46
+ export_to_variable = {
47
+ variable_name = ai_value # Mandatory to have entry called "ai_value". Its value at the end of the ai_weight scope is what will be used
48
+ value = 100
49
+ }
50
+ }
51
+ }
common/peace_treaties/00_raid_churches.txt ADDED
@@ -0,0 +1,115 @@
1
+ # Adds Peace treaty for the really rare case that two different "Crush the Revolution" happen against the same target, and one of them does crush the revoltuion while the other is stuck in this war for no reason
2
+ po_raid_churches = {
3
+ category = 6
4
+ power_projection = humiliated_rival
5
+ power_cost_base = 0
6
+ prestige_base = 0.1 # Base factor for prestige gain and loss. Scales with war score cost.
7
+ ae_base = 0.0
8
+ warscore_cost = {
9
+ # Which of the giver's provinces' war score costs are included and by how much. All entries default to 0. Any combination of entries can be used. Try negative values at your own risk.
10
+ all_provinces = 0.0 # All the giver's provinces
11
+ no_provinces = 20.0 # This is just a constant. Equivalent to a single province with with war score cost 1
12
+ owner_keeps = 0.0 # The provinces that are not of any of the types below
13
+ conquered = 0.0 # Provinces that are selected by a Demand Province treaty
14
+ returned_core = 0.0 # Provinces that are selected by a Return Core treaty
15
+ released_nation = 0.0 # Provinces that will become a part of a selected released-to-be nation
16
+ cancelled_subject = 0.0 # This one should not be relevant here since Giver can't be a cancelled subject. Including anyway for completeness
17
+ concede_colonial_region = 0.0 # Ditto
18
+ }
19
+ warscore_cap = 40 # Warscore cost will never go above this value. Only enabled if non-negative. This value defaults to -1.
20
+ requires_demand_independence = yes # Whether this can be demanded by the former subject in an independence war without also demanding independence.
21
+ is_make_subject = yes # This will make the treaty mutually exclusive with other treaties that makes the giver a subject, or that explicitly frees the giver from their current overlord.
22
+ requires_is_allowed = no # If set to "yes", treaty will only be visible when explicitly allowed by casus belli. If not, it will be available but cost diplomatic power.
23
+
24
+ is_visible = { # Defaults to equivalent of "always = yes"
25
+ has_government_attribute = can_loot_heretic_churches
26
+ religion_group = FROM
27
+ NOT = { religion = FROM }
28
+ }
29
+ is_allowed = { # Defaults to equivalent of "always = yes"
30
+ FROM = {
31
+ OR = {
32
+ temple = 1
33
+ cathedral = 1
34
+ }
35
+ }
36
+ }
37
+ effect = { # Defaults to empty effect (which makes error log entry but is safe)
38
+ if = {
39
+ limit = { NOT = { has_country_flag = started_counting_church_raids } }
40
+ set_country_flag = started_counting_church_raids
41
+ set_variable = {
42
+ which = raided_churches
43
+ value = 1
44
+ }
45
+ }
46
+ else = {
47
+ change_variable = {
48
+ which = raided_churches
49
+ value = 1
50
+ }
51
+ }
52
+ FROM = {
53
+ random_owned_province = {
54
+ limit = {
55
+ has_tax_building_trigger = yes
56
+ }
57
+ save_event_target_as = church_demolition
58
+ }
59
+ random_owned_province = {
60
+ limit = {
61
+ has_tax_building_trigger = yes
62
+ development = 10
63
+ }
64
+ save_event_target_as = church_demolition
65
+ }
66
+ random_owned_province = {
67
+ limit = {
68
+ has_tax_building_trigger = yes
69
+ development = 20
70
+ }
71
+ save_event_target_as = church_demolition
72
+ }
73
+ random_owned_province = {
74
+ limit = {
75
+ has_tax_building_trigger = yes
76
+ development = 30
77
+ }
78
+ save_event_target_as = church_demolition
79
+ }
80
+ random_owned_province = {
81
+ limit = {
82
+ has_tax_building_trigger = yes
83
+ development = 40
84
+ }
85
+ save_event_target_as = church_demolition
86
+ }
87
+ random_owned_province = { #Rome gets always raided no matter what
88
+ limit = {
89
+ has_tax_building_trigger = yes
90
+ province_id = 118
91
+ }
92
+ save_event_target_as = church_demolition
93
+ }
94
+ }
95
+ event_target:church_demolition = {
96
+ remove_building = cathedral
97
+ remove_building = temple
98
+ add_loot_from_rich_province_general_effect = {
99
+ LOOTER = ROOT
100
+ }
101
+ if = {
102
+ limit = { province_id = 118 }
103
+ ROOT = { set_country_flag = looted_heretic_church_of_rome }
104
+ }
105
+ }
106
+ add_church_power = 50
107
+ add_fervor = 25
108
+ }
109
+ ai_weight = { # Defaults to always evaluate to 0
110
+ export_to_variable = {
111
+ variable_name = ai_value # Mandatory to have entry called "ai_value". Its value at the end of the ai_weight scope is what will be used
112
+ value = 100
113
+ }
114
+ }
115
+ }
common/peace_treaties/00_reintegrate_into_hre.txt ADDED
@@ -0,0 +1,60 @@
1
+ # Adds a special Expand Empire treaty, which will force the country to ALWAYS join the empire, regardless how large target is
2
+ #Make sure to use this peace treaty only in scripted wars though
3
+ po_reintegrate_into_hre = {
4
+ category = 6
5
+ power_projection = humiliated_rival
6
+ power_cost_base = 1.0
7
+ prestige_base = 1.0 # Base factor for prestige gain and loss. Scales with war score cost.
8
+ ae_base = 0.0
9
+ warscore_cost = {
10
+ # Which of the giver's provinces' war score costs are included and by how much. All entries default to 0. Any combination of entries can be used. Try negative values at your own risk.
11
+ all_provinces = 0.0 # All the giver's provinces
12
+ no_provinces = 80.0 # This is just a constant. Equivalent to a single province with with war score cost 1
13
+ owner_keeps = 0.0 # The provinces that are not of any of the types below
14
+ conquered = 1.0 # Provinces that are selected by a Demand Province treaty
15
+ returned_core = 0.0 # Provinces that are selected by a Return Core treaty
16
+ released_nation = 0.0 # Provinces that will become a part of a selected released-to-be nation
17
+ cancelled_subject = 0.0 # This one should not be relevant here since Giver can't be a cancelled subject. Including anyway for completeness
18
+ concede_colonial_region = 0.0 # Ditto
19
+ }
20
+ warscore_cap = 80 # Warscore cost will never go above this value. Only enabled if non-negative. This value defaults to -1.
21
+ requires_demand_independence = yes # Whether this can be demanded by the former subject in an independence war without also demanding independence.
22
+ is_make_subject = yes # This will make the treaty mutually exclusive with other treaties that makes the giver a subject, or that explicitly frees the giver from their current overlord.
23
+ requires_is_allowed = yes # If set to "yes", treaty will only be visible when explicitly allowed by casus belli. If not, it will be available but cost diplomatic power.
24
+
25
+ is_visible = { # Defaults to equivalent of "always = yes"
26
+ always = yes
27
+ }
28
+ is_allowed = { # Defaults to equivalent of "always = yes"
29
+ FROM = {
30
+ is_revolutionary = no
31
+ NOT = { has_reform = celestial_empire }
32
+ is_part_of_hre = no
33
+ }
34
+ }
35
+ effect = { # Defaults to empty effect (which makes error log entry but is safe)
36
+ FROM = {
37
+ every_owned_province = {
38
+ limit = {
39
+ continent = europe
40
+ }
41
+ set_in_empire = yes
42
+ }
43
+ every_subject_country = {
44
+ every_owned_province = {
45
+ limit = {
46
+ continent = europe
47
+ }
48
+ set_in_empire = yes
49
+ }
50
+ }
51
+ }
52
+ add_imperial_influence = 25
53
+ }
54
+ ai_weight = { # Defaults to always evaluate to 0
55
+ export_to_variable = {
56
+ variable_name = ai_value # Mandatory to have entry called "ai_value". Its value at the end of the ai_weight scope is what will be used
57
+ value = 50
58
+ }
59
+ }
60
+ }
common/peace_treaties/01_annex_tribe.txt ADDED
@@ -0,0 +1,60 @@
1
+ po_annex_tribe = {
2
+ category = 6
3
+ power_cost_base = 1.0
4
+ prestige_base = 0.1
5
+ ae_base = 0.1
6
+ power_projection = humiliated_rival
7
+ warscore_cost = {
8
+ all_provinces = 1.0
9
+ no_provinces = 0.0
10
+ owner_keeps = 0.0
11
+ conquered = 0.0
12
+ returned_core = 0.0
13
+ released_nation = 0.0
14
+ cancelled_subject = 0.0
15
+ concede_colonial_region = 0.0
16
+ }
17
+ warscore_cap = 100
18
+ is_make_subject = yes
19
+ is_visible = {
20
+ FROM = {
21
+ is_migratory_tribe = yes
22
+ #Commented out because it should be possible to annex a migratory tribe even after they moved to another province during the war.
23
+ #capital_scope = {
24
+ # any_neighbor_province = {
25
+ # owner = {
26
+ # OR = {
27
+ # tag = ROOT
28
+ # AND = {
29
+ # is_subject_of = ROOT
30
+ # is_colonial_nation = yes
31
+ # }
32
+ # }
33
+ # }
34
+ # }
35
+ #}
36
+ }
37
+ NOT = {
38
+ is_migratory_tribe = yes
39
+ }
40
+ }
41
+ is_allowed = {
42
+ }
43
+ effect = {
44
+ FROM = {
45
+ #every_tribal_land_province = {
46
+ # cede_province = ROOT
47
+ #}
48
+ every_owned_province = {
49
+ cede_province = ROOT
50
+ }
51
+ remove_country = yes #Just to be sure that this state just seizes to exist >_>
52
+ }
53
+ }
54
+ ai_weight = {
55
+ export_to_variable = {
56
+ variable_name = ai_value
57
+ value = 50
58
+ }
59
+ }
60
+ }
common/peace_treaties/01_force_border_changes.txt ADDED
@@ -0,0 +1,40 @@
1
+ # Adds a special "Force Border Changes" treaty in case that the original war target is no longer the war leader.
2
+ #po_force_border_changes = {
3
+ # category = 6
4
+ # power_projection = humiliated_rival
5
+ # power_cost_base = 0.0
6
+ # prestige_base = 1.0 # Base factor for prestige gain and loss. Scales with war score cost.
7
+ # ae_base = 0.0
8
+ # warscore_cost = {
9
+ # # Which of the giver's provinces' war score costs are included and by how much. All entries default to 0. Any combination of entries can be used. Try negative values at your own risk.
10
+ # all_provinces = 0.0 # All the giver's provinces
11
+ # no_provinces = 10.0 # This is just a constant. Equivalent to a single province with with war score cost 1
12
+ # owner_keeps = 0.0 # The provinces that are not of any of the types below
13
+ # conquered = 0.0 # Provinces that are selected by a Demand Province treaty
14
+ # returned_core = 0.0 # Provinces that are selected by a Return Core treaty
15
+ # released_nation = 0.0 # Provinces that will become a part of a selected released-to-be nation
16
+ # cancelled_subject = 0.0 # This one should not be relevant here since Giver can't be a cancelled subject. Including anyway for completeness
17
+ # concede_colonial_region = 0.0 # Ditto
18
+ # }
19
+ # warscore_cap = 10 # Warscore cost will never go above this value. Only enabled if non-negative. This value defaults to -1.
20
+ # requires_demand_independence = yes # Whether this can be demanded by the former subject in an independence war without also demanding independence.
21
+ # is_make_subject = yes # This will make the treaty mutually exclusive with other treaties that makes the giver a subject, or that explicitly frees the giver from their current overlord.
22
+ # requires_is_allowed = yes # If set to "yes", treaty will only be visible when explicitly allowed by casus belli. If not, it will be available but cost diplomatic power.
23
+ #
24
+ # is_visible = { # Defaults to equivalent of "always = yes"
25
+ # # FROM = { NOT = { has_country_flag = got_invasion_cb_fabricated_by_@ROOT } }
26
+ # }
27
+ # is_allowed = { # Defaults to equivalent of "always = yes"
28
+ # always = yes
29
+ # }
30
+ # effect = { # Defaults to empty effect (which makes error log entry but is safe)
31
+ # add_prestige = 20
32
+ # FROM = { add_prestige = -20 }
33
+ # }
34
+ # ai_weight = { # Defaults to always evaluate to 0
35
+ # export_to_variable = {
36
+ # variable_name = ai_value # Mandatory to have entry called "ai_value". Its value at the end of the ai_weight scope is what will be used
37
+ # value = 50
38
+ # }
39
+ # }
40
+ #}