As a French person I feel like it's my duty to explain strikes to you. - AdrienIer

Create an account  

 
Grand Vizier

Merged the Grand Vizier and AI production procedures to save space, as they are ultimately doing the same thing, except use different priorities for the decision. (The original improvements like not building units are kept)

For the time being, the following priority table is used to decide what to build :


Code:
MilitaryTable:
db 0,0,0
;  BAR COL FIG ARM WAR SMI STA ANI FAN SWR SYA MAR SAW LIB SAG ORA ALC UNI
db 073,030,073,060,055,080,080,060,058,060,040,020,100,080,060,030,070,080
;  WIZ SHR AMP PAR CAT MAR BAN MER GRA FAR FOR BUI MEC MIN WAL
db 055,060,055,080,058,080,060,060,070,060,080,080,080,080,073
NonMilitaryTable:
db 0,0,0
;  BAR COL FIG ARM WAR SMI STA ANI FAN SWR SYA MAR SAW LIB SAG ORA ALC UNI
db 000,000,000,000,000,000,000,060,000,040,000,000,100,080,060,030,070,080
;  WIZ SHR AMP PAR CAT MAR BAN MER GRA FAR FOR BUI MEC MIN WAL
db 055,060,058,080,058,080,060,040,080,080,080,080,080,080,000


For reference this is the effect of priority in percentage chance of picking the higher one :

Code:
; Priority difference % chance for higher priority to get chosen
; 01 57%
; 02 61%
; 03 66%
; 04 70%
; 05 73%
; 06 77%
; 07 80%
; 08 83%
; 09 86%
; 10 88.75%
; 11 91%
; 12 93%
; 13 94.75%
; 14 96.25%
; 15 97.5%
; 16 98.5%
; 17 99.25%
; 18 99.75%
; 19 100%


Feel free to suggest improvement to the priorities, but keep the following design goals in mind :
-The vizier can't be too smart - the player should still be building better even if not very experienced (making sawmill first might actually be too smart?)
-The vizier has two modes : all buildings and nonmilitary buildings

-I tried to avoid the situation where the vizier starts building ultra-expensive buildings too early - waiting 79 turns for a wizard's guild is way too dumb
-In general it shouldn't be so dumb that the player will never want to turn it on - it should be a viable for use when the player is already significantly ahead in economy.
Reply

Building the sawmill first is not 'too smart' and should be the general rule.


Building marketplace, granary, library, shrine, smithy and other low cost buildings should also be the rule. However, I think this is where it can be programmed to be not 'too smart' as a player with a bit of experience would have a better sense on what to build based on the situation at hand.

Reply

I actually wish I had never trained myself to do sawmill first. On my first, oh, 3-5 cities, absolutely. But after that, sawmill doesn't need to be built for a fair amount of time. This is completely dependant on your gold - it may never happen, it may be earlier or later.
Reply



Forum Jump: