Quote Originally Posted by pilatus
@JMRC
i think there is a little bug in your script:
please check the lines "numidia after 175 BC" and "romans_julii after 175 BC"
it has to be "> 388" not "< 388"

i wrote on your basis my own script with smaller treasury incomes
if you want to look; it doesn' work 'cause there is a bug !!! but i dont see him...
Thanks for your feedback. I have already corrected the code and made some tests. Now I'm looking more closely to other bugs of this kind.


About the code you wrote, I noticed that in the part reproduced below, you overlap the interval 3 to 9999 in the Treasury, so it will give 10000 (20000-10000). At the same time you do nothing when the Treasury is exactly 20000, since it won't fit in none of the 3 conditions.


Code:
monitor_event FactionTurnStart FactionType seleucid
and Treasury > 20000
and I_TurnNumber < 120
and not FactionIsLocal
console_command add_money seleucid, -20000
end_monitor

monitor_event FactionTurnStart FactionType seleucid
and Treasury > 2
and Treasury < 20000
and I_TurnNumber < 120
and not FactionIsLocal
console_command add_money seleucid, -10000
end_monitor

monitor_event FactionTurnStart FactionType seleucid
and Treasury > 1
and Treasury < 10000
and I_TurnNumber < 120
and not FactionIsLocal
console_command add_money seleucid, 20000
end_monitor