
ActionChanged this version
Send Aid
No foreign power can be permitted to tip the balance of power in Italy! We should offer our assistance to those who are resisting this invasion.
Balkan LeagueInternational Organizationpotential, select trigger 2
French LeagueInternational Organizationpotential, select trigger 2
Holy Roman LeagueInternational Organizationpotential, select trigger 2
Iberian LeagueInternational Organizationpotential, select trigger 2
First Italian LeagueInternational Organizationselect trigger 2
Second Italian LeagueInternational Organizationselect trigger 2
Third Italian LeagueInternational Organizationselect trigger 2
Italian WarsSituationselect trigger 1iw_received_manpowerVariableselect trigger 2iw_received_moneyVariableselect trigger 2Definitionin_game/common/generic_actions/italian_wars.txt:913
914type = situation
916potential = {
917scope:actor ?= {
918OR = {
920is_great_power = yes
921trigger_if = {
922limit = {
924international_organization_has_leader = yes
}
}
926OR = {
}
}
931trigger_if = {
932limit = {
934international_organization_has_leader = yes
}
}
936OR = {
}
}
941trigger_if = {
942limit = {
}
946OR = {
}
}
951trigger_if = {
952limit = {
954international_organization_has_leader = yes
}
}
956OR = {
}
}
}
}
}
965cooldown = {
966type = iw_send_aid
967years = 5
}
970allow = {
971scope:actor ?= {
972at_war = no
973OR = {
974manpower_percentage >= 0.1
975gold >= {
976value = scope:actor.monthly_income_total
977multiply = 3
}
}
}
}
982ai_tick = monthly
983ai_tick_frequency = 4
985automation_tick = never
986automation_tick_frequency = 12
988price = price:iw_send_aid_price
990show_message = no
992select_trigger = {
993looking_for_a = situation
999target_flag = recipient
1000name = "choose_situation" Choose the Situation:
1001column = {
1002data = name
}
}
1010select_trigger = {
1011looking_for_a = country
1012target_flag = target
1013name = "iw_send_aid_text" Select a country to receive our aid.
1014none_available_msg_key = "iw_send_aid_no_countries"
1015column = {
1016data = name
}
1018visible = {
1019root = {
1020OR = {
}
1025any_current_war = {
1026any_defender = {
1027this = root
}
1029attacker_leader = {
1030OR = {
}
}
}
}
}
1040enabled = {
1041custom_tooltip = {
1042text = is_not_receiving_pending_aid_from_another_tt Is NOT currently receiving aid via pending Event
}
}
}
1051effect = {
1052if = {
1053limit = {
1053exists = scope:target
}
}
1056else = {
1056custom_tooltip = iw_send_aid_tt We will choose to assist the selected Country through a token of Manpower or Ducats
}
}
1059ai_will_do = {
1061add = {
1062desc = "CURRENT_MANPOWER_TOOLTIP"
1063value = scope:actor.manpower_percentage
1064multiply = 3
}
1066add = {
1067desc = "CURRENT_TREASURY_TOOLTIP"
1068value = {
1069add = scope:actor.gold
1070divide = {
1071value = scope:actor.monthly_income_total
1072max = 1
}
1074max = 2
}
1076multiply = 2
}
1078add = {
1079desc = "NUM_LOANS_TOOLTIP"
1080value = scope:actor.num_loans
1081multiply = -5
}
1083if = {
1084limit = {
1085exists = scope:target
}
1087add = {
1088value = -25
1089desc = "BASE_VALUE"
}
1092add = {
1093desc = "OUR_OPINION_OF_IO_LEADER"
1094value = "scope:actor.opinion(scope:target)"
1095divide = 4
}
1097add = {
1098desc = "THEIR_DIP_REP"
1099scope:target = {
1100value = modifier:diplomatic_reputation
}
}
1103if = {
1104limit = {
1105scope:target = {
1106any_current_war = {
1107attacker_leader = {
1108OR = {
}
1114OR = {
1115is_enemy_of = scope:actor
1116is_rival_of = scope:actor
}
}
1119any_defender = {
1120this = scope:target
}
}
}
}
1125add = {
1126desc = "THEY_FIGHT_OUR_FOES"
1127value = 10
}
}
1130else = {
1131add = {
1132desc = "THEY_DONT_FIGHT_OUR_FOES"
1133value = -15
}
}
1136if = {
1137limit = {
1138scope:actor ?= {
1139OR = {
1140is_rival_of = scope:target
1141is_enemy_of = scope:target
}
}
}
1145add = {
1146desc = "LET_THEM_DIE"
1147value = -1000
}
}
1151add = {
1152desc = "distance to [target.GetName]"
1153value = "scope:actor.border_distance_to(scope:target)"
1154multiply = -0.05
1155min = -15
}
}
}