Results 1 to 6 of 6

Thread: Creating villages from forts

Hybrid View

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

    Default Creating villages from forts

    Hello all,

    I've been pondering, and I think it'd be a great addition to the game to replace forts with villages.

    I'm a dab hand at messing with the buildings and units files, but the rest of it is a mystery to me, so I was wondering if anyone could help me out.

    I really need to know how to go about changing things, and what files to change, so I can:

    1. place forts on the map at pre-defined points.
    2. rename the fort text to 'village'.
    3. have the fort perhaps act as a resource, or just give a flat +X cash/turn or do something in general.
    4. have a script that enables an enemy army that captures it to gain X money and the owner lose X money.
    5. either disables the actual destruction of the fort if it would otherwise be, or rebuilds it in X turns (which would be preferable).
    6. somehow instruct the AI that it is more preferable to sack these villages if there is a large garrison in the city in the tile.

    I realise I am probably asking a lot here, and the answer to most of these is most likely 'hardcoded, you can't do it', but I'm sure there are a few sharp minds here who can think of a scripted cheat or workaround, and I'd really like to do it because I think this would add quite a lot to the game!

    I would like to release a heavily-modified (but far more realistic) version of a mod that includes this, to basically create the ultimate historical Medieval (sub)Mod.

    So you can help my dream come true!
    "For men can endure to hear others praised only so long as they can severally persuade themselves of their own ability to equal the actions recounted: when this point is passed, envy comes in and with it, incredulity." - Pericles, Funeral Oration

    "English bastards!" - the Scottish AAR!

    The Grass is ALWAYS Greener: the Dark Tale of Mordor

    Want to publish an article on any aspect of history? PM or email me at shistory@speculativehistory.co.uk, or visit http://www.speculativehistory.co.uk. if you just want to learn something new.

  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: Creating villages from forts

    That's a load of questions - ley me see what I know:

    1. check my tutorial
    2. data\text\expanded.txt (faction related) and shared.txt (default)
    3. Not possible - even the script doesn't have the ability
    4. A bit convoluted, but a script can be done
    5. (automatic) rebuilding not possible, indestructible possible through descr_campaign_db.xml (<destroy_empty_forts bool="false"/>)
    6. If you find a way, be sure to let us know. AI scripting is for terminally insane people










  3. #3

    Default Re: Creating villages from forts

    Quote Originally Posted by gigantus View Post
    That's a load of questions - ley me see what I know:

    1. check my tutorial
    2. data\text\expanded.txt (faction related) and shared.txt (default)
    3. Not possible - even the script doesn't have the ability
    4. A bit convoluted, but a script can be done
    5. (automatic) rebuilding not possible, indestructible possible through descr_campaign_db.xml (<destroy_empty_forts bool="false"/>)
    6. If you find a way, be sure to let us know. AI scripting is for terminally insane people
    As for cash, DotS has found a way with that--I remember seeing it a few months ago, a tad convoluted for the purpose though.
    Son of PW

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

    Default Re: Creating villages from forts

    Quote Originally Posted by Sargon_of_Akkad View Post
    6. somehow instruct the AI that it is more preferable to sack these villages if there is a large garrison in the city in the tile.
    I think it's not possible to sack a fort even if you name it as village.
    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).

  5. #5
    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: Creating villages from forts

    Cash for a resource? That must be convoluted. Something with "character near tile" I guess.










  6. #6

    Default Re: Creating villages from forts

    Quote Originally Posted by gigantus View Post
    Cash for a resource? That must be convoluted. Something with "character near tile" I guess.
    It's been a couple months, I don't quite remember, but that would work.
    Son of PW

Posting Permissions

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