;2.1 强制同盟 declare_counter wartest1 declare_counter wartest2 declare_counter wartest3 declare_counter wartest4 declare_counter wartest5 declare_counter wartest6 ;以下是每回合强制同盟 monitor_event FactionTurnStart FactionIsLocal and I_TurnNumber < 100 console_command diplomatic_stance milan sicily allied console_command diplomatic_stance papal_states sicily allied console_command diplomatic_stance papal_states milan allied end_monitor ;-----------------FactionType papal_states monitor_event FactionWarDeclared FactionType papal_states and TargetFactionType milan and I_TurnNumber < 100 set_counter wartest1 1 end_monitor monitor_event GeneralAssaultsGeneral FactionType papal_states and TargetFactionType milan and I_TurnNumber < 100 set_counter wartest1 1 end_monitor monitor_event GeneralAssaultsResidence FactionType papal_states and TargetFactionType milan and I_TurnNumber < 100 set_counter wartest1 1 end_monitor ;-----以下是通过脚本锁定操作,进入战斗选择界面,自动锁定鼠标,自动选择撤退,并且再次强制同盟 ;---- forcing player to withdraw monitor_event ScrollOpened ScrollOpened prebattle_scroll and I_CompareCounter wartest1 == 1 and I_TurnNumber < 100 ;log always ;just for testing disable_cursor campaign_wait 1 ui_flash_start prebattle_withdraw_button campaign_wait 1 select_ui_element prebattle_withdraw_button simulate_mouse_click lclick_down select_ui_element prebattle_withdraw_button simulate_mouse_click lclick_up enable_cursor console_command diplomatic_stance milan sicily allied console_command diplomatic_stance papal_states sicily allied console_command diplomatic_stance papal_states milan allied set_counter wartest1 0 end_monitor |
欢迎光临 汉魂王爵会员站 (http://www.hanhuns.com/) | Powered by Discuz! X3.4 |