Results 1 to 2 of 2

Thread: Preventing Capital Move?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Preventing Capital Move?

    I'm curious if anyone has found a way to prevent the capital of a faction from being moved. Both of the scripts I've tried so far haven't worked.

    First I tried disabling the button:
    Code:
    disable_ui advanced_stats_set_as_capital_button
    Which should work for all intents and purposes. It's not the wrong button, I verified this with a ButtonPressed monitor that pops a historic event. Yet it doesn't.

    I've also tried moving the capital by script, but have had no luck so far:
    Code:
    monitor_event ButtonPressed ButtonPressed finances_button
    	select_settlement Pingjiang
    	simulate_mouse_click ldbl_click
    	simulate_mouse_click lclick_up
    	campaign_wait 1
    	select_ui_element settlement_stats_button
    	simulate_mouse_click lclick_down
    	simulate_mouse_click lclick_up
    	campaign_wait 1
    	select_ui_element advanced_stats_set_as_capital_button
    	simulate_mouse_click lclick_down
    	simulate_mouse_click lclick_up
     terminate_monitor
    end_monitor
    I know for a fact both of the buttons are the correct buttons. I've also tried it without the lclick_up clicks. Coincidentally, does anyone know what "lclick_up" symbolizes?

    Furthermore I've tried isolating parts, but this code isn't working either once the settlement panel is already open:
    Code:
    monitor_event SettlementPanelOpen TrueCondition
    	select_ui_element settlement_stats_button
    	simulate_mouse_click lclick_down
    end_monitor
    Any advice would be appreciated, I know this should be workable there's just something I'm missing....

  2. #2
    Vegas_Bear's Avatar Biarchus
    Join Date
    Sep 2005
    Location
    Las Vegas, NV
    Posts
    605

    Default Re: Preventing Capital Move?

    What about removing the button all together. Have you tried looking in the mtw2.int file in the menu folder? Just do a search for capital, there are 2 sections in this file w/ capital. I haven't tried to edit this for that.

    Hope this helps,
    Vegas_Bear

Posting Permissions

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