Would it be possible to write a script that could actively disable units in the game, for the AI ? So say once a certain condition was met, on the next round the AI could only spawn as foot guards vs normal line infantry in the previous round?
Here is a kind of broken, not realistic pseudo-code that might give you an idea more of what I'm talking about:
TotalRounds = int(TotalRounds) #The actual thing will be an intiger already, but oh well :P.
if TotalRounds is between 0 and 2:
AISpawnAsLineInfantry = True
AISpawnAsFootGuard = False
if TotalRounds is between 3 and 5:
AISpawnAsLineInfantry = False
AISpawnAsFootGuard = True
I know all the variable names are wrong etc, and it's probably full of syntax errors but it's meant to be a rough example! I'm trying to rewrite the code for siege into an invasion-styled script and this is the most practical method I can devise. The only reason I, personally, can only see it wouldn't work is that actively updating what the AI can play as is impossible/would have to be a heavy modification - but I don't know. I've never tried modding before, I'm used to writing my own programs in python from scratch and this is awfully alien to me
Why can't the game just use simple Boolean values like I do?