Changing city original ownership

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.
 
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.
 
Neither does gifting units
true but i never said it did. however unit:SetOriginalOwner(playerID) might do the trick
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.
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
 
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
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.
 
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.
 
Would anyone know how to change the value for "original ownership" in the following situation?
  • A city is created in SDK > WorldBuilder, given to civ1
  • This city denotes civ1 as its original owner in SDK > Firaxis Live Tuner
  • I want to make civ2 the "original owner" of the city, simulating this city having been lost to civ1 in the recent past
Also, does anyone know what exactly the effects of original ownership are? I'm under the impression it creates less of a diplomatic hit when a civ reconquers a city it originally owned. Any help is welcome.
 
By definition, you can't change the originalOwner value of a city.

In the situation you want, create the city in World Builder and assign it to Civ2. Then in the lua that runs at the start of your scenario arrange for Civ1 to capture/acquire it, by some means (options given in the posts above - none are trivial).

The originalOwner value is used to negate diplo hits for re-capturing your own cities, to determine if you can raze/puppet captured cities, to control great work swapping when capturing cities, to direct the AI to prefer re-capturing lost cities than attacking others, to direct the AI to favour trade deals involving its original cities, to control archaeological records, to work out how many lost original capitals there are, and some other minor stuff.
 
Top Bottom