强制同盟以及如何避免用攻城器械偷城
;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
高手云集 果断围观 很不错 好帖就是要顶 顶顶多好 难得一见的好帖 说的非常好 好帖就是要顶 很好哦 真心顶 LZ真是人才
页:
[1]
2