Results 1 to 2 of 2

Thread: [solved] New buildings available for construction

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    SpyrosM91's Avatar Despotes
    Join Date
    Aug 2010
    Location
    Patras, Greece
    Posts
    3,675

    Default [solved] New buildings available for construction

    I want to make some buildings available in a faction after that faction has aquired (e.g.) 20 provinces....

    So Here's the deal:

    1) The faction conquers 20 provinces....
    2) That triggers an event or sth...(showing a message on screen)...
    3) Then some buildings are available in the capital of the faction....
    4) After that the highest buildings in the tech trees can be constructed in all the other provinces.....


    the buildings in the capital only can be contructed with the help of a hidden_resource, but what about the evnt???.....can anybody tell me how to do it?.....does this requires a simple event or an era???

    i know i'm asking a lot but pleeeeeeaaaase!!!!...


    PS: can buildings, that belong in the same tech tree, be available for construction at the same time??
    Last edited by SpyrosM91; October 27, 2012 at 11:39 AM.
    Proud Tsardoms Total War: Historian - Coder - Scripter - Mapper

  2. #2
    SpyrosM91's Avatar Despotes
    Join Date
    Aug 2010
    Location
    Patras, Greece
    Posts
    3,675

    Default Re: New buildings available for construction

    i have made steps 1 & 2, with the help of the Bellum crucis campaign script:

    campaing script:
    Code:
    declare_counter region_number
    set_counter region_number 0
    
        monitor_event SettlementTurnEnd SettlementIsLocal
            inc_counter region_number 1
        end_monitor
    
        monitor_event FactionTurnStart FactionIsLocal
        and I_CompareCounter region_number = 14
            set_event_counter sekreta 1
        end_monitor
    
    
    monitor_event FactionTurnStart FactionIsLocal
    and I_EventCounter sekreta == 1
        historic_event sekreta factions { byzantium }
    terminate_monitor
    end_monitor
    historc events:
    Code:
    {SEKRETA_BODY}will result to massive unrests and...
    {SEKRETA_TITLE}sekreta
    (the event counter will be used to the buildings....)


    but the problem is that it doesn't work........can anyone tell me where i have gone wrong????

    thanks!!!
    Proud Tsardoms Total War: Historian - Coder - Scripter - Mapper

Posting Permissions

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