Yes, at least in a kludgy sort of way. You have access to AI missions through unitopMission() and unitushMission(). You can use these to "drive" units to particular destinations (whether AI or human) as done in this thread: http://forums.civfanatics.com/showthread.php?t=396273&highlight=unit+move. So at the minimum it would be possible to periodically drive AI units back to their homeland. I think you can do even better than that with missions, but you will have to explore that yourself. I recomend searching for all cases of PopMission and PushMission in existing Lua.
It seems logical to also adjust the 'War' setting under 'Major Civ Approach' in the leader XML files. Otherwise it would still be just as likely they declare war... I don't think you want civs declaring war but keep their units at home.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.