Originally Posted by
Gigantus
Sometimes I scare myself....
I've applauded you too early. It still doesn't work. Namely:
This works:
Code:
monitor_event PreFactionTurnStart not IsFactionAIControlled and Treasury < -2500
if I_CompareCounter pl_ec_id = 2
destroy_units venice, mercenary_unit
end_if
if I_CompareCounter pl_ec_id = 3
destroy_units sicily, mercenary_unit
end_if
if I_CompareCounter pl_ec_id = 4
destroy_units abbasid, mercenary_unit
end_if
if I_CompareCounter pl_ec_id = 5
destroy_units papal_states, mercenary_unit
end_if
if I_CompareCounter pl_ec_id = 6
destroy_units denmark, mercenary_unit
end_if
if I_CompareCounter pl_ec_id = 7
destroy_units egypt, mercenary_unit
end_if
if I_CompareCounter pl_ec_id = 8
destroy_units scotland, mercenary_unit
end_if
if I_CompareCounter pl_ec_id = 9
destroy_units cumans, mercenary_unit
end_if
if I_CompareCounter pl_ec_id = 10
destroy_units mongols, mercenary_unit
end_if
if I_CompareCounter pl_ec_id = 11
destroy_units turks, mercenary_unit
end_if
if I_CompareCounter pl_ec_id = 12
destroy_units france, mercenary_unit
end_if
if I_CompareCounter pl_ec_id = 13
destroy_units hre, mercenary_unit
end_if
if I_CompareCounter pl_ec_id = 14
destroy_units england, mercenary_unit
end_if
if I_CompareCounter pl_ec_id = 15
destroy_units portugal, mercenary_unit
end_if
if I_CompareCounter pl_ec_id = 16
destroy_units poland, mercenary_unit
end_if
if I_CompareCounter pl_ec_id = 17
destroy_units byzantium, mercenary_unit
end_if
if I_CompareCounter pl_ec_id = 18
destroy_units moors, mercenary_unit
end_if
if I_CompareCounter pl_ec_id = 19
destroy_units russia, mercenary_unit
end_if
if I_CompareCounter pl_ec_id = 20
destroy_units spain, mercenary_unit
end_if
if I_CompareCounter pl_ec_id = 21
destroy_units hungary, mercenary_unit
end_if
if I_CompareCounter pl_ec_id = 22
destroy_units aragon, mercenary_unit
end_if
if I_CompareCounter pl_ec_id = 23
destroy_units lithuania, mercenary_unit
end_if
if I_CompareCounter pl_ec_id = 24
destroy_units kievan_rus, mercenary_unit
end_if
if I_CompareCounter pl_ec_id = 25
destroy_units serbia, mercenary_unit
end_if
if I_CompareCounter pl_ec_id = 26
destroy_units georgia, mercenary_unit
end_if
if I_CompareCounter pl_ec_id = 27
destroy_units norway, mercenary_unit
end_if
if I_CompareCounter pl_ec_id = 28
destroy_units jerusalem, mercenary_unit
end_if
if I_CompareCounter pl_ec_id = 29
destroy_units zengid, mercenary_unit
end_if
if I_CompareCounter pl_ec_id = 30
destroy_units pisa, mercenary_unit
end_if
if I_CompareCounter pl_ec_id = 31
destroy_units rum, mercenary_unit
end_if
historic_event mercenaries_disband
end_monitor
This doesn't:
Code:
monitor_event PreFactionTurnStart Treasury < -4000
if I_CompareCounter pl_ec_id = 2
and not I_IsFactionAIControlled venice
and I_NumberOfSettlements venice > 4
destroy_units venice, mercenary_unit
historic_event mercenaries_disband
end_if
end_monitor
monitor_event PreFactionTurnStart Treasury < -4000
if I_CompareCounter pl_ec_id = 3
and not I_IsFactionAIControlled sicily
and I_NumberOfSettlements sicily > 4
destroy_units sicily, mercenary_unit
historic_event mercenaries_disband
end_if
end_monitor
....
This doesn't either:
Code:
monitor_event PreFactionTurnStart not IsFactionAIControlled and Treasury < -4000
if I_CompareCounter pl_ec_id = 2
and I_NumberOfSettlements venice > 4
destroy_units venice, mercenary_unit
end_if
if I_CompareCounter pl_ec_id = 3
and I_NumberOfSettlements sicily > 4
destroy_units sicily, mercenary_unit
end_if
....
if I_CompareCounter pl_ec_id = 31
and I_NumberOfSettlements rum > 4
destroy_units rum, mercenary_unit
end_if
historic_event mercenaries_disband
end_monitor
This doesn't either:
Code:
;======= Mercs Disband Venice ===================
monitor_event PreFactionTurnStart not IsFactionAIControlled
and Treasury < -4000
if I_CompareCounter pl_ec_id = 2
and not I_CrusadeInProgress
and I_NumberOfSettlements venice > 4
destroy_units venice, mercenary_unit
end_if
if I_CompareCounter pl_ec_id = 3
and not I_CrusadeInProgress
and I_NumberOfSettlements sicily > 4
destroy_units sicily, mercenary_unit
end_if
if I_CompareCounter pl_ec_id = 4
and not I_JihadInProgress
and I_NumberOfSettlements abbasid > 4
destroy_units abbasid, mercenary_unit
end_if
.....
if I_CompareCounter pl_ec_id = 31
and not I_JihadInProgress
and I_NumberOfSettlements rum > 4
destroy_units rum, mercenary_unit
end_if
historic_event mercenaries_disband
end_monitor
I've got no clue why...