; ; Campaign script ; Written by GrnEyedDvl ; ; Table of Contents ; 1. 12 turns per year, characters age in December ; 80% chance of a normal winter, 10% chance of severe winter, 10% chance of mild winter ; ; ; script ;show the whole map restrict_strat_radar false ; 1. 12 Turns per year. declare_counter month declare_counter winter_severity set_counter winter_severity 1 ;normal winter, 2 = severe winter, 3 = mild winter set_counter month 1 ;set to January monitor_event FactionTurnStart FactionIsLocal ; set the season for each month if I_CompareCounter month == 1 ;January and I_CompareCounter winter_severity == 1 ; normal winter console_command season winter end_if if I_CompareCounter month == 1 ;January and I_CompareCounter winter_severity == 2; severe winter console_command season winter end_if if I_CompareCounter month == 1 ;January and I_CompareCounter winter_severity == 3; mild winter console_command season summer end_if if I_CompareCounter month == 2 ;February and I_CompareCounter winter_severity == 1; normal winter console_command season winter set_event_counter summer_winter 1; next turn will be summer end_if if I_CompareCounter month == 2 ;February and I_CompareCounter winter_severity == 2; severe winter console_command season winter end_if if I_CompareCounter month == 2 ;February and I_CompareCounter winter_severity == 3; mild winter console_command season summer end_if if I_CompareCounter month == 3 ;March and I_CompareCounter winter_severity == 1; normal winter console_command season summer end_if if I_CompareCounter month == 3 ;March and I_CompareCounter winter_severity == 2;severe winter console_command season winter end_if if I_CompareCounter month == 3 ;March and I_CompareCounter winter_severity == 3; mild winter console_command season summer end_if if I_CompareCounter month == 4 ;April and I_CompareCounter winter_severity == 1; normal winter console_command season summer end_if if I_CompareCounter month == 4 ;April and I_CompareCounter winter_severity == 2; severe winter console_command season winter set_event_counter summer_winter 1; next turn will be summer end_if if I_CompareCounter month == 4 ;April and I_CompareCounter winter_severity == 3; mild winter console_command season summer end_if if I_CompareCounter month == 5 ;May console_command season summer end_if if I_CompareCounter month == 6 ;June console_command season summer end_if if I_CompareCounter month == 7 ;July console_command season summer end_if if I_CompareCounter month == 8 ;August console_command season summer end_if if I_CompareCounter month == 8 ;August and I_CompareCounter winter_severity == 2 ; severe winter set_event_counter summer_winter 2;next turn will be winter end_if if I_CompareCounter month == 9 ;September and I_CompareCounter winter_severity == 1; normal winter console_command season summer set_event_counter summer_winter 2;next turn will be winter end_if if I_CompareCounter month == 9 ;September and I_CompareCounter winter_severity == 2; severe winter console_command season winter historic_event severe_winter end_if if I_CompareCounter month == 9 ;September and I_CompareCounter winter_severity == 3; mild winter console_command season summer end_if if I_CompareCounter month == 10 ;October and I_CompareCounter winter_severity == 1; normal winter console_command season winter end_if if I_CompareCounter month == 10 ;October and I_CompareCounter winter_severity == 2; severe winter console_command season winter end_if if I_CompareCounter month == 10 ;October and I_CompareCounter winter_severity == 3; mild winter console_command season summer historic_event mild_winter end_if if I_CompareCounter month == 11 ;November and I_CompareCounter winter_severity == 1; normal winter console_command season winter end_if if I_CompareCounter month == 11; November and I_CompareCounter winter_severity == 2; severe winter console_command season winter end_if if I_CompareCounter month == 11 ;November and I_CompareCounter winter_severity == 3; mild winter console_command season summer set_event_counter summer_winter 2;next turn will be winter end_if if I_CompareCounter month == 12 ;December console_command season winter end_if if I_CompareCounter month == 12 ;December and I_CompareCounter winter_severity == 3; mild winter set_event_counter summer_winter 1; next turn will be summer 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 ;allows game to advance age and I_CompareCounter month < 12 console_command season summer end_monitor monitor_event FactionTurnEnd FactionType slave ; randomized winter and I_CompareCounter month == 6 set_counter winter_severity 1 ; back to normal winter if RandomPercent > 80 ; 80% normal winter, 20% of either severe or mild set_event_counter next_option 1 end_if if RandomPercent > 50 and I_EventCounter next_option == 1 set_counter winter_severity 3 ;50 percent chance of mild winter once normal has been eliminated set_event_counter next_option 0 end_if if I_EventCounter next_option == 1 set_counter winter_severity 2 ;50 percent chance of severe winter once normal has been eliminated set_event_counter next_option 0 end_if end_monitor wait_monitors end_script