Results 1 to 5 of 5

Thread: Turning off the HUD and Settlement Names during Script

Hybrid View

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

    Default Turning off the HUD and Settlement Names during Script

    Is there a command that you can us in a script that can toggle or turn off the HUD so that it is not present at the beginning of the campaign? Also, is the same possible for the city names? It would be great if I could see only the map with the cities and generals. It would be good for creating story campaigns

    Thanks,
    HiiMmyself

    From the mouth of the one and only Casca... (If you like the play Julius Caesar or just think Casca is awesome, add this to your sig.)

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

    Default Re: Turning off the HUD and Settlement Names during Script

    You mean like the movie camera mode in the Sons of Mars campaign? That's the hide_ui command. The only problem is, turning UI back on with show_ui leaves faction icons across the top of the screen, like you'd normally see between turns. The only way to get him of them then is to spawn/start a battle.
    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: Turning off the HUD and Settlement Names during Script

    EDIT: This works great in Alexander, but in the original rtw, how can you get rid of the settlement names?

    wow, thanks. you vast knowledge of scripting never seems to end. While I am at it, I forgot how you can set a trigger based on a specific battle that would queue either a continuation of the campaign on victory, and send you to the main menu on defeat. How do you do that?

    This is the first time I have scripted in a long time.

    Thanks,
    HiiMmyself
    Last edited by HiiMmyself; April 10, 2009 at 11:32 AM.

    From the mouth of the one and only Casca... (If you like the play Julius Caesar or just think Casca is awesome, add this to your sig.)

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

    Default Re: Turning off the HUD and Settlement Names during Script

    Quote Originally Posted by HiiMmyself View Post
    EDIT: This works great in Alexander, but in the original rtw, how can you get rid of the settlement names?
    Mmm... not sure if this would work, but it's worth a shot:

    call_object_shortcut strat_ui toggle_settlement_labels

    Quote Originally Posted by HiiMmyself View Post
    While I am at it, I forgot how you can set a trigger based on a specific battle that would queue either a continuation of the campaign on victory, and send you to the main menu on defeat. How do you do that?
    Hmm... specific battle? I think you would need to set a counter before the battle starts that would indicate the upcoming battles significance, then have a monitor like this:

    Code:
    declare_counter decisiveBattle
    ...
    monitor_event PostBattle I_CompareCounter decisiveBattle = 1
    
      if I_WonBattle <player_faction>
        ; Yay, keep playing
        set_counter decisiveBattle 0
      end_if
    
      if not I_WonBattle <player_faction>
        ; Abandon all hope, ye who enters here.
        console_command surrender_regions <player_faction>
      end_if
    
    end_monitor
    
    ...
    ...
    set_counter decisiveBattle 1
    ...
    Note that surrender_regions will only cause defeat if the player faction cannot horde.
    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: Turning off the HUD and Settlement Names during Script

    sadly, the settlement names toggle did not work, but the script worked perfectly! If anyone can figure out, it would be greatly appreciated. THis would be really helpful and would be a great cinematic effect for the story mode I am creating.

    Thanks,
    HiiMmyself

    From the mouth of the one and only Casca... (If you like the play Julius Caesar or just think Casca is awesome, add this to your sig.)

Posting Permissions

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