Отправка помощи
ДействиеИзменено в этой версии

Отправка помощи

iw_send_aidin_game/common/generic_actions/italian_wars.txt:913

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

ТребуетБалканская лигаМеждународное объединениеpotential, select trigger 2Французская лигаМеждународное объединениеpotential, select trigger 2Имперская лигаМеждународное объединениеpotential, select trigger 2Иберийская лигаМеждународное объединениеpotential, select trigger 2Первая итальянская лигаМеждународное объединениеselect trigger 2Вторая итальянская лигаМеждународное объединениеselect trigger 2Третья итальянская лигаМеждународное объединениеselect trigger 2Итальянские войныСитуацияselect trigger 1iw_received_manpowerПеременнаяselect trigger 2iw_received_moneyПеременнаяselect trigger 2

914type = situation
916potential = {
917scope:actor ?= {
918OR = {
920is_great_power = yes
921trigger_if = {
}
931trigger_if = {
}
941trigger_if = {
}
951trigger_if = {
}
}
}
}
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
994interaction_source_list = {
996add_to_list = source
}
}
999target_flag = recipient
1000name = "choose_situation" Выберите Concept:
1001column = {
1002data = name
}
1004visible = {
1006situation_is_active = yes
}
}
1010select_trigger = {
1011looking_for_a = country
1012target_flag = target
1013name = "iw_send_aid_text" Выберите державу, которая будет получать помощь.
1014none_available_msg_key = "iw_send_aid_no_countries"
1015column = {
1016data = name
}
1018visible = {
1019root = {
1020OR = {
1021is_leader_of_international_organization = international_organization:italian_league_1
1022is_leader_of_international_organization = international_organization:italian_league_2
1023is_leader_of_international_organization = international_organization:italian_league_3
}
1025any_current_war = {
1026any_defender = {
1027this = root
}
1029attacker_leader = {
1030OR = {
1031is_leader_of_international_organization = international_organization:foreign_league_france
1032is_leader_of_international_organization = international_organization:foreign_league_hre
1033is_leader_of_international_organization = international_organization:foreign_league_iberia
1034is_leader_of_international_organization = international_organization:foreign_league_balkan
}
}
}
}
}
1040enabled = {
1041custom_tooltip = {
1042text = is_not_receiving_pending_aid_from_another_tt Сейчас НЕ получает помощь, ожидая Concept
1043NOR = {
1044has_variable = iw_received_manpower
1045has_variable = iw_received_money
}
}
}
}
1051effect = {
1052if = {
1053limit = {
1053exists = scope:target
}
1054scope:actor ?= {
1054trigger_event_non_silently = italian_wars.10
}
}
1056else = {
1056custom_tooltip = iw_send_aid_tt Мы поможем выбранной Concept некоторым Concept или Concept
}
}
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" Количество Concept
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" Наше Concept о лидере
1094value = "scope:actor.opinion(scope:target)"
1095divide = 4
}
1097add = {
1098desc = "THEIR_DIP_REP"
1099scope:target = {
}
}
1103if = {
1104limit = {
1105scope:target = {
1106any_current_war = {
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
}
}
}