r_rolo1
King of myself
Nice var name .....
iDagger is the "backstabbing" variable, right?
iDagger is the "backstabbing" variable, right?
Nice var name .....
iDagger is the "backstabbing" variable, right?
[SIZE="3"]int iWarMemory = GET_PLAYER((PlayerTypes)iI).AI_getMemoryAttitude(getID(), MEMORY_DECLARED_WAR);
if (iWarMemory > 0)
{
//they are a snake
iParanoia += 50 + 20 * iWarMemory;
break;
}[/SIZE]
[SIZE="3"]int iDefensivePower = (GET_TEAM((TeamTypes)iI).getDefensivePower()[B][COLOR="Red"] * 2) / 3[/COLOR][/B];[/SIZE]
Has Niklas done that, or do you mean my pseudo code snippet collection spreadsheet? I don't consider this an article but more some material to start from writing one. IMHO this topic absolutely deserves to be framed into a nice article for the articles sub-forum. But I'm not much of a writer, so if you should feel inclined (or anybody else) to create one, please copy and paste what ever you like from it.Well the article has been written...
@ Aelf. I like to play my games with a sort of realistic theme. Backstabbing "Friendly" AI's is very rare for me. There are only a few times i will do it.
That will be only possible if the Ai is taught to defend it self properly If you take archers for the AI ( not even removing extra units, just replace archers per warriors ) you can warrior rush a emperor AI easily.....I think the game should be modded so that AI does NOT get bonus on military units before 2000 BC. After that you can try to match them with chopping/whipping etc, so it's a more fair game. They should still get their bonus on non-military units, buildings, and techs, because all these gains can be overcome in the long term with a good play.
However, an early military advantage has just too much short term benefit denying the human player of any reasonable counter in most cases (well, we still have the power to reload but that's not fun).
Sure agree that modding is needed, i'm slowly working at getting a grasp of C++ but i'm easily distracted by the temptation of just playing another game. It'd be very interesting to work on a team such as the one that's programming a better ai right now but it sure takes a lot of time too.Very interesting.
I was always under the misconception that power rating of 0.5 somehow helps avoiding war. Apparently it is way too low and doesn't really matter if it is 0.5 of 0.1 at that stage.
It does make some games randomly un-winnable unfortunately.
There is also quite a lot of gamble with land blocking - essential on higher levels, but increases the chance of war.
I think the game should be modded so that AI does NOT get bonus on military units before 2000 BC. After that you can try to match them with chopping/whipping etc, so it's a more fair game. They should still get their bonus on non-military units, buildings, and techs, because all these gains can be overcome in the long term with a good play.However, an early military advantage has just too much short term benefit denying the human player of any reasonable counter in most cases (well, we still have the power to reload but that's not fun).
[SIZE="4"]int iDefensivePower = (GET_TEAM((TeamTypes)iI).getDefensivePower() * 2) / 3;
int iOurPerceivedPower = (iOurPower * ((iPass > 1) ? AI_maxWarDistantPowerRatio() : AI_maxWarNearbyPowerRatio())) / 100;
if (GC.getGameINLINE().getSorenRandNum(100, "AI Power Deterrence") >= (iDefensivePower * 100) / iOurPerceivedPower - 30)
... (valid target)[/SIZE]
I think it's in CvPlayerAI::AI_targetCityValue, or it's at least a good point to start from.Any thoughts on where I can find where this is actually coded?
Every AI player chooses a set of strategies according to its personality and the current situation in the game. There are 20 different strategies, iiuc they mainly determine what the AI chooses to build in its cities, how it adjusts its sliders and how it behaves when it comes to starting wars:What is Dagger strategy exactly and how does the AI decide to use it? Do only specific AIs apply this strategy, or anyone can depending on some conditions?
Does dagger mean that there is no WHEOOH message before the war?