
ActionChanged this version
Create an Italian League
The defense of our home rests upon our shoulders. Should we fail to unite against the foreign conquerors, we will become easy prey for them...
First Italian LeagueInternational Organizationallow, effect
Second Italian LeagueInternational Organizationallow, effect
Third Italian LeagueInternational Organizationallow, effect
Senior PartnerSpecial Statusallow
ChristianityReligion Grouppotential
Italian WarsSituationselect triggerrecently_destroyed_a_league_variableVariableallowDefinitionin_game/common/generic_actions/italian_wars.txt:188
189type = situation
191potential = {
192scope:actor ?= {
193capital.region = region:italy_region
}
}
199allow = {
200custom_tooltip = {
201text = league_was_not_destroyed_in_the_last_2_years_tt An Italian League was not destroyed in the last 5 years
}
204scope:actor ?= {
205at_war = no
206is_during_bankruptcy = no
207is_subject = no
209custom_tooltip = {
210text = is_not_leader_of_any_leagues_tt Is not a leader of any Leagues
}
215trigger_if = {
216limit = {
216exists = union
}
217OR = {
218union = {
}
}
}
}
234custom_tooltip = {
235text = not_3_italian_leagues_exist 3 Italian Leagues do not exist
236NAND = {
}
}
}
243ai_tick = monthly
244ai_tick_frequency = 6
246automation_tick = never
247automation_tick_frequency = 12
248price = price:create_italian_league_price
250select_trigger = {
251looking_for_a = situation
257target_flag = recipient
258name = "choose_situation" Choose the Situation:
259column = {
260data = name
}
}
268effect = {
269if = {
273custom_tooltip = {
274text = creates_italian_league_with_actor_leader_tt Creates an Italian League International Organization with Actor as its leader
275create_international_organization = {
277add_country_to_international_organization = scope:actor
278set_leader_country = scope:actor
}
}
}
282else_if = {
286custom_tooltip = {
287text = creates_italian_league_with_actor_leader_tt Creates an Italian League International Organization with Actor as its leader
288create_international_organization = {
290add_country_to_international_organization = scope:actor
291set_leader_country = scope:actor
}
}
}
295else_if = {
299custom_tooltip = {
300text = creates_italian_league_with_actor_leader_tt Creates an Italian League International Organization with Actor as its leader
301create_international_organization = {
303add_country_to_international_organization = scope:actor
304set_leader_country = scope:actor
}
}
}
308else = {
308custom_tooltip = create_an_italian_league_tt We will create an Italian League International Organization
}
309custom_tooltip = invite_every_ally_to_your_io_tt Every Ally will be invited to our League!
310hidden_effect = {
311scope:actor = {
312every_related_country = {
313type = alliance
314limit = {
315at_war = no
316NOT = {
316has_cooldown = join_a_league
}
317NOR = {
}
}
}
}
}
}
330ai_will_do = {
331add = {
332value = 5
333desc = BASE_VALUE
}
335add = {
336value = scope:actor.modifier:aggressiveness_modifier
337subtract = scope:actor.modifier:carefulness_modifier
338multiply = 50
339desc = "aggressiveness modifier minus carefulness modifier"
}
341add = {
342value = scope:actor.total_control_scaled_population
343divide = 100
344ceiling = yes
345desc = "total_control_scaled_population"
}
348if = {
349limit = {
350scope:actor = {
350is_member_of_any_italian_wars_league = yes
}
}
352scope:actor = {
353subtract = {
354scope:league_leader_current = {
355scope:actor = {
356value = this_trust_of_prev
357multiply = 0.25
}
}
360desc = "our trust towards our leader"
}
362add = {
363value = 35
364multiply = "scope:actor.relative_strength(scope:league_leader_current)"
365desc = "our relative strength against our leader"
}
367add = {
368scope:league_leader_current = {
369scope:actor = {
370value = this_opinion_of_prev
371multiply = -0.15
}
}
374desc = "our opinion of our leader"
}
}
}
}