Announcement

Collapse
No announcement yet.

Change Units Owner?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Change Units Owner?

    Hello!

    Could you tell me, how I can change units owner in Python? I want to flip Cities in my modification, thats no problem; but the units inside remain with the old owner.

    Any ideas?

    Many thanks for help.

    Greetings from Germany.

    DK1

    P.S. From "Fanatics" I heard, that there is no easy way to do this. Only kill the unit and then create a new unit with the same stats. Other ideas?

  • #2
    How does unit gifting work? Cant you just call the same code after the city is converted?

    Comment


    • #3
      Originally posted by Gyathaar
      How does unit gifting work? Cant you just call the same code after the city is converted?
      Good idea. Unfortunately, I can not find this sort of code....

      Comment


      • #4
        IIRC the units inside a city that just flip do remain with the old owner, they are moved out to the nearest city that civ owns? I may be wrong there.

        At any rate when a city does flip the new owner gets at least one defensive unit with the best tech the new owner has. This is not the original owners unit but a new unit from what I can tell.

        Comment

        Working...
        X