Hay guys I started talking about a couple of ideas I had for modding the AI's treasury bonus script on another thread and thought I should start my own. Anyway here's what I posted on the other thread:
~~~~~~~~~~~~~~~~~~~~~~
Spoiler Alert, click show to read:
I actully have two ideas I thought of that might be kinda interesting to try but I'm not all that great a coder(I can only do the most basic changes right now) and wasn't quite sure how to implament them.
Option A: Every other turn Bonus
I was thinking of setting it so that instead of the AI getting 10,000 gold if their bank is at -500 every turn, set it so they get 20,000 if their bank is at -500 but have it set so it only checks the AI's balance every other turn. While at first this may seem to do the same thing it could potentially change things in 3 ways that I could think of (only two of which I can remember at this moment):
1. Since any faction can only build so many units per turn, if the AI runs out of money on one of the odd turns they'll have to wait until the next turn to continue building units. Hence it COULD potentially slow down the AI's ability to spawn units without actully stopping them from doing so.
2. If a faction happens to loose enough units during a turn it may be possible that during the next even turn their treasury manages to stay just above the -500 mark. Hence they will not recieve the bonus until the next even turn. In a way this could on occation give the AI faction the apearance that they've taken enough damage that they need a few moments to take a step back to recupe, rather than the "we just lost five thousand men, oh well here's the next five thousand" that it seems to have right now.
As well maybe altering the income from 20,000 to 15,000 or changing the negative balance from -500 to -1000 might worth considering with this idea as well. Or possibly even make it check every third turn and give 30,000.
Option B: Demishing returns baised on unit upkeep
At the moment it seems the AI is being rewarded for over building huge hard to mantain armies, hence one of the reasons Dwarves are probably doing so well. This idea would be that while the AI still gets bonuses once their bank hits -500 however the amount they get will decrease depending on how much of it is already being spent on unit upkeep.
For example if unit upkeep is =<10,000 they would get 10,000 gold. If unit upkeep is >10,000 but =<15,000 they'll recieve 9,000, and so on and so forth. (I'm not certain what the typical AI unit upkeep is so these numbers would probably be different)
By doing this you would be able to allow the AI to build units quickly at first, but as their armys get larger they'll grow slower. Then should the AI take a large lose of units in a given turn their income would jump up again giving them the chance to build up once more.
This one could also help balance factions with high upkeep units vrs factions with low upkeep units. As a faction like the Dwarves would begin slowing down in their ability to pump out new units faster than a faction like OotMM who's units are cheaper to maintain. At least thoredically.
~~~~~~~~~~~~~~~~~~~~~
Now I've already finished Option A and am ganna test it tonight. If anyone else wants ta bata test it with me, feel free to upload the file at the end of this post. It should be save compatable (and hopefully coded right), but I'm not sure as I won't be testing it until I'm done with this post.
edit: Tested it works
As for Option B, if someone could tell me what I'd need to write to code in the unit upkeep as well I'd really apreaciate it. I'm hoping this mod will help curb the sudden power explosion of the AI Dwarves as well.





Reply With Quote



Under the patronage of 




