Revision 1 of the Script is out.
Fixes some bugs that caused the script to become overactive. I dropped the capital lost trigger as I couldn't get it to work reliably. Anyway, the spawn occurs near the capital regardless, so the impact if any is minimal.
----------------------------------------------------------------------
WHAT IS THE AI FACTION SURVIVAL SCRIPT?
This is not a script that allows eliminated factions to re-emerge. Rather, it is a simple script designed to help prevent AI factions from being eliminated in the first place.
WHAT DOES THE SCRIPT DO?
The script is a campaign_script file that runs when you start a new game. The script monitors the number of settlements the AI factions have and if an AI faction is losing settlements it creates an army near the capital city. The army will have a general and 9 other units, mostly lower/intermediate tier infantry some cavalry and archers. There is a 10 turn wait between spawns. Conditions are re-evaluated and no army is created if the script evaluates that the AI faction is back on its feet. The AI receives a small militia army on turn 1 to help it expand.
ADVANTAGES
1) Absolutely no slowdown in execution unlike some garrison scripts
2) Helps all the AI factions survive much longer in the game
3) Helps the AI factions recover their homelands when they are captured
4) Helps stop early decline of some AI Factions and aids them in recovery
5) Provides military aid, not more money which the AI doesn't seem to spend
6) Helps the AI recover its homelands - which normally have its most advanced building structures.
7) Creates a balanced army with a general that is not overpowered but is a threat.
8) Encourages the AI to expand outwards from its homelands.
9) Realistic - recruited armies almost always came from the heartlands of a kingdom where he could rely on his loyal subjects.
ESSENTIALS:
Echad 1.90 Mod is a must even if you don't use this script. This script seems to work best with his mod. I haven't tested the script without his mod.
RELEASED TO THE PUBLIC DOMAIN:
Please feel free to modify this script and hopefully improve on it. There are scriptors a lot more talented than me out there so if there are any ideas, enhancement, better ways of accomplishing what I have set out to do, make the changes and post. No permission from me is needed but some mention in the credits would be nice.
ISSUES:
Echad has a field cost script that shoudl be kept disabled. I couldn't get my script to run when it is enabled. I am still trying to figure out why.. I suspect there is something wrong with the field cost script itself as my script runs fine without it.
CREDITS:
I learned a great deal of scripting from DLV, Klink and GreenEyeDevil by studying their scripts.





Reply With Quote











