Could somebody help me with this script?
I want that everytime the loot_settlement_scroll is opened, the script automatically select the ocuppy option.

Code:
monitor_event ScrollOpened ScrollOpened loot_settlement_scroll
   ;console_command puppify_my_love
   ;wait 1
   select_ui_element loot_settlement_occupy_button
   simulate_mouse_click lclick_down
   simulate_mouse_click lclick_up
end_monitor
The monitor event is detected correctly (puppify_my_love is executed), but the option is not selected nor clicked. I have tested adding some "wait" commands, but with no results. I have also tested this:

Code:
monitor_event ScrollOpened ScrollOpened prebattle_scroll
   select_ui_element prebattle_auto_resolve_button
   simulate_mouse_click lclick_down
   simulate_mouse_click lclick_up
end_monitor
Any ideas? Has somebody been able to get working some similar script?
Thanks