Results 1 to 5 of 5

Thread: Pausing the campaign mode during an advisor message?

Hybrid View

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

    Default Pausing the campaign mode during an advisor message?

    Another one that I've been trying to resolve, but not found it in tutorials:

    Is there a way to "pause" the game during campaign map/mode for an advisor message to be displayed correctly? I have encounters this problem in two situations:

    1) if an event that triggers an advisor message takes place during AI player's turn, the advisor message just briefly enters the screen and disappears immediately. Can this be mended somehow by either making the game to really pause until the advisor is dismissed or by keeping the message there longer?

    2) if there are two monitors connected to an advisor message for the same event (e.g. FactionTurnStart) and triggers of both fire, it seems to be that only the message that is later in background script will be displayed and the first one doesn't show at all. Can one pause the game in such a situation, or make also the first message to show?

    Example of situation 2)

    Code:
    monitor_event FactionTurnStart
    
    [condition set A] advance_advice_thread [message 1] [other commands]
    end_monitor monitor_event FactionTurnStart
    [condition set B] advance_advice_thread [message 2] [other commands]
    end_monitor
    Can I get both messages 1 and 2 displayed if both condition sets A and B sometimes are met?

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

    Default Re: Pausing the campaign mode during an advisor message?

    Try using:
    Code:
    console_command halt_ai
    advance_advice_thread ..
    console_command run_ai
    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

  3. #3

    Default Re: Pausing the campaign mode during an advisor message?

    Quote Originally Posted by HouseOfHam View Post
    Try using:
    Code:
    console_command halt_ai
    advance_advice_thread ..
    console_command run_ai
    Tried in situation 2, but it didn't seem to work... Should it?
    I mean that again I only got one message, the one one position as last in background script.

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

    Default Re: Pausing the campaign mode during an advisor message?

    I don't think you can queue up avisor messages. You will only see the last one. If you can't combine them into a single monitor, there are a couple other approaches you could try:

    1) Create some fake traits with no effects and use trait gained notification system. Of course, there is a chance player might not see them if they don't know to check there.
    2) Instead of doing advance_advice_thread directly in the monitor, just set a counter there, then modify the loop at the end of the script to check for that particular counter, i.e.
    Code:
    while I_TurnNumber < 9999
      if not I_AdvisorVisible
    
        if I_CompareCounter ShowMessage1 = 1
            advance_advice_thread Thread1
            set_counter ShowMessage1 0
        end_if
    
        if I_CompareCounter ShowMessage2 = 1
            advance_advice_thread Thread2
            set_counter ShowMessage2 0
        end_if
    
        ; etc
      end_if
    end_while
    edit: of course method 2 implies that you don't use 4-turns-per-year script or similar logic that would prevent you from immediately getting to that loop.
    Last edited by HouseOfHam; July 07, 2011 at 10:23 AM.
    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

  5. #5

    Default Re: Pausing the campaign mode during an advisor message?

    OK, thanks alot HoH, will try!

Posting Permissions

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