Page 9 of 9 FirstFirst ... 56789
Results 241 to 260 of 260

Thread: Fixing the AI money script (preliminary tests)

  1. #241
    EBII PM Member JMRC's Avatar
    Join Date
    Nov 2006
    Location
    Lisboa, Portugal
    Posts
    7,930

    Default Re: Fixing the AI money script (preliminary tests)

    Quote Originally Posted by Redmeth
    I think I understand your approach, interesting but the late game money seem too much.
    Think about you're playing against a faction in the late game and you beat their troops you raid some towns, blockade their ports and you still can't bankrupt them or make a dent in their treasury and they just keep coming at you with fresh troops and mercs and by then their empire will be pretty big so you just can't siege all their cities. Even if you limit the merc availability there's still gonna be some available.
    Try and put yourself in the place of a player fighting them not just looking at the way the factions expand and army compositions.
    Too bad there's no and Treasury < ArmyUpkeep-10000 or something similar, damn it why so few variables....
    There are 2 things to have in mind with this approach:

    1. The other factions must be accordingly balanced. For instance, Baktria must also have lots of money in order to survive from the Parthians, but on the other hand, the Seleucids will have their finances heavily cut because I really want them to be overrun by the Parthians. But since I can't let the Parthians take the place of the Seleucids, I'll have to give also lots of money to the Romans and remove from Greeks, Maks, Epeiros and Carthaginians, so they will be crushed by the Romans. The difficult part will be to let Armenia get enough money to survive both the Romans and the Seleucids.

    2. The values still require a lot of testing, specially for Romans and Parthia (the latest big players in the game). If I realise that they can produce more than 200K Mnai each turn, even after paying their upkeep, then I'll put another cap like:

    Code:
    monitor_event FactionTurnStart FactionType parthia
    and Treasury > 300000
    and I_TurnNumber > 388
    console_command add_money parthia, -200000
    end_monitor
    and solve that matter. The objective is to give that faction the amount of money necessary to allow it to grow from whatever size to the desired (and hopefully, the historical) size.



    "Death Smiles at Us All,all a Man Can Do Is Smile Back."
    Maximvs Decimvs Meridivs, Commander of the Armies of the North, General of the Felix Legions, Iberian Gladiator.

  2. #242
    EBII PM Member JMRC's Avatar
    Join Date
    Nov 2006
    Location
    Lisboa, Portugal
    Posts
    7,930

    Default Re: Fixing the AI money script (preliminary tests)

    Quote Originally Posted by mlp071
    You can also get yourself same money cap, in script. That way you will be hurting financially too.I usually do that and it works great for me. Every soldier that i lose can hurt me quite bit that way, plus i am limited to smaller armies then

    If you end up not liking any of them, then you should get into making my own or reworking existing ones.
    I'll experiment with this idea. I reckon it can frustrate the player, but will force a slower pace of the game, and thus allow the nearby factions to grow enough to pose a greater challenge.

    One problem I see here is when the player decides to "save some money to build that super-costly building" and this cuttoff won't allow it. It has to be balanced too... Like you said, this balancing of factions is really difficult. But fun also.



    "Death Smiles at Us All,all a Man Can Do Is Smile Back."
    Maximvs Decimvs Meridivs, Commander of the Armies of the North, General of the Felix Legions, Iberian Gladiator.

  3. #243

    Default Re: Fixing the AI money script (preliminary tests)

    Quote Originally Posted by JMRC
    I'll experiment with this idea. I reckon it can frustrate the player, but will force a slower pace of the game, and thus allow the nearby factions to grow enough to pose a greater challenge.

    One problem I see here is when the player decides to "save some money to build that super-costly building" and this cuttoff won't allow it. It has to be balanced too... Like you said, this balancing of factions is really difficult. But fun also.

    Nah, just give yourself cap close to as you would to AI.Some cuttoffs needs to be reworked (like in one script you shouldn't loose money at 80000, just at 200000), but you should be fine
    Last edited by mlp071; 05-30-2007 at 12:38.

  4. #244

    Default Re: Fixing the AI money script (preliminary tests)

    Ave!.
    I`ve played with the 3 versions (sheep, errant, redmeth), they make eb even more enjoyable THANKS!.
    But the worst problem is the excesive capital some factions can get near 200 bc (i.e. swebos around 3M and increasing 100k every turn, Arche or Baktria,Macedon ).
    It is possible to make bigger cuttoffs but at higher treasury? , i.e. 500k when x reach 2.5M or something like that .

  5. #245
    EBII PM Member JMRC's Avatar
    Join Date
    Nov 2006
    Location
    Lisboa, Portugal
    Posts
    7,930

    Default Re: Fixing the AI money script (preliminary tests)

    Hi.

    I've been tweaking the mod in several directions (EBBS_SCRIPT.txt; descr_strat.txt and descr_win_conditions.txt) to get better results in terms of historical behavior from the AI.

    I opened a thread with DWC file in https://forums.totalwar.org/vb/showthread.php?t=86313 to force the factions' to target specific regions.

    I also opened a thread with DS file in https://forums.totalwar.org/vb/showt...35#post1562535 because IMO some factions' priorities can be better represented.

    But now I'll only talk about EBBS. As I said in previous posts, I went to an approach that doesn't consider the number of settlements in the money assistance, but gives instead the money according to the "historical" power that each faction had. I went to the records and noticed when some faction rose or fell, so I gave more or less money according to those dates. I don't consider my work done, because I haven't tested it fully (first I will finish my work in the DWC file) and I really would appreciate if someone could help me test the AI behaviour along the EB timeline with these changes.

    Notice that I run EB with BI and I also use the latest descr_mercenaries.txt modifications made by MLP071 (look at thread https://forums.totalwar.org/vb/showthread.php?t=85790), so there might be different behaviours if you run with other conditions.

    Below, I post the chapter in EBBS that concerns money assistance, which was the only one that I changed.

    EDITED: I made some corrections in the code, after feedback given by pilatus. Thanks.

    Code:
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;Section 4: Money Assistance
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    
    ;--------------------------------------------------
    ;Carthaginian Navy Bonus
    
    monitor_event CharacterTurnStart FactionType egypt
    and AgentType = admiral
    and not FactionIsLocal
    console_command add_money egypt, 300
    end_monitor
    
    ;--------------------------------------------------
    ;Romani - seleucid (272BC to 242BC) - 60K-90K
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury > 150000
    and I_TurnNumber < 120
    and not FactionIsLocal
    console_command add_money seleucid, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury > 120000
    and Treasury < 150001
    and I_TurnNumber < 120
    and not FactionIsLocal
    console_command add_money seleucid, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury > 90000
    and Treasury < 120001
    and I_TurnNumber < 120
    and not FactionIsLocal
    console_command add_money seleucid, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury > 30000
    and Treasury < 60001
    and I_TurnNumber < 120
    and not FactionIsLocal
    console_command add_money seleucid, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury < 30001
    and I_TurnNumber < 120
    and not FactionIsLocal
    console_command add_money seleucid, 60000
    end_monitor
    
    
    ;Romani - seleucid (241BC to 122BC) - 120K-150K
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury > 210000
    and I_TurnNumber > 119
    and I_TurnNumber < 600
    and not FactionIsLocal
    console_command add_money seleucid, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury > 180000
    and Treasury < 210001
    and I_TurnNumber > 119
    and I_TurnNumber < 600
    and not FactionIsLocal
    console_command add_money seleucid, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury > 150000
    and Treasury < 180001
    and I_TurnNumber > 119
    and I_TurnNumber < 600
    and not FactionIsLocal
    console_command add_money seleucid, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury > 90000
    and Treasury < 120001
    and I_TurnNumber > 119
    and I_TurnNumber < 600
    and not FactionIsLocal
    console_command add_money seleucid, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury > 60000
    and Treasury < 90001
    and I_TurnNumber > 119
    and I_TurnNumber < 600
    and not FactionIsLocal
    console_command add_money seleucid, 60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury > 30000
    and Treasury < 60001
    and I_TurnNumber > 119
    and I_TurnNumber < 600
    and not FactionIsLocal
    console_command add_money seleucid, 90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury < 30001
    and I_TurnNumber > 119
    and I_TurnNumber < 600
    and not FactionIsLocal
    console_command add_money seleucid, 120000
    end_monitor
    
    
    ;Romani - seleucid (after 121BC) - 150K-200K
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury > 300000
    and I_TurnNumber > 599
    and not FactionIsLocal
    console_command add_money seleucid, -150000
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury > 250000
    and Treasury < 300001
    and I_TurnNumber > 599
    and not FactionIsLocal
    console_command add_money seleucid, -100000
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury > 200000
    and Treasury < 250001
    and I_TurnNumber > 599
    and not FactionIsLocal
    console_command add_money seleucid, -50000
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury > 100000
    and Treasury < 150001
    and I_TurnNumber > 599
    and not FactionIsLocal
    console_command add_money seleucid, 50000
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury > 50000
    and Treasury < 100001
    and I_TurnNumber > 599
    and not FactionIsLocal 
    console_command add_money seleucid, 100000
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury < 50001
    and I_TurnNumber > 599
    and not FactionIsLocal 
    console_command add_money seleucid, 150000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Saka - pontus (272BC to 200BC) - 20K-40K
    
    monitor_event FactionTurnStart FactionType pontus
    and Treasury > 80000
    and I_TurnNumber < 289
    and not FactionIsLocal 
    console_command add_money pontus, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and Treasury > 60000
    and Treasury < 80001
    and I_TurnNumber < 289
    and not FactionIsLocal 
    console_command add_money pontus, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and Treasury > 40000
    and Treasury < 60001
    and I_TurnNumber < 289
    and not FactionIsLocal 
    console_command add_money pontus, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and Treasury < 20001
    and I_TurnNumber < 289
    and not FactionIsLocal 
    console_command add_money pontus, 20000
    end_monitor
    
    
    ;Saka - pontus (199BC to 125BC) - 30K-60K
    
    monitor_event FactionTurnStart FactionType pontus
    and Treasury > 120000
    and I_TurnNumber > 288
    and I_TurnNumber < 589
    and not FactionIsLocal 
    console_command add_money pontus, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and Treasury > 90000
    and Treasury < 120001
    and I_TurnNumber > 288
    and I_TurnNumber < 589
    and not FactionIsLocal 
    console_command add_money pontus, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and Treasury > 60000
    and Treasury < 90001
    and I_TurnNumber > 288
    and I_TurnNumber < 589
    and not FactionIsLocal 
    console_command add_money pontus, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and Treasury < 30001
    and I_TurnNumber > 288
    and I_TurnNumber < 589
    and not FactionIsLocal 
    console_command add_money pontus, 30000
    end_monitor
    
    
    ;Saka - pontus (after 124BC) - 70K-100K
    
    monitor_event FactionTurnStart FactionType pontus
    and Treasury > 140000
    and I_TurnNumber > 588
    and not FactionIsLocal 
    console_command add_money pontus, -70000
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and Treasury > 110000
    and Treasury < 140001
    and I_TurnNumber > 588
    and not FactionIsLocal 
    console_command add_money pontus, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and Treasury > 80000
    and Treasury < 110001
    and I_TurnNumber > 588
    and not FactionIsLocal 
    console_command add_money pontus, -10000
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and Treasury > 40000
    and Treasury < 70001
    and I_TurnNumber > 588
    and not FactionIsLocal 
    console_command add_money pontus, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and Treasury > 10000
    and Treasury < 40001
    and I_TurnNumber > 588
    and not FactionIsLocal 
    console_command add_money pontus, 60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and Treasury < 10001
    and I_TurnNumber > 588
    and not FactionIsLocal 
    console_command add_money pontus, 90000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Arverni - scythia (272BC to 242BC) - 45K-75K
    
    monitor_event FactionTurnStart FactionType scythia
    and Treasury > 135000
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money scythia, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia
    and Treasury > 105000
    and Treasury < 13501
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money scythia, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia
    and Treasury > 75000
    and Treasury < 105001
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money scythia, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia
    and Treasury < 45001
    and I_TurnNumber < 600
    and not FactionIsLocal
    console_command add_money scythia, 45000
    end_monitor
    
    
    ;Arverni - scythia (after 121BC) - 35K-65K
    
    monitor_event FactionTurnStart FactionType scythia
    and Treasury > 125000
    and I_TurnNumber > 599
    and not FactionIsLocal 
    console_command add_money scythia, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia
    and Treasury > 95000
    and Treasury < 125001
    and I_TurnNumber > 599
    and not FactionIsLocal 
    console_command add_money scythia, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia
    and Treasury > 65000
    and Treasury < 95001
    and I_TurnNumber > 599
    and not FactionIsLocal 
    console_command add_money scythia, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia
    and Treasury < 30001
    and I_TurnNumber > 599
    and not FactionIsLocal 
    console_command add_money scythia, 35000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Saba - saba (272BC to 175BC) - 20K-40K
    
    monitor_event FactionTurnStart FactionType saba
    and Treasury > 100000
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money saba, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and Treasury > 80000
    and Treasury < 100001
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money saba, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and Treasury > 60000
    and Treasury < 80001
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money saba, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and Treasury > 40000
    and Treasury < 60001
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money saba, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and Treasury > 0
    and Treasury < 20000
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money saba, 20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and Treasury < 1
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money saba, 40000
    end_monitor
    
    
    ;Saba - saba (after 174BC) - 40K-70K
    
    monitor_event FactionTurnStart FactionType saba
    and Treasury > 130000
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money saba, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and Treasury > 100000
    and Treasury < 130001
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money saba, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and Treasury > 70000
    and Treasury < 100001
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money saba, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and Treasury > 10000
    and Treasury < 40001
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money saba, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and Treasury < 10001
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money saba, 60000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Makedon - macedon (272BC to 181BC) - 50K-80K
    
    monitor_event FactionTurnStart FactionType macedon
    and Treasury > 140000
    and I_TurnNumber < 365
    and not FactionIsLocal 
    console_command add_money macedon, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and Treasury > 110000
    and Treasury < 140001
    and I_TurnNumber < 365
    and not FactionIsLocal 
    console_command add_money macedon, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and Treasury > 80000
    and Treasury < 110001
    and I_TurnNumber < 365
    and not FactionIsLocal 
    console_command add_money macedon, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and Treasury > 20000
    and Treasury < 50001
    and I_TurnNumber < 365
    and not FactionIsLocal 
    console_command add_money macedon, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and Treasury < 20001
    and I_TurnNumber < 365
    and not FactionIsLocal 
    console_command add_money macedon, 60000
    end_monitor
    
    
    ;Makedon - macedon (after 180BC) - 40K-70K
    
    monitor_event FactionTurnStart FactionType macedon
    and Treasury > 130000
    and I_TurnNumber > 364
    and not FactionIsLocal 
    console_command add_money macedon, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and Treasury > 100000
    and Treasury < 130001
    and I_TurnNumber > 364
    and not FactionIsLocal 
    console_command add_money macedon, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and Treasury > 70000
    and Treasury < 100001
    and I_TurnNumber > 364
    and not FactionIsLocal 
    console_command add_money macedon, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and Treasury > 10000
    and Treasury < 40001
    and I_TurnNumber > 364
    and not FactionIsLocal 
    console_command add_money macedon, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and Treasury < 10001
    and I_TurnNumber > 364
    and not FactionIsLocal 
    console_command add_money macedon, 60000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Ptolemaioi - numidia (272BC to 176BC) - 30K-60K
    
    monitor_event FactionTurnStart FactionType numidia
    and Treasury > 90000
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money numidia, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and Treasury > 60000
    and Treasury < 90001
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money numidia, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and Treasury < 30001
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money numidia, 30000
    end_monitor
    
    
    ;Ptolemaioi - numidia (after 175BC) - 40K-70K
    
    monitor_event FactionTurnStart FactionType numidia
    and Treasury > 100000
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money numidia, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and Treasury > 70000
    and Treasury < 100001
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money numidia, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and Treasury > 10000
    and Treasury < 40001
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money numidia, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and Treasury < 10001
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money numidia, 40000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Arche Seleukeia - romans_julii (272BC to 176BC) - 50K-80K
    
    monitor_event FactionTurnStart FactionType romans_julii
    and Treasury > 140000
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money romans_julii, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii
    and Treasury > 110000
    and Treasury < 140001
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money romans_julii, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii
    and Treasury > 80000
    and Treasury < 110001
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money romans_julii, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii
    and Treasury > 20000
    and Treasury < 50001
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money romans_julii, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii
    and Treasury < 20001
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money romans_julii, 60000
    end_monitor
    
    ;Arche Seleukeia - romans_julii (after 175BC) - 20K-40K
    
    monitor_event FactionTurnStart FactionType romans_julii
    and Treasury > 100000
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money romans_julii, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii
    and Treasury > 80000
    and Treasury < 100001
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money romans_julii, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii
    and Treasury > 60000
    and Treasury < 80001
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money romans_julii, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii
    and Treasury > 40000
    and Treasury < 60001
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money romans_julii, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii
    and Treasury < 20000
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money romans_julii, 20000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Carthage - egypt (272BC to 200BC) - 70K-100K
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury > 140000
    and I_TurnNumber < 289
    and not FactionIsLocal 
    console_command add_money egypt, -70000
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury > 110000
    and Treasury < 140001
    and I_TurnNumber < 289
    and not FactionIsLocal 
    console_command add_money egypt, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury > 80000
    and Treasury < 110001
    and I_TurnNumber < 289
    and not FactionIsLocal 
    console_command add_money egypt, -10000
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury > 40000
    and Treasury < 70001
    and I_TurnNumber < 289
    and not FactionIsLocal 
    console_command add_money egypt, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury > 10000
    and Treasury < 40001
    and I_TurnNumber < 289
    and not FactionIsLocal 
    console_command add_money egypt, 60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury < 10001
    and I_TurnNumber < 289
    and not FactionIsLocal 
    console_command add_money egypt, 70000
    end_monitor
    
    
    ;Carthage - egypt (199BC to 150BC) - 50K-80K
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury > 140000
    and I_TurnNumber > 288
    and I_TurnNumber < 489
    and not FactionIsLocal 
    console_command add_money egypt, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury > 110000
    and Treasury < 140001
    and I_TurnNumber > 288
    and I_TurnNumber < 489
    and not FactionIsLocal 
    console_command add_money egypt, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury > 80000
    and Treasury < 110001
    and I_TurnNumber > 288
    and I_TurnNumber < 489
    and not FactionIsLocal 
    console_command add_money egypt, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury > 20000
    and Treasury < 50001
    and I_TurnNumber > 288
    and I_TurnNumber < 489
    and not FactionIsLocal 
    console_command add_money egypt, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury < 20001
    and I_TurnNumber > 288
    and I_TurnNumber < 489
    and not FactionIsLocal 
    console_command add_money egypt, 50000
    end_monitor
    
    
    ;Carthage - egypt (after 149BC) - 20K-40K
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury > 100000
    and I_TurnNumber > 488
    and not FactionIsLocal 
    console_command add_money egypt, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury > 80000
    and Treasury < 100001
    and I_TurnNumber > 488
    and not FactionIsLocal 
    console_command add_money egypt, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury > 60000
    and Treasury < 80001
    and I_TurnNumber > 488
    and not FactionIsLocal 
    console_command add_money egypt, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury > 40000
    and Treasury < 60001
    and I_TurnNumber > 488
    and not FactionIsLocal 
    console_command add_money egypt, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury < 20000
    and I_TurnNumber > 488
    and not FactionIsLocal 
    console_command add_money egypt, 20000
    end_monitor
    
    ;--------------------------------------------------
    ;Parthians - parthia (272BC to 248BC) - 20K-40K
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury > 100000
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money parthia, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury > 80000
    and Treasury < 100001
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money parthia, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury > 60000
    and Treasury < 80001
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money parthia, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury > 40000
    and Treasury < 60001
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money parthia, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury > 0
    and Treasury < 20000
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money parthia, 20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury < 1
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money parthia, 40000
    end_monitor
    
    ;Parthians - parthia (247BC to 176BC) - 50K-80K
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury > 140000
    and I_TurnNumber > 100
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money parthia, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury > 110000
    and Treasury < 140001
    and I_TurnNumber > 100
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money parthia, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury > 80000
    and Treasury < 110001
    and I_TurnNumber > 100
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money parthia, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury > 20000
    and Treasury < 50001
    and I_TurnNumber > 100
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money parthia, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury < 20001
    and I_TurnNumber > 100
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money parthia, 60000
    end_monitor
    
    ;Parthians - parthia (after 175BC) - 120K-150K
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury > 210000
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money parthia, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury > 180000
    and Treasury < 210001
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money parthia, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury > 150000
    and Treasury < 180001
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money parthia, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury > 90000
    and Treasury < 120001
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money parthia, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury > 60000
    and Treasury < 90001
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money parthia, 60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury > 30000
    and Treasury < 60001
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money parthia, 90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury > 0
    and Treasury < 30001
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money parthia, 120000
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury < 1
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money parthia, 150000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Pontus - carthage (272BC to 248BC) - 30K-50K
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury > 90000
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money carthage, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury > 70000
    and Treasury < 90001
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money carthage, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury > 50000
    and Treasury < 70001
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money carthage, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury > 10000
    and Treasury < 30001
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money carthage, 20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury < 10001
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money carthage, 40000
    end_monitor
    
    
    ;Pontus - carthage (247BC to 114BC) - 30K-60K
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury > 90000
    and I_TurnNumber > 100
    and I_TurnNumber < 633
    and not FactionIsLocal 
    console_command add_money carthage, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury > 60000
    and Treasury < 90001
    and I_TurnNumber > 100
    and I_TurnNumber < 633
    and not FactionIsLocal 
    console_command add_money carthage, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury < 30001
    and I_TurnNumber > 100
    and I_TurnNumber < 633
    and not FactionIsLocal 
    console_command add_money carthage, 30000
    end_monitor
    
    
    ;Pontus - carthage (after 113BC) - 20K-40K
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury > 80000
    and I_TurnNumber > 632
    and not FactionIsLocal 
    console_command add_money carthage, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury > 60000
    and Treasury < 80001
    and I_TurnNumber > 632
    and not FactionIsLocal 
    console_command add_money carthage, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury > 40000
    and Treasury < 60001
    and I_TurnNumber > 632
    and not FactionIsLocal 
    console_command add_money carthage, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury < 20000
    and I_TurnNumber > 632
    and not FactionIsLocal 
    console_command add_money carthage, 20000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Aedui - gauls (272BC to 242BC) - 40K-70K
    
    monitor_event FactionTurnStart FactionType gauls
    and Treasury > 130000
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money gauls, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls
    and Treasury > 100000
    and Treasury < 130001
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money gauls, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls
    and Treasury > 70000
    and Treasury < 100001
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money gauls, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls
    and Treasury < 40001
    and I_TurnNumber < 600
    and not FactionIsLocal
    console_command add_money gauls, 40000
    end_monitor
    
    
    ;Aedui - gauls (after 121BC) - 30K-60K
    
    monitor_event FactionTurnStart FactionType gauls
    and Treasury > 120000
    and I_TurnNumber > 599
    and not FactionIsLocal 
    console_command add_money gauls, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls
    and Treasury > 90000
    and Treasury < 120001
    and I_TurnNumber > 599
    and not FactionIsLocal 
    console_command add_money gauls, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls
    and Treasury > 60000
    and Treasury < 90001
    and I_TurnNumber > 599
    and not FactionIsLocal 
    console_command add_money gauls, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls
    and Treasury < 30001
    and I_TurnNumber > 599
    and not FactionIsLocal 
    console_command add_money gauls, 30000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Sweboz - germans (272BC to 242BC) - 50K-80K
    
    monitor_event FactionTurnStart FactionType germans
    and Treasury > 140000
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money germans, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and Treasury > 110000
    and Treasury < 140001
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money germans, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and Treasury > 80000
    and Treasury < 110001
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money germans, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and Treasury > 20000
    and Treasury < 50001
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money germans, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and Treasury < 20001
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money germans, 50000
    end_monitor
    
    
    ;Sweboz - germans (after 121BC) - 60K-90K
    
    monitor_event FactionTurnStart FactionType germans
    and Treasury > 150000
    and I_TurnNumber > 599
    and not FactionIsLocal 
    console_command add_money germans, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and Treasury > 120000
    and Treasury < 150001
    and I_TurnNumber > 599
    and not FactionIsLocal 
    console_command add_money germans, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and Treasury > 90000
    and Treasury < 120001
    and I_TurnNumber > 599
    and not FactionIsLocal 
    console_command add_money germans, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and Treasury > 30000
    and Treasury < 60001
    and I_TurnNumber > 599
    and not FactionIsLocal 
    console_command add_money germans, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and Treasury < 30001
    and I_TurnNumber > 599
    and not FactionIsLocal 
    console_command add_money germans, 60000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Casse - britons (272BC to 242BC) - 40K-70K
    
    monitor_event FactionTurnStart FactionType britons
    and Treasury > 130000
    and I_TurnNumber < 120
    and not FactionIsLocal 
    console_command add_money britons, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and Treasury > 100000
    and Treasury < 130001
    and I_TurnNumber < 120
    and not FactionIsLocal 
    console_command add_money britons, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and Treasury > 70000
    and Treasury < 100001
    and I_TurnNumber < 120
    and not FactionIsLocal 
    console_command add_money britons, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and Treasury > 10000
    and Treasury < 40001
    and I_TurnNumber < 120
    and not FactionIsLocal 
    console_command add_money britons, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and Treasury < 10001
    and I_TurnNumber < 120
    and not FactionIsLocal 
    console_command add_money britons, 60000
    end_monitor
    
    
    ;Casse - britons (241BC to 122BC) - 70K-100K
    
    monitor_event FactionTurnStart FactionType britons
    and Treasury > 160000
    and I_TurnNumber > 119
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money britons, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and Treasury > 130000
    and Treasury < 160001
    and I_TurnNumber > 119
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money britons, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and Treasury > 100000
    and Treasury < 130001
    and I_TurnNumber > 119
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money britons, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and Treasury > 40000
    and Treasury < 70001
    and I_TurnNumber > 119
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money britons, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and Treasury > 10000
    and Treasury < 40001
    and I_TurnNumber > 119
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money britons, 60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and Treasury < 10001
    and I_TurnNumber > 119
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money britons, 90000
    end_monitor
    
    
    ;Casse - britons (after 121BC) - 50K-80K
    
    monitor_event FactionTurnStart FactionType britons
    and Treasury > 140000
    and I_TurnNumber > 599
    and not FactionIsLocal 
    console_command add_money britons, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and Treasury > 110000
    and Treasury < 140001
    and I_TurnNumber > 599
    and not FactionIsLocal 
    console_command add_money britons, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and Treasury > 80000
    and Treasury < 110001
    and I_TurnNumber > 599
    and not FactionIsLocal 
    console_command add_money britons, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and Treasury > 20000
    and Treasury < 50001
    and I_TurnNumber > 599
    and not FactionIsLocal 
    console_command add_money britons, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and Treasury < 20001
    and I_TurnNumber > 599
    and not FactionIsLocal 
    console_command add_money britons, 50000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Hayasdan - romans_scipii (272BC to 248BC) - 20K-40K
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and Treasury > 80000
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money romans_scipii, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and Treasury > 60000
    and Treasury < 80001
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money romans_scipii, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and Treasury > 40000
    and Treasury < 60001
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money romans_scipii, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and Treasury < 20000
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money romans_scipii, 20000
    end_monitor
    
    
    ;Hayasdan - romans_scipii (247BC to 176BC) - 40K-70K
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and Treasury > 130000
    and I_TurnNumber > 100
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money romans_scipii, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and Treasury > 100000
    and Treasury < 130001
    and I_TurnNumber > 100
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money romans_scipii, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and Treasury > 70000
    and Treasury < 100001
    and I_TurnNumber > 100
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money romans_scipii, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and Treasury > 10000
    and Treasury < 40001
    and I_TurnNumber > 100
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money romans_scipii, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and Treasury < 10001
    and I_TurnNumber > 100
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money romans_scipii, 40000
    end_monitor
    
    
    ;Hayasdan - romans_scipii (after 175BC) - 60K-90K
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and Treasury > 150000
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money romans_scipii, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and Treasury > 120000
    and Treasury < 150001
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money romans_scipii, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and Treasury > 90000
    and Treasury < 120001
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money romans_scipii, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and Treasury > 30000
    and Treasury < 60001
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money romans_scipii, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and Treasury < 30001
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money romans_scipii, 60000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Getai - dacia (272BC to 242BC) - 30K-60K
    
    monitor_event FactionTurnStart FactionType dacia
    and Treasury > 120000
    and I_TurnNumber < 120
    and not FactionIsLocal 
    console_command add_money dacia, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and Treasury > 90000
    and Treasury < 120001
    and I_TurnNumber < 120
    and not FactionIsLocal 
    console_command add_money dacia, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and Treasury > 60000
    and Treasury < 90001
    and I_TurnNumber < 120
    and not FactionIsLocal 
    console_command add_money dacia, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and Treasury < 30001
    and I_TurnNumber < 120
    and not FactionIsLocal 
    console_command add_money dacia, 30000
    end_monitor
    
    
    ;Getai - dacia (241BC to 122BC) - 50K-80K
    
    monitor_event FactionTurnStart FactionType dacia
    and Treasury > 140000
    and I_TurnNumber > 119
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money dacia, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and Treasury > 110000
    and Treasury < 140001
    and I_TurnNumber > 119
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money dacia, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and Treasury > 80000
    and Treasury < 110001
    and I_TurnNumber > 119
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money dacia, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and Treasury > 20000
    and Treasury < 50001
    and I_TurnNumber > 119
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money dacia, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and Treasury < 20001
    and I_TurnNumber > 119
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money dacia, 50000
    end_monitor
    
    
    ;Getai - dacia (after 121BC) - 30K-60K
    
    monitor_event FactionTurnStart FactionType dacia
    and Treasury > 120000
    and I_TurnNumber > 599
    and not FactionIsLocal 
    console_command add_money dacia, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and Treasury > 90000
    and Treasury < 120001
    and I_TurnNumber > 599
    and not FactionIsLocal 
    console_command add_money dacia, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and Treasury > 60000
    and Treasury < 90001
    and I_TurnNumber > 599
    and not FactionIsLocal 
    console_command add_money dacia, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and Treasury < 30001
    and I_TurnNumber > 599
    and not FactionIsLocal 
    console_command add_money dacia, 30000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Koinon Hellenon - greek_cities (272BC to 262BC) - 50K-80K
    
    monitor_event FactionTurnStart FactionType greek_cities
    and Treasury > 140000
    and I_TurnNumber < 41
    and not FactionIsLocal 
    console_command add_money greek_cities, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and Treasury > 110000
    and Treasury < 140001
    and I_TurnNumber < 41
    and not FactionIsLocal 
    console_command add_money greek_cities, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and Treasury > 80000
    and Treasury < 110001
    and I_TurnNumber < 41
    and not FactionIsLocal 
    console_command add_money greek_cities, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and Treasury > 20000
    and Treasury < 50001
    and I_TurnNumber < 41
    and not FactionIsLocal 
    console_command add_money greek_cities, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and Treasury < 20001
    and I_TurnNumber < 41
    and not FactionIsLocal 
    console_command add_money greek_cities, 50000
    end_monitor
    
    
    ;Koinon Hellenon - greek_cities (after 262BC) - 40K-60K
    
    monitor_event FactionTurnStart FactionType greek_cities
    and Treasury > 100000
    and I_TurnNumber > 40
    and not FactionIsLocal 
    console_command add_money greek_cities, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and Treasury > 80000
    and Treasury < 100001
    and I_TurnNumber > 40
    and not FactionIsLocal 
    console_command add_money greek_cities, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and Treasury > 60000
    and Treasury < 80001
    and I_TurnNumber > 40
    and not FactionIsLocal 
    console_command add_money greek_cities, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and Treasury > 20000
    and Treasury < 40001
    and I_TurnNumber > 40
    and not FactionIsLocal 
    console_command add_money greek_cities, 20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and Treasury < 20001
    and I_TurnNumber > 40
    and not FactionIsLocal 
    console_command add_money greek_cities, 40000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Baktria - romans_brutii (272BC to 250BC) - 20K-40K
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and Treasury > 80000
    and I_TurnNumber < 89
    and not FactionIsLocal 
    console_command add_money romans_brutii, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and Treasury > 60000
    and Treasury < 80001
    and I_TurnNumber < 89
    and not FactionIsLocal 
    console_command add_money romans_brutii, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and Treasury > 40000
    and Treasury < 60001
    and I_TurnNumber < 89
    and not FactionIsLocal 
    console_command add_money romans_brutii, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and Treasury < 20001
    and I_TurnNumber < 89
    and not FactionIsLocal 
    console_command add_money romans_brutii, 20000
    end_monitor
    
    
    ;Baktria - romans_brutii (249BC to 175BC) - 50K-80K
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and Treasury > 140000
    and I_TurnNumber > 88
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money romans_brutii, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and Treasury > 110000
    and Treasury < 140001
    and I_TurnNumber > 100
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money romans_brutii, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and Treasury > 80000
    and Treasury < 110001
    and I_TurnNumber > 100
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money romans_brutii, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and Treasury > 20000
    and Treasury < 50001
    and I_TurnNumber > 100
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money romans_brutii, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and Treasury < 20001
    and I_TurnNumber > 100
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money romans_brutii, 50000
    end_monitor
    
    
    ;Baktria - romans_brutii (174BC to 125BC) - 100K-120K
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and Treasury > 160000
    and I_TurnNumber > 388
    and I_TurnNumber < 589
    and not FactionIsLocal 
    console_command add_money romans_brutii, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and Treasury > 140000
    and Treasury < 160001
    and I_TurnNumber > 388
    and I_TurnNumber < 589
    and not FactionIsLocal 
    console_command add_money romans_brutii, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and Treasury > 120000
    and Treasury < 140001
    and I_TurnNumber > 388
    and I_TurnNumber < 589
    and not FactionIsLocal 
    console_command add_money romans_brutii, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and Treasury > 80000
    and Treasury < 100001
    and I_TurnNumber > 388
    and I_TurnNumber < 589
    and not FactionIsLocal 
    console_command add_money romans_brutii, 20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and Treasury > 60000
    and Treasury < 80001
    and I_TurnNumber > 388
    and I_TurnNumber < 589
    and not FactionIsLocal 
    console_command add_money romans_brutii, 40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and Treasury > 40000
    and Treasury < 60001
    and I_TurnNumber > 388
    and I_TurnNumber < 589
    and not FactionIsLocal 
    console_command add_money romans_brutii, 60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and Treasury > 20000
    and Treasury < 40001
    and I_TurnNumber > 388
    and I_TurnNumber < 589
    and not FactionIsLocal 
    console_command add_money romans_brutii, 80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and Treasury < 20001
    and I_TurnNumber > 388
    and I_TurnNumber < 589
    and not FactionIsLocal 
    console_command add_money romans_brutii, 100000
    end_monitor
    
    
    ;Baktria - romans_brutii (after 124BC) - 20K-40K
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and Treasury > 80000
    and I_TurnNumber > 588
    and not FactionIsLocal 
    console_command add_money romans_brutii, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and Treasury > 60000
    and Treasury < 80001
    and I_TurnNumber > 588
    and not FactionIsLocal 
    console_command add_money romans_brutii, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and Treasury > 40000
    and Treasury < 60001
    and I_TurnNumber > 588
    and not FactionIsLocal 
    console_command add_money romans_brutii, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and Treasury < 20001
    and I_TurnNumber > 588
    and not FactionIsLocal 
    console_command add_money romans_brutii, 20000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Sauromatae - armenia (272BC to 248BC) - 20K-40K
    
    monitor_event FactionTurnStart FactionType armenia
    and Treasury > 80000
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money armenia, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and Treasury > 60000
    and Treasury < 80001
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money armenia, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and Treasury > 40000
    and Treasury < 60001
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money armenia, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and Treasury < 20001
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money armenia, 20000
    end_monitor
    
    
    ;Sauromatae - armenia (247BC to 176BC) - 40K-70K
    
    monitor_event FactionTurnStart FactionType armenia
    and Treasury > 130000
    and I_TurnNumber > 100
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money armenia, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and Treasury > 100000
    and Treasury < 130001
    and I_TurnNumber > 100
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money armenia, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and Treasury > 70000
    and Treasury < 100001
    and I_TurnNumber > 100
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money armenia, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and Treasury > 10000
    and Treasury < 40001
    and I_TurnNumber > 100
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money armenia, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and Treasury < 10001
    and I_TurnNumber > 100
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money armenia, 40000
    end_monitor
    
    
    ;Sauromatae - armenia (after 175BC) - 50K-80K
    
    monitor_event FactionTurnStart FactionType armenia
    and Treasury > 140000
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money armenia, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and Treasury > 110000
    and Treasury < 140001
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money armenia, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and Treasury > 80000
    and Treasury < 110001
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money armenia, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and Treasury > 20000
    and Treasury < 50001
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money armenia, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and Treasury < 20001
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money armenia, 50000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Lusotannan - spain (272BC to 122BC) - 40K-70K
    
    monitor_event FactionTurnStart FactionType spain
    and Treasury > 130000
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money spain, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain
    and Treasury > 100000
    and Treasury < 130001
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money spain, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain
    and Treasury > 70000
    and Treasury < 100001
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money spain, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain
    and Treasury > 10000
    and Treasury < 40001
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money spain, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain
    and Treasury < 10001
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money spain, 40000
    end_monitor
    
    
    ;Lusotannan - spain (after 121BC) - 30K-50K
    
    monitor_event FactionTurnStart FactionType spain
    and Treasury > 90000
    and I_TurnNumber > 599
    and not FactionIsLocal 
    console_command add_money spain, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain
    and Treasury > 70000
    and Treasury < 90001
    and I_TurnNumber > 599
    and not FactionIsLocal 
    console_command add_money spain, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain
    and Treasury > 50000
    and Treasury < 70001
    and I_TurnNumber > 599
    and not FactionIsLocal 
    console_command add_money spain, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain
    and Treasury < 30001
    and I_TurnNumber > 599
    and not FactionIsLocal 
    console_command add_money spain, 30000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Epeiros - thrace (272BC to 168BC) - 10K-20K
    
    monitor_event FactionTurnStart FactionType thrace
    and Treasury > 60000
    and I_TurnNumber < 417
    ;and not FactionIsLocal 
    console_command add_money thrace, -50000
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and Treasury > 50000
    and Treasury < 60001
    and I_TurnNumber < 417
    ;and not FactionIsLocal 
    console_command add_money thrace, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and Treasury > 40000
    and Treasury < 50001
    and I_TurnNumber < 417
    ;and not FactionIsLocal 
    console_command add_money thrace, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and Treasury > 30000
    and Treasury < 40001
    and I_TurnNumber < 417
    ;and not FactionIsLocal 
    console_command add_money thrace, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and Treasury > 20000
    and Treasury < 30001
    and I_TurnNumber < 417
    ;and not FactionIsLocal 
    console_command add_money thrace, -10000
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and Treasury < 10001
    and I_TurnNumber < 417
    ;and not FactionIsLocal 
    console_command add_money thrace, 10000
    end_monitor
    
    
    ;Epeiros - thrace (after 167BC) - 5K-10K
    
    monitor_event FactionTurnStart FactionType thrace
    and Treasury > 35000
    and I_TurnNumber > 416
    and not FactionIsLocal 
    console_command add_money thrace, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and Treasury > 30000
    and Treasury < 35001
    and I_TurnNumber > 416
    and not FactionIsLocal 
    console_command add_money thrace, -25000
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and Treasury > 25000
    and Treasury < 30001
    and I_TurnNumber > 416
    and not FactionIsLocal 
    console_command add_money thrace, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and Treasury > 20000
    and Treasury < 25001
    and I_TurnNumber > 416
    and not FactionIsLocal 
    console_command add_money thrace, -15000
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and Treasury > 15000
    and Treasury < 20001
    and I_TurnNumber > 416
    and not FactionIsLocal 
    console_command add_money thrace, -10000
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and Treasury > 10000
    and Treasury < 15001
    and I_TurnNumber > 416
    and not FactionIsLocal 
    console_command add_money thrace, -5000
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and Treasury < 5001
    and I_TurnNumber > 416
    and not FactionIsLocal 
    console_command add_money thrace, 5000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Eleutheroi - slave (2750 per city)
    
    monitor_event SettlementTurnStart FactionType slave
    
    console_command add_money slave, 2750
    
    end_monitor
    Last edited by JMRC; 06-12-2007 at 18:52.



    "Death Smiles at Us All,all a Man Can Do Is Smile Back."
    Maximvs Decimvs Meridivs, Commander of the Armies of the North, General of the Felix Legions, Iberian Gladiator.

  6. #246

    Default Re: Fixing the AI money script (preliminary tests)

    One thing to consider - and I may be wrong on this point, I haven't had a chance to test it - is that I think the the "Treasury" condition actually looks at the local faction's treasury by default. So, for example, instead of looking in the AI Rome's treasury to see if they have a certain amount of money, it looks in the player's treasury, no matter which faction they are playing.

    To work around this, I think you would have to change it to be like this:

    Code:
    and Treasury seleucid > 140000
    Or possibly this:

    Code:
    and Treasury FactionType seleucid > 140000
    Again, I don't know for sure and it would take a fair bit of testing to check. I'm basing my assumptions off the docudemon files which mention "faction" as being a trigger requirement.

  7. #247
    Bibliophilic Member Atilius's Avatar
    Join Date
    Oct 2005
    Location
    America Medioccidentalis Superior
    Posts
    3,837

    Default Re: Fixing the AI money script (preliminary tests)

    Quote Originally Posted by Cheexsta
    ...is that I think the the "Treasury" condition actually looks at the local faction's treasury by default. So, for example, instead of looking in the AI Rome's treasury to see if they have a certain amount of money, it looks in the player's treasury, no matter which faction they are playing...

    ...I'm basing my assumptions off the docudemon files which mention "faction" as being a trigger requirement.
    No, a trigger is supplied by the event which the event monitor is looking for. The Treasury condition will not accept a parameter. For example:

    Code:
    monitor_event FactionTurnStart Treasury > 1000
        console_command puppify_my_love
    end_monitor
    will execute the puppify_my_love console command at the beginning of every faction's turn (player controlled or not) if the faction's treasury contains at least 1000 mnai. The FactionTurnStart event is passing the faction trigger to the Treasury condition.
    The truth is the most valuable thing we have. Let us economize it. - Mark Twain



  8. #248
    Closet Celtophile Member Redmeth's Avatar
    Join Date
    Mar 2007
    Location
    Bucharest, Romania
    Posts
    3,740

    Default Re: Fixing the AI money script (preliminary tests)

    Quote Originally Posted by Foot
    Unfortunately you will need to transplant the EBBS (modified or not) into the campaign_script.txt, as in the -ai game you cannot start the EBBS script. I'm not entirely sure how you do this, but my guess would be to copy all the bits inbetween the start and end script lines into the campaign_script at the end of the file (before the end script line) as is. But very good for churning off test games. Be wary of ctds though. It cannot save, so you'll need to be checking on things all the while, just in case it ends unexpectedly.

    Foot
    At the end of the campaign script there's a terminate_script and an end_script line. Where do I paste all of the EBBS script BEFORE both or BETWEEN the terminate and the end_script lines?

  9. #249
    Closet Celtophile Member Redmeth's Avatar
    Join Date
    Mar 2007
    Location
    Bucharest, Romania
    Posts
    3,740

    Default Re: Fixing the AI money script (preliminary tests)

    I made this test using my money script, mlp0701's mercenary modification and JMRC's victory conditions. This is the setup I'm using and wanted to testing out using an autoplay game controlling the Casse (I gave them ~30k every 10 years because they did not receive the bonuses) Everybody expanded very well especially the Aedui, Getai(!!) and Carthage. Sweboz, Pahlava and Sauromatae were very static which usually is not the case except for the Sauro. Using the merc mod I noticed very few stacks and while it's a good thing it's a bit worrying because I think for the human player it would be easy to overrun the AI.
    So here are the screenies, you can judge for yourselves.
    260

    250

    240

    230

    220

    210

    200

    190

    180

    170

    160

    I could not get past a repeating CTD in 160 so that's as far as it gets.

  10. #250

    Default Re: Fixing the AI money script (preliminary tests)

    AI has available roughly 1 stack per 4-5 provinces of mercs to recruit, in most of the areas. For empires with 15+ provinces,(which you have in 200) that would translate into 3 stacks every 3-4 years.And AI doesn't have to own the province to be able to recruit mercs from it.By the year 200 that should be quite a bit,something between 54-72 stacks of merc per 5 provinces , if AI is buying them and therefore they get replenished.

    Thing is does AI has finances to buy them, or develop income buildings to boost his economic situation?

    I can lower mercs prices back to original ones and see if that helps. And if not, spawn times can be shorter too.Will play with it and see.

    Thanks for feedback
    Last edited by mlp071; 06-11-2007 at 20:06.

  11. #251

    Default Re: Fixing the AI money script (preliminary tests)

    @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...
    Code:
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;Section 4: Money Assistance
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    
    ;--------------------------------------------------
    ;Carthaginian Navy Bonus
    
    monitor_event CharacterTurnStart FactionType egypt
    and AgentType = admiral
    and not FactionIsLocal
    console_command add_money egypt, 600
    end_monitor
    
    
    ;--------------------------------------------------
    ;Romani - (272BC to 242BC) 0-30K
    
    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
    
    
    ;Romani - (241BC to 122BC) - 20K-40K
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury > 80000
    and I_TurnNumber > 119
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money seleucid, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury > 60000
    and Treasury < 80001
    and I_TurnNumber > 119
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money seleucid, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury > 40000
    and Treasury < 60001
    and I_TurnNumber > 119
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money seleucid, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury < 20001
    and I_TurnNumber > 119
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money seleucid, 20000
    end_monitor
    
    
    ;Romani - (after 121BC) - 50K-80K
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury > 140000
    and I_TurnNumber > 601
    and not FactionIsLocal 
    console_command add_money seleucid, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury > 110000
    and Treasury < 140001
    and I_TurnNumber > 601
    and not FactionIsLocal 
    console_command add_money seleucid, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury > 80000
    and Treasury < 110001
    and I_TurnNumber > 601
    and not FactionIsLocal 
    console_command add_money seleucid, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury > 20000
    and Treasury < 50001
    and I_TurnNumber > 601
    and not FactionIsLocal 
    console_command add_money seleucid, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury < 20001
    and I_TurnNumber > 601
    and not FactionIsLocal 
    console_command add_money seleucid, 60000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Saka - 20K-40k
    
    monitor_event FactionTurnStart FactionType pontus
    and Treasury > 100000
    and not FactionIsLocal 
    console_command add_money pontus, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and Treasury > 80000
    and Treasury < 100001
    and not FactionIsLocal 
    console_command add_money pontus, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and Treasury > 60000
    and Treasury < 80001
    and not FactionIsLocal 
    console_command add_money pontus, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and Treasury > 40000
    and Treasury < 60001
    and not FactionIsLocal 
    console_command add_money pontus, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and Treasury > 0
    and Treasury < 20000
    and not FactionIsLocal 
    console_command add_money pontus, 20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and Treasury < 1
    and not FactionIsLocal 
    console_command add_money pontus, 40000
    
    
    ;--------------------------------------------------
    ;Arverni - 20K-40K
    
    monitor_event FactionTurnStart FactionType scythia
    and Treasury > 100000
    and not FactionIsLocal 
    console_command add_money scythia, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia
    and Treasury > 80000
    and Treasury < 100001
    and not FactionIsLocal 
    console_command add_money scythia, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia
    and Treasury > 60000
    and Treasury < 80001
    and not FactionIsLocal 
    console_command add_money scythia, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia
    and Treasury > 40000
    and Treasury < 60001
    and not FactionIsLocal 
    console_command add_money scythia, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia
    and Treasury > 0
    and Treasury < 20000
    and not FactionIsLocal 
    console_command add_money scythia, 20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia
    and Treasury < 1
    and not FactionIsLocal 
    console_command add_money scythia, 40000
    
    
    ;--------------------------------------------------
    ;Saba - (272BC to 175BC) - 20K-40K
    
    monitor_event FactionTurnStart FactionType saba
    and Treasury > 100000
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money saba, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and Treasury > 80000
    and Treasury < 100001
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money saba, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and Treasury > 60000
    and Treasury < 80001
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money saba, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and Treasury > 40000
    and Treasury < 60001
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money saba, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and Treasury > 0
    and Treasury < 20000
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money saba, 20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and Treasury < 1
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money saba, 40000
    end_monitor
    
    
    ;Saba - (after 174BC) - 40K-70K
    
    monitor_event FactionTurnStart FactionType saba
    and Treasury > 130000
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money saba, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and Treasury > 100000
    and Treasury < 130001
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money saba, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and Treasury > 70000
    and Treasury < 100001
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money saba, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and Treasury > 10000
    and Treasury < 40001
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money saba, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and Treasury < 10001
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money saba, 60000
    end_monitor
    
    
    ;--------------------------------------------------
    
    ;Makedon  - 40K-70K
    
    monitor_event FactionTurnStart FactionType macedon
    and Treasury > 130000
    and not FactionIsLocal 
    console_command add_money macedon, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and Treasury > 100000
    and Treasury < 130001
    and not FactionIsLocal 
    console_command add_money macedon, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and Treasury > 70000
    and Treasury < 100001
    and not FactionIsLocal 
    console_command add_money macedon, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and Treasury > 10000
    and Treasury < 40001
    and not FactionIsLocal 
    console_command add_money macedon, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and Treasury < 10001
    and not FactionIsLocal 
    console_command add_money macedon, 60000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Ptolemaioi - (272BC to 176BC) - 50K-80K
    
    monitor_event FactionTurnStart FactionType numidia
    and Treasury > 140000
    and I_TurnNumber < 388
    and not FactionIsLocal 
    console_command add_money numidia, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and Treasury > 110000
    and Treasury < 140001
    and I_TurnNumber < 388
    and not FactionIsLocal 
    console_command add_money numidia, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and Treasury > 80000
    and Treasury < 110001
    and I_TurnNumber < 388
    and not FactionIsLocal 
    console_command add_money numidia, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and Treasury > 20000
    and Treasury < 50001
    and I_TurnNumber < 388
    and not FactionIsLocal 
    console_command add_money numidia, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and Treasury < 20001
    and I_TurnNumber < 388
    and not FactionIsLocal 
    console_command add_money numidia, 60000
    end_monitor
    
    
    ;Ptolemaioi - (after 175BC) - 40K-70K
    
    monitor_event FactionTurnStart FactionType numidia
    and Treasury > 130000
    and I_TurnNumber > 389
    and not FactionIsLocal 
    console_command add_money numidia, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and Treasury > 100000
    and Treasury < 130001
    and I_TurnNumber > 389
    and not FactionIsLocal 
    console_command add_money numidia, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and Treasury > 70000
    and Treasury < 100001
    and I_TurnNumber > 389
    and not FactionIsLocal 
    console_command add_money numidia, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and Treasury > 10000
    and Treasury < 40001
    and I_TurnNumber > 389
    and not FactionIsLocal 
    console_command add_money numidia, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and Treasury < 10001
    and I_TurnNumber > 389
    and not FactionIsLocal 
    console_command add_money numidia, 60000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Arche Seleukeia - (272BC to 176BC) - 50K-80K
    
    monitor_event FactionTurnStart FactionType romans_julii
    and Treasury > 140000
    and I_TurnNumber < 388
    and not FactionIsLocal 
    console_command add_money romans_julii, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii
    and Treasury > 110000
    and Treasury < 140001
    and I_TurnNumber < 388
    and not FactionIsLocal 
    console_command add_money romans_julii, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii
    and Treasury > 80000
    and Treasury < 110001
    and I_TurnNumber < 388
    and not FactionIsLocal 
    console_command add_money romans_julii, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii
    and Treasury > 20000
    and Treasury < 50001
    and I_TurnNumber < 388
    and not FactionIsLocal 
    console_command add_money romans_julii, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii
    and Treasury < 20001
    and I_TurnNumber < 388
    and not FactionIsLocal 
    console_command add_money romans_julii, 60000
    end_monitor
    
    
    ;Arche Seleukeia - (after 175BC) - 20K-40K
    
    monitor_event FactionTurnStart FactionType romans_julii
    and Treasury > 100000
    and I_TurnNumber > 389
    and not FactionIsLocal 
    console_command add_money romans_julii, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii
    and Treasury > 80000
    and Treasury < 100001
    and I_TurnNumber > 389
    and not FactionIsLocal 
    console_command add_money romans_julii, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii
    and Treasury > 60000
    and Treasury < 80001
    and I_TurnNumber > 389
    and not FactionIsLocal 
    console_command add_money romans_julii, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii
    and Treasury > 40000
    and Treasury < 60001
    and I_TurnNumber > 389
    and not FactionIsLocal 
    console_command add_money romans_julii, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii
    and Treasury > 0
    and Treasury < 20000
    and I_TurnNumber > 389
    and not FactionIsLocal 
    console_command add_money romans_julii, 20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii
    and Treasury < 1
    and I_TurnNumber > 389
    and not FactionIsLocal 
    console_command add_money romans_julii, 40000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Carthage - (272BC to 200BC) - 50K-80K
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury > 140000
    and I_TurnNumber < 289
    and not FactionIsLocal 
    console_command add_money egypt, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury > 110000
    and Treasury < 140001
    and I_TurnNumber < 289
    and not FactionIsLocal 
    console_command add_money egypt, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury > 80000
    and Treasury < 110001
    and I_TurnNumber < 289
    and not FactionIsLocal 
    console_command add_money egypt, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury > 20000
    and Treasury < 50001
    and I_TurnNumber < 289
    and not FactionIsLocal 
    console_command add_money egypt, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury < 20001
    and I_TurnNumber < 289
    and not FactionIsLocal 
    console_command add_money egypt, 60000
    end_monitor
    
    
    ;Carthage - (after 200BC) - 20K-40K
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury > 100000
    and I_TurnNumber > 290
    and not FactionIsLocal 
    console_command add_money egypt, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury > 80000
    and Treasury < 100001
    and I_TurnNumber > 290
    and not FactionIsLocal 
    console_command add_money egypt, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury > 60000
    and Treasury < 80001
    and I_TurnNumber > 290
    and not FactionIsLocal 
    console_command add_money egypt, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury > 40000
    and Treasury < 60001
    and I_TurnNumber > 290
    and not FactionIsLocal 
    console_command add_money egypt, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury > 0
    and Treasury < 20000
    and I_TurnNumber > 290
    and not FactionIsLocal 
    console_command add_money egypt, 20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury < 1
    and I_TurnNumber > 290
    and not FactionIsLocal 
    console_command add_money egypt, 40000
    end_monitor
    
    ;--------------------------------------------------
    ;Parthians - (272BC to 248BC) - 20K-40K
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury > 100000
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money parthia, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury > 80000
    and Treasury < 100001
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money parthia, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury > 60000
    and Treasury < 80001
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money parthia, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury > 40000
    and Treasury < 60001
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money parthia, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury > 0
    and Treasury < 20000
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money parthia, 20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury < 1
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money parthia, 40000
    end_monitor
    
    ;Parthians - (after 247BC) - 50K-80K
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury > 140000
    and I_TurnNumber > 100
    and not FactionIsLocal 
    console_command add_money parthia, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury > 110000
    and Treasury < 140001
    and I_TurnNumber > 100
    and not FactionIsLocal 
    console_command add_money parthia, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury > 80000
    and Treasury < 110001
    and I_TurnNumber > 100
    and not FactionIsLocal 
    console_command add_money parthia, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury > 20000
    and Treasury < 50001
    and I_TurnNumber > 100
    and not FactionIsLocal 
    console_command add_money parthia, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury < 20001
    and I_TurnNumber > 100
    and not FactionIsLocal 
    console_command add_money parthia, 60000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Pontus - (272BC to 248BC) - 20K-40K
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury > 100000
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money carthage, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury > 80000
    and Treasury < 100001
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money carthage, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury > 60000
    and Treasury < 80001
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money carthage, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury > 40000
    and Treasury < 60001
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money carthage, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury > 0
    and Treasury < 20000
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money carthage, 20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury < 1
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money carthage, 40000
    end_monitor
    
    
    ;Pontus - (247BC to 114BC) - 40K-70K
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury > 130000
    and I_TurnNumber > 100
    and I_TurnNumber < 633
    and not FactionIsLocal 
    console_command add_money carthage, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury > 100000
    and Treasury < 130001
    and I_TurnNumber > 100
    and I_TurnNumber < 633
    and not FactionIsLocal 
    console_command add_money carthage, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury > 70000
    and Treasury < 100001
    and I_TurnNumber > 100
    and I_TurnNumber < 633
    and not FactionIsLocal 
    console_command add_money carthage, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury > 10000
    and Treasury < 40001
    and I_TurnNumber > 100
    and I_TurnNumber < 633
    and not FactionIsLocal 
    console_command add_money carthage, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury < 10001
    and I_TurnNumber > 100
    and I_TurnNumber < 633
    and not FactionIsLocal 
    console_command add_money carthage, 60000
    end_monitor
    
    
    ;Pontus - (after 113BC) - 20K-40K
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury > 100000
    and I_TurnNumber > 632
    and not FactionIsLocal 
    console_command add_money carthage, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury > 80000
    and Treasury < 100001
    and I_TurnNumber > 632
    and not FactionIsLocal 
    console_command add_money carthage, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury > 60000
    and Treasury < 80001
    and I_TurnNumber > 632
    and not FactionIsLocal 
    console_command add_money carthage, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury > 40000
    and Treasury < 60001
    and I_TurnNumber > 632
    and not FactionIsLocal 
    console_command add_money carthage, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury > 0
    and Treasury < 20000
    and I_TurnNumber > 632
    and not FactionIsLocal 
    console_command add_money carthage, 20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury < 1
    and I_TurnNumber > 632
    and not FactionIsLocal 
    console_command add_money carthage, 40000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Aedui - gauls - 20K-40K
    
    monitor_event FactionTurnStart FactionType gauls
    and Treasury > 100000
    and not FactionIsLocal 
    console_command add_money gauls, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls
    and Treasury > 80000
    and Treasury < 100001
    and not FactionIsLocal 
    console_command add_money gauls, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls
    and Treasury > 60000
    and Treasury < 80001
    and not FactionIsLocal 
    console_command add_money gauls, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls
    and Treasury > 40000
    and Treasury < 60001
    and not FactionIsLocal 
    console_command add_money gauls, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls
    and Treasury > 0
    and Treasury < 20000
    and not FactionIsLocal 
    console_command add_money gauls, 20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls
    and Treasury < 1
    and not FactionIsLocal 
    console_command add_money gauls, 40000
    
    
    ;--------------------------------------------------
    ;Sweboz - (272BC to 122BC) - 20K-40K
    
    monitor_event FactionTurnStart FactionType germans
    and Treasury > 100000
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money germans, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and Treasury > 80000
    and Treasury < 100001
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money germans, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and Treasury > 60000
    and Treasury < 80001
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money germans, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and Treasury > 40000
    and Treasury < 60001
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money germans, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and Treasury > 0
    and Treasury < 20000
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money germans, 20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and Treasury < 1
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money germans, 40000
    end_monitor
    
    
    ;Sweboz - (after 121BC) - 50K-80K
    
    monitor_event FactionTurnStart FactionType germans
    and Treasury > 140000
    and I_TurnNumber > 601
    and not FactionIsLocal 
    console_command add_money germans, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and Treasury > 110000
    and Treasury < 140001
    and I_TurnNumber > 601
    and not FactionIsLocal 
    console_command add_money germans, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and Treasury > 80000
    and Treasury < 110001
    and I_TurnNumber > 601
    and not FactionIsLocal 
    console_command add_money germans, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and Treasury > 20000
    and Treasury < 50001
    and I_TurnNumber > 601
    and not FactionIsLocal 
    console_command add_money germans, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and Treasury < 20001
    and I_TurnNumber > 601
    and not FactionIsLocal 
    console_command add_money germans, 60000
    end_monitor
    
    ;--------------------------------------------------
    ;Casse - 20K-40K
    
    monitor_event FactionTurnStart FactionType britons
    and Treasury > 100000
    and not FactionIsLocal 
    console_command add_money britons, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and Treasury > 80000
    and Treasury < 100001
    and not FactionIsLocal 
    console_command add_money britons, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and Treasury > 60000
    and Treasury < 80001
    and not FactionIsLocal 
    console_command add_money britons, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and Treasury > 40000
    and Treasury < 60001
    and not FactionIsLocal 
    console_command add_money britons, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and Treasury > 0
    and Treasury < 20000
    and not FactionIsLocal 
    console_command add_money britons, 20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and Treasury < 1
    and not FactionIsLocal 
    console_command add_money britons, 40000
    
    
    ;--------------------------------------------------
    ;Hayasdan - (272BC to 248BC) - 20K-40K
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and Treasury > 100000
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money romans_scipii, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and Treasury > 80000
    and Treasury < 100001
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money romans_scipii, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and Treasury > 60000
    and Treasury < 80001
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money romans_scipii, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and Treasury > 40000
    and Treasury < 60001
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money romans_scipii, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and Treasury > 0
    and Treasury < 20000
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money romans_scipii, 20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and Treasury < 1
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money romans_scipii, 40000
    end_monitor
    
    
    ;Hayasdan - (after 247BC) - 40K-70K
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and Treasury > 130000
    and I_TurnNumber > 100
    and not FactionIsLocal 
    console_command add_money romans_scipii, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and Treasury > 100000
    and Treasury < 130001
    and I_TurnNumber > 100
    and not FactionIsLocal 
    console_command add_money romans_scipii, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and Treasury > 70000
    and Treasury < 100001
    and I_TurnNumber > 100
    and not FactionIsLocal 
    console_command add_money romans_scipii, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and Treasury > 10000
    and Treasury < 40001
    and I_TurnNumber > 100
    and not FactionIsLocal 
    console_command add_money romans_scipii, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and Treasury < 10001
    and I_TurnNumber > 100
    and not FactionIsLocal 
    console_command add_money romans_scipii, 60000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Getai - 20K-40K
    
    monitor_event FactionTurnStart FactionType dacia
    and Treasury > 100000
    and not FactionIsLocal 
    console_command add_money dacia, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and Treasury > 80000
    and Treasury < 100001
    and not FactionIsLocal 
    console_command add_money dacia, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and Treasury > 60000
    and Treasury < 80001
    and not FactionIsLocal 
    console_command add_money dacia, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and Treasury > 40000
    and Treasury < 60001
    and not FactionIsLocal 
    console_command add_money dacia, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and Treasury > 0
    and Treasury < 20000
    and not FactionIsLocal 
    console_command add_money dacia, 20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and Treasury < 1
    and not FactionIsLocal 
    console_command add_money dacia, 40000
    
    
    ;--------------------------------------------------
    ;Koinon Hellenon - (272BC to 262BC) - 40K-70K
    
    monitor_event FactionTurnStart FactionType greek_cities
    and Treasury > 130000
    and I_TurnNumber < 41
    and not FactionIsLocal 
    console_command add_money greek_cities, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and Treasury > 100000
    and Treasury < 130001
    and I_TurnNumber < 41
    and not FactionIsLocal 
    console_command add_money greek_cities, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and Treasury > 70000
    and Treasury < 100001
    and I_TurnNumber < 41
    and not FactionIsLocal 
    console_command add_money greek_cities, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and Treasury > 10000
    and Treasury < 40001
    and I_TurnNumber < 41
    and not FactionIsLocal 
    console_command add_money greek_cities, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and Treasury < 10001
    and I_TurnNumber < 41
    and not FactionIsLocal 
    console_command add_money greek_cities, 60000
    end_monitor
    
    
    ;Koinon Hellenon - (after 262BC) - 20K-40K
    
    monitor_event FactionTurnStart FactionType greek_cities
    and Treasury > 100000
    and I_TurnNumber > 40
    and not FactionIsLocal 
    console_command add_money greek_cities, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and Treasury > 80000
    and Treasury < 100001
    and I_TurnNumber > 40
    and not FactionIsLocal 
    console_command add_money greek_cities, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and Treasury > 60000
    and Treasury < 80001
    and I_TurnNumber > 40
    and not FactionIsLocal 
    console_command add_money greek_cities, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and Treasury > 40000
    and Treasury < 60001
    and I_TurnNumber > 40
    and not FactionIsLocal 
    console_command add_money greek_cities, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and Treasury > 0
    and Treasury < 20000
    and I_TurnNumber > 40
    and not FactionIsLocal 
    console_command add_money greek_cities, 20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and Treasury < 1
    and I_TurnNumber > 40
    and not FactionIsLocal 
    console_command add_money greek_cities, 40000
    
    
    ;--------------------------------------------------
    ;Baktria - 20K-40K
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and Treasury > 100000
    and not FactionIsLocal 
    console_command add_money romans_brutii, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and Treasury > 80000
    and Treasury < 100001
    and not FactionIsLocal 
    console_command add_money romans_brutii, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and Treasury > 60000
    and Treasury < 80001
    and not FactionIsLocal 
    console_command add_money romans_brutii, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and Treasury > 40000
    and Treasury < 60001
    and not FactionIsLocal 
    console_command add_money romans_brutii, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and Treasury > 0
    and Treasury < 20000
    and not FactionIsLocal 
    console_command add_money romans_brutii, 20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and Treasury < 1
    and not FactionIsLocal 
    console_command add_money romans_brutii, 40000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Sauromatae - 20K-40K
    
    monitor_event FactionTurnStart FactionType armenia
    and Treasury > 100000
    and not FactionIsLocal 
    console_command add_money armenia, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and Treasury > 80000
    and Treasury < 100001
    and not FactionIsLocal 
    console_command add_money armenia, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and Treasury > 60000
    and Treasury < 80001
    and not FactionIsLocal 
    console_command add_money armenia, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and Treasury > 40000
    and Treasury < 60001
    and not FactionIsLocal 
    console_command add_money armenia, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and Treasury > 0
    and Treasury < 20000
    and not FactionIsLocal 
    console_command add_money armenia, 20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and Treasury < 1
    and not FactionIsLocal 
    console_command add_money armenia, 40000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Lusotannan - 20K-40K
    
    monitor_event FactionTurnStart FactionType spain
    and Treasury > 100000
    and not FactionIsLocal 
    console_command add_money romans_brutii, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain
    and Treasury > 80000
    and Treasury < 100001
    and not FactionIsLocal 
    console_command add_money spain, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain
    and Treasury > 60000
    and Treasury < 80001
    and not FactionIsLocal 
    console_command add_money spain, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain
    and Treasury > 40000
    and Treasury < 60001
    and not FactionIsLocal 
    console_command add_money spain, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain
    and Treasury > 0
    and Treasury < 20000
    and not FactionIsLocal 
    console_command add_money spain, 20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain
    and Treasury < 1
    and not FactionIsLocal 
    console_command add_money spain, 40000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Epeiros - thrace (272BC to 168BC) - 30K-60K
    
    monitor_event FactionTurnStart FactionType thrace
    and Treasury > 90000
    and I_TurnNumber < 417
    and not FactionIsLocal 
    console_command add_money thrace, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and Treasury > 60000
    and Treasury < 90001
    and I_TurnNumber < 417
    and not FactionIsLocal 
    console_command add_money thrace, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and Treasury < 30001
    and I_TurnNumber < 417
    and not FactionIsLocal 
    console_command add_money thrace, 30000
    end_monitor
    
    
    ;Epeiros - thrace (after 167BC) - 10K-30K
    
    monitor_event FactionTurnStart FactionType thrace
    and Treasury > 70000
    and I_TurnNumber > 416
    and not FactionIsLocal 
    console_command add_money thrace, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and Treasury > 50000
    and Treasury < 70001
    and I_TurnNumber > 416
    and not FactionIsLocal 
    console_command add_money thrace, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and Treasury > 30000
    and Treasury < 50001
    and I_TurnNumber > 416
    and not FactionIsLocal 
    console_command add_money thrace, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and Treasury < 10001
    and I_TurnNumber > 416
    and not FactionIsLocal 
    console_command add_money thrace, 20000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Eleutheroi - slave
    
    monitor_event SettlementTurnStart FactionType slave
    and not FactionIsLocal
    
    console_command add_money slave, 2850
    
    end_monitor
    Last edited by pilatus; 06-12-2007 at 15:37.

  12. #252
    EBII PM Member JMRC's Avatar
    Join Date
    Nov 2006
    Location
    Lisboa, Portugal
    Posts
    7,930

    Default Re: Fixing the AI money script (preliminary tests)

    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



    "Death Smiles at Us All,all a Man Can Do Is Smile Back."
    Maximvs Decimvs Meridivs, Commander of the Armies of the North, General of the Felix Legions, Iberian Gladiator.

  13. #253
    EBII PM Member JMRC's Avatar
    Join Date
    Nov 2006
    Location
    Lisboa, Portugal
    Posts
    7,930

    Default Re: Fixing the AI money script (preliminary tests)

    Quote Originally Posted by Redmeth
    I made this test using my money script, mlp0701's mercenary modification and JMRC's victory conditions. This is the setup I'm using and wanted to testing out using an autoplay game controlling the Casse (I gave them ~30k every 10 years because they did not receive the bonuses) Everybody expanded very well especially the Aedui, Getai(!!) and Carthage. Sweboz, Pahlava and Sauromatae were very static which usually is not the case except for the Sauro. Using the merc mod I noticed very few stacks and while it's a good thing it's a bit worrying because I think for the human player it would be easy to overrun the AI.
    So here are the screenies, you can judge for yourselves.
    (...)
    I could not get past a repeating CTD in 160 so that's as far as it gets.
    Redmeth, in my tests, both Sweboz and Sauromatae are very active, while Pahlava only goes active after getting into war with Seleukeia. On the other hand, the Getai are not so active.

    Anyway, one of the reasons why sometimes a faction's progress stalls is because it lost several generals in a relatively short timespan. I've seen this happen with the Romans in one of my tests. They kept stubbornly attacking heavily defended cities with 3 or 4 units (sometimes not even fully replenished units) and eventually they lost all their generals except 2. Not only they stalled, but the Epirots seized the chance to conquer the whole of Italy and the Roman Empire was no more...

    I will look carefully to your test results and try to make adaptations to the script if necessary.

    Also, the consistent CTD that you mention, may be connected to the rebellious city bug. If so, it is easy to discover and correct, and you can keep on the campaign. For the next 2 days I won't have access to my computer, but if you wish to make available your savegame, I can look at it later and try my best to recover it for you.



    "Death Smiles at Us All,all a Man Can Do Is Smile Back."
    Maximvs Decimvs Meridivs, Commander of the Armies of the North, General of the Felix Legions, Iberian Gladiator.

  14. #254

    Default Re: Fixing the AI money script (preliminary tests)

    thank's to JMRC
    here is an new scipt which seems pretty stable and good in my first impressions

    Code:
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;Section 4: Money Assistance
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    
    ;--------------------------------------------------
    ;Carthaginian Navy Bonus
    
    monitor_event CharacterTurnStart FactionType egypt
    and AgentType = admiral
    and not FactionIsLocal
    console_command add_money egypt, 600
    end_monitor
    
    
    ;--------------------------------------------------
    ;Romani - (272BC to 242BC) 0-20K
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury > 20001
    and I_TurnNumber < 120
    and not FactionIsLocal
    console_command add_money seleucid, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury > 10001
    and Treasury < 20000
    and I_TurnNumber < 120
    and not FactionIsLocal
    console_command add_money seleucid, -8000
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury < 10000
    and I_TurnNumber < 120
    and not FactionIsLocal
    console_command add_money seleucid, 15000
    end_monitor
    
    ;Romani - (241BC to 122BC) - 20K-40K
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury > 100000
    and I_TurnNumber > 119
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money seleucid, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury > 80000
    and Treasury < 100001
    and I_TurnNumber > 119
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money seleucid, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury > 60000
    and Treasury < 80001
    and I_TurnNumber > 119
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money seleucid, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury > 40000
    and Treasury < 60001
    and I_TurnNumber > 119
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money seleucid, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury < 20001
    and I_TurnNumber > 119
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money seleucid, 20000
    end_monitor
    
    ;Romani - (after 121BC) - 50K-80K
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury > 140000
    and I_TurnNumber > 601
    and not FactionIsLocal 
    console_command add_money seleucid, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury > 110000
    and Treasury < 140001
    and I_TurnNumber > 601
    and not FactionIsLocal 
    console_command add_money seleucid, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury > 80000
    and Treasury < 110001
    and I_TurnNumber > 601
    and not FactionIsLocal 
    console_command add_money seleucid, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury > 20000
    and Treasury < 50001
    and I_TurnNumber > 601
    and not FactionIsLocal 
    console_command add_money seleucid, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and Treasury < 20001
    and I_TurnNumber > 601
    and not FactionIsLocal 
    console_command add_money seleucid, 60000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Saka - 20K-40k
    
    monitor_event FactionTurnStart FactionType pontus
    and Treasury > 100000
    and not FactionIsLocal 
    console_command add_money pontus, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and Treasury > 80000
    and Treasury < 100001
    and not FactionIsLocal 
    console_command add_money pontus, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and Treasury > 60000
    and Treasury < 80001
    and not FactionIsLocal 
    console_command add_money pontus, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and Treasury > 40000
    and Treasury < 60001
    and not FactionIsLocal 
    console_command add_money pontus, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and Treasury < 20001
    and not FactionIsLocal 
    console_command add_money pontus, 20000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Arverni - 30K-50K
    
    monitor_event FactionTurnStart FactionType scythia
    and Treasury > 110000
    and not FactionIsLocal 
    console_command add_money scythia, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia
    and Treasury > 80000
    and Treasury < 110001
    and not FactionIsLocal 
    console_command add_money scythia, -50000
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia
    and Treasury > 60000
    and Treasury < 80001
    and not FactionIsLocal 
    console_command add_money scythia, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia
    and Treasury > 50000
    and Treasury < 60001
    and not FactionIsLocal 
    console_command add_money scythia, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia
    and Treasury < 30001
    and not FactionIsLocal 
    console_command add_money scythia, 20000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Saba - (272BC to 175BC) - 20K-40K
    
    monitor_event FactionTurnStart FactionType saba
    and Treasury > 100000
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money saba, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and Treasury > 80000
    and Treasury < 100001
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money saba, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and Treasury > 60000
    and Treasury < 80001
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money saba, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and Treasury > 40000
    and Treasury < 60001
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money saba, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and Treasury < 20001
    and I_TurnNumber < 389
    and not FactionIsLocal 
    console_command add_money saba, 20000
    end_monitor
    
    ;Saba - (after 174BC) - 40K-70K
    
    monitor_event FactionTurnStart FactionType saba
    and Treasury > 130000
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money saba, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and Treasury > 100000
    and Treasury < 130001
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money saba, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and Treasury > 70000
    and Treasury < 100001
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money saba, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and Treasury > 10000
    and Treasury < 40001
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money saba, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and Treasury < 10001
    and I_TurnNumber > 388
    and not FactionIsLocal 
    console_command add_money saba, 60000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Makedon  (272BC to 176BC) - 50K-80K
    
    monitor_event FactionTurnStart FactionType macedon
    and Treasury > 140000
    and I_TurnNumber < 388
    and not FactionIsLocal 
    console_command add_money macedon, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and Treasury > 110000
    and Treasury < 140001
    and I_TurnNumber < 388
    and not FactionIsLocal 
    console_command add_money macedon, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and Treasury > 80000
    and Treasury < 110001
    and I_TurnNumber < 388
    and not FactionIsLocal 
    console_command add_money macedon, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and Treasury > 20000
    and Treasury < 50001
    and I_TurnNumber < 388
    and not FactionIsLocal 
    console_command add_money macedon, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and Treasury < 20001
    and I_TurnNumber < 388
    and not FactionIsLocal 
    console_command add_money macedon, 60000
    end_monitor
    
    ;Makedon (after 175BC) - 30K-50K
    
    monitor_event FactionTurnStart FactionType macedon
    and Treasury > 110000
    and I_TurnNumber > 389
    and not FactionIsLocal 
    console_command add_money macedon, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and Treasury > 80000
    and Treasury < 110001
    and I_TurnNumber > 389
    and not FactionIsLocal 
    console_command add_money macedon, -50000
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and Treasury > 60000
    and Treasury < 80001
    and I_TurnNumber > 389
    and not FactionIsLocal 
    console_command add_money macedon, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and Treasury > 50000
    and Treasury < 60001
    and I_TurnNumber > 389
    and not FactionIsLocal 
    console_command add_money macedon, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and Treasury < 30001
    and I_TurnNumber > 389
    and not FactionIsLocal 
    console_command add_money macedon, 20000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Ptolemaioi - (272BC to 176BC) - 50K-80K
    
    monitor_event FactionTurnStart FactionType numidia
    and Treasury > 140000
    and I_TurnNumber < 388
    and not FactionIsLocal 
    console_command add_money numidia, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and Treasury > 110000
    and Treasury < 140001
    and I_TurnNumber < 388
    and not FactionIsLocal 
    console_command add_money numidia, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and Treasury > 80000
    and Treasury < 110001
    and I_TurnNumber < 388
    and not FactionIsLocal 
    console_command add_money numidia, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and Treasury > 20000
    and Treasury < 50001
    and I_TurnNumber < 388
    and not FactionIsLocal 
    console_command add_money numidia, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and Treasury < 20001
    and I_TurnNumber < 388
    and not FactionIsLocal 
    console_command add_money numidia, 60000
    end_monitor
    
    ;Ptolemaioi - (after 175BC) - 40K-70K
    
    monitor_event FactionTurnStart FactionType numidia
    and Treasury > 130000
    and I_TurnNumber > 389
    and not FactionIsLocal 
    console_command add_money numidia, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and Treasury > 100000
    and Treasury < 130001
    and I_TurnNumber > 389
    and not FactionIsLocal 
    console_command add_money numidia, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and Treasury > 70000
    and Treasury < 100001
    and I_TurnNumber > 389
    and not FactionIsLocal 
    console_command add_money numidia, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and Treasury > 10000
    and Treasury < 40001
    and I_TurnNumber > 389
    and not FactionIsLocal 
    console_command add_money numidia, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and Treasury < 10001
    and I_TurnNumber > 389
    and not FactionIsLocal 
    console_command add_money numidia, 60000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Arche Seleukeia - (272BC to 176BC) - 50K-80K
    
    monitor_event FactionTurnStart FactionType romans_julii
    and Treasury > 140000
    and I_TurnNumber < 388
    and not FactionIsLocal 
    console_command add_money romans_julii, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii
    and Treasury > 110000
    and Treasury < 140001
    and I_TurnNumber < 388
    and not FactionIsLocal 
    console_command add_money romans_julii, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii
    and Treasury > 80000
    and Treasury < 110001
    and I_TurnNumber < 388
    and not FactionIsLocal 
    console_command add_money romans_julii, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii
    and Treasury > 20000
    and Treasury < 50001
    and I_TurnNumber < 388
    and not FactionIsLocal 
    console_command add_money romans_julii, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii
    and Treasury < 20001
    and I_TurnNumber < 388
    and not FactionIsLocal 
    console_command add_money romans_julii, 60000
    end_monitor
    
    ;Arche Seleukeia - (after 175BC) - 30K-50K
    
    monitor_event FactionTurnStart FactionType romans_julii
    and Treasury > 110000
    and I_TurnNumber > 389
    and not FactionIsLocal 
    console_command add_money romans_julii, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii
    and Treasury > 80000
    and Treasury < 110001
    and I_TurnNumber > 389
    and not FactionIsLocal 
    console_command add_money romans_julii, -50000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii
    and Treasury > 60000
    and Treasury < 80001
    and I_TurnNumber > 389
    and not FactionIsLocal 
    console_command add_money romans_julii, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii
    and Treasury > 50000
    and Treasury < 60001
    and I_TurnNumber > 389
    and not FactionIsLocal 
    console_command add_money romans_julii, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii
    and Treasury < 30001
    and I_TurnNumber > 389
    and not FactionIsLocal 
    console_command add_money romans_julii, 20000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Carthage - (272BC to 200BC) - 50K-80K
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury > 140000
    and I_TurnNumber < 289
    and not FactionIsLocal 
    console_command add_money egypt, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury > 110000
    and Treasury < 140001
    and I_TurnNumber < 289
    and not FactionIsLocal 
    console_command add_money egypt, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury > 80000
    and Treasury < 110001
    and I_TurnNumber < 289
    and not FactionIsLocal 
    console_command add_money egypt, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury > 20000
    and Treasury < 50001
    and I_TurnNumber < 289
    and not FactionIsLocal 
    console_command add_money egypt, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury < 20001
    and I_TurnNumber < 289
    and not FactionIsLocal 
    console_command add_money egypt, 60000
    end_monitor
    
    ;Carthage - (after 200BC) - 20K-40K
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury > 100000
    and I_TurnNumber > 290
    and not FactionIsLocal 
    console_command add_money egypt, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury > 80000
    and Treasury < 100001
    and I_TurnNumber > 290
    and not FactionIsLocal 
    console_command add_money egypt, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury > 60000
    and Treasury < 80001
    and I_TurnNumber > 290
    and not FactionIsLocal 
    console_command add_money egypt, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury > 40000
    and Treasury < 60001
    and I_TurnNumber > 290
    and not FactionIsLocal 
    console_command add_money egypt, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and Treasury < 20001
    and I_TurnNumber > 290
    and not FactionIsLocal 
    console_command add_money egypt, 20000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Parthians - (272BC to 248BC) - 20K-40K
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury > 100000
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money parthia, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury > 80000
    and Treasury < 100001
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money parthia, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury > 60000
    and Treasury < 80001
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money parthia, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury > 40000
    and Treasury < 60001
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money parthia, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury < 20001
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money parthia, 20000
    end_monitor
    
    ;Parthians - (after 247BC) - 50K-80K
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury > 140000
    and I_TurnNumber > 100
    and not FactionIsLocal 
    console_command add_money parthia, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury > 110000
    and Treasury < 140001
    and I_TurnNumber > 100
    and not FactionIsLocal 
    console_command add_money parthia, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury > 80000
    and Treasury < 110001
    and I_TurnNumber > 100
    and not FactionIsLocal 
    console_command add_money parthia, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury > 20000
    and Treasury < 50001
    and I_TurnNumber > 100
    and not FactionIsLocal 
    console_command add_money parthia, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and Treasury < 20001
    and I_TurnNumber > 100
    and not FactionIsLocal 
    console_command add_money parthia, 60000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Pontus - (272BC to 248BC) - 20K-40K
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury > 100000
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money carthage, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury > 80000
    and Treasury < 100001
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money carthage, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury > 60000
    and Treasury < 80001
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money carthage, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury > 40000
    and Treasury < 60001
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money carthage, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury < 20001
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money carthage, 20000
    end_monitor
    
    ;Pontus - (247BC to 114BC) - 40K-70K
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury > 130000
    and I_TurnNumber > 100
    and I_TurnNumber < 633
    and not FactionIsLocal 
    console_command add_money carthage, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury > 100000
    and Treasury < 130001
    and I_TurnNumber > 100
    and I_TurnNumber < 633
    and not FactionIsLocal 
    console_command add_money carthage, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury > 70000
    and Treasury < 100001
    and I_TurnNumber > 100
    and I_TurnNumber < 633
    and not FactionIsLocal 
    console_command add_money carthage, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury > 10000
    and Treasury < 40001
    and I_TurnNumber > 100
    and I_TurnNumber < 633
    and not FactionIsLocal 
    console_command add_money carthage, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury < 10001
    and I_TurnNumber > 100
    and I_TurnNumber < 633
    and not FactionIsLocal 
    console_command add_money carthage, 60000
    end_monitor
    
    ;Pontus - (after 113BC) - 30K-50K
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury > 110000
    and I_TurnNumber > 632
    and not FactionIsLocal 
    console_command add_money carthage, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury > 80000
    and Treasury < 110001
    and I_TurnNumber > 632
    and not FactionIsLocal 
    console_command add_money carthage, -50000
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury > 60000
    and Treasury < 80001
    and I_TurnNumber > 632
    and not FactionIsLocal 
    console_command add_money carthage, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury > 50000
    and Treasury < 60001
    and I_TurnNumber > 632
    and not FactionIsLocal 
    console_command add_money carthage, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and Treasury < 30001
    and I_TurnNumber > 632
    and not FactionIsLocal 
    console_command add_money carthage, 20000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Aedui - gauls - 30K-50K
    
    monitor_event FactionTurnStart FactionType gauls
    and Treasury > 110000
    and not FactionIsLocal 
    console_command add_money gauls, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls
    and Treasury > 80000
    and Treasury < 110001
    and not FactionIsLocal 
    console_command add_money gauls, -50000
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls
    and Treasury > 60000
    and Treasury < 80001
    and not FactionIsLocal 
    console_command add_money gauls, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls
    and Treasury > 50000
    and Treasury < 60001
    and not FactionIsLocal 
    console_command add_money gauls, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls
    and Treasury < 30001
    and not FactionIsLocal 
    console_command add_money gauls, 20000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Sweboz - (272BC to 122BC) - 20K-40K
    
    monitor_event FactionTurnStart FactionType germans
    and Treasury > 100000
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money germans, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and Treasury > 80000
    and Treasury < 100001
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money germans, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and Treasury > 60000
    and Treasury < 80001
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money germans, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and Treasury > 40000
    and Treasury < 60001
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money germans, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and Treasury < 20001
    and I_TurnNumber < 600
    and not FactionIsLocal 
    console_command add_money germans, 20000
    end_monitor
    
    ;Sweboz - (after 121BC) - 50K-80K
    
    monitor_event FactionTurnStart FactionType germans
    and Treasury > 140000
    and I_TurnNumber > 601
    and not FactionIsLocal 
    console_command add_money germans, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and Treasury > 110000
    and Treasury < 140001
    and I_TurnNumber > 601
    and not FactionIsLocal 
    console_command add_money germans, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and Treasury > 80000
    and Treasury < 110001
    and I_TurnNumber > 601
    and not FactionIsLocal 
    console_command add_money germans, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and Treasury > 20000
    and Treasury < 50001
    and I_TurnNumber > 601
    and not FactionIsLocal 
    console_command add_money germans, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and Treasury < 20001
    and I_TurnNumber > 601
    and not FactionIsLocal 
    console_command add_money germans, 60000
    end_monitor
    
    ;--------------------------------------------------
    ;Casse - 20K-40K
    
    monitor_event FactionTurnStart FactionType britons
    and Treasury > 100000
    and not FactionIsLocal 
    console_command add_money britons, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and Treasury > 80000
    and Treasury < 100001
    and not FactionIsLocal 
    console_command add_money britons, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and Treasury > 60000
    and Treasury < 80001
    and not FactionIsLocal 
    console_command add_money britons, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and Treasury > 40000
    and Treasury < 60001
    and not FactionIsLocal 
    console_command add_money britons, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and Treasury < 20001
    and not FactionIsLocal 
    console_command add_money britons, 20000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Hayasdan - (272BC to 248BC) - 20K-40K
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and Treasury > 100000
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money romans_scipii, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and Treasury > 80000
    and Treasury < 100001
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money romans_scipii, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and Treasury > 60000
    and Treasury < 80001
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money romans_scipii, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and Treasury > 40000
    and Treasury < 60001
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money romans_scipii, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and Treasury < 20001
    and I_TurnNumber < 101
    and not FactionIsLocal 
    console_command add_money romans_scipii, 20000
    end_monitor
    
    ;Hayasdan - (after 247BC) - 40K-70K
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and Treasury > 130000
    and I_TurnNumber > 100
    and not FactionIsLocal 
    console_command add_money romans_scipii, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and Treasury > 100000
    and Treasury < 130001
    and I_TurnNumber > 100
    and not FactionIsLocal 
    console_command add_money romans_scipii, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and Treasury > 70000
    and Treasury < 100001
    and I_TurnNumber > 100
    and not FactionIsLocal 
    console_command add_money romans_scipii, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and Treasury > 10000
    and Treasury < 40001
    and I_TurnNumber > 100
    and not FactionIsLocal 
    console_command add_money romans_scipii, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and Treasury < 10001
    and I_TurnNumber > 100
    and not FactionIsLocal 
    console_command add_money romans_scipii, 60000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Getai - 30K-50K
    
    monitor_event FactionTurnStart FactionType dacia
    and Treasury > 110000
    and not FactionIsLocal 
    console_command add_money dacia, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and Treasury > 80000
    and Treasury < 110001
    and not FactionIsLocal 
    console_command add_money dacia, -50000
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and Treasury > 60000
    and Treasury < 80001
    and not FactionIsLocal 
    console_command add_money dacia, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and Treasury > 50000
    and Treasury < 60001
    and not FactionIsLocal 
    console_command add_money dacia, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and Treasury < 30001
    and not FactionIsLocal 
    console_command add_money dacia, 20000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Koinon Hellenon - (272BC to 262BC) - 40K-70K
    
    monitor_event FactionTurnStart FactionType greek_cities
    and Treasury > 130000
    and I_TurnNumber < 41
    and not FactionIsLocal 
    console_command add_money greek_cities, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and Treasury > 100000
    and Treasury < 130001
    and I_TurnNumber < 41
    and not FactionIsLocal 
    console_command add_money greek_cities, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and Treasury > 70000
    and Treasury < 100001
    and I_TurnNumber < 41
    and not FactionIsLocal 
    console_command add_money greek_cities, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and Treasury > 10000
    and Treasury < 40001
    and I_TurnNumber < 41
    and not FactionIsLocal 
    console_command add_money greek_cities, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and Treasury < 10001
    and I_TurnNumber < 41
    and not FactionIsLocal 
    console_command add_money greek_cities, 60000
    end_monitor
    
    ;Koinon Hellenon - (after 262BC) - 20K-40K
    
    monitor_event FactionTurnStart FactionType greek_cities
    and Treasury > 100000
    and I_TurnNumber > 40
    and not FactionIsLocal 
    console_command add_money greek_cities, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and Treasury > 80000
    and Treasury < 100001
    and I_TurnNumber > 40
    and not FactionIsLocal 
    console_command add_money greek_cities, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and Treasury > 60000
    and Treasury < 80001
    and I_TurnNumber > 40
    and not FactionIsLocal 
    console_command add_money greek_cities, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and Treasury > 40000
    and Treasury < 60001
    and I_TurnNumber > 40
    and not FactionIsLocal 
    console_command add_money greek_cities, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and Treasury < 20001
    and I_TurnNumber > 40
    and not FactionIsLocal 
    console_command add_money greek_cities, 20000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Baktria - 30K-50K
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and Treasury > 110000
    and not FactionIsLocal 
    console_command add_money romans_brutii, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and Treasury > 80000
    and Treasury < 110001
    and not FactionIsLocal 
    console_command add_money romans_brutii, -50000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and Treasury > 60000
    and Treasury < 80001
    and not FactionIsLocal 
    console_command add_money romans_brutii, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and Treasury > 50000
    and Treasury < 60001
    and not FactionIsLocal 
    console_command add_money romans_brutii, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and Treasury < 30001
    and not FactionIsLocal 
    console_command add_money romans_brutii, 20000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Sauromatae - 20K-40K
    
    monitor_event FactionTurnStart FactionType armenia
    and Treasury > 100000
    and not FactionIsLocal 
    console_command add_money armenia, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and Treasury > 80000
    and Treasury < 100001
    and not FactionIsLocal 
    console_command add_money armenia, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and Treasury > 60000
    and Treasury < 80001
    and not FactionIsLocal 
    console_command add_money armenia, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and Treasury > 40000
    and Treasury < 60001
    and not FactionIsLocal 
    console_command add_money armenia, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and Treasury < 20001
    and not FactionIsLocal 
    console_command add_money armenia, 20000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Lusotannan - 20K-40K
    
    monitor_event FactionTurnStart FactionType spain
    and Treasury > 100000
    and not FactionIsLocal 
    console_command add_money spain, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain
    and Treasury > 80000
    and Treasury < 100001
    and not FactionIsLocal 
    console_command add_money spain, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain
    and Treasury > 60000
    and Treasury < 80001
    and not FactionIsLocal 
    console_command add_money spain, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain
    and Treasury > 40000
    and Treasury < 60001
    and not FactionIsLocal 
    console_command add_money spain, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain
    and Treasury < 20001
    and not FactionIsLocal 
    console_command add_money spain, 20000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Epeiros - (272BC to 262BC) - 40K-70K
    
    monitor_event FactionTurnStart FactionType thrace
    and Treasury > 130000
    and I_TurnNumber < 41
    and not FactionIsLocal 
    console_command add_money thrace, -90000
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and Treasury > 100000
    and Treasury < 130001
    and I_TurnNumber < 41
    and not FactionIsLocal 
    console_command add_money thrace, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and Treasury > 70000
    and Treasury < 100001
    and I_TurnNumber < 41
    and not FactionIsLocal 
    console_command add_money thrace, -30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and Treasury > 10000
    and Treasury < 40001
    and I_TurnNumber < 41
    and not FactionIsLocal 
    console_command add_money thrace, 30000
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and Treasury < 10001
    and I_TurnNumber < 41
    and not FactionIsLocal 
    console_command add_money thrace, 60000
    end_monitor
    
    ;Epeiros - (after 262BC) - 20K-40K
    
    monitor_event FactionTurnStart FactionType thrace
    and Treasury > 100000
    and I_TurnNumber > 40
    and not FactionIsLocal 
    console_command add_money thrace, -80000
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and Treasury > 80000
    and Treasury < 100001
    and I_TurnNumber > 40
    and not FactionIsLocal 
    console_command add_money thrace, -60000
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and Treasury > 60000
    and Treasury < 80001
    and I_TurnNumber > 40
    and not FactionIsLocal 
    console_command add_money thrace, -40000
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and Treasury > 40000
    and Treasury < 60001
    and I_TurnNumber > 40
    and not FactionIsLocal 
    console_command add_money thrace, -20000
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and Treasury < 20001
    and I_TurnNumber > 40
    and not FactionIsLocal 
    console_command add_money thrace, 20000
    end_monitor
    
    
    ;--------------------------------------------------
    ;Eleutheroi - slave
    
    monitor_event SettlementTurnStart FactionType slave
    and not FactionIsLocal
    
    console_command add_money slave, 2850
    
    end_monitor

  15. #255

    Default Re: Fixing the AI money script (preliminary tests)

    Hey. Which money script allows the AI to have the most stacks, as with the money script I'm using I don't think that the enemy have enough stacks. I have Marian cohorts so maybe thats why I find it easier but I would rather face worse odds thanks. It has however kept all factions alive for longer then in my previous campaigns and for that i thank () whoever wrote the script as I have forgotten which script I'm using
    Cheers

  16. #256

    Default Re: Fixing the AI money script (preliminary tests)

    has there been a definitive script yet? which of these has given the best results?

  17. #257
    Closet Celtophile Member Redmeth's Avatar
    Join Date
    Mar 2007
    Location
    Bucharest, Romania
    Posts
    3,740

    Default Re: Fixing the AI money script (preliminary tests)

    It's hard to give a label of "best results" you can read about each money script on the first page of this thread.
    The script I posted here is IMO obsolete as there's a new thread with a new money script that works best in conjunction with a new mercenary file.
    You can read more here:
    https://forums.totalwar.org/vb/showthread.php?t=87649

  18. #258

    Default Re: Fixing the AI money script (preliminary tests)

    Any updates on this *bump*

  19. #259
    EB annoying hornet Member bovi's Avatar
    Join Date
    Jan 2007
    Location
    Norway
    Posts
    11,792

    Default Re: Fixing the AI money script (preliminary tests)


    Having problems getting EB2 to run? Try these solutions.
    ================
    I do NOT answer PM requests for help with EB. Ask in a new help thread in the tech help forum.
    ================
    I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image. - Stephen Hawking

  20. #260
    Wise and Partially Handsome Member Jarardo's Avatar
    Join Date
    Jan 2006
    Location
    Midlands, US
    Posts
    155

    Default Re: Fixing the AI money script (preliminary tests)

    Oops nevermind!
    Last edited by Jarardo; 10-13-2007 at 04:09.
    I know not with what weapons World War III will be fought, but World War IV will be fought with sticks and stones. -Albert Einstein


    www.EuropaBarbarorum.com

Page 9 of 9 FirstFirst ... 56789

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO