monitor_event PostBattle I_TurnNumber = 0
suspend_unscripted_advice true
console_command clear_messages
if I_CompareCounter battleFoughtBy2AIFactions = 0
if I_LocalFaction rome_republic
if I_WonBattle rome_republic
console_command create_unit "Grumentum" "fac rome hastati" 3 2 1 1
advance_advice_thread Rome_BoH_Victory_Thread
end_if
if I_WonBattle epirus
console_command create_unit "Tarentum" "merc greek hoplites" 2 2 1 1
console_command create_unit "Tarentum" "merc cretan archers" 1 2 1 1
console_command damage_wall "Grumentum" gate breach
console_command set_building_health "Grumentum" core_building 0
console_command damage_wall "Rhegion" gate breach
console_command set_building_health "Rhegion" core_building 0
advance_advice_thread Rome_BoH_Defeat_Thread
end_if
end_if
if I_LocalFaction epirus
if I_WonBattle epirus
console_command capture_settlement "Grumentum"
console_command create_unit "Grumentum" "merc greek hoplites" 2 2 1 1
console_command create_unit "Grumentum" "merc cretan archers" 1 2 1 1
advance_advice_thread Epeiros_BoH_Victory_Thread
end_if
if I_WonBattle rome_republic
console_command create_unit "Grumentum" "fac rome hastati" 3 2 1 1
advance_advice_thread Epeiros_BoH_Defeat_Thread
end_if
end_if
end_if
if I_CompareCounter battleFoughtBy2AIFactions = 1
console_command toggle_fow
set_counter battleFoughtBy2AIFactions 0
advance_advice_thread BoH_HistoricResult_Thread
end_if
suspend_unscripted_advice true
set_counter finished1stBattle 1
terminate_monitor
end_monitor