I just had an idea that may be useful in any RFC mod.
the problem is the AI vacating its capital on its first turn.
would it be feasible to simply pin some starting units to that tile rather than trying to teach the AI that it should leave defenders?
there's an effect that comes from an event where a unit can be pinned down for a number of turns protecting trade routes or something. perhaps this mechanic could be used? or more crudely you could just consume the moves of the units via python and have a 2 or 3 turn counter.
I would try this now but I have to go to work.
edit: it's easy, there's a method for it: "setImmobileTimer()". I just put it towards the end of createStartingUnits.
the problem is the AI vacating its capital on its first turn.
would it be feasible to simply pin some starting units to that tile rather than trying to teach the AI that it should leave defenders?
there's an effect that comes from an event where a unit can be pinned down for a number of turns protecting trade routes or something. perhaps this mechanic could be used? or more crudely you could just consume the moves of the units via python and have a 2 or 3 turn counter.
I would try this now but I have to go to work.
edit: it's easy, there's a method for it: "setImmobileTimer()". I just put it towards the end of createStartingUnits.