Just in case it is useful for somebody, I report here a method to start the campaign in the middle of the initial year, instead of at the beginning.
Let's say we want a 12 turns per year campaign, but it must start in September of 1212.
We use alpaca's script modified in this way:
Code:
declare_counter season_counter
set_counter season_counter 9
monitor_event FactionTurnStart FactionIsLocal
inc_counter season_counter 1
; 0 equals winter
if I_CompareCounter season_counter == 0
console_command season winter
end_if
if I_CompareCounter season_counter > 0
console_command season summer
end_if
; Reset the counter on the autumn turn so that it'll be 0 next turn
if I_CompareCounter season_counter == 11
set_counter season_counter -1
end_if
end_monitor
But the year (seen using show_hud_date = true configuration option) will change in turn 12, not in turn 4. For this purpose we must add new options:
Code:
declare_counter season_counter
set_counter season_counter 9
declare_counter year_counter
set_counter year_counter 0
monitor_event FactionTurnStart FactionIsLocal
inc_counter season_counter 1
; 0 equals winter
if I_CompareCounter season_counter == 0
console_command season winter
end_if
if I_CompareCounter season_counter > 0
console_command season summer
end_if
; Reset the counter on the autumn turn so that it'll be 0 next turn
if I_CompareCounter season_counter == 11
set_counter season_counter -1
end_if
if I_CompareCounter season_counter == 0
inc_counter year_counter 1
end_if
if I_CompareCounter year_counter == 1
console_command date 1213
end_if
if I_CompareCounter year_counter == 2
console_command date 1214
end_if
; more lines are needed depending on the duration of the campaign.
end_monitor
I've used this system in the first tests of a campaign with 50 turns per year, beginning in the 34 turn of the first year, and it works (only tested the first "New Year Event").
Bookmarks