Results 1 to 21 of 21

Thread: Campaign script - adding a building

Hybrid View

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

    Default Re: Campaign script - adding a building

    Unconstructable - make the building require a hidden resource that doesn't appear anywhere on the map.

    Indestructable - Add the hinterland_ prefix to building tree name (as used in hinterland_roads)

    So you might have for example:

    hinterland_newbuilding
    - smallbuilding
    - mediumbuilding
    - largebuilding
    Last edited by Epistolary Richard; 07-20-2006 at 22:46.
    Epistolary Richard's modding Rules of Cool
    Cool modders make their mods with the :mod command line switch
    If they don't, then Cool mod-users use the Mod Enabler (JSGME)
    Cool modders use show_err
    Cool modders use the tutorials database Cool modders check out the Welcome to the Modding Forums! thread Cool modders keep backups Cool modders help each other out

  2. #2

    Default Re: Campaign script - adding a building

    So let's say I call this resource PBDISSENT and make it a hidden resource then a script can create this building depending on other factors (ie. the presence of a certain religion in a settlement)?

    Thanks,
    Lord Clare / Harlechman
    Zulu Total War Team
    "Ad majoram Dei gloriam"

  3. #3
    Axebitten Modder Senior Member Dol Guldur's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,550

    Default Re: Campaign script - adding a building

    Gah, OK I give up. I've been having a little go at getting this very simple script working every now and again for months. It just does not work (I knew I should have left scripting alone).

    Can someone point me to a mod download that uses a BI modfolder and has a campaign script working? I will have to study the files - perhaps that will help.

    Thx.

    p.s. the mod downloads section (which is great) could be enhanced by having a division for the form of the mod installation (does it overwrite, go into a modfolder, work of the JSGME thingy, etc.). At least, a clear symbol (along the same lines as the 'P' in the red triangle) could be used to denote the same. It would be very useful.
    "One of the most sophisticated Total War mods ever developed..."

  4. #4
    Modder Member Encaitar's Avatar
    Join Date
    Oct 2003
    Location
    Melbourne, Australia
    Posts
    234

    Default Re: Campaign script - adding a building

    I've got the following setup working (in BI, but not in a -mod folder).

    descr_strat
    Code:
    script
    CreateBuildings_Script.txt
    CreateBuildings_Script.txt
    Code:
    start_script
    console_command create_building Minas_Tirith men0
    end_script
    Remember that you have to use the name of the settlement, not the name of the region.
    Encaitar Arandur

    Middle-earth: Total War Dev

  5. #5
    Axebitten Modder Senior Member Dol Guldur's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,550

    Default Re: Campaign script - adding a building

    Thx. Encaitar - but already tried and a no no.

    :(
    "One of the most sophisticated Total War mods ever developed..."

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