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

Only allow purchasing settlers with gold/faith

Discussion in 'Mod Creation Help' started by Krzyszkot, Jul 22, 2020.

  1. Krzyszkot

    Krzyszkot Chieftain

    Joined:
    Jul 22, 2020
    Messages:
    1
    I wanted to make a mod in which there would not be many cities and each new one would be a big thing.
    One of the things I want to do is to disable the ability to train settlers with production. To that end I've put the command

    MustPurchase="TRUE"

    in the settler line of Units.xml.
    At first it appeared to be working since I had no possibility of training settlers in my first city. However by the turn 8 my scout found a Polish settler! It was definitely a new trained one because they have already settled Kraków.
    Now I have made AI start with 1 settlef only, made all settlers cost way more than usual and changed AI bonus gold production to 0% so they definitely couldn't have bought that settler. But that means that the MustPurchase="TRUE" command only applies to human players.

    How do I fix this?

    EDIT: I've also deleted Religious Settlements pantheon and tried making settlers purchaesable by faith only. AI can still get them by turn 7-9.

    EDIT 2: I've used the console to reveal the entire map and it seems like Diety AI doesn't get it's 3 settlers outright (since I've deleted their bonus settlers in Eras.xml) but for sone reason bots get free settler upon founding first two cities. Anyone know why or how to prohibit that? So far only putting CanTrain="false" in settler row in Units.xml has worked, but I don't want to disable settler entirely. Please help.
     
    Last edited: Jul 22, 2020

Share This Page