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:
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.Code:disable_ui advanced_stats_set_as_capital_button
I've also tried moving the capital by script, but have had no luck so far:
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?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
Furthermore I've tried isolating parts, but this code isn't working either once the settlement panel is already open:
Any advice would be appreciated, I know this should be workable there's just something I'm missing....Code:monitor_event SettlementPanelOpen TrueCondition select_ui_element settlement_stats_button simulate_mouse_click lclick_down end_monitor






Reply With Quote




