Diff to HTML by rtfpessoa

Files changed (3) hide show
  1. common/peace_treaties/00_enforce_primary_culture.txt +49 -0
  2. common/peace_treaties/00_enforce_primary_culture_same_culture_group.txt +47 -0
  3. common/peace_treaties/00_establish_eyalet.txt +11 -1
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 CHANGED
@@ -21,6 +21,7 @@ po_establish_eyalet = {
21
21
  requires_demand_independence = yes # Whether this can be demanded by the former subject in an independence war without also demanding independence.
22
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
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
24
25
 
25
26
  is_visible = { # Defaults to equivalent of "always = yes"
26
27
  always = yes
@@ -67,7 +68,16 @@ po_establish_eyalet = {
67
68
  }
68
69
  set_country_flag = has_eyalet_color
69
70
  set_country_flag = has_overriden_color_flag
70
- change_country_color = { country = ROOT }
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
71
81
  }
72
82
  }
73
83
  }