
ActionChanged this version
Sign a Truce
Though pride calls for victory, prudence may demand restraint. It is time to seek terms with our enemy, if only to catch our breath and prepare for what lies ahead.
EnglandCountrypotential, select trigger 2
FranceCountrypotential, select trigger 2
Hundred Years' WarSituationselect trigger 1Definitionin_game/common/generic_actions/hundred_years_war.txt:1244
1245type = situation
1246show_message = no
1248automation_tick = never
1249automation_tick_frequency = 12
1251ai_tick = monthly
1252ai_tick_frequency = 3
1263allow = {
1264scope:actor = {
1265any_neighbor_country = {
1266can_declare_war_on = prev
1267NOT = {
1267has_truce_with = prev
}
}
1270gold >= {
1271value = monthly_income_total
1272multiply = 6
}
}
}
1277price = price:hyw_main_actions_price
1279cooldown = {
1280type = hyw_sign_truce
1281years = 10
}
1284select_trigger = {
1285looking_for_a = situation
1291target_flag = recipient
1292name = "choose_situation" Choose the Situation:
1293column = {
1293data = name
}
}
1300select_trigger = {
1301looking_for_a = country
1302interaction_source_list = {
1303scope:actor = {
1304every_country_in_diplomatic_range = {
1305limit = {}
1324add_to_list = source
}
}
}
1328target_flag = target_country
1329name = "choose_neighbor_country" Choose neighboring Country
1330none_available_msg_key = "no_neighbor_country_available"
1331column = {
1331data = name
}
1332column = {
1332data = population
}
1333column = {
1333data = army_size
}
}
1336effect = {
1337if = {
1338limit = {
1338exists = scope:target_country
}
1339custom_tooltip = {
1340text = target_country_will_be_asked_for_truce_tt Target Country will be asked to sign a 5 year Truce with us through an Event
}
}
1344else = {
1344custom_tooltip = selected_country_will_be_asked_for_truce_tt The selected Country will be asked to sign a 5 year Truce with us through an Event
}
}
1347ai_will_do = {
1348add = {
1349value = 15
1350desc = BASE_VALUE
}
1353if = {
1354limit = {
1354exists = scope:target_country
}
1355if = {
1356limit = {
1357scope:target_country = {
1357has_casus_belli_on = scope:actor
}
}
1359add = {
1360value = 10
1361desc = "They have a CB on us!"
}
}
1364add = {
1365value = 150
1366multiply = "scope:target_country.relative_strength(scope:actor)"
}
1369if = {
1370limit = {
1370scope:target_country.stability > 0
}
1371add = {
1372value = scope:target_country.stability
1373multiply = 0.1
}
}
1376else = {
1377add = {
1378value = scope:target_country.stability
1379multiply = -0.1
}
}
1383subtract = scope:target_country.war_exhaustion
1385if = {
1386limit = {
1387scope:target_country = {
1387is_during_bankruptcy = yes
}
}
1389subtract = 1000
}
1391subtract = {
1392value = scope:target_country.defensive_alliance_strength
1393multiply = 0.05
}
}
}