on that last example think you're missing
set_counter loop 0
under the declare_counter
not sure if it defaults to that otherwise.
@Monkwarrior, I haven't tried -ai from background script, I might have a look at that. I did get it to save with that on shortcut at one stage but, reloading the save without the shortcut command still set it off on its own again, so I rather gave up on looking at it.
If you are doing anything that switches command to AI I think you may need to look at how rest of script works, I assume that it messes up anything reliant on LocalFaction triggers. I've got Year Jump script triggerable while background script is in use, so I've put a counters in to determine what local faction is on first turn, and use those counters throughout instead of LocalFaction
EDIT: old discussion on -ai for info
https://forums.totalwar.org/vb/showt...ghlight=run_ai
Bookmarks