Results 1 to 6 of 6

Thread: AI and Free Upkeep.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default AI and Free Upkeep.

    Well in order to diminish the boring stack spam i was thinkiering with multiple solution, unfortunatly i just am beginning to poke m nose in script so i have many doubts in what is possible and whats not.

    Is it possible to make the AI fill every slots of free upkeep and then go to war ?
    Is it possible to make a separate free upkeep to ai from player ? (Like adding in the building smething like
    "IF I_AIfaction....."
    This would help to kill the spam stack due to "maintain siege button pressed".....

    Since each unit have value, is the AI able to recognize better units and priorize them for build, then for settlement defense for example ?

    Is it possible to make the AI priorize stacking instead of having a bunch of tiny easy crushable armies ?

    Thank you.

  2. #2
    konny's Avatar Artifex
    Join Date
    Jul 2007
    Location
    Germania Inferior
    Posts
    3,631

    Default Re: AI and Free Upkeep.

    Quote Originally Posted by Slaunyeh View Post
    Is it possible to make the AI fill every slots of free upkeep and then go to war ?
    no

    Is it possible to make a separate free upkeep to ai from player ?
    yes

    (Like adding in the building smething like "IF I_AIfaction....."
    no, you either need dublicates of the units in question or trigger recruitment by script.

    This would help to kill the spam stack due to "maintain siege button pressed".....
    ???

    Since each unit have value, is the AI able to recognize better units and priorize them for build, then for settlement defense for example ?
    no. Use recruit_priority (Kingdoms only) and the "personalities" in descr_strat.

    Is it possible to make the AI priorize stacking instead of having a bunch of tiny easy crushable armies ?
    yes, via modding the campaign AI see: http://rtw.heavengames.com/cgi-bin/f...t&f=9,6718,,10

    Team member of: Das Heilige Römische Reich, Europa Barbarorum, Europa Barbarorum II, East of Rome
    Modding help by Konny: Excel Traitgenerator, Setting Heirs to your preference
    dHRR 0.8 beta released! get it here
    New: Native America! A mini-mod for Kingdoms America

  3. #3

    Default Re: AI and Free Upkeep.

    Can you influence the upkeep value via a script? i.e have an upkeep as 100 for Player, and 0 as AI, without doubling the entry (limiting us to 250 units, if you go the whole hog).

    On that same note, can you influence the Recruit priorities depending on a nearby faction? I.e if a faction at the start of a game has say 5 different spearmen units, but a single axe unit, but is nearby to a horse heavy faction, but it then expands, and comes into contact with a faction which specializes in heavy infantry, can you change the recruit priority for those particular settlements bordering the faction?

    As to the stack spam - this is based on Third Age - sieging a settlement without attacking causes a script to spawn a huge army. Usually, the AI get's defeated by these stacks, which leaves said large stacks to go off wandering all over the map, slowing the game down, and making it boring. That's the main reason why we're asking.

    [ Cry Havoc:: ] - [ link ] - [ An Expanded World Submod for Call of Warhammer ]
    My turban brings all the muslims to the yard and they're like العنصرية ش

  4. #4
    konny's Avatar Artifex
    Join Date
    Jul 2007
    Location
    Germania Inferior
    Posts
    3,631

    Default Re: AI and Free Upkeep.

    Quote Originally Posted by Vaz View Post
    Can you influence the upkeep value via a script? i.e have an upkeep as 100 for Player, and 0 as AI, without doubling the entry (limiting us to 250 units, if you go the whole hog).
    No. You need doublicate units, or special free_upkeep units whos recruitment is controlled by the script.

    On that same note, can you influence the Recruit priorities depending on a nearby faction?
    No. recruit_priority is a setting in EDU and cannot be changed via script.

    As to the stack spam - this is based on Third Age - sieging a settlement without attacking causes a script to spawn a huge army.
    Remove the script, problem solved.

    The Three Commandments on Spawning Units by Script
    Do not (never!) spawn any units for AI factions; save for re-balance units on turn #1.

    Do not spawn any rebel units; unless you have a really good reason.

    Do not use any garrisons scripts; raise starting garrisons instead.

    Team member of: Das Heilige Römische Reich, Europa Barbarorum, Europa Barbarorum II, East of Rome
    Modding help by Konny: Excel Traitgenerator, Setting Heirs to your preference
    dHRR 0.8 beta released! get it here
    New: Native America! A mini-mod for Kingdoms America

  5. #5
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: AI and Free Upkeep.

    Quote Originally Posted by Vaz View Post
    As to the stack spam - this is based on Third Age - sieging a settlement without attacking causes a script to spawn a huge army. Usually, the AI get's defeated by these stacks, which leaves said large stacks to go off wandering all over the map, slowing the game down, and making it boring. That's the main reason why we're asking.
    They don't have to spawn for the AI. Change the script so it fires for players only.
    Last edited by Taiji; March 31, 2010 at 08:20 AM.

  6. #6
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: AI and Free Upkeep.

    There is an interesting thread around regarding the balancing of garrison scripts: destroy_units - 3 sample uses
    The idea being to use units with special abilities for spawning garisons, and then via destroy_unit script to remove these units once the siege is over.










Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •