
ActionNew this version
Intervene in War
The instability incurred by constant wars between factions across the peninsula threatens to spill over and devastate all of Italy. This ongoing conflict is one we have a moral obligation to end, through direct intervention.
Italian WarsSituationallow, potential, select trigger 1iw_tensionVariableallowDefinitionin_game/common/generic_actions/italian_wars.txt:1395
1396type = situation
1398ai_tick = monthly
1399ai_tick_frequency = 12
1405allow = {
1407scope:actor = {
}
1414scope:actor = {
1414at_war = no
}
1415scope:actor = {
1416NOT = {
1417any_current_war = {
1417this = scope:target_war
}
}
}
}
1422price = price:intervene_in_italian_campaign_price
1424select_trigger = {
1425looking_for_a = situation
1431target_flag = recipient
1432name = "choose_situation" Choose the Situation:
1433column = {
1434data = name
}
}
1442select_trigger = {
1443looking_for_a = war
1444interaction_source_list = {
1445every_in_global_list = {
1446variable = iw_foreign_leagues_list
1447leader_country ?= {
1448save_temporary_scope_as = target_leader
1449every_current_war = {
1450limit = {
1451scope:target_leader = {
1452is_war_leader_of = prev
1453NOT = {
1453has_truce_with = scope:actor
}
}
1455OR = {
}
}
1466add_to_list = source
}
}
}
1470every_in_global_list = {
1471variable = iw_italian_leagues_list
1472leader_country ?= {
1473save_temporary_scope_as = target_leader
1474every_current_war = {
1475limit = {
1476scope:target_leader = {
1477is_war_leader_of = prev
1478NOT = {
1478has_truce_with = scope:actor
}
}
1480OR = {
}
}
1491add_to_list = source
}
}
}
}
1496target_flag = target_war
1497name = "enforce_landfriede_select_title" Select a War for Recipient to Leave
1498none_available_msg_key = "enforce_landfriede_no_wars"
1499column = {
1500data = name
}
}
1504select_trigger = {
1505looking_for_a = country
1506interaction_source_list = {
1507scope:target_war = {
1508attacker_leader = {
1508add_to_list = source
}
1509defender_leader = {
1509add_to_list = source
}
}
}
1512target_flag = target_country
1513name = "choose_country" Choose the Country:
1514column = {
1515data = name
}
1517enabled = {
1518not = {
1518is_at_war_with = scope:actor
}
}
}
1522effect = {
1523if = {
1524limit = {
1525exists = scope:target_country
1526exists = scope:target_war
}
1528scope:target_war = {
1529if = {
1530limit = {
1530attacker_leader = scope:target_country
}
1531defender_leader = {
1531save_scope_as = target
}
}
1533else = {
1534attacker_leader = {
1534save_scope_as = target
}
}
}
1537scope:actor = {
1538join_war_with = {
1539target = scope:target_country
1540war = scope:target_war
1541call_in_subjects = yes
}
}
}
}
1547ai_will_do = {
1548add = {
1549value = -50
1550desc = "BASE_VALUE"
}
1552add = {
1553value = scope:actor.gold
1554divide = scope:actor.monthly_income_trade_and_tax
1555multiply = 2
1556desc = "treasury divided by income and then multiplied by 2 max"
}
1558if = {
1559limit = {
1559scope:actor.war_exhaustion > 0
}
1560subtract = {
1561value = scope:actor.war_exhaustion
1562multiply = 2
1563desc = "war_exhaustion"
}
}
1566if = {
1567limit = {
1567scope:actor.manpower_percentage > 0.5
}
1568add = {
1569value = scope:actor.manpower_percentage
1570multiply = 25
1571desc = "CURRENT_MANPOWER_TOOLTIP"
}
}
1574else = {
1575subtract = {
1576value = 25
1577desc = "low manpower"
}
}
1580if = {
1581limit = {
1581scope:actor.num_loans > 0
}
1582subtract = {
1583value = scope:actor.num_loans
1584multiply = 5
1585desc = "NUM_LOANS"
}
}
1588add = {
1589value = scope:actor.modifier:aggressiveness_modifier
1590subtract = scope:actor.modifier:carefulness_modifier
1591multiply = 15
1592desc = "aggressiveness modifier minus carefulness modifier"
}
1594if = {
1595limit = {
1596exists = scope:target_country
1597exists = scope:target_war
}
1599add = {
1600value = "scope:actor.opinion(scope:target_country)"
1601multiply = 0.35
1602desc = "opinion_of_ally"
}
1604if = {
1605limit = {
1605scope:target_war = {
1605attacker_leader = scope:target_country
}
}
1606subtract = {
1607value = "scope:actor.opinion(scope:target_war.defender_leader)"
1608multiply = 0.35
1609desc = "opinion_of_enemy"
}
1611subtract = {
1612value = "scope:target_war.defender_leader.relative_strength(scope:actor)"
1613multiply = 20
1614desc = "enemy_relative_strength"
}
1616add = {
1617value = scope:actor.military_strength
1618add = scope:target_country.military_strength
1619subtract = scope:target_war.defender_leader.military_strength
1620multiply = 0.01
1621desc = "military_balance"
}
}
1624else = {
1625subtract = {
1626value = "scope:actor.opinion(scope:target_war.attacker_leader)"
1627multiply = 0.35
1628desc = "opinion_of_enemy"
}
1630subtract = {
1631value = "scope:target_war.attacker_leader.relative_strength(scope:actor)"
1632multiply = 20
1633desc = "enemy_relative_strength"
}
1635add = {
1636value = scope:actor.military_strength
1637add = scope:target_country.military_strength
1638subtract = scope:target_war.attacker_leader.military_strength
1639multiply = 0.01
1640desc = "military_balance"
}
}
1643add = {
1644value = situation:italian_wars.var:iw_tension
1645multiply = 0.2
1646desc = situation_tension
}
1649add = {
1650desc = "distance to [target_country.GetName]"
1651value = "scope:actor.border_distance_to(scope:target_country)"
1652multiply = -0.05
1653min = -100
}
1656add = {
1657desc = "they are already winning this war"
1658value = "scope:target_country.war_score_in_war(scope:target_war)"
1659multiply = -0.4
}
}
}