Discussion in 'Civ5 - Creation & Customization' started by zaloglu2211, Nov 17, 2015.
Is it possible?
Moderator Action: The Modding Tutorials and Reference sub-forum is for completed tutorials and reference guides. All queries and requests for help go in the main Creation and Customisation forum. I've moved this thread to there.
Please read the forum rules: http://forums.civfanatics.com/showthread.php?t=422889
Do you mean giving the city away to a different civ, or changing the data 'tagged' to the city for who originally constructed it ?
possible via Lua for units but not for cities (would require a DLL mod)
Create a Deal with the city being given for nothing in return - non trivial but certainly doable in Lua
Just to add info.
Assuming you mean giving cities to other civs mid-game, this can be achieve through player:AcquireCity.
The issue with reallocating cities via lua is that it triggers city capture events once allocated which you need to work around if wanting to do something peaceful rather than conquest.
Giving cities dies not change original owner afaik
Neither does gifting units.
If the OP really needs to change the original owner, the details of the city can be saved (name, plots, buildings, etc, etc), the city can be killed, and a new city founded, and the details restored.
true but i never said it did. however unit:SetOriginalOwner(playerID) might do the trick
that's an interesting sledgehammer workaround, but aren't there things such as trade routes which can't be restored ?
Yep, sledgehammer indeed, but only about as big as modding the DLL to do it.
Trade routes are suspect anyway, as if you could change the ownership of a city directly, you could end up with an international trade route between two cities belonging to the same player
Doesn't the Xia civ do something along those lines?
i thought the OP's question was about changing a city's ORIGINAL owner, not its CURRENT owner. say persia captured city originally founded by zulu, original owner is zulu and current owner is persia. hypothetically changing original owner to say rome (if city:SetOriginalOwner(playerID) was exposed to Lua) should have no ill effect on trade routes.
Hi, is there anyone to help me for solving this problem?
Nothing has really changed since you first asked the question.
There's no simple way to do it.
The only method anyone can think of is the one outlined by William upthread 2+ years ago. By destroying and re-creating the city for the new "original" owner, which is a different process than just giving the city to a different player (as this does not change the orignal owner value). And as he said it is a sledgehammer approach to say nothing of a bit kludgey.
Separate names with a comma.