script
declare_counter war0
set_counter war0 0
declare_counter war1
set_counter war1 0
declare_counter war2
set_counter war2 0
declare_counter war3
set_counter war3 0
declare_counter war4
set_counter war4 0
declare_counter war5
set_counter war5 0
declare_counter loop
set_counter loop 0
monitor_event FactionTurnStart FactionType carthage
and FactionIsLocal
and DiplomaticStanceFromFaction romans_brutii = AtWar
set_counter war0 1
end_monitor
monitor_event FactionTurnStart FactionType carthage
and FactionIsLocal
and DiplomaticStanceFromFaction romans_brutii <= Neutral
set_counter war0 0
end_monitor
monitor_event FactionTurnStart FactionType carthage
and FactionIsLocal
and DiplomaticStanceFromFaction romans_julii = AtWar
set_counter war1 1
end_monitor
monitor_event FactionTurnStart FactionType carthage
and FactionIsLocal
and DiplomaticStanceFromFaction romans_julii <= Neutral
set_counter war1 0
end_monitor
monitor_event FactionTurnStart FactionType carthage
and FactionIsLocal
and DiplomaticStanceFromFaction romans_scipii = AtWar
set_counter war2 1
end_monitor
monitor_event FactionTurnStart FactionType carthage
and FactionIsLocal
and DiplomaticStanceFromFaction romans_scipii <= Neutral
set_counter war2 0
end_monitor
monitor_event FactionTurnStart FactionType carthage
and FactionIsLocal
and DiplomaticStanceFromFaction gauls = AtWar
set_counter war3 1
end_monitor
monitor_event FactionTurnStart FactionType carthage
and FactionIsLocal
and DiplomaticStanceFromFaction gauls <= Neutral
set_counter war3 0
end_monitor
monitor_event FactionTurnStart FactionType carthage
and FactionIsLocal
and DiplomaticStanceFromFaction numidia = AtWar
set_counter war4 1
end_monitor
monitor_event FactionTurnStart FactionType carthage
and FactionIsLocal
and DiplomaticStanceFromFaction numidia <= Neutral
set_counter war4 0
end_monitor
monitor_event FactionTurnStart FactionType carthage
and FactionIsLocal
and DiplomaticStanceFromFaction greek_cities = AtWar
set_counter war5 1
end_monitor
monitor_event FactionTurnStart FactionType carthage
and FactionIsLocal
and DiplomaticStanceFromFaction greek_cities <= Neutral
set_counter war5 0
end_monitor
monitor_event FactionTurnStart FactionType spain
and not FactionIsLocal
and DiplomaticStanceFromFaction romans_brutii < AtWar
and DiplomaticStanceFromFaction carthage = Allied
and I_CompareCounter war0 = 1
console_command diplomatic_stance spain romans_brutii war
end_monitor
monitor_event FactionTurnStart FactionType spain
and not FactionIsLocal
and DiplomaticStanceFromFaction romans_julii < AtWar
and DiplomaticStanceFromFaction carthage = Allied
and I_CompareCounter war1 = 1
console_command diplomatic_stance spain romans_julii war
end_monitor
monitor_event FactionTurnStart FactionType spain
and not FactionIsLocal
and DiplomaticStanceFromFaction romans_scipii < AtWar
and DiplomaticStanceFromFaction carthage = Allied
and I_CompareCounter war2 = 1
console_command diplomatic_stance spain romans_scipii war
end_monitor
monitor_event FactionTurnStart FactionType spain
and not FactionIsLocal
and DiplomaticStanceFromFaction gauls < AtWar
and DiplomaticStanceFromFaction carthage = Allied
and I_CompareCounter war3 = 1
console_command diplomatic_stance spain gauls war
end_monitor
monitor_event FactionTurnStart FactionType spain
and not FactionIsLocal
and DiplomaticStanceFromFaction numidia < AtWar
and DiplomaticStanceFromFaction carthage = Allied
and I_CompareCounter war4 = 1
console_command diplomatic_stance spain numidia war
end_monitor
monitor_event FactionTurnStart FactionType spain
and not FactionIsLocal
and DiplomaticStanceFromFaction greek_cities < AtWar
and DiplomaticStanceFromFaction carthage = Allied
and I_CompareCounter war5 = 1
console_command diplomatic_stance spain greek_cities war
end_monitor
while I_CompareCounter loop = 0
end_while
end_script
Bookmarks