
ДействиеИзменено в этой версии
Вступление во фракцию
Присоединитесь к фракции в ходе Concept «Гвельфы и гибеллины».
ГибеллиныМеждународное объединениеpotential, select trigger 2
ГвельфыМеждународное объединениеpotential, select trigger 2
ХристианствоРелигиозная группаpotential
Гвельфы и гибеллиныСитуацияallow, select trigger 1Поддерживает гибеллиновСтатический модификаторpotentialПоддерживает гвельфовСтатический модификаторpotentialОпределениеin_game/common/generic_actions/guelphs_and_ghibellines.txt:3
4type = situation
6ai_tick = monthly
7ai_tick_frequency = 6
9automation_tick = never
10automation_tick_frequency = 12
12potential = {
13OR = {
14scope:actor = {
}
23scope:actor = {
29OR = {
30AND = {
}
36AND = {
}
}
}
}
}
46allow = {
47scope:actor = {
48NOT = {
}
}
55NOT = {
}
}
}
}
65select_trigger = {
66looking_for_a = situation
67target_flag = recipient
68name = "choose_situation" Выберите Concept:
69column = {
70data = name
}
}
78select_trigger = {
79looking_for_a = international_organization
80target_flag = target
81name = "gag_join_faction_choose_faction" Выберите, к какой фракции присоединиться
82column = {
82data = name
}
83column = {
83data = members_size
}
84visible = {
85OR = {
}
89scope:actor = {
90not = {
90is_member_of_international_organization = root
}
91can_join_international_organization = root
}
}
}
95effect = {
96if = {
97limit = {
97exists = scope:target
}
99target = scope:actor
100international_organization = scope:target
101join_variable = gag_recently_joined_a_faction
102join_years = 5
103leave_variable = gag_recently_left_a_faction
}
}
106else = {
106custom_tooltip = gag_join_faction_effect_tt Мы присоединимся к выбранной фракции в ходе ситуации «Гвельфы и гибеллины»
}
}
108ai_will_do = {
110add = {
111value = "scope:target.modifier_utility(scope:actor)"
}
115scope:actor = {
117if = {
118limit = {
119not = {
119is_member_of_international_organization_of_type = {
119type = ghibellines_io
}
}
120not = {
120is_member_of_international_organization_of_type = {
120type = guelphs_io
}
}
}
122add = 100
}
124every_international_organizations_member_of = {
125limit = {
126OR = {
}
}
131subtract = {
132value = "modifier_utility(scope:actor)"
134add = 1
}
}
137if = {
138limit = {
139exists = scope:actor.ruler
140exists = scope:target
141OR = {
142AND = {
146scope:target ?= {
}
}
150AND = {
154scope:target ?= {
}
}
}
}
160add = 100
}
162if = {
163limit = {
164scope:actor = {
165has_variable = gag_force_switched_faction_penalty
}
}
168add = -100
}
}
}