mrtwisties
11-29-2007, 14:42
I'm still working on the same project I posted earlier (https://forums.totalwar.org/vb/showthread.php?t=95802), but now I have a different question so I've created a different post. I hope that's okay.
Here's the situation:
1. When you auto-resolve a land or sea battle, a battle results screen comes up.
2. I'd like to use a script to automatically get rid of this results screen.
3. Here is the code I'm using (unsuccessfully):
declare_counter DismissScroll
set_counter DismissScroll 0
monitor_event ScrollOpened ConditionTrue
set_counter DismissScroll 1
end_monitor
monitor_conditions I_CompareCounter DismissScroll = 1
set_counter DismissScroll 0
select_ui_element confirm_quit_scroll
simulate_mouse_click lclick_down
simulate_mouse_click lclick_up
end_monitor
Here are the questions:
Q1. Is this the right monitoring code? When I try and test with puppify_my_love, the puppies appear straightaway.
Q2. What UI element should I select to exit the Battle Results screen?
Here's the situation:
1. When you auto-resolve a land or sea battle, a battle results screen comes up.
2. I'd like to use a script to automatically get rid of this results screen.
3. Here is the code I'm using (unsuccessfully):
declare_counter DismissScroll
set_counter DismissScroll 0
monitor_event ScrollOpened ConditionTrue
set_counter DismissScroll 1
end_monitor
monitor_conditions I_CompareCounter DismissScroll = 1
set_counter DismissScroll 0
select_ui_element confirm_quit_scroll
simulate_mouse_click lclick_down
simulate_mouse_click lclick_up
end_monitor
Here are the questions:
Q1. Is this the right monitoring code? When I try and test with puppify_my_love, the puppies appear straightaway.
Q2. What UI element should I select to exit the Battle Results screen?