From last FAQ update:
Q: MikeB mentioned an auto-run feature that can be used to run a game without player intervention. This would be very useful for mod testing. Is there any way we can activate it now? If not, will we be able to in the future?
A: MikeB was very naughty to mention that and will shortly be fighting the company bear to pay for his mistake. :) This is a feature we use internally for debugging. Autorun is not something that we've openly advertised for released versions, and it's not normally something that a player would want to do, simply because they are *playing* the game rather than *watching* stuff happen. However, there's a -ai command line option that turns autorun on in release builds after the 1.2 patch. This doesn't work with earlier versions of the game.
This script is example of controlling AI autorun behavior to make it possible to review situation after X turns.
Code:
script
suspend_during_battle on
while I_TurnNumber < 41
end_while
console_command control gauls
while I_TurnNumber < 42
end_while
console_command control germans
while I_TurnNumber < 43
end_while
console_command control britons
while I_TurnNumber < 44
end_while
console_command control dacia
while I_TurnNumber < 45
end_while
console_command control scythia
while I_TurnNumber < 46
end_while
console_command control spain
end_script
So, in case if you started the game with -ai parameter, this script will stop autorun after 40 turns and give command to gauls for one turn, next turn to germans, then to britons, etc...
Useful if you test some mod, and need to see how situation would resolve when AI plays.
P.S.
The script is standard campaign script.
Bookmarks