;
; Campaign script
;	Written by GrnEyedDvl
;
;	Table of Contents
;	1. 4 turns per year, characters age in 1st Quarter
;
;
;
;
;
;
;

script

	;show the whole map
	restrict_strat_radar false

;	1. 12 Turns per year.
declare_counter quarter
set_counter quarter 1 ;set to January

monitor_event PreFactionTurnStart FactionIsLocal ; set the season for each quarter
	if I_CompareCounter quarter == 1 ;Jan, Feb, March
		console_command season winter
	end_if
	
	if I_CompareCounter quarter == 2 ;April, May, June
		console_command season summer
	end_if
	
	if I_CompareCounter quarter == 3 ;July, Aug, Sept
		console_command season summer
	end_if
	
	if I_CompareCounter quarter == 4 ;Oct, Nov, Dec
		console_command season winter
	end_if
	
	inc_counter quarter 1 ;advance the quarter
	if I_CompareCounter quarter == 5 ;start a new year
		set_counter quarter 1
	end_if
end_monitor

monitor_event FactionTurnEnd FactionType slave
	and I_CompareCounter quarter > 1
	console_command season summer
end_monitor

	wait_monitors

end_script