Can anyone help me with the UI and scripting, please?
1. Does anyone know the internal name of the little tick-in-a-circle that you click to exit the battle results screen?
2. Also, does anyone know what condition or event I can use to test for the existence of a battle results screen?
I'm writing a script that makes the computer play the game for x turns. These two things are all I need and it'll be complete.
(Incidentally, looking in the EBBS script I found your auto-run code. I tested the code for dismissing the diplomacy panel (which is commented out), and it's a little buggy. I imagine that's why it's commented out. I mention this only because it can actually be quite stable if you just close the scroll rather than declining the diplomatic request. You can see my code here at post #27: https://forums.totalwar.org/vb/showthread.php?t=95802)
Re: Can anyone help me with the UI and scripting, please?
I've been looking through docudemon, and guessing that either of these might work with the correct syntax.
Quote:
Identifier: IncomingMessageType
Trigger requirements: event
Parameters: message identifier (see Tom)
Sample use: IncomingMessageType senate_mission_issued
Description: Has this message just been received
Battle or Strat: Strat
Class: INCOMING_MESSAGE
Implemented: Yes
Author: Guy
Quote:
Identifier: ScrollOpened
Trigger requirements: resource_description
Parameters: scroll id (see available_ui_elements.txt)
Sample use: ScrollOpened own_character_info_scroll
Description: Test for when a named scroll is opened
Battle or Strat: Both - Depends on scroll requested
Class: SCROLL_OPENED
Implemented: Yes
Author: Tom
Could I run a test like this perhaps?
Quote:
monitor_event ScrollOpened post_battle_scroll
set_counter DismissScroll 1
end_monitor
monitor_conditions DismissScroll > 0
select_ui_element confirm_quit_scroll
simulate_mouse_click lclick_down
simulate_mouse_click lclick_up
end_monitor
Re: Can anyone help me with the UI and scripting, please?
I tell a lie. My diplomacy-nerfing script isn't working anymore. Sorry. Don't know what's happened, but it stopped working.