My full script:
Code:
script
select_ui_element advisor_dismiss_button
simulate_mouse_click lclick_up
while I_AdvisorVisible
end_while
suspend_unscripted_advice true
declare_show_me
;console_command toggle_perfect_spy
;;;
;;; --- Forced shutdown ---
;;;
;;; Press 'Esc' on the campaign map, then click on the '?' button in the
;;; menu scroll to terminate the script. You have to do this to be able
;;;to restart a new campaign.
;;;
monitor_event ScrollAdviceRequested ScrollAdviceRequested end_game_scroll
terminate_script
end_monitor
; Handle saved game reloads
monitor_event GameReloaded TrueCondition
terminate_script
end_monitor
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Real start of the Script
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
declare_counter Test
set_counter Test 0
monitor_event FactionTurnStart FactionType romans_julii
senate_mission_help_player major_reward
end_monitor
while I_CompareCounter Test = 0
end_while
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Real End of the Script
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
while I_TurnNumber < 99999
suspend_unscripted_advice true
end_while
end_script
Used this already with a 4tpy script, so the other things work. But I will try it now with the best buildable unit.