1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

Changing city original ownership

Discussion in 'Civ5 - Creation & Customization' started by zaloglu2211, Nov 17, 2015.

  1. zaloglu2211

    zaloglu2211 Chieftain

    Joined:
    Oct 20, 2015
    Messages:
    27
    Gender:
    Male
    Location:
    Istanbul, Turkey
    Is it possible?
     
  2. Rob (R8XFT)

    Rob (R8XFT) Ancient Briton Super Moderator

    Joined:
    Aug 11, 2002
    Messages:
    10,815
    Location:
    Leeds (UK)
    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
     
  3. LeeS

    LeeS Imperator

    Joined:
    Jul 23, 2013
    Messages:
    6,449
    Location:
    Illinois, USA
    Do you mean giving the city away to a different civ, or changing the data 'tagged' to the city for who originally constructed it ?
     
  4. bc1

    bc1

    Joined:
    Jan 12, 2004
    Messages:
    1,219
    possible via Lua for units but not for cities (would require a DLL mod)
     
  5. whoward69

    whoward69 DLL Minion

    Joined:
    May 30, 2011
    Messages:
    8,360
    Location:
    Near Portsmouth, UK
    Create a Deal with the city being given for nothing in return - non trivial but certainly doable in Lua
     
  6. ww2commander

    ww2commander Emperor

    Joined:
    Aug 23, 2003
    Messages:
    1,243
    Location:
    Australia
    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.
     
  7. bc1

    bc1

    Joined:
    Jan 12, 2004
    Messages:
    1,219
    Giving cities dies not change original owner afaik
     
  8. whoward69

    whoward69 DLL Minion

    Joined:
    May 30, 2011
    Messages:
    8,360
    Location:
    Near Portsmouth, UK
    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.
     
  9. bc1

    bc1

    Joined:
    Jan 12, 2004
    Messages:
    1,219
    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 ?
     
  10. whoward69

    whoward69 DLL Minion

    Joined:
    May 30, 2011
    Messages:
    8,360
    Location:
    Near Portsmouth, UK
    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
     
  11. ima

    ima Chieftain

    Joined:
    Oct 31, 2015
    Messages:
    32
    Location:
    France
  12. bc1

    bc1

    Joined:
    Jan 12, 2004
    Messages:
    1,219
    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.
     
  13. zaloglu2211

    zaloglu2211 Chieftain

    Joined:
    Oct 20, 2015
    Messages:
    27
    Gender:
    Male
    Location:
    Istanbul, Turkey
    Hi, is there anyone to help me for solving this problem?
     
  14. LeeS

    LeeS Imperator

    Joined:
    Jul 23, 2013
    Messages:
    6,449
    Location:
    Illinois, USA
    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.
     
    zaloglu2211 likes this.

Share This Page