
ActionChanged this version
Join a League
War has come to Italy. We must safeguard our sovereignty against invaders from foreign leagues. To do so, we must join an active Italian league!
RomeCountryallow, potential
Balkan LeagueInternational Organizationselect trigger 2
French LeagueInternational Organizationselect trigger 2
Holy Roman LeagueInternational Organizationselect trigger 2
Iberian LeagueInternational Organizationselect trigger 2
First Italian LeagueInternational Organizationselect trigger 2
Second Italian LeagueInternational Organizationselect trigger 2
Third Italian LeagueInternational Organizationselect trigger 2
Italian WarsSituationselect trigger 1Definitionin_game/common/generic_actions/italian_wars.txt:1
2type = situation
4ai_tick = monthly
5ai_tick_frequency = 1
7automation_tick = never
8automation_tick_frequency = 12
19allow = {
20scope:actor ?= {
28at_war = no
29custom_tooltip = {
30text = is_not_leader_of_any_leagues_tt Is not a leader of any Leagues
}
}
}
35price = price:join_italian_wars_price
37cooldown = {
38type = join_a_league
39years = 5
}
42select_trigger = {
43looking_for_a = situation
49target_flag = recipient
50name = "choose_situation" Choose the Situation:
51column = {
52data = name
}
}
60select_trigger = {
61looking_for_a = international_organization
62target_flag = target
63interaction_source_list = {
}
72name = "join_league_choose_text" Choose a league to join.
73none_available_msg_key = "join_a_league_no_ios"
74column = {
75data = name
}
77visible = {
78scope:actor ?= {
79can_join_international_organization = root
}
}
82enabled = {
83scope:actor = {
84NOT = {
84is_member_of_international_organization = scope:target
}
}
}
}
89effect = {
90if = {
91limit = {
91exists = scope:target
}
92scope:target = {
93add_country_to_international_organization = scope:actor
}
}
}
98ai_will_do = {
99add = {
100value = 5
101desc = BASE_VALUE
}
103if = {
104limit = {
104exists = scope:target
}
106if = {
107limit = {
108scope:target = {
109OR = {
}
}
}
116add = {
117value = -10
118desc = "FOREIGN_LEAGUE"
}
120add = {
121desc = "IW_BALANCE_OF_POWER"
122value = scope:target.total_members
123multiply = -1
}
}
128if = {
129limit = {
130scope:actor = {
130is_member_of_any_italian_wars_league = yes
}
}
132scope:actor = {
133subtract = {
134scope:league_leader_current = {
135scope:actor = {
136value = this_trust_of_prev
137multiply = 0.25
}
}
140desc = "our trust towards our leader"
}
142subtract = {
143value = 25
144multiply = "scope:actor.relative_strength(scope:league_leader_current)"
145desc = "our relative strength against our leader"
}
147add = {
148scope:league_leader_current = {
149scope:actor = {
150value = this_opinion_of_prev
151multiply = -0.15
}
}
154desc = "our opinion of our leader"
}
}
}
158scope:target.leader_country = {
158save_temporary_scope_as = league_leader_to_join
}
161add = {
162scope:league_leader_to_join = {
163scope:actor = {
164value = this_trust_of_prev
165multiply = 0.25
}
}
168desc = "target leader trust"
}
170add = {
171value = 25
172multiply = "scope:actor.relative_strength(scope:league_leader_to_join)"
173desc = "target leader relative strength"
}
175add = {
176scope:league_leader_to_join = {
177scope:actor = {
178value = this_opinion_of_prev
179multiply = 0.15
}
}
182desc = "target leader opinion"
}
}
}