Couldn't you make them a unique unit that is unbuildable and have the script check to see if it's outside of a city at the end of any turn, it gets disbanded automatically?
My knowledge of scripting is about zero (but I do find it interesting), so I'm not sure if this is even possible.
Bookmarks