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

Adding Resource Requirement to Units

Discussion in 'Civ6 - Creation & Customization' started by Bleser, Oct 19, 2019.

  1. Bleser

    Bleser Prince

    Joined:
    Jun 23, 2002
    Messages:
    442
    Location:
    USA
    I would like to make it so that Nuclear Submarines cost 10 Uranium to build (instead of the current total lack of resource association, leading to the AI spamming them like crazy).

    I added code to insert a new row into UNITS_XP2 to set this up but when starting a new game it did not make a difference. Where else do I need to wire this up?
     
  2. Laurana Kanan

    Laurana Kanan Don’t underestimate who I am.

    Joined:
    Apr 10, 2014
    Messages:
    1,935
    Gender:
    Female
    Location:
    Near the Greatest Snow on Earth
    You need to add RESOURCE_URANIUM to the StrategicResource column of the Units table. Then you can set the quantity of that resource required under the ResourceCost column of the Units_XP2 table.
     
    Bleser likes this.
  3. Bleser

    Bleser Prince

    Joined:
    Jun 23, 2002
    Messages:
    442
    Location:
    USA
    Laurana Kanan likes this.

Share This Page