Гуситские войны
СитуацияИзменено в этой версии

Гуситские войны

hussite_warsin_game/common/situations/hussite_wars.txt:1

Гуситы и католики бесконечно конфликтуют. Эта череда столкновений быстро переросла в полномасштабную войну за религиозную принадлежность державы.

ТребуетБогемияДержаваcan start, on ended, on monthly, on start, visibleРимДержаваon endedСвященная Римская ИмперияМеждународное объединениеon ended, on monthly, on startКатоличествоРелигияon monthly, visibleГуситствоРелигияcan start, on ended, visibleГуситская ересьСтатический модификаторon ended

Определениеin_game/common/situations/hussite_wars.txt:1

2monthly_spawn_chance = monthly_spawn_chance_unique (1)
3hint_tag = hint_hussite_wars
5can_start = {
6c:BOH = {
7is_subject = no
8religion = religion:hussite
}
}
12can_end = {
}
16visible = {
17OR = {
18tag = BOH
19religion = religion:hussite
20religion = religion:catholic
}
}
24on_start = {
26every_country_in_religion = {
27limit = {
28OR = {
29is_member_of_international_organization = international_organization:hre
30is_neighbor_of = c:BOH
}
32OR = {
33is_subject_of = c:BOH
34NOT = {
34target = c:BOH
}
}
}
}
38trigger_event_non_silently = hussite_wars.10
}
}
42set_variable = {
44value = 0
}
47set_variable = {
49value = 0
}
52c:BOH = {
52trigger_event_non_silently = hussite_wars.11
}
}
55on_monthly = {
56random_list = {
5799 = {
}
581 = {
58c:BOH = {
58trigger_event_non_silently = hussite_wars.8
}
}
}
61random_list = {
629 = {
}
631 = {
64trigger = {
}
77trigger_event_non_silently = hussite_wars.9
}
}
}
}
83on_ended = {
85remove_variable = heretics_converted_variable
86remove_variable = heretics_eradicated_variable
88every_country = {
89limit = {
89has_country_modifier = hussite_heresy_modifier
}
90remove_country_modifier = hussite_heresy_modifier
}
93c:BOH ?= {
94every_other_country = {
95remove_opinion = {
96modifier = religious_disagreements_modifier
97target = c:BOH
}
}
100trigger_event_non_silently = hussite_wars.4
}
103every_country_in_religion = {
104limit = {
104NOT = {
104tag = BOH
}
}
105trigger_event_non_silently = hussite_wars.4
}
}
109every_country_in_religion = {
110limit = {
111NOT = {
111tag = BOH
}
112OR = {
113tag = PAP
114is_member_of_international_organization = international_organization:hre
115AND = {
116country_exists = c:BOH
117is_neighbor_of = c:BOH
}
}
}
121trigger_event_non_silently = hussite_wars.4
}
}
125if = {
126limit = {
127country_exists = c:BOH
}
130set_global_variable = {
132years = 1
}
134set_global_variable = hussites_won_hussite_wars
}
}
140tooltip = {
141if = {
142limit = {
143has_owner = yes
144owner = {
145OR = {
146AND = {
147is_subject_of = c:BOH
148subject_loyalty > 50
}
150has_mutual_scripted_relation = {
151type = relation_type:alliance
152target = c:BOH
}
}
}
}
157custom_tooltip = "HUSSITE_WARS_SIDE_BOHEMIA"
}
159else_if = {
160limit = {
161has_owner = yes
162owner = {
163OR = {
164AND = {
166subject_loyalty > 50
}
168has_mutual_scripted_relation = {
169type = relation_type:alliance
}
}
}
}
175custom_tooltip = "HUSSITE_WARS_SIDE_EMPEROR"
}
177else_if = {
178limit = {
}
182custom_tooltip = emperor_hw_tt
}
184else_if = {
185limit = {
186has_owner = yes
187owner = c:BOH
}
189custom_tooltip = boh_hw_tt
}
191if = {
192limit = {
193has_owner = yes
194province = {
194has_province_modifier = recent_tribunal_modifier
}
}
196custom_tooltip = recent_tribunal_tt
}
}
200map_color = {
201if = {
202limit = {
203has_owner = yes
204owner = {
205OR = {
206AND = {
207is_subject_or_below_of = c:BOH
208subject_loyalty > 50
}
210has_mutual_scripted_relation = {
211type = relation_type:alliance
212target = c:BOH
}
}
}
}
217value = owner.country_color
}
219else_if = {
220limit = {
221has_owner = yes
222owner = {
223OR = {
224AND = {
226subject_loyalty > 50
}
228has_mutual_scripted_relation = {
229type = relation_type:alliance
}
}
}
}
235value = owner.country_color
}
237else_if = {
238limit = {
}
242value = owner.country_color
}
244else_if = {
245limit = {
246has_owner = yes
247owner = c:BOH
}
249value = owner.country_color
}
251else = {
252value = define:NMapColors|DEFAULT_COLOR
}
}
256secondary_map_color = {
257if = {
258limit = {
259has_owner = yes
260province = {
260has_province_modifier = recent_tribunal_modifier
}
}
262value = define:NMapColors|MAP_COLOR_LOW
}
264if = {
265limit = {
266has_owner = yes
267owner = {
268OR = {
269AND = {
270is_subject_or_below_of = c:BOH
271subject_loyalty > 50
}
273has_mutual_scripted_relation = {
274type = relation_type:alliance
275target = c:BOH
}
}
}
}
280value = c:BOH.country_color
}
282else_if = {
283limit = {
284has_owner = yes
285owner = {
286OR = {
287AND = {
289subject_loyalty > 50
}
291has_mutual_scripted_relation = {
292type = relation_type:alliance
}
}
}
}
298value = international_organization:hre.leader_country.country_color
}
}
302legend_key = {
303limit = {
304has_owner = yes
305OR = {
}
}
311desc = "LOCATION_OWNER_NAME"
312color = owner.country_color
}