Направление
Международное объединениеИзменено в этой версии

Направление

sectin_game/common/international_organizations/sect.txt:1

Направление — это ответвление буддизма. Их много, и каждое из них по-своему интерпретирует мудрость Будды и способы достичь просветления.

ТребуетМонастырьСооружениеmonthly effectКонфуцианствоПолитикаcan leave triggerДаосизмПолитикаcan leave trigger, monthly effectВосточный буддизмРелигияcan join trigger, invite visible trigger, monthly effectСаньцзяоРелигияcan join trigger, can leave trigger, invite visible trigger, monthly effectСинтоизмРелигияcan join trigger, invite visible trigger, monthly effectБуддизмРелигиозная группаmonthly effectАзиатские народные верованияРелигиозная группаmonthly effectПоддержка буддийских школСтатический модификаторcan join trigger, invite visible triggerУкреплено министерство церемонийСтатический модификаторai desire to joinreligionПеременнаяcan join trigger, invite visible trigger, on joinedsect_favorПеременнаяmonthly effect

Модификаторы

Переменные 2

Определениеin_game/common/international_organizations/sect.txt:1

2has_target = no
3has_enemies = yes
4expel_members_who_are_targets_of_other_members = no
5has_leader_country = no
6leader_type = none
7disband_if_no_leader = no
8can_be_enemy_trigger = {
9has_variable = disfavoring_sect
10var:disfavoring_sect = scope:recipient
}
12unique = no
13land_ownership_rule = sect_land_ownership
14antagonism_modifier_for_taking_land_from_fellow_member = 0.1
15custom_name = sect_name
16can_declare_war = {
17always = yes
}
20create_visible_trigger = {
21always = no
}
24invite_visible_trigger = {
25religion Религия = {
26has_sects = yes
}
28trigger_if = {
29limit = {
30exists = scope:recipient
31scope:recipient = {
32exists = var:religion
}
}
35OR = {
36AND = {
37religion Религия = "scope:recipient.var:religion"
38scope:recipient.var:religion != religion:shinto
}
40AND = {
41religion Религия = religion:shinto
42has_country_modifier = favoring_buddhism_schools
43OR = {
44scope:recipient.var:religion = religion:mahayana
45scope:recipient.var:religion = religion:shinto
}
}
48AND = {
49religion Религия = religion:sanjiao
50scope:recipient.var:religion = religion:mahayana
}
}
}
}
56modifier = {
57scale = {
59value = 0
60every_international_organization = {
61limit = {
62international_organization_type = international_organization_type:sect
}
64add = total_members
}
66save_temporary_value_as = total_sect_memberships
67scope:recipient = {
68value = total_members
69if = {
70limit = {
70scope:total_sect_memberships > 0
}
71divide = scope:total_sect_memberships
}
}
}
}
78modifier = {
79scale = {
81scope:recipient = {
82value = var:sect_favor
83divide = 1000
}
}
}
90can_lead_trigger = {
91always = yes
}
94can_join_trigger = {
95religion Религия = {
96has_sects = yes
}
98exists = scope:recipient
99NOT = {
99is_member_of_international_organization = scope:recipient
}
100NOT = {
100is_enemy_of_international_organization = scope:recipient
}
101trigger_if = {
102limit = {
103is_member_of_international_organization_of_type = {
103type = sect
}
}
105any_international_organizations_member_of = {
106international_organization_type = international_organization_type:sect
107count < prev.religion.max_sects
}
}
110trigger_if = {
111limit = {
112scope:recipient = {
113exists = var:religion
}
}
116trigger_if = {
117limit = {
118religion Религия = religion:shinto
}
120has_country_modifier = favoring_buddhism_schools
121OR = {
122scope:recipient.var:religion = religion:mahayana
123scope:recipient.var:religion = religion:shinto
}
}
126trigger_else = {
127OR = {
128AND = {
129religion Религия = religion:sanjiao
130scope:recipient.var:religion = religion:mahayana
}
132religion Религия = "scope:recipient.var:religion"
}
}
}
136OR = {
137any_subject = {
138custom_tooltip = {
139text = join_sect_location_tt Последователи проживают на нашей территории
140OR = {
141trigger_if = {
142limit = {
142country_type = location
}
143any_owned_location = {
144scope:recipient = {
144has_location = prev
}
}
}
147trigger_if = {
148limit = {
148country_type = building
}
149any_owned_foreign_building_location = {
150scope:recipient = {
150has_location = prev
}
}
}
153is_member_of_international_organization = scope:recipient
}
}
}
157any_related_country = {
158type = alliance
159custom_tooltip = {
160text = join_sect_location_tt Последователи проживают на нашей территории
161OR = {
162trigger_if = {
163limit = {
163country_type = location
}
164any_owned_location = {
165scope:recipient = {
165has_location = prev
}
}
}
168trigger_if = {
169limit = {
169country_type = building
}
170any_owned_foreign_building_location = {
171scope:recipient = {
171has_location = prev
}
}
}
174is_member_of_international_organization = scope:recipient
}
}
}
178custom_tooltip = {
179text = join_sect_location_tt Последователи проживают на нашей территории
180OR = {
181trigger_if = {
182limit = {
182country_type = location
}
183any_owned_location = {
184scope:recipient = {
184has_location = prev
}
}
}
187trigger_if = {
188limit = {
188country_type = building
}
189any_owned_foreign_building_location = {
190scope:recipient = {
190has_location = prev
}
}
}
193always = no
}
}
}
}
199can_leave_trigger = {
200scope:recipient = {
200NOT = {
}
}
201trigger_if = {
202limit = {
203religion Религия = religion:sanjiao
204scope:recipient = {
205OR = {
206international_organization_has_policy = policy:confucianism_policy
207international_organization_has_policy = policy:daoism_policy
}
}
}
211always = no
}
}
215auto_leave_trigger = {
216always = no
}
219auto_disband_trigger = {
220always = no
}
223variables = {
224religion Религия = {
225format = "SECT_RELIGION_FORMAT"
}
227sect_favor = {
228format = "SECT_FAVOR_DISPLAY"
229change_format = "VARIABLE_CHANGE_FORMAT"
230min = 0
231max = 100
232start = 50
233monthly_change = {
235add = {
236desc = "NUMBER_OF_SECT_FOLLOWERS"
237value = total_members
238multiply = 0.075
239divide = 2.5
240subtract = 0.075
}
242add = {
243desc = "SECT_SUPPORTERS"
244value = 0
245every_in_list = {
246variable = sect_supporters
247add = country_economical_base
248multiply = 0.001
}
}
251subtract = {
252desc = "SECT_ENEMIES"
253value = 0
254every_international_organization_enemy = {
255add = country_economical_base
256multiply = 0.001
}
}
259add = {
260desc = "NUM_LOCATIONS"
261value = 0
262every_international_organization_owned_location = {
263add = {
264value = population
265multiply = 0.00002
}
}
}
}
}
}
273on_joined = {
274if = {
275limit = {
276scope:recipient = {
277or = {
278not = {
278has_variable = religion Религия
}
279not = {
279exists = var:religion
}
}
}
}
284scope:recipient = {
285set_variable = {
286name = religion Религия
287value = root.religion
}
}
}
291scope:recipient = {
292var:religion = {
293add_international_organization = scope:recipient
}
}
}
298on_left = {
}
301monthly_effect = {
302hidden_effect = {
303random_international_organization_owned_location = {
305if = {
306limit = {
306root = {
}
}
307random_neighbor_location = {
308limit = {
309NOT = {
309is_owned_by_international_organization = root
}
310dominant_religion ?= root.var:religion
}
312root = {
312add_location_to_international_organization = prev
}
}
}
316if = {
317limit = {
317root = {
}
}
318root = {
318remove_location_from_international_organization = prev
}
}
322if = {
323limit = {
324dominant_religion != root.var:religion
325AND = {
326dominant_religion ?= {
327OR = {
}
}
333root.var:religion ?= {
334OR = {
}
}
}
341OR = {
342AND = {
343root = {
343international_organization_has_policy = policy:daoism_policy
}
344dominant_religion ?= {
345NOT = {
}
346NOT = {
}
}
}
349root = {
349NOT = {
349international_organization_has_policy = policy:daoism_policy
}
}
}
351location_building_level = {
352building_type = building_type:monastery
353value = 0
}
}
356root = {
356remove_location_from_international_organization = prev
}
}
}
}
363if = {
364limit = {
365root = {
}
}
367every_international_organization_owned_location = {
368limit = {
368is_capital = yes
}
369if = {
370limit = {
371has_owner = yes
372owner ?= {
373NOT = {
373is_member_of_international_organization = root
}
374country_can_join_international_organization = root
}
}
377root = {
378add_country_to_international_organization = prev.owner
}
}
381if = {
382limit = {
383any_foreign_building_countries_in_location ?= {
384NOT = {
384is_member_of_international_organization = root
}
385country_can_join_international_organization = root
}
}
388every_foreign_building_countries_in_location = {
389limit = {
390NOT = {
390is_member_of_international_organization = root
}
391country_can_join_international_organization = root
}
393root = {
393add_country_to_international_organization = prev
}
}
}
}
}
}
400ai_desire_to_join = {
402add = {
403value = "scope:recipient.modifier_utility(scope:actor)"
}
405if = {
406limit = {
407scope:actor = {
407has_country_modifier = strengthened_ministry_of_rites
}
}
409add = {
410desc = "ministry_of_rites" Министерство церемоний
411value = 10
}
}
}
416ai_desire_to_allow_new_member = {
417add = {
418desc = "WE_WANT_THE_ORGANIZATION_TO_GROW" Мы хотим развивать Concept
419value = 20
}
}