
Peace TreatyChanged this version
Force Faction Change
TARGET COUNTRY changes their allegiance to GAGOwn Faction, forcing them to join our cause.
RomeCountryallow
GhibellinesInternational Organizationallow
GuelphsInternational Organizationallow
Holy Roman EmpireInternational OrganizationallowSupport of the GuelphsStatic ModifiereffectDefinitionin_game/common/peace_treaties/guelphs_and_ghibellines.txt:1
2blocks_full_annexation = yes
3cost = {
4add = {
5desc = "DIPLOREASON_BASE" Base
6value = 5
}
8add = {
9desc = "game_concept_prestige" Prestige
10value = scope:loser.prestige
11multiply = 0.5
}
}
15potential = {
16scope:war = {
17or = {
18has_casus_belli = no
19casus_belli = {
20is_trade_cb = no
}
}
}
24OR = {
25AND = {
26scope:winner = {
26is_member_of_international_organization_of_type = {
26type = guelphs_io
}
}
27scope:loser = {
28NOT = {
29is_member_of_international_organization_of_type = {
29type = guelphs_io
}
}
}
}
33AND = {
34scope:winner = {
34is_member_of_international_organization_of_type = {
34type = ghibellines_io
}
}
35scope:loser = {
36NOT = {
36is_member_of_international_organization_of_type = {
36type = ghibellines_io
}
}
}
}
}
}
40allow = {
41scope:loser = {
}
47trigger_if = {
48limit = {
49scope:winner = {
49is_member_of_international_organization_of_type = {
49type = guelphs_io
}
}
50scope:loser = {
51NOR = {
52is_member_of_international_organization_of_type = {
52type = ghibellines_io
}
}
}
}
}
60trigger_if = {
61limit = {
62scope:winner = {
62is_member_of_international_organization_of_type = {
62type = ghibellines_io
}
}
63scope:loser = {
63NOT = {
63is_member_of_international_organization_of_type = {
63type = guelphs_io
}
}
}
}
}
}
68effect = {
69hidden_effect = {
70if = {
71limit = {
71scope:loser = {
71is_member_of_international_organization_of_type = {
71type = guelphs_io
}
}
}
73target = scope:loser
75leave_variable = gag_recently_left_a_faction
76leave_years = 2
}
}
80if = {
81limit = {
81scope:loser = {
81is_member_of_international_organization_of_type = {
81type = ghibellines_io
}
}
}
83target = scope:loser
85leave_variable = gag_recently_left_a_faction
86leave_years = 2
}
}
}
91if = {
92limit = {
92scope:winner = {
92is_member_of_international_organization_of_type = {
92type = guelphs_io
}
}
}
94target = scope:loser
97join_years = 5
98leave_variable = gag_recently_left_a_faction
}
}
}
107if = {
108limit = {
108scope:winner = {
108is_member_of_international_organization_of_type = {
108type = ghibellines_io
}
}
}
110target = scope:loser
113join_years = 5
114leave_variable = gag_recently_left_a_faction
}
}
}
123if = {
124limit = {
125scope:loser = {
}
}
}
135scope:winner = {
136add_prestige = {
137value = scope:loser.prestige
138multiply = 0.05
}
}
141scope:loser = {
148set_variable = {
}
}
}
155ai_desire = {
156add = 10
157if = {
158limit = {
159scope:winner = {
160is_rival_of = scope:loser
}
}
163add = {
164desc = "game_concept_rival"
165value = 10
}
}
168if = {
169limit = {
170scope:winner.prestige < scope:loser.prestige
}
172add = {
173desc = "DIPLOREASON_LOWER_PRESTIGE"
174value = scope:loser.prestige
175subtract = scope:winner.prestige
}
}
}
179ai_force_add = yes