-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinternal_politics_monarchy_bloodlines_2_0.txt
238 lines (232 loc) · 5.67 KB
/
internal_politics_monarchy_bloodlines_2_0.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
# Indecent Affair II - Child born
ip_monarchy.39 = {
type = country_event
title = "ip_monarchy.39.t"
desc = "ip_monarchy.39.desc"
picture = greek_court
left_portrait = scope:bastard_ruler
left_portrait = scope:bastard_ruler.spouse
right_portrait = scope:affair_strumpet
right_portrait = scope:affair_child
right_portrait = scope:affair_strumpet.spouse
trigger = { # Previous characters alive and relevant
is_monarchy = yes
has_land = yes
exists = scope:bastard_ruler
scope:bastard_ruler = {
is_alive = yes
is_ruler = yes
employer = root
}
exists = scope:affair_strumpet
scope:affair_strumpet = {
is_alive = yes
employer = root
num_of_children >= 1
any_child = {
is_alive = yes
is_child_of = scope:bastard_ruler
}
}
any_neighbour_country = { exists = yes }
}
immediate = {
scope:affair_strumpet = {
ordered_child = {
limit = { is_child_of = root.current_ruler }
order_by = {
value = 0
subtract = age
}
save_scope_as = affair_child
}
}
hidden_effect = {
scope:affair_child = { bastard_major_bloodline_effect = yes }
}
}
option = { # This must never be revealed
name = "ip_monarchy.39.a"
custom_tooltip = ip_monarchy.39.at
random_neighbour_country = { save_scope_as = ip_monarchy_36_neighbor_scope } # Pick neighbor for child
hidden_effect = {
random_list = { # Child dies or may return, merc banishment to hide death notice for ruler
50 = {
scope:affair_child = {
death = {
death_reason = death_mysteriously_retired
killer = root.current_ruler
silent = yes
}
}
}
50 = {
set_variable = {
name = ip_mon_38_flag
value = root.current_ruler
}
scope:affair_child = {
set_variable = {
name = ip_mon_38_child_flag
value = root.current_ruler
}
banish = scope:ip_monarchy_36_neighbor_scope
trigger_event = {
id = ip_monarchy.70
days = { 6570 8030 }
}
}
}
}
}
scope:affair_strumpet = { add_trait = mourning }
if = {
limit = {
scope:bastard_ruler = { is_married = yes }
}
scope:bastard_ruler.spouse = { add_loyalty = loyalty_consort_reassured }
}
add_treasury = { # Payment for services rendered
value = has_monthly_income
multiply = -2
}
add_tyranny = tyranny_small # Tyranny
}
option = { # They have royal blood
name = "ip_monarchy.39.b"
if = {
limit = {
scope:bastard_ruler = { is_married = yes }
}
scope:bastard_ruler.spouse = { add_loyalty = loyalty_bastard_legitimized }
}
if = {
limit = {
exists = scope:affair_cuckold
scope:affair_cuckold = { is_alive = yes }
}
scope:affair_cuckold = { add_loyalty = loyalty_cuckold_revealed }
}
scope:affair_child = {
set_family = scope:bastard_ruler.family
hidden_effect = { adapt_family_name = yes }
}
hidden_effect = {
if = { # Rulers other children not happy
limit = {
scope:bastard_ruler = { num_of_children > 1 }
}
every_character = {
limit = {
is_alive = yes
is_child_of = scope:bastard_ruler
trigger_if = {
limit = {
employer.current_ruler = {
is_minor_character = no
}
}
from_ruler_family = yes
}
age >= 10
NOT = { this = scope:affair_child }
}
add_loyalty = loyalty_bastard_legitimized
}
}
if = { # Successors not happy
limit = {
any_character = {
is_alive = yes
is_successor = yes
}
}
every_successor = { add_loyalty = loyalty_bastard_legitimized }
}
}
custom_tooltip = ip_monarchy.36.ct1
add_legitimacy = subtract_legitimacy_large # Remove legitimacy
}
option = { # Ruler marries mother of child
name = "ip_monarchy.39.c"
if = {
limit = {
scope:bastard_ruler = { is_married = yes }
}
scope:bastard_ruler.spouse = { add_loyalty = loyalty_old_consort }
}
if = {
limit = {
scope:affair_cuckold = {
is_alive = yes
employer = root
}
}
scope:affair_cuckold = { add_loyalty = loyalty_cuckold_revealed }
}
scope:affair_child = {
set_family = scope:bastard_ruler.family
hidden_effect = { adapt_family_name = yes }
}
if = {
limit = {
scope:affair_strumpet = { can_get_rivals = yes }
exists = scope:bastard_ruler.spouse
scope:bastard_ruler.spouse = { can_get_rivals = yes}
}
hidden_effect = {
scope:bastard_ruler.spouse = { add_rival = scope:affair_strumpet }
scope:bastard_ruler = { divorce_character = spouse }
}
}
hidden_effect = {
scope:affair_strumpet = { divorce_character = scope:affair_strumpet.spouse }
}
scope:bastard_ruler = { marry_character = scope:affair_strumpet }
hidden_effect = {
if = { # Rulers other children unhappy
limit = {
scope:bastard_ruler = {
num_of_children > 1
}
}
scope:bastard_ruler = {
every_child = {
limit = {
is_alive = yes
trigger_if = {
limit = {
employer.current_ruler = {
is_minor_character = no
}
}
from_ruler_family = yes
}
age >= 10
NOT = { this = scope:affair_child }
}
add_loyalty = loyalty_bastard_legitimized_pretender
}
}
}
if = { # Successors unhappy
limit = {
any_character = {
is_alive = yes
is_successor = yes
}
}
every_successor = {
add_loyalty = loyalty_bastard_legitimized_pretender
}
}
}
scope:affair_child = { # adopted
hidden_effect = { add_popularity = subtract_popularity_huge }
}
custom_tooltip = ip_monarchy.36.dt
add_legitimacy = subtract_legitimacy_huge # Legitimacy damaged
remove_stability_effect = yes # Stability knocked
}
}