Thunderbrd
C2C War Dog
I figured I'd start this thread to give a complete explanation of the AI programming currently in use in Divine Prophets and to offer you somewhere to discuss potential improvements as well as to announce any plans I may have coming up to make adjustments here.
First off, a description of how it should currently work (bug reporters should refer to this to make sure what they see IS a bug (though if it IS, I do really want to know!)):
So for now, it's got a few improvements planned. I'm also planning to make the Founding of a religion a unique mission and the Spreading of religions separate so that I can implement a different icon button for those UNFOUNDED religions and differentiate them from those that are FOUNDED. This will take some reprogramming of the whole structure but shouldn't be tooooo much work I don't think and will make it much nicer to play as you won't have to open the religious adviser to make sure that the religion you want to found hasn't been already. Currently, you can make some big mistakes without being careful there.
Asking the ai to hold onto a prophet has been called into question as to whether its 'misguided' or not and I wanted to explain the full rationale behind this decision. I determined to program it this way for the following reasons:
I realize there are some arguments that can be made to some of the points above, but overall, I thought this would make for a bit more ai 'gameplay' rather than just having them be pigeonholed into making kneejerk reactions that assumes they want every religion under the sun. You might be wondering why the ai players just ignored shamanism, druidism, and ngaism, allowing you to get them all without challenge until suddenly they start popping in with kemetism, mesopotamianism and such, planting shrines in their cities in the same round and having their religions suddenly rocket to the top of the 'most spread' (as well as most profitable) lists overnight.
As always, discussion is welcome, as are ideas for improvement (and possibly even expansion.)
First off, a description of how it should currently work (bug reporters should refer to this to make sure what they see IS a bug (though if it IS, I do really want to know!)):
- When an AI gets a prophet, the first check they make is to see if they have any 'shrine' (Religious Capital) buildings to build. (I'm not sure if an adjustment was made to the ai in this portion... I thought I read somewhere that they were tasked to build a shrine only if they didn't have one for their state religion or something... does anyone know if this has been adjusted in any way?)
- Then the AI will evaluate whether to use the Prophet for a religion, hold onto one, or allow the prophet to move on and consider doing anything else prophets are used for.
- The AI will first look at whether or not its favorite religion has been founded.
- If it hasn't been founded, and it can be, the prophet will found it immediately.
- If it hasn't and it can't yet, the ai will hold onto ONE prophet only and hold it in reserve, checking every round if it can now build a shrine or found its favored religion.
- If its already holding a prophet like this or if its favorite religion has been founded, it will then consider founding another religion.
- Note: if you are playing on Limited Religions, it won't consider founding another religion at all unless it's favorite is selected, but it will still only hold onto one prophet, so they go on to be considered for other uses after the one in reserve.
- When evaluating other religions, it looks at what religions it CAN found, if it can found any, and decide which one is best for its personality by comparing the religion's flavor values to the leader's flavor values. It will identify the best one and found that religion where it stands.
Note: a future improvement will make sure the prophet moves to the 'best city' to found a religion in for this but I have yet to think up quite how to make sure it prioritizes this properly. Personally I like them all in one city but I wonder if there are good reasons to go about it differently, like the production level in the city, if the city is meant to be the primary 'financial center' or other considerations. Some discussion is very welcome on this subject.
- At this point, when there are no other religions to found and no shrines to build, it will go on and act as a prophet normally acts. I have NOT currently taught it to use the capability to spread foreign, non-introduced religions into the nation but do eventually plan to as a part of a massive Religious AI overhaul that will make it dependent on the leaderhead's strategies as to whether they want to do this or not.
So for now, it's got a few improvements planned. I'm also planning to make the Founding of a religion a unique mission and the Spreading of religions separate so that I can implement a different icon button for those UNFOUNDED religions and differentiate them from those that are FOUNDED. This will take some reprogramming of the whole structure but shouldn't be tooooo much work I don't think and will make it much nicer to play as you won't have to open the religious adviser to make sure that the religion you want to found hasn't been already. Currently, you can make some big mistakes without being careful there.
Asking the ai to hold onto a prophet has been called into question as to whether its 'misguided' or not and I wanted to explain the full rationale behind this decision. I determined to program it this way for the following reasons:
- This will only end up taking place in a NON-Choose religions game because otherwise all religions are available unless already founded.
- In a NON-Choose religion game, your selections are limited purely to the techs you've unlocked the religions for, so without it, it hedges in the ai's choice in religions to what it just unlocked unless the player has allowed an opportunity to pass. This way, leaders may be more likely to experience the power of preference thanks to a bit of patience.
- The early religions are simply less valuable in general than the later religions due to the fact that their shrines only give cultural output by city that's adopted the religion rather than an economic benefit. The argument can be made that their benefits apply better at that stage of the game (food and growth generally) but the following reason offers a counter.
- Most religions aren't truly effective until the shrine is established anyhow. Holding one prophet for the favored religion has a side effect of also holding that one prophet for immediately building the shrine of the next religion they found. Thus, immediately they begin to really enjoy the full benefits of having the religion and they don't have to a) waste the next tech earned prophet on a shrine; and/or b) be forced to rely on an extremely reluctant ai city advisor to birth a prophet without a tech... see below:
- Currently, the value of slaves stabs the ai's birthing of prophets in the foot in the mid-early stages of city growth. This limits their ability to generate the supporting prophets needed for shrines and other tasks. Since players can be a bit more deliberate in creating prophets, they have an edge that allows them to make more complex decisions that allows them to take advantage of religions they unlock immediately as soon as they unlock them without concern for making a wasteful decision.
- And of course, lets not overlook the value of holding onto a prophet so that if an opponent civ reaches your favorite religion's tech first but uses the free prophet for something else and you get there just after, you now have a prophet to capture that religion with immediately.
I realize there are some arguments that can be made to some of the points above, but overall, I thought this would make for a bit more ai 'gameplay' rather than just having them be pigeonholed into making kneejerk reactions that assumes they want every religion under the sun. You might be wondering why the ai players just ignored shamanism, druidism, and ngaism, allowing you to get them all without challenge until suddenly they start popping in with kemetism, mesopotamianism and such, planting shrines in their cities in the same round and having their religions suddenly rocket to the top of the 'most spread' (as well as most profitable) lists overnight.
As always, discussion is welcome, as are ideas for improvement (and possibly even expansion.)