![]() |
Does My Site Search Mage Know Something I Don\'t?
I conquer province#90 and province#10 (furthest south & lowest # province I own). #10 has 2 magic sites found by the previous owner (an AI). When I attempt to site search with any mage they don't automatically target #10 and will either target another or ignore it as if it's already been searched.
Is this a bug or ? |
Re: Does My Site Search Mage Know Something I Don\'t?
There was athread about this recently. The mages don't want to search provinces with two or more sites.
|
Re: Does My Site Search Mage Know Something I Don\'t?
And, well, they sort of _do_ know something you don't. The distribution of sites in a province can be adequately modeled with the binomial distribution, with the following numbers for probabilities in the case of Middle Era default:
0 - 0.1296 1 - 0.3456 2 - 0.3456 3 - 0.1536 4 - 0.0256 The chances that a province will have greater than 2 sites is only 0.1792, and so the computer is programmed to avoid those sites in favor of those provinces that have fewer sites. It would be nice to see this implementation enhanced to work for specific terrain types, or to simply give the player the choice of threshold. |
Re: Does My Site Search Mage Know Something I Don\'
Quote:
|
Re: Does My Site Search Mage Know Something I Don\'
I can see if I can come up with an algorithm. Don't ask me to code it, though.
|
Re: Does My Site Search Mage Know Something I Don\'
Pyrostock, this is the thread you are looking for. It has links to an earlier thread where some more mechanics are discussed too.
|
Re: Does My Site Search Mage Know Something I Don\'
Quote:
Search level 4 or sites found 4 = skip. We have 0-3 sites found, a few terrain types, the previous search level (0-3) and the path. Simply store all the precalculated values. I don't think it's more than 10k of data. The only troublesome cases are the multiple-search spells. My impression is that simply summing the probabilities for all paths they cover would produce an appropriate ranking even though the probability number itself is obviously way wrong. |
Re: Does My Site Search Mage Know Something I Don\'
Loren: Finding which province is the current best site to search with a given search spell is _not_ that simple, given all the criteria involved.
More linear programming, whee! http://forum.shrapnelgames.com/images/smilies/wink.gif |
Re: Does My Site Search Mage Know Something I Don\'
Well, here's a really simple algorithm that would be better than the current one IMO.
Maintain a CurrentSearch list of sites being searched in current month. <font class="small">Code:</font><hr /><pre> * Loop through owned sites to find next province to search: - Capitol? Discard. - 4 sites known? Discard. - In CurrentSearch? Discard. - Rank = 100 * (4 - (current search path level searched in province) + 10 * (4 - (# of known sites)) + (total of other paths already searched in province) - Rank < CurrentRank? Discard. - CurrentRank = Rank, add to CurrentSearch list </pre><hr /> Needs some modification to handle Tiamat, but so does the current search. |
Re: Does My Site Search Mage Know Something I Don\'
Quote:
|
All times are GMT -4. The time now is 11:03 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.