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