在data\world\maps\campaign\imperial_campaign\campaign_script.txt中的第一个“script”后起一行,复制下列代码即可实现12回合将军涨一岁,此方法转自黄龙。
; 12 turns per year script
restrict_strat_radar false
declare_counter month
set_counter month 1 ;set to March
monitor_event FactionTurnStart FactionIsLocal ; set the season for each month
if I_CompareCounter month == 1 ;March
console_command season summer
end_if
if I_CompareCounter month == 2 ;April
console_command season summer
end_if
if I_CompareCounter month == 3 ;May
console_command season summer
end_if
if I_CompareCounter month == 4 ;June
console_command season summer
end_if
if I_CompareCounter month == 5 ;July
console_command season summer
end_if
if I_CompareCounter month == 6 ;August
console_command season summer
end_if
if I_CompareCounter month == 7 ;September
console_command season summer
end_if
if I_CompareCounter month == 8 ;October
console_command season summer
end_if
if I_CompareCounter month == 9 ;November
console_command season summer
end_if
if I_CompareCounter month == 10 ;December
console_command season winter
end_if
if I_CompareCounter month == 11 ;January
console_command season winter
end_if
if I_CompareCounter month == 12 ;February
console_command season winter
end_if
inc_counter month 1 ;advance the month
if I_CompareCounter month == 13 ;start a new year
set_counter month 1
end_if
end_monitor
monitor_event FactionTurnEnd FactionType slave
and I_CompareCounter month < 12
console_command season summer
end_monitor