Results 1 to 12 of 12

Thread: AI always winning battles against rebels

Hybrid View

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

    Default AI always winning battles against rebels

    I'd like to make a script to oblige the AI to win against the rebels. It must be something like that but I need some help to translate it into a M2TW script :

    if Battle
    and Condition Attacker not Local Faction
    and Condition Defender slave Faction
    auto_win attacker
    end_if

    if Battle
    and Condition Defender not Local Faction
    and Condition Attacker slave Faction
    auto_win defender
    end_if

  2. #2
    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 always winning battles against rebels

    This script will enormously skew the game: one single unit of an AI faction will be able to storm a city that is held by a full stack of rebels! Sure you want that?










  3. #3

    Default Re: AI always winning battles against rebels

    Yes sure.

    The AI doesn't know there is a script running ! So it will send full stack armies, even if one unit would be sufficient.

  4. #4

    Default Re: AI always winning battles against rebels

    I ran a few tests, but no success. Here is the code I tried :

    Code:
        monitor_event PreBattle FactionType FactionIsLocal
            console_command auto_win attacker
        end_monitor

  5. #5

    Default Re: AI always winning battles against rebels

    Any help ?

  6. #6
    Opifex
    Join Date
    Feb 2005
    Location
    New York, USA
    Posts
    15,154

    Default Re: AI always winning battles against rebels

    Does PreBattle trigger during battle, or still during campaign mode? I don't remember. I'm pretty sure that auto_win only works within the actual battle mode.


    "If ye love wealth greater than liberty,
    the tranquility of servitude greater than
    the animating contest for freedom, go
    home from us in peace. We seek not
    your counsel, nor your arms. Crouch
    down and lick the hand that feeds you,
    and may posterity forget that ye were
    our countrymen."
    -Samuel Adams

  7. #7
    Condottiere SOG's Avatar Domesticus
    Join Date
    Dec 2006
    Location
    Oregon, USA
    Posts
    2,274

    Default Re: AI always winning battles against rebels

    if you are playing the standard game. the ai will attack the rebels as needed. give me an example of your abnormalities. any of you? Mods are another question with an inexperienced tek............
    Last edited by Condottiere SOG; July 24, 2008 at 02:48 PM.

  8. #8

    Default Re: AI always winning battles against rebels

    I'm modding the standard game.

    In the standard game, the AI may loose some battles against the rebels.

    I want AI always wins this type of battle, with a cheat trigger like auto_win. But it doesn't seem to work.

    How would you do that ?

    (hum, sorry for my poor english, I'm french and I'm not sure that all I write is 100% correct)

  9. #9

    Default Re: AI always winning battles against rebels

    No idea ?

    How to launch the auto_win cheat code just before the AI begin a battle against the rebels ?

  10. #10

    Default Re: AI always winning battles against rebels

    I don`t now but in broken cresent they added they add_money to every faction before the end turn you should ask them.

  11. #11
    cebecibasi41's Avatar Tiro
    Join Date
    Oct 2008
    Location
    Kocaeli or İstanbul in Turkiye
    Posts
    293

    Default Re: AI always winning battles against rebels

    Some console commands only works for local factions.

    Etc: capture_settlement.

    Maybe auto_win code is for local factions.
    OTTOMAN : FTLOS MOD PROJECT Coo-Leader Of Ottoman Mod

  12. #12
    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 always winning battles against rebels

    Full command:

    auto_win attacker
    auto_win defender










Posting Permissions

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