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

Handle automatic faith purchase before industrial era [HOW]

Discussion in 'Civ5 - Creation & Customization' started by bttljhps, May 15, 2019.

  1. bttljhps

    bttljhps Chieftain

    Apr 3, 2019

    I am creating a scenario that happens before Renaissance era (it has only Ancient, Classic, Medieval Eras). As we know, before industrial era the automatic faith purchase will be only Great Prophet and some Land units (if according beliefs has been chosen!). but I want at the end of Medieval Era automatic faith purchase randomly (or selectively) to purchase one of 4 GPs (GE, GS,GG,GP).

    now my method is when enough faith has been gathered to buy Great Prophet the "ChooseFaithGreatPerson" dialog shows up (in "[CIV5]\Assets\DLC\Expansion2\UI\InGame\Popups"). I know this dialog shows when:

    if( popupInfo.Type == ButtonPopupTypes.BUTTONPOPUP_CHOOSE_FAITH_GREAT_PERSON and
    So far, everything is right. BUT how can I Handle automatic Faith purchase in game?

    there is a belief "BELIEF_TO_GLORY_OF_GOD" that enables "FaithPurchaseAllGreatPeople" after Industrial Era but this won't work in scenario.

    I am somehow newbie in CIV5 modding maybe another working way suggested?


Share This Page