Results 1 to 5 of 5

Thread: curious is it possible?

Hybrid View

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

    Default curious is it possible?

    rather than giving the Ai a garrison script, is there a way I can script them to keep at least half of thier units garrisoned in thier settlements with equal distibution? say ai faction x has a total of 60 units and three settlements that would be thirty would have to be garrisoned right! and equally distributed so three regions out thirty units breaks down ten units per settlement.
    would be nice . it save us modders from depending on garrison scripts to make the game challenging!
    thank you
    Last edited by Druvatar De Bodemloze; September 19, 2009 at 02:54 AM.

  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: curious is it possible?

    Haven't heard of something like that. Would most likely be a script 500 lines long as you would have to write something for every settlement. Hell, 300 lines is most likely nothing!










  3. #3

    Default Re: curious is it possible?

    so your saying it is possible: just a whole lotta` scripting? for each settlement there no way to script the Ai to have automatic and set parameters that way~ oh well that is lame! but since, settlements are so close to each other on the map. I want to add difficulty without garrison scripts((in my opinion they are lame!~ allows the AI to devote all of its units to conquest plus the human player cannot because of unrealistic civil disorder and mere defense) anyway it worked like a charm
    videos
    movies = faulse

  4. #4
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Re: curious is it possible?

    300 lines is indeed a rather small script, most go in the thousands. But this would be achieved in AI files I'd imagine. I recall a paramter in the campaign_db.xml file or something, involving when rebel units leave garrison if at all, but the problem with that one is they can't leave ever is my understanding unless they're spawned outside a settlement. At any rate there's not a way to do this directly with scripting.

  5. #5
    alhoon's Avatar Comes Rei Militaris
    Join Date
    Apr 2008
    Location
    Chania, Greece
    Posts
    24,233

    Default Re: curious is it possible?

    No real efficient way comes to mind, except for killing units outside of the city and spawing them inside the city. It would take hundreds of lines per settlement and per faction. I.e 30 settlements and 5 factions = 150 x hundreds lines = tens of thousands of lines.

    It could be done with the script replicator but it will bog down the game.
    alhoon is not a member of the infamous Hoons: a (fictional) nazi-sympathizer KKK clan. Of course, no Hoon would openly admit affiliation to the uninitiated.
    "Angry Uncle Gordon" describes me well.
    _______________________________________________________
    Beta-tester for Darthmod Empire, the default modification for Empire Total War that does not ask for your money behind patreon.
    Developer of Causa Belli submod for Darthmod, headed by Hammeredalways and a ton of other people.
    Developer of LtC: Random maps submod for Lands to Conquer (that brings a multitude of random maps and other features).

Posting Permissions

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