下面我贴出我修改的代码,感兴趣的可以自己试着修改。
首先是脚本文件当中的内容
declare_counter jingrui
declare_counter xunlian
monitor_event PostBattle FactionIsLocal
and WonBattle
and BattleSuccess >= average
and RandomPercent < 33
inc_counter jingrui 1
historic_event jingrui_gain
end_monitor
monitor_event PostBattle FactionIsLocal
and WonBattle
and BattleSuccess >= clear
and RandomPercent < 66
historic_event jingrui_gain
inc_counter jingrui 1
end_monitor
monitor_event PostBattle FactionIsLocal
and WonBattle
and BattleSuccess >= crushing
historic_event jingrui_gain
inc_counter jingrui 1
end_monitor
monitor_event FactionTurnStart FactionIsLocal
set_counter xunlian 0
end_monitor
monitor_event FactionTurnStart FactionIsLocal
andI_TurnNumber = 0
set_counter jingrui 8
end_monitor
monitor_event ScrollAdviceRequested ScrollAdviceRequested missions_scroll
if I_CompareCounter jingrui > 7
historic_event jingrui_8 true
end_if
if I_CompareCounter jingrui = 0
historic_event jingrui_0 true
end_if
if I_CompareCounter jingrui = 1
historic_event jingrui_1 true
end_if
if I_CompareCounter jingrui = 2
historic_event jingrui_2 true
end_if
if I_CompareCounter jingrui = 3
historic_event jingrui_3 true
end_if
if I_CompareCounter jingrui = 4
historic_event jingrui_4 true
end_if
if I_CompareCounter jingrui = 5
historic_event jingrui_5 true
end_if
if I_CompareCounter jingrui = 6
historic_event jingrui_6 true
end_if
if I_CompareCounter jingrui = 7
historic_event jingrui_7 true
end_if
set_counter xunlian 1
end_monitor
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;训练翼骑兵
monitor_event CharacterSelected CharacterIsLocal
and not InEnemyLands
and I_CompareCounter xunlian = 1
and I_CompareCounter jingrui > 1
and Trait tianceshangjiang >= 1
historic_event recruit1 true
end_monitor
monitor_event EventCounter EventCounterType recruit1_accepted
and I_EventCounter recruit1_accepted = 1
;and FactionIsLocal
console_command create_unit "lishimin", "Polish fly Knights", 2 9 9 9
console_command add_money -1200
inc_counter jingrui -1
set_event_counter recruit1_accepted 0
end_monitor
monitor_event EventCounter EventCounterType recruit1_accepted
and I_EventCounter recruit1_accepted = 0
;and FactionIsLocal
console_command create_unit "xuerengui", "Polish fly Knights", 1 9 9 9
console_command create_unit "lijing", "Polish fly Knights", 1 9 9 9
console_command add_money -1200
inc_counter jingrui -1
end_monitor