monitor_event SettlementTurnStart IsSettlementRioting and SettlementName sett_104
if not I_IsFactionAIControlled f_pontos ; not needed if human player is this faction
terminate_monitor
end_if
if I_NumberOfSettlements f_pontos < 1
and not I_SettlementUnderSiege sett_104
inc_counter f_pontos_emerge 1
set_counter f_pontos_building 0
end_if
if I_LocalFaction f_rome
and I_CharacterTypeNearTile f_rome general, 3 250, 168 ; no re-emergence possible if a local general is close to the settlement, otherwise if the owner is an ally, there could be assistance requests
and I_SettlementOwner sett_104 != f_rome
set_counter f_pontos_emerge 0
set_counter f_pontos_building 1
end_if
if I_LocalFaction f_carthage
and I_CharacterTypeNearTile f_carthage general, 3 250, 168
and I_SettlementOwner sett_104 != f_carthage
set_counter f_pontos_emerge 0
set_counter f_pontos_building 1
end_if
if I_LocalFaction f_makedonia
and I_CharacterTypeNearTile f_makedonia general, 3 250, 168
and I_SettlementOwner sett_104 != f_makedonia
set_counter f_pontos_emerge 0
set_counter f_pontos_building 1
end_if
if I_LocalFaction f_epeiros
and I_CharacterTypeNearTile f_epeiros general, 3 250, 168
and I_SettlementOwner sett_104 != f_epeiros
set_counter f_pontos_emerge 0
set_counter f_pontos_building 1
end_if
if I_LocalFaction f_kh
and I_CharacterTypeNearTile f_kh general, 3 250, 168
and I_SettlementOwner sett_104 != f_kh
set_counter f_pontos_emerge 0
set_counter f_pontos_building 1
end_if
if I_LocalFaction f_seleukid
and I_CharacterTypeNearTile f_seleukid general, 3 250, 168
and I_SettlementOwner sett_104 != f_seleukid
set_counter f_pontos_emerge 0
set_counter f_pontos_building 1
end_if
if I_LocalFaction f_ptolemaioi
and I_CharacterTypeNearTile f_ptolemaioi general, 3 250, 168
and I_SettlementOwner sett_104 != f_ptolemaioi
set_counter f_pontos_emerge 0
set_counter f_pontos_building 1
end_if
if I_LocalFaction f_baktria
and I_CharacterTypeNearTile f_baktria general, 3 250, 168
and I_SettlementOwner sett_104 != f_baktria
set_counter f_pontos_emerge 0
set_counter f_pontos_building 1
end_if
if I_LocalFaction f_hayasdan
and I_CharacterTypeNearTile f_hayasdan general, 3 250, 168
and I_SettlementOwner sett_104 != f_hayasdan
set_counter f_pontos_emerge 0
set_counter f_pontos_building 1
end_if
if I_LocalFaction f_parthia
and I_CharacterTypeNearTile f_parthia general, 3 250, 168
and I_SettlementOwner sett_104 != f_parthia
set_counter f_pontos_emerge 0
set_counter f_pontos_building 1
end_if
if I_LocalFaction f_aedui
and I_CharacterTypeNearTile f_aedui general, 3 250, 168
and I_SettlementOwner sett_104 != f_aedui
set_counter f_pontos_emerge 0
set_counter f_pontos_building 1
end_if
if I_LocalFaction f_arverni
and I_CharacterTypeNearTile f_arverni general, 3 250, 168
and I_SettlementOwner sett_104 != f_arverni
set_counter f_pontos_emerge 0
set_counter f_pontos_building 1
end_if
if I_LocalFaction f_casse
and I_CharacterTypeNearTile f_casse general, 3 250, 168
and I_SettlementOwner sett_104 != f_casse
set_counter f_pontos_emerge 0
set_counter f_pontos_building 1
end_if
if I_LocalFaction f_lusotannan
and I_CharacterTypeNearTile f_lusotannan general, 3 250, 168
and I_SettlementOwner sett_104 != f_lusotannan
set_counter f_pontos_emerge 0
set_counter f_pontos_building 1
end_if
if I_LocalFaction f_sweboz
and I_CharacterTypeNearTile f_sweboz general, 3 250, 168
and I_SettlementOwner sett_104 != f_sweboz
set_counter f_pontos_emerge 0
set_counter f_pontos_building 1
end_if
if I_LocalFaction f_getai
and I_CharacterTypeNearTile f_getai general, 3 250, 168
and I_SettlementOwner sett_104 != f_getai
set_counter f_pontos_emerge 0
set_counter f_pontos_building 1
end_if
if I_LocalFaction f_saba
and I_CharacterTypeNearTile f_saba general, 3 250, 168
and I_SettlementOwner sett_104 != f_saba
set_counter f_pontos_emerge 0
set_counter f_pontos_building 1
end_if
if I_LocalFaction f_saka
and I_CharacterTypeNearTile f_saka general, 3 250, 168
and I_SettlementOwner sett_104 != f_saka
set_counter f_pontos_emerge 0
set_counter f_pontos_building 1
end_if
if I_LocalFaction f_sauromatae
and I_CharacterTypeNearTile f_sauromatae general, 3 250, 168
and I_SettlementOwner sett_104 != f_sauromatae
set_counter f_pontos_emerge 0
set_counter f_pontos_building 1
end_if
if I_LocalFaction f_numidia
and I_CharacterTypeNearTile f_numidia general, 3 250, 168
and I_SettlementOwner sett_104 != f_numidia
set_counter f_pontos_emerge 0
set_counter f_pontos_building 1
end_if
if I_LocalFaction f_pergamon
and I_CharacterTypeNearTile f_pergamon general, 3 250, 168
and I_SettlementOwner sett_104 != f_pergamon
set_counter f_pontos_emerge 0
set_counter f_pontos_building 1
end_if
if I_LocalFaction f_gandhara
and I_CharacterTypeNearTile f_gandhara general, 3 250, 168
and I_SettlementOwner sett_104 != f_gandhara
set_counter f_pontos_emerge 0
set_counter f_pontos_building 1
end_if
if I_LocalFaction f_lugia
and I_CharacterTypeNearTile f_lugia general, 3 250, 168
and I_SettlementOwner sett_104 != f_lugia
set_counter f_pontos_emerge 0
set_counter f_pontos_building 1
end_if
if I_LocalFaction f_bosporan
and I_CharacterTypeNearTile f_bosporan general, 3 250, 168
and I_SettlementOwner sett_104 != f_bosporan
set_counter f_pontos_emerge 0
set_counter f_pontos_building 1
end_if
if I_LocalFaction f_arevaci
and I_CharacterTypeNearTile f_arevaci general, 3 250, 168
and I_SettlementOwner sett_104 != f_arevaci
set_counter f_pontos_emerge 0
set_counter f_pontos_building 1
end_if
if I_LocalFaction f_boii
and I_CharacterTypeNearTile f_boii general, 3 250, 168
and I_SettlementOwner sett_104 != f_boii
set_counter f_pontos_emerge 0
set_counter f_pontos_building 1
end_if
if I_LocalFaction f_nabatu
and I_CharacterTypeNearTile f_nabatu general, 3 250, 168
and I_SettlementOwner sett_104 != f_nabatu
set_counter f_pontos_emerge 0
set_counter f_pontos_building 1
end_if
if I_CompareCounter f_pontos_emerge > 0
set_event_counter e_pending_reemergence 3
end_if
end_monitor