Here's the code I'm using now:
Spoiler Alert, click show to read:
There are two tasks that I still need to complete:
1. Figure out how to loop this script, so that it keeps advancing turns under AI control until it reaches a certain turn number.
2. Create triggers to switch control temporarily to another faction whenever a dialog box pops up (eg a treaty negotiation, or battle, or adoption box).
Can anyone help with #1? Please? I'm guessing it has something to do with monitors and whiles, but I just don't get it.
Bookmarks