Results 1 to 3 of 3

Thread: AI Personalities Question

  1. #1

    Default AI Personalities Question

    Spoiler Alert, click show to read: 
    Quote:
    Originally Posted by therother
    These control a set of AI production personalities, which contribute a bias towards building and training (but not retraining or repairing). This bias is fairly small compared to game-generated factors such as "the enemy is attacking me with lots of cavalry, build me some spearmen". Explaining the weighting system which drives the production AI in full is beyond the scope of this document as it would take several days to write.

    So in short, the building construction personalities are these: (ranked highest to lowest - therother)

    balanced - biases towards growth, taxable income, trade level bonuses (roads), walls and xp bonus buildings

    religious - biases towards growth, loyalty, taxable income, farming, walls and law

    trader - biases towards growth, trade level, trade base, weapon upgrades, games, races and xp bonus buildings

    comfort - biases towards growth, farming, games, races, xp bonus and happiness

    bureaucrat - biases towards taxable income, growth, pop health, trade, walls, improved bodyguards and law

    craftsman - biases towards walls, races, taxable income, weapon upgrades, xp bonuses, mines, health and growth

    sailor - biases towards sea trade, taxable income, walls, growth, trade

    fortified - biases towards walls, taxable income, growth, loyalty, defenses, bodyguards and law

    These biases are towards building properties, rather than buildings themselves. The game does not know what a "Blacksmith" is, for example, it only knows that it is a building which provides a weapon upgrade, and hence a Craftsman AI would be more likely to build it than another AI personality type.

    These are then combined with a troop production personality, as follows:

    smith - exactly level

    mao - biased towards mass troops, light infantry

    genghis - biased towards missile cavalry and light cavalry

    stalin - biased towards heavy infantry, mass troops and artillery

    napoleon - biased towards a mix of light and heavy infantry, light cavalry

    henry - biased towards heavy and light cavalry, missile infantry

    Caesar - biased towards heavy infantry, light cavalry, siege artillery

    The same system as for the buildings applies. Troop category and class are combined at the time the unit database is loaded to give a unit production type, and the likelihood of the AI choosing to produce a given unit type which can be produced is then modified by the unit type weighting. There is also a random element in the choosing of which building or troop type to produce next, so the effect of the bias is a statistical thing. Another factor that is applied over the top which may obscure the bias is a tendency towards producing troop mixtures (according to what is already in the garrison) and a weighting according to unit strength.

    The two sets of types can be freely combined; for example, although Fortified Caesar does not appear in the list of options currently used by the vanilla RTW game, it is a valid combination.


    First off I would like to say that the above guidance seems have little effect on what the AI decides to produce. For instance, I am trying to get the germans in my mod to primarily recruit Chosen Axemen and Berserkers lightly supported by Gothic Cavalry. In order to do so I have made these the only units that are recruitable by the germans. Further, I went with [fortified, stalin] in order to make this happen.

    As a result the AI starts pumping out stacks that are comprised of about 70% Gothic cavalry and 30% infantry. The Dacian AI seems to be smart though because they react by making primarily spearmen stacks to destroy the German cavalry.

    Other than stalin I have also tried the following: caesar, genghis, and mao. No matter what option I choose the AI always builds stacks for the Germans that are comprised primarily of cavalry.

    Basically I'm just looking for suggestions at this point. Anybody got a good idea as to what could be done to make the Germans produce primarily infantry stacks?
    V/R,

    CPT Worsham

  2. #2

    Default Re: AI Personalities Question

    You could make it so that in order to produce the german cavalry, a resource/hidden resource is needed, and simply put the resource in a few provinces. Or alternatively increase the cost/lower the stats of the cavalry, so they are less inclined to buy them.
    The modelling swordsman? - slaughtered
    The textures legionary? - died randomly
    The resource-and-region adding demon? - eviscerated
    The faction name editing man? - ran away in fear
    The faction symbol editing woman? - with the help of Makanyane, devised a mod folder of deadly efficiency _____
    The alpha-daemon of many unit card based things? - locked in a room

  3. #3

    Default Re: AI Personalities Question

    Quote Originally Posted by jcd1993 View Post
    You could make it so that in order to produce the german cavalry, a resource/hidden resource is needed, and simply put the resource in a few provinces. Or alternatively increase the cost/lower the stats of the cavalry, so they are less inclined to buy them.
    I like your cost to stats idea. I'll go with that. Thanks!
    V/R,

    CPT Worsham

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO