Results 1 to 8 of 8

Thread: Creating a script

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Ossie The 1st Member Ossie The Great's Avatar
    Join Date
    Oct 2006
    Location
    Very far away........ ( which usally is the beach )
    Posts
    829

    Default Creating a script

    hi is there any way were you can creat a script that allows buildings to appear in building que on certain date.

    like is there a guide or anything

  2. #2
    Bibliophilic Member Atilius's Avatar
    Join Date
    Oct 2005
    Location
    America Medioccidentalis Superior
    Posts
    3,837

    Default Re: Creating a script

    No.

    But you can use a script to create a building given some event or condition (such as a specific turn number) in a specified settlement.
    The truth is the most valuable thing we have. Let us economize it. - Mark Twain



  3. #3
    Ossie The 1st Member Ossie The Great's Avatar
    Join Date
    Oct 2006
    Location
    Very far away........ ( which usally is the beach )
    Posts
    829

    Default Re: Creating a script

    Quote Originally Posted by Atilius
    No.

    But you can use a script to create a building given some event or condition (such as a specific turn number) in a specified settlement.
    do u know how to do that then

    for i really need to know

  4. #4
    Bibliophilic Member Atilius's Avatar
    Join Date
    Oct 2005
    Location
    America Medioccidentalis Superior
    Posts
    3,837

    Default Re: Creating a script

    Pardon me for neglecting you oscar.

    You would use an event monitor something like this in your script:

    Code:
    monitor_event FactionTurnStart FactionType greek_cities
                  and I_TurnNumber = 31
                  and I_SettlementOwner Sparta = greek_cities
        console_command create_building Sparta "army_barracks"
    end_monitor
    This would create an army_barracks building in Sparta on the 31st turn of the game if Sparta were controlled by the greek cities.
    The truth is the most valuable thing we have. Let us economize it. - Mark Twain



  5. #5

    Default Re: Creating a script

    atilius am i putting that in the descr_strat or where? i understand the scripting its just where each bit goes for me.

  6. #6
    Modder Member Turk2's Avatar
    Join Date
    Mar 2007
    Location
    Lilliput
    Posts
    101

    Default Re: Creating a script

    Hi,
    you can must put it in the folder:data/scripts

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