Results 1 to 23 of 23

Thread: Suggestions for further releases

  1. #1

    Talking Suggestions for further releases

    I play EB for quite a while now, although very occasionally because of lack of time, and although this mod is awesome in most aspects (and far better than the original game), it’s very bad concerning this issue discussed here.

    I see (saw?) EB as a realism mod, and I think most people will agree here. But the question is where to draw a line between extreme realism and enjoyable play. And currently, imo, the line is drawn much too far to one extreme (= enjoyable play) that is for me sometimes becoming rather frustrating.

    So the main problem is money…

    I think the ‘Section 4a: Difficult Start Help’ in the EB script should be removed, or at least adjusted, and ‘Section 4b: City Income Bonus’ should be definitely removed. Being attacked by insane armies has nothing to do with realism nor historical accuracy. And succeeding in making an empire your protectorate, and by that in the first turn receiving insane amounts of money, can only disrupt your game.

    So… what about players who complain the game is too easy. Yes, the AI is a bad strategos. So, the solution is (and hopefully was) to give it insane amounts of money (2k/city), so it can pose a challenge at great expense of realism (for example, killing ratios of 1/20 and above). Another solution seems to be that the EB-folks suggest to play the campaign on very hard. Those two combined and what you get is not 1 heroic victory, but 4-5 in a row (and noo…, AI doesn’t get scared, in a few turns he is back again looking for more , and noo..., you are not that good strategos either ). Also, they suggest to play battles on medium because some people obviously complain about their elites being wrecked by levies. (but that’s at least one good EB policy imo ). What I propose on the other hand is to scrap the money help, play the game on M/M, and stimulate people to play the battles from the generals viewpoint (it's one of the 3 camera modes). This will make the game much more difficult, the AI won’t seem to be very stupid anymore (at most stupid), and you will not be continuously attacked by the AI (their stance against you is aggressive on H/VH, no matter the diplomacy?).

    Another improvement imo (but much more difficult to execute I suppose), would be to extend the recruitment times in cities for al units (2x or 3x). This will thwart the current reality that empires, after losing a battle, can very quickly and without making great money sacrifices, can easily build a new army from many of theirs cities/mercenaries and attack you again (this fact and money abundance = endless battle). To compensate for my proposed “direct unit scarcity”, one could use very expensive (recruitment and salary) mercenary units. So, using these mercenaries would be good in short term (for defense), but not cost-effective in the long term (campaigning). (I don’t know if its possible to ‘trigger’ any code when someone disbands a unit into a province, so to make the unit instantly available for next turn) I think that after this is implemented, the huge attacking mercenary armies will be undone, and the battle-loss recovery would be more realistic.

    And, at last, concerning the “house rules”… I don’t see it as a solution. If everything goes right, then playing by your self-imposed house rules is fun, but when things turn ugly, and knowing that your opponent is cheating (i.e. not respecting your house rules), makes you easily elude your rules. So, in this sense, rules become futile, and whats a futile rule worth? (imagine the possibility to recruit Spartans everywhere, but imposing a rule to yourself to recruit them only in Sparta, or think about the moral of the story of Gyges and his ring). So the way I see the house rules is a way of lying to yourself. That’s why some things should be ‘ruled’ by the game engine itself.

    I hope no-one reads this as a “must do”... it’s merely a suggestion, although I am willing to defend it. I would rather have you read it as “a merely possible way to evolve, or whatever.” In the end, everyone can adjust the script to suit their own needs.

    EDIT: Some people seem to misread "general's view" so I made it clear that it is referring to one of the 3 camera modes.
    Last edited by Davor; 08-26-2007 at 14:00.

  2. #2
    Megas Alexandros's heir Member Spoofa's Avatar
    Join Date
    Aug 2006
    Posts
    695

    Default Re: Suggestions for further releases

    Using the money script, and mercenary mod helps alot...

  3. #3
    Member Member Thaatu's Avatar
    Join Date
    Oct 2006
    Location
    Finland
    Posts
    1,117

    Default Re: Suggestions for further releases

    House rules are basically "how you want to play a game". I don't see that as lying to oneself.

    You're right about the game economics being unrealistic and more sided on gameplay, but I understand that it's futile and timeconsuming to balance the economics for every version separately, because every version changes the economic situation. That's why finances will probably be balanced only for the last EB build (pure speculation). Money script and mercenary mod helps more than one might expect.

  4. #4
    EB annoying hornet Member bovi's Avatar
    Join Date
    Jan 2007
    Location
    Norway
    Posts
    11,796

    Default Re: Suggestions for further releases

    Thaatu is a good speculator, should do stock trading . Some small balancing has been done for the next version, but it is nowhere near a finished project. You will probably enjoy fanmade balancing in the next version too. I should probably mention that Redmeth, one of the more active people doing the unofficial balancing mods, has joined the team.

    As for house rules, they are purely limitations you put on yourself. If you feel like lifting the restriction temporarily, or even magically create money by cheating, why shouldn't you? The point is to have fun with the game, however you choose to do so.

    Davor, EB is designed to be a challenge, as we all feel vanilla was too easy even on VH/VH. But depending on faction it may turn out to be a bit much on hard battle difficulty, or a bit too little on medium. Your suggestion would mean that this challenge would disappear entirely, so we won't do that, but feel free to do so for yourself (it's fairly easy). Choose the balancing that fits you .

    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

  5. #5

    Talking Re: Suggestions for further releases

    Quote Originally Posted by bovi
    Davor, EB is designed to be a challenge, as we all feel vanilla was too easy even on VH/VH. But depending on faction it may turn out to be a bit much on hard battle difficulty, or a bit too little on medium. Your suggestion would mean that this challenge would disappear entirely, so we won't do that, but feel free to do so for yourself (it's fairly easy). Choose the balancing that fits you .
    I agree; to play it on M/M would indeed make the game very easy. But that’s not what I wanted. You misread my suggestion… so I’ll be more specific. My suggestion to compensate for M/M was (see the 'italicized words' in the original post) to play the game from general’s viewpoint (it’s one of the 3 camera preferences you can choose from). This view increases the difficulty in battles significantly for the player so as to compensate for the M/M setting.

    So difficulty(VH/VH + RTS camera) ~ difficulty(M/M + general’s viewpoint camera). If you don’t agree on this, then yes, my solution is no solution at all.

  6. #6

    Default Re: Suggestions for further releases

    I have read somewhere that help is needed in balancing the economy. What's your goal in terms of economy balancing? What do you want to achieve? The definition of "challenge" is not an easy one. Some would say that fighting stack after stack is challenging...

    Davor - I'm always playing on the General Camera and it's not as hard as someone would expect - you get used to it very quickly. And after the General Cam, playing on the RTS-like cameras is a joke, so it's like an addiction :) .
    Last edited by Cybvep; 08-26-2007 at 13:33.

  7. #7

    Default Re: Suggestions for further releases

    So difficulty(VH/VH + RTS camera) ~ difficulty(M/M + general’s viewpoint camera). If you don’t agree on this, then yes, my solution is no solution at all.
    Hum, I actualy play in vh/m + general's viewpoint in many battles with some factions (sweboz, romani, etc) and its not that hard, and much more fun.



  8. #8
    Member Member Thaatu's Avatar
    Join Date
    Oct 2006
    Location
    Finland
    Posts
    1,117

    Default Re: Suggestions for further releases

    Quote Originally Posted by bovi
    I should probably mention that Redmeth, one of the more active people doing the unofficial balancing mods, has joined the team.
    Redmeth, you traitor. Congratulations, but don't get lazy now.

  9. #9

    Talking Re: Suggestions for further releases

    Quote Originally Posted by Cybvep
    I have read somewhere that help is needed in balancing the economy. What's your goal in terms of economy balancing? What do you want to achieve?
    I think that economy should be left the same and unchanged for everyone, AI and player. So: no donations, and as little balancing as possible, preferably none (except maybe for Elutheroi). Though I am not going to complain about small careful ‘donations’ for ‘balancing’, but current donations of 2000/city/turn are imo way over.


    Quote Originally Posted by Cybvep
    The definition of "challenge" is not an easy one. Some would say that fighting stack after stack is challenging...
    Indeed. But fighting stack after stack you can also do in vanilla. All you need is give the AI money. EB, unlike vanilla, focuses more on realism. And fighting stack after stack is not real. General’s camera view can make battles more difficult, and so, it should be opted for. So, challenge(RTS camera + money donations) ~ challenge(general’s camera + default economy), and the latter is far more realistic.

  10. #10

    Default Re: Suggestions for further releases

    AI without any dotations would be doomed, believe me. It would have no chances of survival. Current script is just too excessive, but it shouldn't be abandoned. If you don't like its excessiveness, try one of the fanmade money scripts (https://forums.totalwar.org/vb/showthread.php?t=87649). Personally, I use my own modified version of the mentioned script and I'm happy with it. I'm just curious what the EB team want to achieve - maybe fans can help.
    Last edited by Cybvep; 08-26-2007 at 14:04.

  11. #11

    Default Re: Suggestions for further releases

    Two things:
    1) Generals CAM + HA based armies = .
    2) AI - scripted assistance = broke.
    - Tellos Athenaios
    CUF tool - XIDX - PACK tool - SD tool - EVT tool - EB Install Guide - How to track down loading CTD's - EB 1.1 Maps thread


    ὁ δ᾽ ἠλίθιος ὣσπερ πρόβατον βῆ βῆ λέγων βαδίζει” – Kratinos in Dionysalexandros.

  12. #12

    Default Re: Suggestions for further releases

    Quote Originally Posted by Tellos Athenaios
    Two things:
    1) Generals CAM + HA based armies = .
    2) AI - scripted assistance = broke.
    2) Yep
    1) I played as Sauromatae for a few turns and gosh, it WAS easy. I used armies only with cavalry and "Hit-and-run" tactics worked perfectly. Attack, use all arrows, withdraw. Repeat. I raided/conquered some towns (it was the quickest conquest I have ever managed to achieve) and buffed up my economy, then I destroyed Hayasdan with one army and quit the game, as I realised that I want to fight with such powerful nation, not to fight as it. The only challenge was at the pure beginning (when I was broke for some turns) and against other cavalry-based armies. Oh, I was playing on the General Camera, even in sieges.
    Last edited by Cybvep; 08-26-2007 at 14:14.

  13. #13
    Questor of AI revenue. Member The Errant's Avatar
    Join Date
    Feb 2007
    Location
    Limbo. Aka. the Empty Hold.
    Posts
    378

    Default Re: Suggestions for further releases

    Quote Originally Posted by Cybvep
    AI without any dotations would be doomed, believe me. It would have no chances of survival. Current script is just too excessive, but it shouldn't be abandoned. If you don't like its excessiveness, try one of the fanmade money scripts (https://forums.totalwar.org/vb/showthread.php?t=87649). Personally, I use my own modified version of the mentioned script and I'm happy with it. I'm just curious what the EB team want to achieve - maybe fans can help.
    I asked this once during the first round of fanmade modding of the money scripts. The team needed a script that would balance the AI factions incompetent economics. They elected to give them donations based on settlements held. Eventually the AI would recruit enough expensive units to balance off their free money. It worked up to a point, but the large factions became nearly unstoppable monsters with bottomless funds. Even with the brains a human player can't stand up against 8 elite stacks sent against you on a single turn. Not unless you have an empire half the size of the map.

    So what the team really wanted was something that would help the AI balance it's economics. While still allowing the big factions to be big and powerful. And still give the small factions a fighting chance to survive and grow.

    Unfortunately without adjustments to the vanilla EB money script, this leads to large factions like the AS steamrolling everyone. And often completely blunts smaller factions from expanding at all.

    Eminos64 was the first one to come up with the idea of a stepped bonus for AI factions. That simple idea evolved from the modded money scripts into the AI Balancing mini-mod.

    Redmeth is on the team. While he is busy doing other stuff. He is still actively involved with EB economics. Bovi did us all a huge favor with his Eleutheroi money assistance script. I'm sure they will keep improving the money script as much as they have time to.

    If you have even the most basic knowledge of modding, and feel the script needs improving. Try it, test it and post it. All improvements to the money script and AI economics are warmly welcome IMHO.

    "If you listen, carefully. You can hear the Gods laughing."

    Last words of Emperor Commodus. From "The Fall of the Roman Empire".

  14. #14

    Default Re: Suggestions for further releases

    Ok, I will post my version of the script, give a little explanation and some other ideas.
    Code:
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;Section 4: Money Assistance
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;Section 4a: Difficult Start Help
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    monitor_event FactionTurnStart FactionType romans_julii
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money romans_julii, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money romans_julii, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money romans_julii, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money romans_julii, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money romans_scipii, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money romans_scipii, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money romans_scipii, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money romans_scipii, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money romans_brutii, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money romans_brutii, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money romans_brutii, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money romans_brutii, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money egypt, 15000
    
    end_monitor
    
    
    monitor_event FactionTurnStart FactionType egypt
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money egypt, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money egypt, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money egypt, 35000
    
    end_monitor
    
    
    monitor_event FactionTurnStart FactionType seleucid
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money seleucid, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money seleucid, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money seleucid, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money seleucid, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money carthage, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money carthage, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money carthage, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money carthage, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money parthia, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money parthia, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money parthia, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money parthia, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money gauls, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money gauls, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money gauls, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money gauls, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money germans, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money germans, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money germans, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money germans, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money britons, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money britons, 20000
    
    end_monitor
    
    
    monitor_event FactionTurnStart FactionType britons
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money britons, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money britons, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money greek_cities, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money greek_cities, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money greek_cities, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money greek_cities, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money macedon, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money macedon, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money macedon, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money macedon, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money pontus, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money pontus, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money pontus, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money pontus, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money armenia, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money armenia, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money armenia, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money armenia, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money dacia, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money dacia, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money dacia, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money dacia, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money scythia, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money scythia, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money scythia, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money scythia, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money spain, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money spain, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money spain, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money spain, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money thrace, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money thrace, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money thrace, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money thrace, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money numidia, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money numidia, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money numidia, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money numidia, 35000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and not FactionIsLocal
    and Treasury < 0
    and Treasury > -5001
    and RandomPercent < 20
    
    console_command add_money saba, 15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and not FactionIsLocal
    and Treasury < -5000
    and Treasury > -10001
    and RandomPercent < 30
    
    console_command add_money saba, 20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and not FactionIsLocal
    and Treasury < -10000
    and RandomPercent < 40
    
    console_command add_money saba, 25000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and not FactionIsLocal
    and Treasury < -20000
    and RandomPercent < 50
    
    console_command add_money saba, 35000
    
    end_monitor
    
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;Section 4b: City Income Bonus
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    
    monitor_event CharacterTurnStart FactionType egypt ; Carthage fleet upkeep discount for the AI
    and AgentType = admiral
    and not FactionIsLocal
    console_command add_money egypt, 900
    end_monitor
    
    ; Saka
    
    monitor_event CharacterTurnStart FactionType pontus ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money pontus, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType pontus ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money pontus, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType pontus ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money pontus, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements pontus > 30
    and RandomPercent < 60
    
    console_command add_money pontus, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements pontus > 25
    and RandomPercent < 50
    
    console_command add_money pontus, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements pontus > 20
    and RandomPercent < 40
    
    console_command add_money pontus, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements pontus > 15
    and RandomPercent < 25
    
    console_command add_money pontus, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money pontus, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money pontus, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money pontus, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money pontus, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money pontus, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money pontus, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements pontus > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money pontus, 120000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements pontus < 25
    and I_NumberOfSettlements pontus > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money pontus, 110000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements pontus < 16
    and I_NumberOfSettlements pontus > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money pontus, 100000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements pontus < 10
    and I_NumberOfSettlements pontus > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money pontus, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements pontus < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money pontus, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money pontus, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and not FactionIsLocal
    and I_TurnNumber = 4
    
    console_command add_money pontus, 60000
    
    end_monitor
    
    
    monitor_event FactionTurnStart FactionType pontus
    and not FactionIsLocal
    and I_TurnNumber = 7
    
    console_command add_money pontus, 70000
    
    end_monitor
    
    ; Pontos
    
    monitor_event CharacterTurnStart FactionType carthage ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money carthage, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType carthage ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money carthage, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType carthage ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money carthage, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements carthage > 30
    and RandomPercent < 60
    
    console_command add_money carthage, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements carthage > 25
    and RandomPercent < 50
    
    console_command add_money carthage, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements carthage > 20
    and RandomPercent < 40
    
    console_command add_money carthage, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements carthage > 15
    and RandomPercent < 25
    
    console_command add_money carthage, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money carthage, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money carthage, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money carthage, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money carthage, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money carthage, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money carthage, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements carthage > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money carthage, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements carthage < 25
    and I_NumberOfSettlements carthage > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money carthage, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements carthage < 16
    and I_NumberOfSettlements carthage > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money carthage, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements carthage < 10
    and I_NumberOfSettlements carthage > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money carthage, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements carthage < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money carthage, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money carthage, 50000
    
    end_monitor
    
    
    ; Sweboz
    
    monitor_event CharacterTurnStart FactionType germans ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money germans, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType germans ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money germans, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType germans ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money germans, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements germans > 30
    and RandomPercent < 60
    
    console_command add_money germans, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements germans > 25
    and RandomPercent < 50
    
    console_command add_money germans, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements germans > 20
    and RandomPercent < 40
    
    console_command add_money germans, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements germans > 15
    and RandomPercent < 25
    
    console_command add_money germans, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money germans, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money germans, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money germans, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money germans, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money germans, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money germans, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements germans > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money germans, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements germans < 25
    and I_NumberOfSettlements germans > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money germans, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements germans < 16
    and I_NumberOfSettlements germans > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money germans, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements germans < 10
    and I_NumberOfSettlements germans > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money germans, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements germans < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money germans, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money germans, 50000
    
    end_monitor
    
    ; Carthage
    
    monitor_event CharacterTurnStart FactionType egypt ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money egypt, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType egypt ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money egypt, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType egypt ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money egypt, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements egypt > 30
    and RandomPercent < 60
    
    console_command add_money egypt, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements egypt > 25
    and RandomPercent < 50
    
    console_command add_money egypt, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements egypt > 20
    and RandomPercent < 40
    
    console_command add_money egypt, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements egypt > 15
    and RandomPercent < 25
    
    console_command add_money egypt, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money egypt, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money egypt, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money egypt, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money egypt, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money egypt, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money egypt, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements egypt > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money egypt, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements egypt < 25
    and I_NumberOfSettlements egypt > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money egypt, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements egypt < 16
    and I_NumberOfSettlements egypt > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money egypt, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements egypt < 10
    and I_NumberOfSettlements egypt > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money egypt, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements egypt < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money egypt, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money egypt, 50000
    
    end_monitor
    
    ; Baktria
    
    monitor_event CharacterTurnStart FactionType romans_brutii ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money romans_brutii, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType romans_brutii ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money romans_brutii, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType romans_brutii ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money romans_brutii, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements romans_brutii > 30
    and RandomPercent < 60
    
    console_command add_money romans_brutii, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements romans_brutii > 25
    and RandomPercent < 50
    
    console_command add_money romans_brutii, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements romans_brutii > 20
    and RandomPercent < 40
    
    console_command add_money romans_brutii, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements romans_brutii > 15
    and RandomPercent < 25
    
    console_command add_money romans_brutii, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money romans_brutii, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money romans_brutii, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money romans_brutii, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money romans_brutii, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money romans_brutii, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money romans_brutii, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements romans_brutii > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money romans_brutii, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements romans_brutii < 25
    and I_NumberOfSettlements romans_brutii > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money romans_brutii, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements romans_brutii < 16
    and I_NumberOfSettlements romans_brutii > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money romans_brutii, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements romans_brutii < 10
    and I_NumberOfSettlements romans_brutii > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money romans_brutii, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements romans_brutii < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money romans_brutii, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money romans_brutii, 50000
    
    end_monitor
    
    ; Sauromatae
    
    monitor_event CharacterTurnStart FactionType armenia ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money armenia, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType armenia ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money armenia, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType armenia ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money armenia, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements armenia > 30
    and RandomPercent < 60
    
    console_command add_money armenia, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements armenia > 25
    and RandomPercent < 50
    
    console_command add_money armenia, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements armenia > 20
    and RandomPercent < 40
    
    console_command add_money armenia, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements armenia > 15
    and RandomPercent < 25
    
    console_command add_money armenia, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money armenia, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money armenia, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money armenia, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money armenia, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money armenia, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money armenia, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements armenia > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money armenia, 120000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements armenia < 25
    and I_NumberOfSettlements armenia > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money armenia, 110000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements armenia < 16
    and I_NumberOfSettlements armenia > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money armenia, 100000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements armenia < 10
    and I_NumberOfSettlements armenia > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money armenia, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements armenia < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money armenia, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money armenia, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and not FactionIsLocal
    and I_TurnNumber = 4
    
    console_command add_money armenia, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and not FactionIsLocal
    and I_TurnNumber = 7
    
    console_command add_money armenia, 70000
    
    end_monitor
    
    ; Ptolemaioi
    
    monitor_event CharacterTurnStart FactionType numidia ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money numidia, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType numidia ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money numidia, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType numidia ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money numidia, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements numidia > 30
    and RandomPercent < 60
    
    console_command add_money numidia, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements numidia > 25
    and RandomPercent < 50
    
    console_command add_money numidia, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements numidia > 20
    and RandomPercent < 40
    
    console_command add_money numidia, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements numidia > 15
    and RandomPercent < 25
    
    console_command add_money numidia, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money numidia, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money numidia, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money numidia, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money numidia, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money numidia, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money numidia, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements numidia > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money numidia, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements numidia < 25
    and I_NumberOfSettlements numidia > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money numidia, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements numidia < 16
    and I_NumberOfSettlements numidia > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money numidia, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements numidia < 10
    and I_NumberOfSettlements numidia > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money numidia, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements numidia < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money numidia, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money numidia, 50000
    
    end_monitor
    
    ; Arche Seleukeia
    
    monitor_event CharacterTurnStart FactionType romans_julii ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money romans_julii, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType romans_julii ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money romans_julii, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType romans_julii ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money romans_julii, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements romans_julii > 30
    and RandomPercent < 60
    
    console_command add_money romans_julii, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements romans_julii > 25
    and RandomPercent < 50
    
    console_command add_money romans_julii, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements romans_julii > 20
    and RandomPercent < 40
    
    console_command add_money romans_julii, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements romans_julii > 15
    and RandomPercent < 25
    
    console_command add_money romans_julii, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money romans_julii, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money romans_julii, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money romans_julii, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money romans_julii, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money romans_julii, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money romans_julii, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements romans_julii > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money romans_julii, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements romans_julii < 25
    and I_NumberOfSettlements romans_julii > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money romans_julii, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements romans_julii < 16
    and I_NumberOfSettlements romans_julii > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money romans_julii, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements romans_julii < 10
    and I_NumberOfSettlements romans_julii > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money romans_julii, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements romans_julii < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money romans_julii, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_julii
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money romans_julii, 50000
    
    end_monitor
    
    ; Koinon Hellenon
    
    monitor_event CharacterTurnStart FactionType greek_cities ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money greek_cities, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType greek_cities ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money greek_cities, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType greek_cities ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money greek_cities, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements greek_cities > 30
    and RandomPercent < 60
    
    console_command add_money greek_cities, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements greek_cities > 25
    and RandomPercent < 50
    
    console_command add_money greek_cities, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements greek_cities > 20
    and RandomPercent < 40
    
    console_command add_money greek_cities, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements greek_cities > 15
    and RandomPercent < 25
    
    console_command add_money greek_cities, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money greek_cities, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money greek_cities, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money greek_cities, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money greek_cities, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money greek_cities, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money greek_cities, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements greek_cities > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money greek_cities, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements greek_cities < 25
    and I_NumberOfSettlements greek_cities > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money greek_cities, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements greek_cities < 16
    and I_NumberOfSettlements greek_cities > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money greek_cities, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements greek_cities < 10
    and I_NumberOfSettlements greek_cities > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money greek_cities, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements greek_cities < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money greek_cities, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money greek_cities, 50000
    
    end_monitor
    
    ; Epeiros
    
    monitor_event CharacterTurnStart FactionType thrace ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money thrace, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType thrace ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money thrace, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType thrace ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money thrace, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements thrace > 30
    and RandomPercent < 60
    
    console_command add_money thrace, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements thrace > 25
    and RandomPercent < 50
    
    console_command add_money thrace, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements thrace > 20
    and RandomPercent < 40
    
    console_command add_money thrace, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements thrace > 15
    and RandomPercent < 25
    
    console_command add_money thrace, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money thrace, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money thrace, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money thrace, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money thrace, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money thrace, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money thrace, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements thrace > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money thrace, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements thrace < 25
    and I_NumberOfSettlements thrace > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money thrace, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements thrace < 16
    and I_NumberOfSettlements thrace > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money thrace, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements thrace < 10
    and I_NumberOfSettlements thrace > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money thrace, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements thrace < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money thrace, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money thrace, 50000
    
    end_monitor
    
    ; Makedonia
    
    monitor_event CharacterTurnStart FactionType macedon ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money macedon, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType macedon ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money macedon, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType macedon ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money macedon, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements macedon > 30
    and RandomPercent < 60
    
    console_command add_money macedon, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements macedon > 25
    and RandomPercent < 50
    
    console_command add_money macedon, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements macedon > 20
    and RandomPercent < 40
    
    console_command add_money macedon, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements macedon > 15
    and RandomPercent < 25
    
    console_command add_money macedon, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money macedon, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money macedon, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money macedon, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money macedon, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money macedon, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money macedon, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements macedon > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money macedon, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements macedon < 25
    and I_NumberOfSettlements macedon > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money macedon, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements macedon < 16
    and I_NumberOfSettlements macedon > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money macedon, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements macedon < 10
    and I_NumberOfSettlements macedon > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money macedon, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements macedon < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money macedon, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money macedon, 50000
    
    end_monitor
    
    ; Rome
    
    monitor_event CharacterTurnStart FactionType seleucid ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money seleucid, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType seleucid ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money seleucid, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType seleucid ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money seleucid, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements seleucid > 30
    and RandomPercent < 60
    
    console_command add_money seleucid, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements seleucid > 25
    and RandomPercent < 50
    
    console_command add_money seleucid, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements seleucid > 20
    and RandomPercent < 40
    
    console_command add_money seleucid, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements seleucid > 15
    and RandomPercent < 25
    
    console_command add_money seleucid, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money seleucid, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money seleucid, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money seleucid, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money seleucid, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money seleucid, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money seleucid, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements seleucid > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money seleucid, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements seleucid < 25
    and I_NumberOfSettlements seleucid > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money seleucid, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements seleucid < 16
    and I_NumberOfSettlements seleucid > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money seleucid, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements seleucid < 10
    and I_NumberOfSettlements seleucid > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money seleucid, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements seleucid < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money seleucid, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money seleucid, 50000
    
    end_monitor
    
    ; Lusotana
    
    monitor_event CharacterTurnStart FactionType spain ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money spain, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType spain ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money spain, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType spain ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money spain, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements spain > 30
    and RandomPercent < 60
    
    console_command add_money spain, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements spain > 25
    and RandomPercent < 50
    
    console_command add_money spain, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements spain > 20
    and RandomPercent < 40
    
    console_command add_money spain, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements spain > 15
    and RandomPercent < 25
    
    console_command add_money spain, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money spain, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money spain, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money spain, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money spain, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money spain, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money spain, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements spain > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money spain, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements spain < 25
    and I_NumberOfSettlements spain > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money spain, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements spain < 16
    and I_NumberOfSettlements spain > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money spain, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements spain < 10
    and I_NumberOfSettlements spain > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money spain, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements spain < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money spain, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money spain, 50000
    
    end_monitor
    
    ; Aedui
    
    monitor_event CharacterTurnStart FactionType gauls ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money gauls, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType gauls ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money gauls, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType gauls ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money gauls, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements gauls > 30
    and RandomPercent < 60
    
    console_command add_money gauls, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements gauls > 25
    and RandomPercent < 50
    
    console_command add_money gauls, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements gauls > 20
    and RandomPercent < 40
    
    console_command add_money gauls, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements gauls > 15
    and RandomPercent < 25
    
    console_command add_money gauls, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money gauls, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money gauls, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money gauls, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money gauls, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money gauls, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money gauls, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements gauls > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money gauls, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements gauls < 25
    and I_NumberOfSettlements gauls > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money gauls, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements gauls < 16
    and I_NumberOfSettlements gauls > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money gauls, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements gauls < 10
    and I_NumberOfSettlements gauls > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money gauls, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements gauls < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money gauls, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money gauls, 50000
    
    end_monitor
    
    ; Arverni
    
    monitor_event CharacterTurnStart FactionType scythia ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money scythia, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType scythia ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money scythia, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType scythia ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money scythia, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements scythia > 30
    and RandomPercent < 60
    
    console_command add_money scythia, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements scythia > 25
    and RandomPercent < 50
    
    console_command add_money scythia, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements scythia > 20
    and RandomPercent < 40
    
    console_command add_money scythia, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements scythia > 15
    and RandomPercent < 25
    
    console_command add_money scythia, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money scythia, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money scythia, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money scythia, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money scythia, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money scythia, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money scythia, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements scythia > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money scythia, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements scythia < 25
    and I_NumberOfSettlements scythia > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money scythia, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements scythia < 16
    and I_NumberOfSettlements scythia > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money scythia, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements scythia < 10
    and I_NumberOfSettlements scythia > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money scythia, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements scythia < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money scythia, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money scythia, 50000
    
    end_monitor
    
    ; Casse
    
    monitor_event CharacterTurnStart FactionType britons ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money britons, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType britons ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money britons, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType britons ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money britons, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements britons > 30
    and RandomPercent < 60
    
    console_command add_money britons, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements britons > 25
    and RandomPercent < 50
    
    console_command add_money britons, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements britons > 20
    and RandomPercent < 40
    
    console_command add_money britons, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements britons > 15
    and RandomPercent < 25
    
    console_command add_money britons, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money britons, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money britons, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money britons, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money britons, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money britons, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money britons, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements britons > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money britons, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements britons < 25
    and I_NumberOfSettlements britons > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money britons, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements britons < 16
    and I_NumberOfSettlements britons > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money britons, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements britons < 10
    and I_NumberOfSettlements britons > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money britons, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements britons < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money britons, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money britons, 50000
    
    end_monitor
    
    ; Getai
    
    monitor_event CharacterTurnStart FactionType dacia ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money dacia, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType dacia ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money dacia, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType dacia ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money dacia, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements dacia > 30
    and RandomPercent < 60
    
    console_command add_money dacia, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements dacia > 25
    and RandomPercent < 50
    
    console_command add_money dacia, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements dacia > 20
    and RandomPercent < 40
    
    console_command add_money dacia, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements dacia > 15
    and RandomPercent < 25
    
    console_command add_money dacia, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money dacia, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money dacia, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money dacia, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money dacia, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money dacia, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money dacia, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements dacia > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money dacia, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements dacia < 25
    and I_NumberOfSettlements dacia > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money dacia, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements dacia < 16
    and I_NumberOfSettlements dacia > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money dacia, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements dacia < 10
    and I_NumberOfSettlements dacia > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money dacia, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements dacia < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money dacia, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money dacia, 50000
    
    end_monitor
    
    ; Hayasdan
    
    monitor_event CharacterTurnStart FactionType romans_scipii ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money romans_scipii, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType romans_scipii ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money romans_scipii, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType romans_scipii ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money romans_scipii, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements romans_scipii > 30
    and RandomPercent < 60
    
    console_command add_money romans_scipii, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements romans_scipii > 25
    and RandomPercent < 50
    
    console_command add_money romans_scipii, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements romans_scipii > 20
    and RandomPercent < 40
    
    console_command add_money romans_scipii, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements romans_scipii > 15
    and RandomPercent < 25
    
    console_command add_money romans_scipii, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money romans_scipii, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money romans_scipii, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money romans_scipii, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money romans_scipii, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money romans_scipii, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money romans_scipii, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements romans_scipii > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money romans_scipii, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements romans_scipii < 25
    and I_NumberOfSettlements romans_scipii > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money romans_scipii, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements romans_scipii < 16
    and I_NumberOfSettlements romans_scipii > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money romans_scipii, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements romans_scipii < 10
    and I_NumberOfSettlements romans_scipii > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money romans_scipii, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements romans_scipii < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money romans_scipii, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money romans_scipii, 50000
    
    end_monitor
    
    ; Pahlav
    
    monitor_event CharacterTurnStart FactionType parthia ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money parthia, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType parthia ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money parthia, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType parthia ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money parthia, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements parthia > 30
    and RandomPercent < 60
    
    console_command add_money parthia, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements parthia > 25
    and RandomPercent < 50
    
    console_command add_money parthia, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements parthia > 20
    and RandomPercent < 40
    
    console_command add_money parthia, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements parthia > 15
    and RandomPercent < 25
    
    console_command add_money parthia, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money parthia, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money parthia, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money parthia, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money parthia, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money parthia, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money parthia, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements parthia > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money parthia, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements parthia < 25
    and I_NumberOfSettlements parthia > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money parthia, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements parthia < 16
    and I_NumberOfSettlements parthia > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money parthia, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements parthia < 10
    and I_NumberOfSettlements parthia > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money parthia, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements parthia < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money parthia, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money parthia, 50000
    
    end_monitor
    
    ; Saba
    
    monitor_event CharacterTurnStart FactionType saba ; Spy upkeep discount for the AI
    and AgentType = spy
    and not FactionIsLocal
    console_command add_money saba, 100 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType saba ; Assassin upkeep discount for the AI
    and AgentType = assassin
    and not FactionIsLocal
    console_command add_money saba, 200 
    end_monitor
    
    monitor_event CharacterTurnStart FactionType saba ; Diplomat upkeep discount for the AI
    and AgentType = diplomat
    and not FactionIsLocal
    console_command add_money saba, 50 
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements saba > 30
    and RandomPercent < 60
    
    console_command add_money saba, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements saba > 25
    and RandomPercent < 50
    
    console_command add_money saba, -15000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements saba > 20
    and RandomPercent < 40
    
    console_command add_money saba, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba ; Province-based money penalty for the player
    and FactionIsLocal
    and I_NumberOfSettlements saba > 15
    and RandomPercent < 25
    
    console_command add_money saba, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba ; Money penalty for the player and the AI
    and Treasury > 150000
    
    console_command add_money saba, -80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba ; Money penalty for the player and the AI
    and Treasury > 100000
    and RandomPercent < 80
    
    console_command add_money saba, -40000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba ; Money penalty for the player and the AI
    and Treasury > 60000
    and RandomPercent < 65
    
    console_command add_money saba, -20000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 40000
    and RandomPercent < 50
    
    console_command add_money saba, -12500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 25000
    and RandomPercent < 35
    
    console_command add_money saba, -7500
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba ; Money penalty for the player
    and FactionIsLocal
    and Treasury > 15000
    and RandomPercent < 25
    
    console_command add_money saba, -5000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba ; Money burst for the AI [Empire]
    and not FactionIsLocal
    and I_NumberOfSettlements saba > 24
    and Treasury < 65000
    and RandomPercent < 5
    
    console_command add_money saba, 90000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba ; Money burst for the AI [Very Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements saba < 25
    and I_NumberOfSettlements saba > 15
    and Treasury < 55000
    and RandomPercent < 10
    
    console_command add_money saba, 80000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba ; Money burst for the AI [Big Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements saba < 16
    and I_NumberOfSettlements saba > 9
    and Treasury < 35000
    and RandomPercent < 15
    
    console_command add_money saba, 70000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba ; Money burst for the AI [Medium-sized Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements saba < 10
    and I_NumberOfSettlements saba > 4
    and Treasury < 25000
    and RandomPercent < 20
    
    console_command add_money saba, 60000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba ; Money burst for the AI [Small Nation]
    and not FactionIsLocal
    and I_NumberOfSettlements saba < 5
    and Treasury < 15000
    and RandomPercent < 25
    
    console_command add_money saba, 50000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and not FactionIsLocal
    and I_TurnNumber = 2
    
    console_command add_money saba, 50000
    
    end_monitor
    
    ; Eleutheroi
    
    monitor_event SettlementTurnStart FactionType slave
    and not FactionIsLocal
    
    console_command add_money slave, 3000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType slave ; Money burst for the AI
    and not FactionIsLocal
    and RandomPercent < 3
    
    console_command add_money slave, 1000000
    
    end_monitor
    Plus small changes in money given to the AI in the CAMPAIGN SCRIPT:
    Code:
    if not I_LocalFaction saba
    console_command add_money saba, 65000
    end_if
    
    if not I_LocalFaction seleucid
    console_command add_money seleucid, 65000
    end_if
    
    if not I_LocalFaction pontus
    console_command add_money pontus, 65000
    end_if
    
    if not I_LocalFaction scythia
    console_command add_money scythia, 65000
    end_if
    
    if not I_LocalFaction parthia
    console_command add_money parthia, 65000
    end_if
    
    if not I_LocalFaction numidia
    console_command add_money numidia, 65000
    end_if
    
    if not I_LocalFaction romans_julii
    console_command add_money romans_julii, 65000
    end_if
    
    if not I_LocalFaction egypt
    console_command add_money egypt, 65000
    end_if
    
    if not I_LocalFaction gauls
    console_command add_money gauls, 65000
    end_if
    
    if not I_LocalFaction germans
    console_command add_money germans, 65000
    end_if
    
    if not I_LocalFaction britons
    console_command add_money britons, 65000
    end_if
    
    if not I_LocalFaction greek_cities
    console_command add_money greek_cities, 65000
    end_if
    
    if not I_LocalFaction macedon
    console_command add_money macedon, 65000
    end_if
    
    if not I_LocalFaction carthage
    console_command add_money carthage, 65000
    end_if
    
    if not I_LocalFaction romans_scipii
    console_command add_money romans_scipii, 65000
    end_if
    
    if not I_LocalFaction dacia
    console_command add_money dacia, 65000
    end_if
    
    if not I_LocalFaction armenia
    console_command add_money armenia, 65000
    end_if
    
    if not I_LocalFaction spain
    console_command add_money spain, 65000
    end_if
    
    if not I_LocalFaction thrace
    console_command add_money thrace, 65000
    end_if
    
    if not I_LocalFaction romans_brutii
    console_command add_money romans_brutii, 65000
    end_if
    Basically, it's a combination of blitz-preventers, money-caps, debt-preventers and money-bursts, and there is much randomness. Money-bursts give the AI a chance to build both buildings and units, with mixed results and luck, as they don't have any additional constant source of income. They are given money from time to time, but larger amounts of it. As a result, you will encounter both elites and levies, see both developed cities and small towns, see bigger factions eating the smaller ones or vice versa. The rest (blitz-preventers, money-caps and debt-preventers) is there to make sure that it's very rare to see a single faction dying before at least 220 BC. The player is the one that is the most penalized (it's much harder to create a long-lasting, stable empire, and AI recieves more money at the beginning, so it's harder to blitz), but AI also finds producing infinite-stacks much harder (money-caps), while their chances of survival are still quite high (debt-preventers).

    Yeah, it's crazy - I love "balanced randomness" ;). Anyway, I want to bring your attention to the idea of random money-bursts. I think that it has the potential.

    Additional thing I recommend is reducing the income from mining. IMO the EB vanilla values are rather unbalancing. I propose these values:
    Code:
    building hinterland_mines
    {
        levels mines mines+1
        {
            mines requires factions { barbarian, armenia, romans_brutii, egypt, romans_scipii, carthage, parthia, numidia, thrace, greek_cities, macedon, romans_julii, seleucid, saba, } and resource silver or resource gold
            {
                capability
                {
                    mine_resource 32
                }
                construction  8
                cost  14000
                settlement_min town
                upgrades
                {
                    mines+1
                }
            }
            mines+1 requires factions { romans_brutii, egypt, romans_scipii, carthage, parthia, numidia, thrace, greek_cities, macedon, romans_julii, seleucid, saba, } and resource silver or resource gold
            {
                capability
                {
                    mine_resource 80
                }
                construction  20
                cost  32000
                settlement_min large_town
                upgrades
                {
                }
            }
        }
        plugins
        {
        }
    }
    Decreasing the population growth is also a good idea - there are various means to achieve this, but IMO the best thing you can do is to reduce the bonuses from buildings.

    Another thing - AI priorities in descr_strat. I have them like this:

    SPQR - balanced caesar (obvious)
    Saka Rauka - bureaucrat genghis (they need to focus more on gaining income and creating the missile cavalry + some infantry support)
    Arverni - trader napoleon (focus more on infantry-orientated armies with limited cavalry support)
    Pahlava - balanced henry (obvious)
    Ptolemaioi - religious napoleon (focus more on loyalty and infantry-orientated armies)
    Arche Seleukideia - fortified smith (focus more on securing their empire and creating balanced armies ["stalin" sometimes makes them produce too much cheap infantry])
    Karthadast - sailor napoleon (obvious)
    Aedui - comfort napoleon (focus more on gaining income from various means + infantry-orientated armies with limited cavalry support)
    Sweboz - religious napoleon (focus more on loyalty and more balanced armies ["mao" makes them mad])
    Casse - trader napoleon (obvious, but remember - "mao" is not a good choice [too much light infantry spamming])
    Koinon Hellenon - balanced caesar (more balanced approach to their empire and focus on creating more heavy infantry with limited cavalry support)
    Makedonia - fortified smith (they are between the two devils [Epeiros and Koinon Hellenon], so they need to secure their empire more; balanced approach to their armies, in general they build more heavy infantry and cavalry)
    Pontos - trader smith (obvious)
    Hayasdan - craftsman henry (focus more on gaining income from mining and creating more cavalry [don't worry, they still produce much infantry])
    Getai - craftsman caesar (focus more on gaining income from mining and creating more heavy infantry)
    Sauromatae - bureaucrat genghis (same as Saka Rauka...)
    Lusotana - craftsman napoleon (mining + more balanced infantry-orientated armies [with "mao" they produce too much cheap light infantry])
    Epeiros - sailor caesar (obvious)
    Baktria - trader smith (obvious)
    Saba - comfort henry (farming, gaining income + more cavalry in their armies)

    Here's the basic explanation of faction priorities:
    These control a set of AI production personalities, which contribute a bias towards building and training (but not retraining or repairing). This bias is fairly small compared to game-generated factors such as "the enemy is attacking me with lots of cavalry, build me some spearmen". Explaining the weighting system which drives the production AI in full is beyond the scope of this document as it would take several days to write.

    So in short, the building construction personalities are these: (ranked highest to lowest - therother)

    balanced - biases towards growth, taxable income, trade level bonuses (roads), walls and xp bonus buildings

    religious - biases towards growth, loyalty, taxable income, farming, walls and law

    trader - biases towards growth, trade level, trade base, weapon upgrades, games, races and xp bonus buildings

    comfort - biases towards growth, farming, games, races, xp bonus and happiness

    bureaucrat - biases towards taxable income, growth, pop health, trade, walls, improved bodyguards and law

    craftsman - biases towards walls, races, taxable income, weapon upgrades, xp bonuses, mines, health and growth

    sailor - biases towards sea trade, taxable income, walls, growth, trade

    fortified - biases towards walls, taxable income, growth, loyalty, defenses, bodyguards and law

    These biases are towards building properties, rather than buildings themselves. The game does not know what a "Blacksmith" is, for example, it only knows that it is a building which provides a weapon upgrade, and hence a Craftsman AI would be more likely to build it than another AI personality type.

    These are then combined with a troop production personality, as follows:

    smith - exactly level

    mao - biased towards mass troops, light infantry

    genghis - biased towards missile cavalry and light cavalry

    stalin - biased towards heavy infantry, mass troops and artillery

    napoleon - biased towards a mix of light and heavy infantry, light cavalry

    henry - biased towards heavy and light cavalry, missile infantry

    Caesar - biased towards heavy infantry, light cavalry, siege artillery

    The same system as for the buildings applies. Troop category and class are combined at the time the unit database is loaded to give a unit production type, and the likelihood of the AI choosing to produce a given unit type which can be produced is then modified by the unit type weighting. There is also a random element in the choosing of which building or troop type to produce next, so the effect of the bias is a statistical thing. Another factor that is applied over the top which may obscure the bias is a tendency towards producing troop mixtures (according to what is already in the garrison) and a weighting according to unit strength.

    The two sets of types can be freely combined; for example, although Fortified Caesar does not appear in the list of options currently used by the vanilla RTW game, it is a valid combination.
    Feel free to comment and ask questions - I will answer whenever I have some time ;).
    Last edited by Cybvep; 08-26-2007 at 16:44.

  15. #15
    EB annoying hornet Member bovi's Avatar
    Join Date
    Jan 2007
    Location
    Norway
    Posts
    11,796

    Default Re: Suggestions for further releases

    Thanks for sharing, however it is more suitable for the unofficial mods section . A quick note though, add_money has a cap at 40000.

    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

  16. #16

    Default Re: Suggestions for further releases

    Quote Originally Posted by bovi
    Thanks for sharing, however it is more suitable for the unofficial mods section . A quick note though, add_money has a cap at 40000.
    Yeah, I considered that, but isn't it only a limit for commands in console (ingame)?

  17. #17

    Talking Re: Suggestions for further releases

    Quote Originally Posted by Cybvep
    Ok, I will post my version of the script, give a little explanation and some other ideas.
    Code...
    hmm... you are penalizing and rewarding almost randomly… player and AI, and so with huge amounts of money… I don’t see the point. Your script is like a liberal (egalitarian) God. If you’re a believer… ok, but I am not.

    Trying to find the best money script, imo, is a quest without end. That’s why I opted for just scrapping it and leaving the economics up to the engine. Maybe a better way to surpass the urge of playing a God is to just give special money bonuses for a few empire’s “native” cities that were historically held by that faction. For example, if Sparta, Corinth and Athens were native Greek cities, then these cities should give only to Greeks +1000 bonus (if they are held by Greeks).

    And why is everyone so concerned about “helping the poor to get a chance against the mighty”... If they can’t stand up against the mighty, then they shall be overrun. That is and was history. Gods never interfered in economics to my knowledge. And those who couldn’t pay learned to talk, so why not, instead of giving the AI money, just give it a good diplomat to start with? And if AI can’t use him, too bad…
    Last edited by Davor; 08-26-2007 at 17:20.

  18. #18
    EBII Mod Leader Member Foot's Avatar
    Join Date
    Apr 2005
    Location
    Brighton, East Sussex, England (GMT)
    Posts
    10,736

    Default Re: Suggestions for further releases

    Quote Originally Posted by Davor
    hmm... you are penalizing and rewarding almost randomly… player and AI, and so with huge amounts of money… I don’t see the point. Your script is like a liberal (egalitarian) God. If you’re a believer… ok, but I am not.
    When is penalizing and rewarding at random either a liberal or an egalitarian policy?

    Trying to find the best money script, imo, is a quest without end. That’s why I opted for just scrapping it and leaving the economics up to the engine. Maybe a better way to surpass the urge of playing a God is to just give special money bonuses for a few empire’s “native” cities that were historically held by that faction. For example, if Sparta, Corinth and Athens were native Greek cities, then these cities should give only to Greeks +1000 bonus (if they are held by Greeks).

    And why is everyone so concerned about “helping the poor to get a chance against the mighty”... If they can’t stand up against the mighty, then they shall be overrun. That is and was history. Gods never interfered in economics to my knowledge. And those who couldn’t pay learned to talk, so why not, instead of giving the AI money, just give it a good diplomat to start with? And if AI can’t use him, too bad…
    If we had real people in the computer doing all the Ai's work (which I am reliably informed is impossible) then I would agree with you. As it is the Ai is crap at sorting out its economy. Without these assistances you will find that much of the rest of the world will never develop beyond the starting level as the Ai spends almost all its money on military and nothing else. You must remember that the economy system is harder in EB with costly units and buildings and no easy way of restarting your economy.

    We won't be getting rid of money assistance for Ai factions, but I agree that we should look into ways of using it to balance the game further. The fans who led the way in that regard should be commended.

    Foot
    EBII Mod Leader
    Hayasdan Faction Co-ordinator


  19. #19

    Default Re: Suggestions for further releases

    There are a number of concerns here:
    1) The mighty should be mighty, but should also experience mighty problems. (AS should for example have a tough time preventing the break-up of the empire; as they did historically.) The Ptolemaioi need to feel the threat of Native Uprisings. >> Pontos; Hayasdan; Eleutheroi; Baktria; and Pahlava should have more a real fighting chance.
    2) Lot's of smaller factions don't pose a real threat like they historically did; nor do they expand sufficiently. >> Saka, Sauromatae, Getai and depending from time to time: Arverni; Casse; Baktria and Aedui as well.

    At the same time; there should be checks and balances - because it makes no sense gameplay-wise to keep pumping tons of money in one behemoth; and starve the other.

    In fact, "balanced randomness" is one of things the team is looking at, particularly when it comes to give the Eleutheroi a new life. (Historically they weren't a pushover; so they should be to actually wage war against you - not just play a sitting duck waiting for slaugther.)
    - Tellos Athenaios
    CUF tool - XIDX - PACK tool - SD tool - EVT tool - EB Install Guide - How to track down loading CTD's - EB 1.1 Maps thread


    ὁ δ᾽ ἠλίθιος ὣσπερ πρόβατον βῆ βῆ λέγων βαδίζει” – Kratinos in Dionysalexandros.

  20. #20

    Default Re: Suggestions for further releases

    Davor...
    Quote Originally Posted by Tellos Athenaios
    2) AI - scripted assistance = broke.
    It's the truth, you won't change it. AI is dumb and without money, it's even dumber. If you really don't want any money scripts, you can just remove them.

    Quote Originally Posted by Davor
    you are penalizing and rewarding almost randomly… player and AI, and so with huge amounts of money… I don’t see the point. Your script is like a liberal (egalitarian) God. If you’re a believer… ok, but I am not.
    Actually, randomness is the point - so each game will be quite different, even if you play with the same faction. Caps are here for balancing purposes. Oh, and this script isn't penalizing the bigger factions that much (and certainly less than most of the other money scripts) - the smaller ones get a greater chance of gaining the money burst, but that's it. Otherwise, they will get eaten by the Seleucids :P. Also, debt-preventers are not always instant - the greater the debt, the greater the chance of gaining the money. It's easier to hurt the AI economically for some time, but they always have a chance. AI just needs this.

    Oh, and I'm an atheist.
    Last edited by Cybvep; 08-26-2007 at 17:44.

  21. #21

    Talking Re: Suggestions for further releases

    Quote Originally Posted by Foot
    When is penalizing and rewarding at random either a liberal or an egalitarian policy?
    It was just a joke... but if you want an explanation, ok, but a short one because this is not a place for such discussions. He is penalizing the rich for their choice of trying and working to be rich (i.e. building up economy and diplomacy), and rewarding the poor for their choice of wanting to be poor (i.e. having huge armies). It’s almost random, as I stated, because no egalitarian liberal policy can make a perfect distinction between choices and circumstances (i.e. having bad luck of just being in a less resourceful part of the world or whatever), but not completely random of course.
    Last edited by Davor; 08-26-2007 at 17:47.

  22. #22

    Talking Re: Suggestions for further releases

    Quote Originally Posted by Tellos Athenaios
    In fact, "balanced randomness" is one of things the team is looking at, particularly when it comes to give the Eleutheroi a new life. (Historically they weren't a pushover; so they should be to actually wage war against you - not just play a sitting duck waiting for slaugther.)
    Ok, Cybvep, Foot, Tellos Athenaios... I think you got a point about randomness. So I'll concur with you guys, but not too much héh

  23. #23
    EBII Mod Leader Member Foot's Avatar
    Join Date
    Apr 2005
    Location
    Brighton, East Sussex, England (GMT)
    Posts
    10,736

    Default Re: Suggestions for further releases

    Quote Originally Posted by Davor
    It was just a joke... but if you want an explanation, ok, but a short one because this is not a place for such discussions. He is penalizing the rich for their choice of trying and working to be rich (i.e. building up economy and diplomacy), and rewarding the poor for their choice of wanting to be poor (i.e. having huge armies). It’s almost random, as I stated, because no egalitarian liberal policy can make a perfect distinction between choices and circumstances (i.e. having bad luck of just being in a less resourceful part of the world or whatever), but not completely random of course.
    Ha! Of course you applying the human condition of "free will" to a computer game, whose processes are all defined and determined. The rich get richer and the poor get poorer because that is how the game mechanics work. In the real world the poor countries would have settled the foreign affairs and worked on getting rich. RTW Ai doesn't do that so we help them out.

    Foot
    EBII Mod Leader
    Hayasdan Faction Co-ordinator


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