Page 5 of 9 FirstFirst 123456789 LastLast
Results 121 to 150 of 260

Thread: Fixing the AI money script (preliminary tests)

  1. #121

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

    Eh, just a small correction, it's not Spain, it's Lusotanna.

  2. #122
    Guest Dayve's Avatar
    Join Date
    Oct 2005
    Location
    England
    Posts
    1,659

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

    Quote Originally Posted by The Errant
    Oops! Major fuckup on my part. Fixed the typing errors in the code and it should be working now. Atleast the latest code a couple posts up. Looks like I'm going to have to start all ower again with Casse to test it though. Damn!
    You know i got banned from these forums (not the EB part, the M2TW ones) by a mod for saying an 'offensive' word much weaker than fuck, and demoted to a junior member, so now i can only post once every 22763732674326746 seconds...

  3. #123

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

    Quote Originally Posted by Dan_Grr
    Eh, just a small correction, it's not Spain, it's Lusotanna.
    No it's not if talking about the internal names of factions that the game and uses for comands.

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

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

    I'm posting pictures from my ongoing tests using the Casse and my latest script version that can be found here:
    http://www.axifile.com/?4934956
    More details in the posts in the previous pages
    270:

    Sorry for the bad shot I wasn't careful with the positioning of the mouse
    260:

    250:

    240:

    230:

    220:

    As you can see by 250BC all the factions even the Sauromatae and Saka are moving the Getai are going strong but the Eleutheroi towns are pretty well defended so the AI expansion is not that fast, I'm satisfied with how things are progressing and will post more screenshots in this same post as the game continues. In 252 BC the stepped bonus kicked in and I believe the Seleucids will lose a few provinces in the next decade.
    EDIT: Reached 240, still have doubts about the Eleutheroi, they seem a bit strong in Britain i fought 2/3 a stack of cwmyr and a couple of stacks of mixed armies and in one conquered city i saw an extensive small trade port upgrade so they have a lot of money, on the other hand the strong rebels are ok for a slow and more realistic expansion, but further testing will need to be done, I am content with the rest though, maybe 2800 or even 2700 a turn for the rebels would be better but I'll test this further first.
    I'm really undecided about the Eleutheroi bonus so I'm asking the people who are testing my script for their opinion should I go lower with the bonus? And if any members of the EB team are reading this is there any general consensus regarding the bonus for the Eleutheroi, or if they should be strong or less strong in order for the factions to expand a bit faster?
    EDIT2:220 now and I think another step should be added as the Selucids are nearing 40 provinces I think and just ">25" is not enough to convey their empire so let me see what I can tweak the rest is pretty good and the faction expansion is great.
    Last edited by Redmeth; 04-24-2007 at 22:26.

  5. #125

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

    I've done a Casse test up to 250 and it's very similar to yours, the Saka have crossed territory with the Pahlava, but the Getai haven't expanded one bit. Aside from that, everything seems like yours.

    EDIT: The Maks are out of the game, the greek territory is now shared with the KH and Epeiros.
    Last edited by Dan_Grr; 04-23-2007 at 20:19.

  6. #126

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

    Haha I broke the second post.

    Let me try to figure out how to fix it... after Heroes of course.
    Last edited by Sheep; 04-24-2007 at 04:23.

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

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

    Looks like I'm finished modding the script for a while. Something in my game broke last night. I can't activate the background script at all anymore. The "Show me how" button is greyed out.
    None of the backups can make it work either. If there is no easy fix available I'll have to reinstall the entire game. And hope for the best.

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

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

  8. #128

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

    It happened to me yesterday also, I don't know if it was from your script or redmeth's. I had to reinstall the game because of the show how button being greyed out. Well, good luck.

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

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

    I never had any problems like that, I've used only my script in my tests and play.

  10. #130
    Member Member Eminos's Avatar
    Join Date
    Aug 2006
    Location
    Sweden
    Posts
    106

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

    Quote Originally Posted by The Errant
    Looks like I'm finished modding the script for a while. Something in my game broke last night. I can't activate the background script at all anymore. The "Show me how" button is greyed out.
    None of the backups can make it work either. If there is no easy fix available I'll have to reinstall the entire game. And hope for the best.

    Hi.

    That happened to me too a couple of months ago when I started experimenting with the script and when I hadn't yet realized the limitations of the scripting language. Don't reinstall! (I'm afraid I'm too late, you've probably already done that) Try to find the bad code. Back then I could see that something was wrong with my script by noticing that the game did'nt use as much memory as it usually do. After correcting the faulty code I was able the play and continue my tests without problems.

    I don't think I've got your latest script and the one I have looked at is probably your old one with the "extra bonus" for Pahlava ;-) and that didn't cause you any problems I guess. The corrections you did after that seem to have gone wrong.

    Another thing I want to say is that I've been a little bit sloppy on the "updating front". The original background script seem to have had some typos or something according to the sticky under the "bug report thread". I've downloaded the corrected background script and are know just pasting in my latest code into that one. Maybe you've already thought of that and this was unnecessary information.

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

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

    Quote Originally Posted by Eminos64
    Hi.

    That happened to me too a couple of months ago when I started experimenting with the script and when I hadn't yet realized the limitations of the scripting language. Don't reinstall! (I'm afraid I'm too late, you've probably already done that) Try to find the bad code. Back then I could see that something was wrong with my script by noticing that the game did'nt use as much memory as it usually do. After correcting the faulty code I was able the play and continue my tests without problems.

    I don't think I've got your latest script and the one I have looked at is probably your old one with the "extra bonus" for Pahlava ;-) and that didn't cause you any problems I guess. The corrections you did after that seem to have gone wrong.

    Another thing I want to say is that I've been a little bit sloppy on the "updating front". The original background script seem to have had some typos or something according to the sticky under the "bug report thread". I've downloaded the corrected background script and are know just pasting in my latest code into that one. Maybe you've already thought of that and this was unnecessary information.
    Thanks for the encouragement. I actually got it to work without reinstalling. Neither my modified code or the backups were working so I deleted the entire script folder and it's contents. Then in downloaded Redmeth's scriptfile, recreated the proper folderstructure and added his scriptfile. It's working again. So now all I have to do is to manually fix those parts of the scriptfile that I'm unhappy with. If it stops working I'll just delete the scriptfolder again and try something different.
    I'm still undsure what part of the script got the file messed up but if my latest modifications won't work I'll go back to the original that Sheep posted and go step by step from there.

    Wish I understood RTW scripting better. This is exactly the kind of problem that only happens to amateurs like me.

    edit. Just made a new test. Sorry to tell you Eminos64 but that last peace of code you gave me is the proplem. If I add the negative faction treasury bonus to the script, it won't work. Removed it and now I'm back in business. Looks like Redmeth was on the right track. His conditional's are more compatible. I'll try to incorporate them to my next script.
    Last edited by The Errant; 04-24-2007 at 18:13.

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

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

  12. #132
    Now sporting a classic avatar! Member fallen851's Avatar
    Join Date
    Oct 2005
    Posts
    799

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

    Quote Originally Posted by Dayve
    You know i got banned from these forums (not the EB part, the M2TW ones) by a mod for saying an 'offensive' word much weaker than fuck, and demoted to a junior member, so now i can only post once every 22763732674326746 seconds...
    Owned.
    "It's true that when it's looked at isolated, Rome II is a good game... but every time I sit down to play it, every battle, through every turn, I see how Rome I was better. Not unanimously, but ultimately." - Dr. Sane

    http://www.youtube.com/watch?v=L6eaBtzqqFA#t=1h15m33s

  13. #133

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

    The Errant: do you mean thies : ..and treasury < - number ? ...add money ...
    and I have it for all factions.
    becausethe script load whit me:P, have 4 turns per year ... and so on.
    or the ... and treasury > number ... ad money .. - number.

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

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

    Quote Originally Posted by Ower
    The Errant: do you mean thies : ..and treasury < - number ? ...add money ...
    and I have it for all factions.
    becausethe script load whit me:P, have 4 turns per year ... and so on.
    or the ... and treasury > number ... ad money .. - number.
    monitor_event SettlementTurnStart FactionType pontus
    and not FactionIsLocal
    and Treasury < -3000

    console_command add_money pontus, 5000

    This piece of script dosen't work for me. If I add it, the script for me no longer works. Once I remove it the script starts working again. It could be an error only at my end. So if you get it working, by all means test it and post the results here.
    I can't, so I'm going to see if I can use some parts of Redmeth's script for similar results.

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

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

  15. #135

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

    well it dosen't look like buget on my end, have the 4 turns and so on, and the fact that my modifications a bit to moped up pahlavas treasury, are for me evidence that the script works.

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

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

    I'm quite happy with the way my latest test is progressing, but the Eleutheroi with 2900 are still too strong, the cities in central Europe and the ones in N Africa have a full-stack garrison and another stack outside that sometime roam dangerously, they build roads, mines and ports. I'm happy about the buildings and the extra garrisons but the 2 stacks are too much IMO. I'm nearing 230 in my test and I'll test this until 200 or so I'm very happy with the stepped bonuses and the 10 years of "grace" and 20 years of normal bonuses for everyone.
    I'll tweak some more small things and try the Eleutheroi with 2750 (25% of what the bonus is right now), I'll post in a few days what I hope will be my near final script for more people to test.
    I'll keep updating the post above with pics from the test run.
    What do you think so far of Eminos64's (who started it all), Sheep's, Errant's and my own efforts to balance this, and a post from someone on the EB team with their opinion would just make my day...
    Last edited by Redmeth; 04-25-2007 at 00:05.

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

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

    Quote Originally Posted by Ower
    well it dosen't look like buget on my end, have the 4 turns and so on, and the fact that my modifications a bit to moped up pahlavas treasury, are for me evidence that the script works.
    OK. Check the script. Fix whatever errors you find and post a link for download. It might be the script is resisting any active changes on my end. Although I have no idea why.

    If I'm right though, I should be able to replace my script with an outside script and it will still work the way it should.

    If this is truly the case I'm in more trouble than I thought.

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

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

  18. #138

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

    Out of curiosity. Has anyone tried bumping the rebels up alot? I was hoping there would be a way for me to stall the AI for a longer time as I want to play with historical dates and as is even these scripts have large AI expansion once the rebel Generals bite it at about 230....which is way to early for me.
    Slainte!!

  19. #139
    Member Member Dumbass's Avatar
    Join Date
    Sep 2006
    Location
    Incognito
    Posts
    387

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

    Can you alter the script so factions do not fall into debt please. It's a big problem now, it seems nearly every faction except sellies are in debt, which will cripple future expansion. I can't keep going around giving every faction money boosts, it falls as quickly as i give it to them.

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

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

    They may seem to be broke but the 10k they receive each turn from VH difficulty and the extra money keeps them well able to train troops to throw at you. The AI will never hoard money when fighting against the human controlled faction they'll recruit till they run dry.
    @Wolfshart, try my script or even better Sheep's script which gives 3500 to the rebels, I believe that to be overkill as factions will mostly just attack each other rather than the 2 stack garrisoned Eleutheroi cities.
    Last edited by Redmeth; 04-24-2007 at 20:57.

  21. #141

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

    Quote Originally Posted by The Errant
    Looks like I'm finished modding the script for a while. Something in my game broke last night. I can't activate the background script at all anymore. The "Show me how" button is greyed out.
    None of the backups can make it work either. If there is no easy fix available I'll have to reinstall the entire game. And hope for the best.
    You left out the slave faction bonus in your script, dunno if that had anything to do with it.

    Quote Originally Posted by Redmeth
    @Wolfshart, try my script or even better Sheep's script which gives 3500 to the rebels, I believe that to be overkill as factions will mostly just attack each other rather than the 2 stack garrisoned Eleutheroi cities.
    I just changed mine to 2700, in line with your suggestions. But it isn't too hard to change if you want to add more... a matter of 4 keystrokes really.

    Also, if you guys make changes to your scripts, if you wouldn't mind posting the code on here so that I can copy and paste it to the first page, that would be awesome. Thanks!!
    Last edited by Sheep; 04-25-2007 at 00:30.

  22. #142

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

    Quote Originally Posted by Sheep
    Also, if you guys make changes to your scripts, if you wouldn't mind posting the code on here so that I can copy and paste it to the first page, that would be awesome. Thanks!!
    As soon as I test my modification to the code I will post it here to be reviewed.

    I am working on the idea of negating the money that the ai recieves every turn for the very hard difficulty level. I cannot remember how much it was again, so if anyone could tell me or point to where it might be written down it would be appreciaited.

    I believe the problem with the money script, it doesn't take into account how many troops that can be created in a turn for different factions. Seleucid, Egypt and Carthage can produce multiple units a turn as compared to other factions. Reducing or negating these factions ability to create units in the early game is what is needed. I am think that creating a negative money flow for these factions for the first few years.

    Small factions, those with 1 or 2 cities, should be given enough money to allow the building of one unit for the first few years. Then when and if they aquire another city, should be given a significant amount of money to be allow to produce units and stockpile money.

    These are a few idea that I am working on, though I will probably think of some more when I test my changes currently.
    Help make developers understand the importance of game AI and earn credits as a Game Designer. The Restaurant Game Project

  23. #143

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

    Sounds like a plan. Go ahead and finish up some code, maybe test it once or twice, then send it our way.

  24. #144

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

    I am on the same plan, testing and then posting the code.

  25. #145

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

    Here is the code and I will post my test of it tomorrow when I get the chance.

    Code:
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;Section 4: Money Assistance
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;Section 4a: Campaign Setting Money Negation
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    
    monitor_event FactionTurnStart FactionType romans_julii
    and not FactionIsLocal
    
    console_command add_money romans_julii, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and not FactionIsLocal
    
    console_command add_money romans_scipii, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and not FactionIsLocal
    
    console_command add_money romans_brutii, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and not FactionIsLocal
    
    console_command add_money egypt, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and not FactionIsLocal
    
    console_command add_money seleucid, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and not FactionIsLocal
    
    console_command add_money carthage, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and not FactionIsLocal
    
    console_command add_money parthia, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls
    and not FactionIsLocal
    
    console_command add_money gauls, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and not FactionIsLocal
    
    console_command add_money germans, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and not FactionIsLocal
    
    console_command add_money britons, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and not FactionIsLocal
    
    console_command add_money greek_cities, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and not FactionIsLocal
    
    console_command add_money macedon, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and not FactionIsLocal
    
    console_command add_money pontus, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and not FactionIsLocal
    
    console_command add_money armenia, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and not FactionIsLocal
    
    console_command add_money dacia, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia
    and not FactionIsLocal
    
    console_command add_money scythia, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain
    and not FactionIsLocal
    
    console_command add_money spain, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and not FactionIsLocal
    
    console_command add_money thrace, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and not FactionIsLocal
    
    console_command add_money numidia, -10000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and not FactionIsLocal
    
    console_command add_money saba, -10000
    
    end_monitor
    
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;Section 4b: Treasury Reduction
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    
    monitor_event FactionTurnStart FactionType romans_julii
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money romans_julii, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money romans_scipii, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money romans_brutii, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money egypt, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money seleucid, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money carthage, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money parthia, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money gauls, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money germans, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money britons, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money greek_cities, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money macedon, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money pontus, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money armenia, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money dacia, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money scythia, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money spain, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money thrace, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money numidia, -30000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and not FactionIsLocal
    and Treasury > 80000
    
    console_command add_money saba, -30000
    
    end_monitor
    
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;Section 4c: AI Debt Reduction
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    monitor_event FactionTurnStart FactionType romans_julii
    and not FactionIsLocal
    and Treasury > 80000
    and I_NumberOfSettlements romans_julii < 5
    
    console_command add_money romans_julii, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements romans_scipii < 5
    
    console_command add_money romans_scipii, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements romans_brutii < 5
    
    console_command add_money romans_brutii, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements egypt < 5
    
    console_command add_money egypt, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements seleucid < 5
    
    console_command add_money seleucid, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements carthage < 5
    
    console_command add_money carthage, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements parthia < 5
    
    console_command add_money parthia, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements gauls < 5
    
    console_command add_money gauls, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements germans < 5
    
    console_command add_money germans, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements britons < 5
    
    console_command add_money britons, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements greek_cities < 5
    
    console_command add_money greek_cities, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements macedon < 5
    
    console_command add_money macedon, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements pontus < 5
    
    console_command add_money pontus, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements armenia < 5
    
    console_command add_money armenia, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements dacia < 5
    
    console_command add_money dacia, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements scythia < 5
    
    console_command add_money scythia, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements spain < 5
    
    console_command add_money spain, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements thrace < 5
    
    console_command add_money thrace, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements numidia < 5
    
    console_command add_money numidia, 8000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and not FactionIsLocal
    and Treasury < -3000
    and I_NumberOfSettlements saba < 5
    
    console_command add_money saba, 8000
    
    end_monitor
    
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;Section 4d: Faction Specific City Income Bonus
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    
    ;monitor_event CharacterTurnStart FactionType egypt
    ;and AgentType = admiral
    ;and not FactionIsLocal
    ;console_command add_money egypt, 1200
    
    ;end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_julii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_julii < 5
    
    console_command add_money romans_julii, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_julii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_julii < 9
    
    console_command add_money romans_julii, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_julii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_julii < 13
    
    console_command add_money romans_julii, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_julii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_julii < 17
    
    console_command add_money romans_julii, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_julii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_julii < 21
    
    console_command add_money romans_julii, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_julii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_julii < 25
    
    console_command add_money romans_julii, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_julii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_julii > 25
    
    console_command add_money romans_julii, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_scipii < 5
    
    console_command add_money romans_scipii, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_scipii < 9
    
    console_command add_money romans_scipii, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_scipii < 13
    
    console_command add_money romans_scipii, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_scipii < 17
    
    console_command add_money romans_scipii, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_scipii < 21
    
    console_command add_money romans_scipii, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_scipii < 25
    
    console_command add_money romans_scipii, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_scipii > 25
    
    console_command add_money romans_scipii, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_brutii < 5
    
    console_command add_money romans_brutii, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_brutii < 9
    
    console_command add_money romans_brutii, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_brutii < 13
    
    console_command add_money romans_brutii, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_brutii < 17
    
    console_command add_money romans_brutii, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_brutii < 21
    
    console_command add_money romans_brutii, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_brutii < 25
    
    console_command add_money romans_brutii, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_brutii > 25
    
    console_command add_money romans_brutii, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType egypt
    and not FactionIsLocal
    and I_NumberOfSettlements egypt < 5
    
    console_command add_money egypt, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType egypt
    and not FactionIsLocal
    and I_NumberOfSettlements egypt < 9
    
    console_command add_money egypt, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType egypt
    and not FactionIsLocal
    and I_NumberOfSettlements egypt < 13
    
    console_command add_money egypt, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType egypt
    and not FactionIsLocal
    and I_NumberOfSettlements egypt < 17
    
    console_command add_money egypt, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType egypt
    and not FactionIsLocal
    and I_NumberOfSettlements egypt < 21
    
    console_command add_money egypt, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType egypt
    and not FactionIsLocal
    and I_NumberOfSettlements egypt < 25
    
    console_command add_money egypt, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType egypt
    and not FactionIsLocal
    and I_NumberOfSettlements egypt > 25
    
    console_command add_money egypt, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType seleucid
    and not FactionIsLocal
    and I_NumberOfSettlements seleucid < 5
    
    console_command add_money seleucid, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType seleucid
    and not FactionIsLocal
    and I_NumberOfSettlements seleucid < 9
    
    console_command add_money seleucid, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType seleucid
    and not FactionIsLocal
    and I_NumberOfSettlements seleucid < 13
    
    console_command add_money seleucid, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType seleucid
    and not FactionIsLocal
    and I_NumberOfSettlements seleucid < 17
    
    console_command add_money seleucid, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType seleucid
    and not FactionIsLocal
    and I_NumberOfSettlements seleucid < 21
    
    console_command add_money seleucid, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType seleucid
    and not FactionIsLocal
    and I_NumberOfSettlements seleucid < 25
    
    console_command add_money seleucid, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType seleucid
    and not FactionIsLocal
    and I_NumberOfSettlements seleucid > 25
    
    console_command add_money seleucid, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType carthage
    and not FactionIsLocal
    and I_NumberOfSettlements carthage < 5
    
    console_command add_money carthage, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType carthage
    and not FactionIsLocal
    and I_NumberOfSettlements carthage < 9
    
    console_command add_money carthage, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType carthage
    and not FactionIsLocal
    and I_NumberOfSettlements carthage < 13
    
    console_command add_money carthage, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType carthage
    and not FactionIsLocal
    and I_NumberOfSettlements carthage < 17
    
    console_command add_money carthage, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType carthage
    and not FactionIsLocal
    and I_NumberOfSettlements carthage < 21
    
    console_command add_money carthage, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType carthage
    and not FactionIsLocal
    and I_NumberOfSettlements carthage < 25
    
    console_command add_money carthage, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType carthage
    and not FactionIsLocal
    and I_NumberOfSettlements carthage > 25
    
    console_command add_money carthage, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType parthia
    and not FactionIsLocal
    and I_NumberOfSettlements parthia < 5
    
    console_command add_money parthia, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType parthia
    and not FactionIsLocal
    and I_NumberOfSettlements parthia < 9
    
    console_command add_money parthia, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType parthia
    and not FactionIsLocal
    and I_NumberOfSettlements parthia < 13
    
    console_command add_money parthia, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType parthia
    and not FactionIsLocal
    and I_NumberOfSettlements parthia < 17
    
    console_command add_money parthia, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType parthia
    and not FactionIsLocal
    and I_NumberOfSettlements parthia < 21
    
    console_command add_money parthia, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType parthia
    and not FactionIsLocal
    and I_NumberOfSettlements parthia < 25
    
    console_command add_money parthia, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType parthia
    and not FactionIsLocal
    and I_NumberOfSettlements parthia > 25
    
    console_command add_money parthia, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType gauls
    and not FactionIsLocal
    and I_NumberOfSettlements gauls < 5
    
    console_command add_money gauls, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType gauls
    and not FactionIsLocal
    and I_NumberOfSettlements gauls < 9
    
    console_command add_money gauls, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType gauls
    and not FactionIsLocal
    and I_NumberOfSettlements gauls < 13
    
    console_command add_money gauls, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType gauls
    and not FactionIsLocal
    and I_NumberOfSettlements gauls < 17
    
    console_command add_money gauls, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType gauls
    and not FactionIsLocal
    and I_NumberOfSettlements gauls < 21
    
    console_command add_money gauls, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType gauls
    and not FactionIsLocal
    and I_NumberOfSettlements gauls < 25
    
    console_command add_money gauls, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType gauls
    and not FactionIsLocal
    and I_NumberOfSettlements gauls > 25
    
    console_command add_money gauls, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType germans
    and not FactionIsLocal
    and I_NumberOfSettlements germans < 5
    
    console_command add_money germans, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType germans
    and not FactionIsLocal
    and I_NumberOfSettlements germans < 9
    
    console_command add_money germans, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType germans
    and not FactionIsLocal
    and I_NumberOfSettlements germans < 13
    
    console_command add_money germans, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType germans
    and not FactionIsLocal
    and I_NumberOfSettlements germans < 17
    
    console_command add_money germans, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType germans
    and not FactionIsLocal
    and I_NumberOfSettlements germans < 21
    
    console_command add_money germans, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType germans
    and not FactionIsLocal
    and I_NumberOfSettlements germans < 25
    
    console_command add_money germans, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType germans
    and not FactionIsLocal
    and I_NumberOfSettlements germans > 25
    
    console_command add_money germans, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType britons
    and not FactionIsLocal
    and I_NumberOfSettlements britons < 5
    
    console_command add_money britons, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType britons
    and not FactionIsLocal
    and I_NumberOfSettlements britons < 9
    
    console_command add_money britons, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType britons
    and not FactionIsLocal
    and I_NumberOfSettlements britons < 13
    
    console_command add_money britons, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType britons
    and not FactionIsLocal
    and I_NumberOfSettlements britons < 17
    
    console_command add_money britons, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType britons
    and not FactionIsLocal
    and I_NumberOfSettlements britons < 21
    
    console_command add_money britons, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType britons
    and not FactionIsLocal
    and I_NumberOfSettlements britons < 25
    
    console_command add_money britons, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType britons
    and not FactionIsLocal
    and I_NumberOfSettlements britons > 25
    
    console_command add_money britons, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType greek_cities
    and not FactionIsLocal
    and I_NumberOfSettlements greek_cities < 5
    
    console_command add_money greek_cities, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType greek_cities
    and not FactionIsLocal
    and I_NumberOfSettlements greek_cities < 9
    
    console_command add_money greek_cities, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType greek_cities
    and not FactionIsLocal
    and I_NumberOfSettlements greek_cities < 13
    
    console_command add_money greek_cities, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType greek_cities
    and not FactionIsLocal
    and I_NumberOfSettlements greek_cities < 17
    
    console_command add_money greek_cities, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType greek_cities
    and not FactionIsLocal
    and I_NumberOfSettlements greek_cities < 21
    
    console_command add_money greek_cities, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType greek_cities
    and not FactionIsLocal
    and I_NumberOfSettlements greek_cities < 25
    
    console_command add_money greek_cities, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType greek_cities
    and not FactionIsLocal
    and I_NumberOfSettlements greek_cities > 25
    
    console_command add_money greek_cities, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType macedon
    and not FactionIsLocal
    and I_NumberOfSettlements macedon < 5
    
    console_command add_money macedon, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType macedon
    and not FactionIsLocal
    and I_NumberOfSettlements macedon < 9
    
    console_command add_money macedon, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType macedon
    and not FactionIsLocal
    and I_NumberOfSettlements macedon < 13
    
    console_command add_money macedon, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType macedon
    and not FactionIsLocal
    and I_NumberOfSettlements macedon < 17
    
    console_command add_money macedon, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType macedon
    and not FactionIsLocal
    and I_NumberOfSettlements macedon < 21
    
    console_command add_money macedon, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType macedon
    and not FactionIsLocal
    and I_NumberOfSettlements macedon < 25
    
    console_command add_money macedon, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType macedon
    and not FactionIsLocal
    and I_NumberOfSettlements macedon > 25
    
    console_command add_money macedon, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType pontus
    and not FactionIsLocal
    and I_NumberOfSettlements pontus < 5
    
    console_command add_money pontus, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType pontus
    and not FactionIsLocal
    and I_NumberOfSettlements pontus < 9
    
    console_command add_money pontus, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType pontus
    and not FactionIsLocal
    and I_NumberOfSettlements pontus < 13
    
    console_command add_money pontus, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType pontus
    and not FactionIsLocal
    and I_NumberOfSettlements pontus < 17
    
    console_command add_money pontus, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType pontus
    and not FactionIsLocal
    and I_NumberOfSettlements pontus < 21
    
    console_command add_money pontus, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType pontus
    and not FactionIsLocal
    and I_NumberOfSettlements pontus < 25
    
    console_command add_money pontus, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType pontus
    and not FactionIsLocal
    and I_NumberOfSettlements pontus > 25
    
    console_command add_money pontus, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType armenia
    and not FactionIsLocal
    and I_NumberOfSettlements armenia < 5
    
    console_command add_money armenia, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType armenia
    and not FactionIsLocal
    and I_NumberOfSettlements armenia < 9
    
    console_command add_money armenia, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType armenia
    and not FactionIsLocal
    and I_NumberOfSettlements armenia < 13
    
    console_command add_money armenia, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType armenia
    and not FactionIsLocal
    and I_NumberOfSettlements armenia < 17
    
    console_command add_money armenia, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType armenia
    and not FactionIsLocal
    and I_NumberOfSettlements armenia < 21
    
    console_command add_money armenia, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType armenia
    and not FactionIsLocal
    and I_NumberOfSettlements armenia < 25
    
    console_command add_money armenia, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType armenia
    and not FactionIsLocal
    and I_NumberOfSettlements armenia > 25
    
    console_command add_money armenia, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType dacia
    and not FactionIsLocal
    and I_NumberOfSettlements dacia < 5
    
    console_command add_money dacia, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType dacia
    and not FactionIsLocal
    and I_NumberOfSettlements dacia < 9
    
    console_command add_money dacia, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType dacia
    and not FactionIsLocal
    and I_NumberOfSettlements dacia < 13
    
    console_command add_money dacia, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType dacia
    and not FactionIsLocal
    and I_NumberOfSettlements dacia < 17
    
    console_command add_money dacia, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType dacia
    and not FactionIsLocal
    and I_NumberOfSettlements dacia < 21
    
    console_command add_money dacia, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType dacia
    and not FactionIsLocal
    and I_NumberOfSettlements dacia < 25
    
    console_command add_money dacia, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType dacia
    and not FactionIsLocal
    and I_NumberOfSettlements dacia > 25
    
    console_command add_money dacia, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType scythia
    and not FactionIsLocal
    and I_NumberOfSettlements scythia < 5
    
    console_command add_money scythia, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType scythia
    and not FactionIsLocal
    and I_NumberOfSettlements scythia < 9
    
    console_command add_money scythia, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType scythia
    and not FactionIsLocal
    and I_NumberOfSettlements scythia < 13
    
    console_command add_money scythia, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType scythia
    and not FactionIsLocal
    and I_NumberOfSettlements scythia < 17
    
    console_command add_money scythia, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType scythia
    and not FactionIsLocal
    and I_NumberOfSettlements scythia < 21
    
    console_command add_money scythia, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType scythia
    and not FactionIsLocal
    and I_NumberOfSettlements scythia < 25
    
    console_command add_money scythia, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType scythia
    and not FactionIsLocal
    and I_NumberOfSettlements scythia > 25
    
    console_command add_money scythia, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType spain
    and not FactionIsLocal
    and I_NumberOfSettlements spain < 5
    
    console_command add_money spain, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType spain
    and not FactionIsLocal
    and I_NumberOfSettlements spain < 9
    
    console_command add_money spain, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType spain
    and not FactionIsLocal
    and I_NumberOfSettlements spain < 13
    
    console_command add_money spain, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType spain
    and not FactionIsLocal
    and I_NumberOfSettlements spain < 17
    
    console_command add_money spain, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType spain
    and not FactionIsLocal
    and I_NumberOfSettlements spain < 21
    
    console_command add_money spain, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType spain
    and not FactionIsLocal
    and I_NumberOfSettlements spain < 25
    
    console_command add_money spain, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType spain
    and not FactionIsLocal
    and I_NumberOfSettlements spain > 25
    
    console_command add_money spain, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType thrace
    and not FactionIsLocal
    and I_NumberOfSettlements thrace < 5
    
    console_command add_money thrace, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType thrace
    and not FactionIsLocal
    and I_NumberOfSettlements thrace < 9
    
    console_command add_money thrace, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType thrace
    and not FactionIsLocal
    and I_NumberOfSettlements thrace < 13
    
    console_command add_money thrace, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType thrace
    and not FactionIsLocal
    and I_NumberOfSettlements thrace < 17
    
    console_command add_money thrace, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType thrace
    and not FactionIsLocal
    and I_NumberOfSettlements thrace < 21
    
    console_command add_money thrace, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType thrace
    and not FactionIsLocal
    and I_NumberOfSettlements thrace < 25
    
    console_command add_money thrace, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType thrace
    and not FactionIsLocal
    and I_NumberOfSettlements thrace > 25
    
    console_command add_money thrace, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType numidia
    and not FactionIsLocal
    and I_NumberOfSettlements numidia < 5
    
    console_command add_money numidia, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType numidia
    and not FactionIsLocal
    and I_NumberOfSettlements numidia < 9
    
    console_command add_money numidia, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType numidia
    and not FactionIsLocal
    and I_NumberOfSettlements numidia < 13
    
    console_command add_money numidia, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType numidia
    and not FactionIsLocal
    and I_NumberOfSettlements numidia < 17
    
    console_command add_money numidia, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType numidia
    and not FactionIsLocal
    and I_NumberOfSettlements numidia < 21
    
    console_command add_money numidia, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType numidia
    and not FactionIsLocal
    and I_NumberOfSettlements numidia < 25
    
    console_command add_money numidia, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType numidia
    and not FactionIsLocal
    and I_NumberOfSettlements numidia > 25
    
    console_command add_money numidia, -500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType saba
    and not FactionIsLocal
    and I_NumberOfSettlements saba < 5
    
    console_command add_money saba, 12000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType saba
    and not FactionIsLocal
    and I_NumberOfSettlements saba < 9
    
    console_command add_money saba, 10000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType saba
    and not FactionIsLocal
    and I_NumberOfSettlements saba < 13
    
    console_command add_money saba, 8000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType saba
    and not FactionIsLocal
    and I_NumberOfSettlements saba < 17
    
    console_command add_money saba, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType saba
    and not FactionIsLocal
    and I_NumberOfSettlements saba < 21
    
    console_command add_money saba, 4000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType saba
    and not FactionIsLocal
    and I_NumberOfSettlements saba < 25
    
    console_command add_money saba, 2000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType saba
    and not FactionIsLocal
    and I_NumberOfSettlements saba > 25
    
    console_command add_money saba, -500
    
    end_monitor
    monitor_event SettlementTurnStart FactionType slave
    and not FactionIsLocal
    and I_NumberOfSettlements slave < 121
    and I_NumberOfSettlements slave > 100
    
    console_command add_money slave, 1500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType slave
    and not FactionIsLocal
    and I_NumberOfSettlements slave < 101
    and I_NumberOfSettlements slave > 80
    
    console_command add_money slave, 3000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType slave
    and not FactionIsLocal
    and I_NumberOfSettlements slave < 81
    and I_NumberOfSettlements slave > 60
    
    console_command add_money slave, 4500
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType slave
    and not FactionIsLocal
    and I_NumberOfSettlements slave < 61
    and I_NumberOfSettlements slave > 40
    
    console_command add_money slave, 6000
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType slave
    and not FactionIsLocal
    and I_NumberOfSettlements slave < 41
    
    console_command add_money slave, 7500
    
    end_monitor
    Help make developers understand the importance of game AI and earn credits as a Game Designer. The Restaurant Game Project

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

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

    After testing I'll leave this as hopefully my last revision of the script, as I invested a lot of time in testing, and well I should be studying more and testing less, but I just can't help myself and the NBA playoffs have begun too so I'm "swamped"
    So if anyone wants to continue improving my ideas please do.
    Now a few things I noted
    There is a great difference in Eleutheroi behavior when given 2900 where they fully garrison their cities in the first few years and when given 2800 they seem to take forever to build something and the AI factions conquer a lot of territory in a hurry.
    So I went with a balance of 2850. I also introduced another step to the stepped bonus and tweaked the bonuses. So here is the code, you can check it out for yourself. I'll use it in my playing and if I'll get around to any major changes, I'll update it here.

    Code:
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;Section 4: Money Assistance
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;Section 4a: Difficult Start Help
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    monitor_event FactionTurnStart FactionType romans_julii
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements romans_julii < 5
    and I_TurnNumber < 40
    
    console_command add_money romans_julii, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements romans_scipii < 5
    and I_TurnNumber < 40
    
    console_command add_money romans_scipii, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements romans_brutii < 5
    and I_TurnNumber < 40
    
    console_command add_money romans_brutii, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType egypt
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements egypt < 5
    and I_TurnNumber < 40
    
    console_command add_money egypt, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType seleucid
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements seleucid < 5
    and I_TurnNumber < 40
    
    console_command add_money seleucid, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType carthage
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements carthage < 5
    and I_TurnNumber < 40
    
    console_command add_money carthage, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType parthia
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements parthia < 5
    and I_TurnNumber < 40
    
    console_command add_money parthia, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType gauls
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements gauls < 5
    and I_TurnNumber < 40
    
    console_command add_money gauls, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType germans
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements germans < 5
    and I_TurnNumber < 40
    
    console_command add_money germans, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType britons
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements britons < 5
    and I_TurnNumber < 40
    
    console_command add_money britons, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType greek_cities
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements greek_cities < 5
    and I_TurnNumber < 40
    
    console_command add_money greek_cities, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType macedon
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements macedon < 5
    and I_TurnNumber < 40
    
    console_command add_money macedon, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType pontus
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements pontus < 5
    and I_TurnNumber < 40
    
    console_command add_money pontus, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType armenia
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements armenia < 5
    and I_TurnNumber < 40
    
    console_command add_money armenia, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType dacia
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements dacia < 5
    and I_TurnNumber < 40
    
    console_command add_money dacia, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType scythia
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements scythia < 5
    and I_TurnNumber < 40
    
    console_command add_money scythia, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType spain
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements spain < 5
    and I_TurnNumber < 40
    
    console_command add_money spain, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType thrace
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements thrace < 5
    and I_TurnNumber < 40
    
    console_command add_money thrace, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType numidia
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements numidia < 5
    and I_TurnNumber < 40
    
    console_command add_money numidia, 6000
    
    end_monitor
    
    monitor_event FactionTurnStart FactionType saba
    and not FactionIsLocal
    and Treasury < 3000
    and I_NumberOfSettlements saba < 5
    and I_TurnNumber < 40
    
    console_command add_money saba, 6000
    
    end_monitor
    
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;Section 4b: City Income Bonus
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    
    monitor_event CharacterTurnStart FactionType egypt
    and AgentType = admiral
    and not FactionIsLocal
    console_command add_money egypt, 600
    end_monitor
    
    
    ;Rome
    
    
    monitor_event SettlementTurnStart FactionType seleucid
    and not FactionIsLocal
    and I_TurnNumber  < 81
    and Treasury < 100000
    
    console_command add_money seleucid, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType seleucid
    and not FactionIsLocal
    and I_NumberOfSettlements seleucid < 4
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money seleucid, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType seleucid
    and not FactionIsLocal
    and I_NumberOfSettlements seleucid < 9
    and I_NumberOfSettlements seleucid > 3
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money seleucid, 1050
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType seleucid
    and not FactionIsLocal
    and I_NumberOfSettlements seleucid < 16
    and I_NumberOfSettlements seleucid > 8
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money seleucid, 850
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType seleucid
    and not FactionIsLocal
    and I_NumberOfSettlements seleucid < 25
    and I_NumberOfSettlements seleucid > 15
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money seleucid, 650
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType seleucid
    and not FactionIsLocal
    and I_NumberOfSettlements seleucid < 35
    and I_NumberOfSettlements seleucid > 24
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money seleucid, 450
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType seleucid
    and not FactionIsLocal
    and I_NumberOfSettlements seleucid > 34
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money seleucid, 300
    
    end_monitor
    
    
    ;Saka
    
    
    monitor_event SettlementTurnStart FactionType pontus
    and not FactionIsLocal
    and I_TurnNumber  < 81
    and Treasury < 100000
    
    console_command add_money pontus, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType pontus
    and not FactionIsLocal
    and I_NumberOfSettlements pontus < 4
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money pontus, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType pontus
    and not FactionIsLocal
    and I_NumberOfSettlements pontus < 9
    and I_NumberOfSettlements pontus > 3
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money pontus, 1050
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType pontus
    and not FactionIsLocal
    and I_NumberOfSettlements pontus < 16
    and I_NumberOfSettlements pontus > 8
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money pontus, 850
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType pontus
    and not FactionIsLocal
    and I_NumberOfSettlements pontus < 25
    and I_NumberOfSettlements pontus > 15
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money pontus, 650
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType pontus
    and not FactionIsLocal
    and I_NumberOfSettlements pontus < 35
    and I_NumberOfSettlements pontus > 24
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money pontus, 450
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType pontus
    and not FactionIsLocal
    and I_NumberOfSettlements pontus > 34
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money pontus, 300
    
    end_monitor
    
    
    ;Arverni
    
    
    monitor_event SettlementTurnStart FactionType scythia
    and not FactionIsLocal
    and I_TurnNumber  < 81
    and Treasury < 100000
    
    console_command add_money scythia, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType scythia
    and not FactionIsLocal
    and I_NumberOfSettlements scythia < 4
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money scythia, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType scythia
    and not FactionIsLocal
    and I_NumberOfSettlements scythia < 9
    and I_NumberOfSettlements scythia > 3
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money scythia, 1050
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType scythia
    and not FactionIsLocal
    and I_NumberOfSettlements scythia < 16
    and I_NumberOfSettlements scythia > 8
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money scythia, 850
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType scythia
    and not FactionIsLocal
    and I_NumberOfSettlements scythia < 25
    and I_NumberOfSettlements scythia > 15
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money scythia, 650
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType scythia
    and not FactionIsLocal
    and I_NumberOfSettlements scythia < 35
    and I_NumberOfSettlements scythia > 24
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money scythia, 450
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType scythia
    and not FactionIsLocal
    and I_NumberOfSettlements scythia > 34
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money scythia, 300
    
    end_monitor
    
    
    ;Saba
    
    
    monitor_event SettlementTurnStart FactionType saba
    and not FactionIsLocal
    and I_TurnNumber  < 81
    and Treasury < 100000
    
    console_command add_money saba, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType saba
    and not FactionIsLocal
    and I_NumberOfSettlements saba < 4
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money saba, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType saba
    and not FactionIsLocal
    and I_NumberOfSettlements saba < 9
    and I_NumberOfSettlements saba > 3
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money saba, 1050
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType saba
    and not FactionIsLocal
    and I_NumberOfSettlements saba < 16
    and I_NumberOfSettlements saba > 8
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money saba, 850
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType saba
    and not FactionIsLocal
    and I_NumberOfSettlements saba < 25
    and I_NumberOfSettlements saba > 15
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money saba, 650
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType saba
    and not FactionIsLocal
    and I_NumberOfSettlements saba < 35
    and I_NumberOfSettlements saba > 24
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money saba, 450
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType saba
    and not FactionIsLocal
    and I_NumberOfSettlements saba > 34
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money saba, 300
    
    end_monitor
    
    
    ;Makedon
    
    
    monitor_event SettlementTurnStart FactionType macedon
    and not FactionIsLocal
    and I_TurnNumber  < 81
    and Treasury < 100000
    
    console_command add_money macedon, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType macedon
    and not FactionIsLocal
    and I_NumberOfSettlements macedon < 4
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money macedon, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType macedon
    and not FactionIsLocal
    and I_NumberOfSettlements macedon < 9
    and I_NumberOfSettlements macedon > 3
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money macedon, 1050
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType macedon
    and not FactionIsLocal
    and I_NumberOfSettlements macedon < 16
    and I_NumberOfSettlements macedon > 8
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money macedon, 850
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType macedon
    and not FactionIsLocal
    and I_NumberOfSettlements macedon < 25
    and I_NumberOfSettlements macedon > 15
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money macedon, 650
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType macedon
    and not FactionIsLocal
    and I_NumberOfSettlements macedon < 35
    and I_NumberOfSettlements macedon > 24
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money macedon, 450
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType macedon
    and not FactionIsLocal
    and I_NumberOfSettlements macedon > 34
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money macedon, 300
    
    end_monitor
    
    
    ;Ptolemies
    
    
    monitor_event SettlementTurnStart FactionType numidia
    and not FactionIsLocal
    and I_TurnNumber  < 81
    and Treasury < 100000
    
    console_command add_money numidia, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType numidia
    and not FactionIsLocal
    and I_NumberOfSettlements numidia < 4
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money numidia, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType numidia
    and not FactionIsLocal
    and I_NumberOfSettlements numidia < 9
    and I_NumberOfSettlements numidia > 3
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money numidia, 1050
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType numidia
    and not FactionIsLocal
    and I_NumberOfSettlements numidia < 16
    and I_NumberOfSettlements numidia > 8
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money numidia, 850
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType numidia
    and not FactionIsLocal
    and I_NumberOfSettlements numidia < 25
    and I_NumberOfSettlements numidia > 15
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money numidia, 650
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType numidia
    and not FactionIsLocal
    and I_NumberOfSettlements numidia < 35
    and I_NumberOfSettlements numidia > 24
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money numidia, 450
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType numidia
    and not FactionIsLocal
    and I_NumberOfSettlements numidia > 34
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money numidia, 300
    
    end_monitor
    
    
    ;Seleukids
    
    
    monitor_event SettlementTurnStart FactionType romans_julii
    and not FactionIsLocal
    and I_TurnNumber  < 81
    and Treasury < 100000
    
    console_command add_money romans_julii, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_julii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_julii < 4
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money romans_julii, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_julii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_julii < 9
    and I_NumberOfSettlements romans_julii > 3
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money romans_julii, 1050
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_julii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_julii < 16
    and I_NumberOfSettlements romans_julii > 8
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money romans_julii, 850
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_julii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_julii < 25
    and I_NumberOfSettlements romans_julii > 15
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money romans_julii, 650
    
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_julii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_julii < 35
    and I_NumberOfSettlements romans_julii > 24
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money romans_julii, 450
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_julii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_julii > 34
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money romans_julii, 300
    
    end_monitor
    
    
    ;Carthage
    
    
    monitor_event SettlementTurnStart FactionType egypt
    and not FactionIsLocal
    and I_TurnNumber  < 81
    and Treasury < 100000
    
    console_command add_money egypt, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType egypt
    and not FactionIsLocal
    and I_NumberOfSettlements egypt < 4
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money egypt, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType egypt
    and not FactionIsLocal
    and I_NumberOfSettlements egypt < 9
    and I_NumberOfSettlements egypt > 3
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money egypt, 1050
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType egypt
    and not FactionIsLocal
    and I_NumberOfSettlements egypt < 16
    and I_NumberOfSettlements egypt > 8
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money egypt, 850
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType egypt
    and not FactionIsLocal
    and I_NumberOfSettlements egypt < 25
    and I_NumberOfSettlements egypt > 15
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money egypt, 650
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType egypt
    and not FactionIsLocal
    and I_NumberOfSettlements egypt < 35
    and I_NumberOfSettlements egypt > 24
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money egypt, 450
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType egypt
    and not FactionIsLocal
    and I_NumberOfSettlements egypt > 34
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money egypt, 300
    
    end_monitor
    
    
    ;Parthians
    
    
    monitor_event SettlementTurnStart FactionType parthia
    and not FactionIsLocal
    and I_TurnNumber  < 81
    and Treasury < 100000
    
    console_command add_money parthia, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType parthia
    and not FactionIsLocal
    and I_NumberOfSettlements parthia < 4
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money parthia, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType parthia
    and not FactionIsLocal
    and I_NumberOfSettlements parthia < 9
    and I_NumberOfSettlements parthia > 3
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money parthia, 1050
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType parthia
    and not FactionIsLocal
    and I_NumberOfSettlements parthia < 16
    and I_NumberOfSettlements parthia > 8
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money parthia, 850
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType parthia
    and not FactionIsLocal
    and I_NumberOfSettlements parthia < 25
    and I_NumberOfSettlements parthia > 15
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money parthia, 650
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType parthia
    and not FactionIsLocal
    and I_NumberOfSettlements parthia < 35
    and I_NumberOfSettlements parthia > 24
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money parthia, 450
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType parthia
    and not FactionIsLocal
    and I_NumberOfSettlements parthia > 34
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money parthia, 300
    
    end_monitor
    
    
    ;Pontus
    
    
    monitor_event SettlementTurnStart FactionType carthage
    and not FactionIsLocal
    and I_TurnNumber  < 81
    and Treasury < 100000
    
    console_command add_money carthage, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType carthage
    and not FactionIsLocal
    and I_NumberOfSettlements carthage < 4
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money carthage, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType carthage
    and not FactionIsLocal
    and I_NumberOfSettlements carthage < 9
    and I_NumberOfSettlements carthage > 3
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money carthage, 1050
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType carthage
    and not FactionIsLocal
    and I_NumberOfSettlements carthage < 16
    and I_NumberOfSettlements carthage > 8
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money carthage, 850
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType carthage
    and not FactionIsLocal
    and I_NumberOfSettlements carthage < 25
    and I_NumberOfSettlements carthage > 15
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money carthage, 650
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType carthage
    and not FactionIsLocal
    and I_NumberOfSettlements carthage < 35
    and I_NumberOfSettlements carthage > 24
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money carthage, 450
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType carthage
    and not FactionIsLocal
    and I_NumberOfSettlements carthage > 34
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money carthage, 300
    
    end_monitor
    
    
    ;Aedui
    
    monitor_event SettlementTurnStart FactionType gauls
    and not FactionIsLocal
    and I_TurnNumber  < 81
    and Treasury < 100000
    
    console_command add_money gauls, 1200
    
    end_monitor
    
    
    monitor_event SettlementTurnStart FactionType gauls
    and not FactionIsLocal
    and I_NumberOfSettlements gauls < 4
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money gauls, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType gauls
    and not FactionIsLocal
    and I_NumberOfSettlements gauls < 9
    and I_NumberOfSettlements gauls > 3
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money gauls, 1050
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType gauls
    and not FactionIsLocal
    and I_NumberOfSettlements gauls < 16
    and I_NumberOfSettlements gauls > 8
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money gauls, 850
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType gauls
    and not FactionIsLocal
    and I_NumberOfSettlements gauls < 25
    and I_NumberOfSettlements gauls > 15
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money gauls, 650
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType gauls
    and not FactionIsLocal
    and I_NumberOfSettlements gauls < 35
    and I_NumberOfSettlements gauls > 24
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money gauls, 450
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType gauls
    and not FactionIsLocal
    and I_NumberOfSettlements gauls > 34
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money gauls, 300
    
    end_monitor
    
    ;Sweboz
    
    monitor_event SettlementTurnStart FactionType germans
    and not FactionIsLocal
    and I_TurnNumber  < 81
    and Treasury < 100000
    
    console_command add_money germans, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType germans
    and not FactionIsLocal
    and I_NumberOfSettlements germans < 4
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money germans, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType germans
    and not FactionIsLocal
    and I_NumberOfSettlements germans < 9
    and I_NumberOfSettlements germans > 3
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money germans, 1050
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType germans
    and not FactionIsLocal
    and I_NumberOfSettlements germans < 16
    and I_NumberOfSettlements germans > 8
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money germans, 850
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType germans
    and not FactionIsLocal
    and I_NumberOfSettlements germans < 25
    and I_NumberOfSettlements germans > 15
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money germans, 650
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType germans
    and not FactionIsLocal
    and I_NumberOfSettlements germans < 35
    and I_NumberOfSettlements germans > 24
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money germans, 450
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType germans
    and not FactionIsLocal
    and I_NumberOfSettlements germans > 34
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money germans, 300
    
    end_monitor
    
    ;Casse
    
    monitor_event SettlementTurnStart FactionType britons
    and not FactionIsLocal
    and I_TurnNumber  < 81
    and Treasury < 100000
    
    console_command add_money britons, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType britons
    and not FactionIsLocal
    and I_NumberOfSettlements britons < 4
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money britons, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType britons
    and not FactionIsLocal
    and I_NumberOfSettlements britons < 9
    and I_NumberOfSettlements britons > 3
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money britons, 1050
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType britons
    and not FactionIsLocal
    and I_NumberOfSettlements britons < 16
    and I_NumberOfSettlements britons > 8
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money britons, 850
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType britons
    and not FactionIsLocal
    and I_NumberOfSettlements britons < 25
    and I_NumberOfSettlements britons > 15
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money britons, 650
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType britons
    and not FactionIsLocal
    and I_NumberOfSettlements britons < 35
    and I_NumberOfSettlements britons > 24
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money britons, 450
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType britons
    and not FactionIsLocal
    and I_NumberOfSettlements britons > 34
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money britons, 300
    
    end_monitor
    
    
    ;Armenia
    
    monitor_event SettlementTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and I_TurnNumber  < 81
    and Treasury < 100000
    
    console_command add_money romans_scipii, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_scipii < 4
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money romans_scipii, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_scipii < 9
    and I_NumberOfSettlements romans_scipii > 3
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money romans_scipii, 1050
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_scipii < 16
    and I_NumberOfSettlements romans_scipii > 8
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money romans_scipii, 850
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_scipii < 25
    and I_NumberOfSettlements romans_scipii > 15
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money romans_scipii, 650
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_scipii < 35
    and I_NumberOfSettlements romans_scipii > 24
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money romans_scipii, 450
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_scipii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_scipii > 34
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money romans_scipii, 300
    
    end_monitor
    
    
    ;Getai
    
    monitor_event SettlementTurnStart FactionType dacia
    and not FactionIsLocal
    and I_TurnNumber  < 81
    and Treasury < 100000
    
    console_command add_money dacia, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType dacia
    and not FactionIsLocal
    and I_NumberOfSettlements dacia < 4
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money dacia, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType dacia
    and not FactionIsLocal
    and I_NumberOfSettlements dacia < 9
    and I_NumberOfSettlements dacia > 3
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money dacia, 1050
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType dacia
    and not FactionIsLocal
    and I_NumberOfSettlements dacia < 16
    and I_NumberOfSettlements dacia > 8
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money dacia, 850
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType dacia
    and not FactionIsLocal
    and I_NumberOfSettlements dacia < 25
    and I_NumberOfSettlements dacia > 15
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money dacia, 650
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType dacia
    and not FactionIsLocal
    and I_NumberOfSettlements dacia < 35
    and I_NumberOfSettlements dacia > 24
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money dacia, 450
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType dacia
    and not FactionIsLocal
    and I_NumberOfSettlements dacia > 34
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money dacia, 300
    
    end_monitor
    
    
    
    
    ;Greeks
    
    monitor_event SettlementTurnStart FactionType greek_cities
    and not FactionIsLocal
    and I_TurnNumber  < 81
    and Treasury < 100000
    
    console_command add_money greek_cities, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType greek_cities
    and not FactionIsLocal
    and I_NumberOfSettlements greek_cities < 4
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money greek_cities, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType greek_cities
    and not FactionIsLocal
    and I_NumberOfSettlements greek_cities < 9
    and I_NumberOfSettlements greek_cities > 3
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money greek_cities, 1050
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType greek_cities
    and not FactionIsLocal
    and I_NumberOfSettlements greek_cities < 16
    and I_NumberOfSettlements greek_cities > 8
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money greek_cities, 850
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType greek_cities
    and not FactionIsLocal
    and I_NumberOfSettlements greek_cities < 25
    and I_NumberOfSettlements greek_cities > 15
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money greek_cities, 650
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType greek_cities
    and not FactionIsLocal
    and I_NumberOfSettlements greek_cities < 35
    and I_NumberOfSettlements greek_cities > 24
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money greek_cities, 450
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType greek_cities
    and not FactionIsLocal
    and I_NumberOfSettlements greek_cities > 34
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money greek_cities, 300
    
    end_monitor
    
    
    ;Baktria
    
    
    monitor_event SettlementTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and I_TurnNumber  < 81
    and Treasury < 100000
    
    console_command add_money romans_brutii, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_brutii < 4
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money romans_brutii, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_brutii < 9
    and I_NumberOfSettlements romans_brutii > 3
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money romans_brutii, 1050
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_brutii < 16
    and I_NumberOfSettlements romans_brutii > 8
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money romans_brutii, 850
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_brutii < 25
    and I_NumberOfSettlements romans_brutii > 15
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money romans_brutii, 650
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_brutii < 35
    and I_NumberOfSettlements romans_brutii > 24
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money romans_brutii, 450
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType romans_brutii
    and not FactionIsLocal
    and I_NumberOfSettlements romans_brutii > 34
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money romans_brutii, 300
    
    end_monitor
    
    
    ;Sarmatians
    
    
    monitor_event SettlementTurnStart FactionType armenia
    and not FactionIsLocal
    and I_TurnNumber  < 81
    and Treasury < 100000
    
    console_command add_money armenia, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType armenia
    and not FactionIsLocal
    and I_NumberOfSettlements armenia < 4
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money armenia, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType armenia
    and not FactionIsLocal
    and I_NumberOfSettlements armenia < 9
    and I_NumberOfSettlements armenia > 3
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money armenia, 1050
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType armenia
    and not FactionIsLocal
    and I_NumberOfSettlements armenia < 16
    and I_NumberOfSettlements armenia > 8
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money armenia, 850
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType armenia
    and not FactionIsLocal
    and I_NumberOfSettlements armenia < 25
    and I_NumberOfSettlements armenia > 15
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money armenia, 650
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType armenia
    and not FactionIsLocal
    and I_NumberOfSettlements armenia < 35
    and I_NumberOfSettlements armenia > 24
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money armenia, 450
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType armenia
    and not FactionIsLocal
    and I_NumberOfSettlements armenia > 34
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money armenia, 300
    
    end_monitor
    
    
    ;Lusotanians
    
    
    monitor_event SettlementTurnStart FactionType spain
    and not FactionIsLocal
    and I_TurnNumber  < 81
    and Treasury < 100000
    
    console_command add_money spain, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType spain
    and not FactionIsLocal
    and I_NumberOfSettlements spain < 4
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money spain, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType spain
    and not FactionIsLocal
    and I_NumberOfSettlements spain < 9
    and I_NumberOfSettlements spain > 3
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money spain, 1050
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType spain
    and not FactionIsLocal
    and I_NumberOfSettlements spain < 16
    and I_NumberOfSettlements spain > 8
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money spain, 850
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType spain
    and not FactionIsLocal
    and I_NumberOfSettlements spain < 25
    and I_NumberOfSettlements spain > 15
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money spain, 650
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType spain
    and not FactionIsLocal
    and I_NumberOfSettlements spain < 35
    and I_NumberOfSettlements spain > 24
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money spain, 450
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType spain
    and not FactionIsLocal
    and I_NumberOfSettlements spain > 34
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money spain, 300
    
    end_monitor
    
    
    
    ;Epirus
    
    monitor_event SettlementTurnStart FactionType thrace
    and not FactionIsLocal
    and I_TurnNumber  < 81
    and Treasury < 100000
    
    console_command add_money thrace, 1200
    
    end_monitor
    
    
    monitor_event SettlementTurnStart FactionType thrace
    and not FactionIsLocal
    and I_NumberOfSettlements thrace < 4
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money thrace, 1200
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType thrace
    and not FactionIsLocal
    and I_NumberOfSettlements thrace < 9
    and I_NumberOfSettlements thrace > 3
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money thrace, 1050
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType thrace
    and not FactionIsLocal
    and I_NumberOfSettlements thrace < 16
    and I_NumberOfSettlements thrace > 8
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money thrace, 850
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType thrace
    and not FactionIsLocal
    and I_NumberOfSettlements thrace < 25
    and I_NumberOfSettlements thrace > 15
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money thrace, 650
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType thrace
    and not FactionIsLocal
    and I_NumberOfSettlements thrace < 35
    and I_NumberOfSettlements thrace > 24
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money thrace, 450
    
    end_monitor
    
    monitor_event SettlementTurnStart FactionType thrace
    and not FactionIsLocal
    and I_NumberOfSettlements thrace > 34
    and I_TurnNumber  > 80
    and Treasury < 100000
    
    console_command add_money thrace, 300
    
    end_monitor
    
    
    ;Slave
    
    
    monitor_event SettlementTurnStart FactionType slave
    and not FactionIsLocal
    
    console_command add_money slave, 2850
    
    end_monitor
    And the link is HERE: http://rapidshare.com/files/27804675...CRIPT.TXT.html
    or HERE: http://www.axifile.com/?8309078
    So please test it and think about improving.
    IMPORTANT!:
    Good news, testing it further I can say I am satisfied with the way things are and I won't be doing any more changes in the near future.
    So please, Sheep if you could post it on the first page and mention something about it's "stable" state in my opinion of course. And also include in the post please my statement that my script tries to keep things the way the team intended, some factions are poorer some richer, some more advanced some less and my script does not try to balance them into equally powerful factions.
    The Eleutheroi are balanced at 2850 per turn and in the first 10 years or so they may seem to stall and the factions conquer a few neighboring provinces, after that they produce their own roads ports and other buildings and start getting stronger and building troops to garrison their settlements stalling the factions from over-expanding (in my 0.81a campaign, played with the original script, by 240 Epeiros was at Ak-ink and in the province to its north fighting over them with the Romans and I don't think that is a good thing) until they get strong enough or the rebel generals begin to die of old age.
    The flat 1200 bonuses that last 20 years coupled with the rough start bonus period extended to 10 years insure that the factions build up their own infrastructure and armies and expand a bit but in a "normal" fashion. After the 20 years the stepped bonuses kick in to make sure that the big factions (you know who you are you silver-wearing bastards) do not have endless armies to throw at their neighbors and steam-rolling them or at you the player boring you with stack after stack but are not pushovers either.
    Thank you for reading this and for testing my script.
    That's about all the explaining I have right now so Sheep when you update please include it in the first page.
    Last edited by Redmeth; 04-26-2007 at 09:39.

  27. #147

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

    he "Show me how" button is greyed out.
    This means that there is some serious syntax error in script.
    Check changes You made to script, find miastake, fix it and it will work again.

  28. #148

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

    Quick note of appreciation to you guys for trying to fix this up.

    I believe it will need to be revisited for balance for each major release of EB, since there will be OTHER changes that might affect the balance of the campaign.

    But you have definitely made an improvement, and done the heavy lifting. Cheers,

    Hunter

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

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

    Good news people. I figured out a way around my problem and I'm running a working testscript with my latest modifications. So far some very interesting results.
    Only the Saka have stalled so far, becoming a protectorate of Baktria. Every other faction, with the exception of my own, has or is expanding. It's just beautiful to watch.
    I'm still only at 240 B.C so don't expect any screenies for a while.

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

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

  30. #150
    Member Member Dumbass's Avatar
    Join Date
    Sep 2006
    Location
    Incognito
    Posts
    387

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

    Quote Originally Posted by Redmeth
    They may seem to be broke but the 10k they receive each turn from VH difficulty and the extra money keeps them well able to train troops to throw at you. The AI will never hoard money when fighting against the human controlled faction they'll recruit till they run dry.
    They are broke, for example I gave each celtic faction 200000 to get out of their debts, and those faction's treasury only rose to about 40000 the next turn. They are getting into serious debt, plus making the factions unable to go into debt won't hinder anything, it'll just stop them from becoming crippled, ready to get steam rolled.

Page 5 of 9 FirstFirst 123456789 LastLast

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