Handle automatic faith purchase before industrial era [HOW]

bttljhps

Chieftain
Joined
Apr 3, 2019
Messages
3
Hi,

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:

Code:
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?

Thanks.
 
Top Bottom