Results 1 to 4 of 4

Thread: How To Add New Disasters/Messages?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sunday213's Avatar Semisalis
    Join Date
    Mar 2007
    Location
    California San Diego County, La Mesa
    Posts
    465

    Default How To Add New Disasters/Messages?

    Say i want to have a rebel army spawn near rome im wondering if its possible to have a message saying "Blah blah blah has arrived outside rome"
    Please help

  2. #2

    Default Re: How To Add New Disasters/Messages

    Seeing as this is not a tutorial, I'm moving to the proper forum and editing the title.

  3. #3
    Sunday213's Avatar Semisalis
    Join Date
    Mar 2007
    Location
    California San Diego County, La Mesa
    Posts
    465

    Default Re: How To Add New Disasters/Messages?

    Thanks i forgot that i was in the tutorial only forum

  4. #4
    HouseOfHam's Avatar Primicerius
    Join Date
    Apr 2007
    Location
    Minnesota, USA
    Posts
    3,030

    Default Re: How To Add New Disasters/Messages?

    I assume you're going to use a script to spawn an army? In that case, you can use the advance_advice_thread command to produce an adviser message.

    For example

    The script:
    Code:
    script
    
    declare_show_me
    
    monitor_event FactionTurnStart FactionIsLocal
              and I_TurnNumber = 10           ; campaign starts at turn 0
    
        console_command kill_character "Spartacus"
    
        spawn_army
            faction slave
            character Spartacus, named character, age 33, , x 111, y 222
            unit generic rebel general,
        end
    
        advance_advice_thread SpartacusHasArrivedThread 1
        suspend_unscripted_advice true
    
        terminate_monitor
    
    end_monitor
    
    while I_TurnNumber < 9999
        suspend_unscripted_advice true
    end_while
    
    end_script
    At the top of export_descr_advice.txt, add:
    Code:
    ;------------------------------------------
    AdviceThread SpartacusHasArrivedThread
        GameArea Campaign
    
        Item SpartacusHasArrivedItem1
            Uninhibitable
            Verbosity  0
            Threshold  1
            MaxRepeats  0
            RepeatInterval  1
            Attitude Normal
            Presentation Default
            Title SpartacusHasArrivedTitle1
            Text SpartacusHasArrivedText1
    
    And, in text\export_advice.txt, add the text of the message:
    Code:
    {SpartacusHasArrivedTitle1} Spartacus is near!
    {SpartacusHasArrivedText1} Spartacus has brought his slave army to the walls of Rome and is threatening to take the city!
    
    Plus, you'll need another advice thread and some triggers to start the script, if you don't have that already.
    RTR website/SVN admin

    - Settlement coordinate locator -for RTW/M2TW
    - EDB Validator v1.2.8 (Oct 16, 2012) - for RTW/M2TW
    - RTW scripting tutorials
    - n-turns per year script generator

Posting Permissions

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