:: school_grounds_events[events]
	/*<<if $time.day == $nyp_day and $time.month == 12 and $pc.isSchoolStudent>>
		<<if $time.hour >= 14 and $time.hour < 17>>
			<p>
				All of the boys and girls are standing near the school.
				Everyone did their best to look good today, wearing their nicest clothes.
				Someone calls out to you. "Hey $pc.name_nick, are you coming to the New Year's Eve party or not?
				You haven't paid the 1000 <b>₽</b> entry fee yet!"
			</p>
			<<if $finances.cash >= 1000>>
				<<actCLA 'Go to the party (1,000 <b>₽</b>)'>>
					<<setn $finances.cash -= 1000>> <<gt 'nyp_school' 'start'>>
				<</actCLA>>

			<</if>>
		<</if>>
	<</if>>*/


:: school_grounds[outdoors public]

	<!--<<gs 'vicky_meynold_schedule'>>
	<<gs 'katja_meynold_schedule'>>
	<<gs 'igor_schedule'>>-->
	<h2>Outside School</h2>
	<<if $time.isWinter>>
		<<image "locations/pavlovsk/school/building/schoolwinter.jpg">>
	<<else>>
		<<image "locations/pavlovsk/school/building/gschool.jpg">>
	<</if>>

	<<debug>>
		<<actCLA '<b>Go to class</b>' 1>>
			<<gt 'school_start'>>
		<</actCLA>>
	<</debug>>

	<<ConnectedLocation 'Residential Area' 'pav_residential' '' 'locations/pavlovsk/pavres.jpg' 2 `{priority:9000,hotkeys:['H']}`>>
	<!--<<ConnectedLocation 'Sports Field' 'gschool_sportsfield' '' 'locations/pavlovsk/school/grounds/field.jpg' 1 `{priority:0}`>>-->

	<p>
		<<if $pc.isSchoolStudent>>
			This is your school.
			<<if $time.isSchoolHoliday>>
				It is currently closed for the holidays.
			<<elseif $time.weekday >= 6>>
				It is currently closed for the weekend.
			<<elseif $quest('school').lastAttendedDay >= $time.daystart>>
				School is over for today.
			<<elseif  $time.hour <= 6>>
				The doors are still locked.
			<<elseif $time.hour <= 8>>
				<<if !$quest('school').func('isWearingSchoolUniform')>>
					<<negative>>You're not allowed to attend any classes at school if you're not wearing your school uniform.<</negative>>
				<<else>>
					
				<</if>>
				<<ConnectedLocation 'Enter School' 'school_hallway' '' 'locations/pavlovsk/school/building/gschool_hall00.jpg' 1>>
			<<else>>
				It's too late for you to attend school now. You have been marked as absent today.
			<</if>>
			<hr/>
		<</if>>
	</p>
	

	<p>
		Pavlovsk's only school, where all the local children go for their education.
		Next to the school is the athletic field and a parking lot for the teachers, with a large grove of trees just beyond them.
	</p>
	<p>
		Hidden behind these trees is the old school building, which was supposed to be renovated and used for advance classes after the new one was built,
		but budget cuts meant the project was cancelled and now the old building stands empty and abandoned.
		It's a popular spot for students to skip class or hang out outside of school.
	</p>
	/*<<if (($time.hour == 6 and $time.minutes >= 30) or ($time.hour >= 7 and $time.hour < 18))  and !$time.isSchoolHoliday and $pc.isSchoolStudent>>
		<<act 'changing rooms'>><<setn $time.minutes += 1>><<gt  'school_grounds'  'change_room'>><</act>>
		With the school open you can go to the changing rooms by the gym and change your outfit.
	<</if>>*/

:: school_grounds_deactivated
	<!-- All the stuff that's related to various quests and events -->

	<<if getvar("$InvitationToDimkaNYparty") == 1 and $time.day == 31 and $time.day == $nyp_day>>
		<<actCLA 'Follow Dimka to the party at his house'>>
			<<setn $time.minutes += 30>> <<gt 'sny' '3'>>
		<</actCLA>>

	<</if>>
	<<if $time.hour == 14 and $time.weekday < 6 and $time.isSchoolHoliday == 0>>
		<<if $NikoDate_Day != $time.daystart>>
			<<if $time.weekday == 1 and getvar("$NikoIntro") == 0>>
				<<gt 'NikoEv' 'Intro'>>
			<<elseif getvar("$NikoVolkovQW") == 5 and getvar("$NikoEv") == 6 and getvar("$NikoDate") == 0>>
				<<gt 'NikoDates' 'after_school'>>
			<<elseif getvar("$NikoVolkovQW") == 5 and getvar("$NikoEv") == 8 and getvar("$NikoDate") == 0>>
				<<gt 'NikoDates' 'after_school2'>>
			<<elseif getvar("$NikoVolkovQW") == 10 and getvar("$NikoEv") == 22>>
				<<gt 'NikoEv2' 'Recovery'>>
			<</if>>
		<</if>>
	<</if>>
	<<if $time.weekday < 6 and $time.hour == 14 and $time.isSchoolHoliday == 0 and $afterschool_day != $time.daystart and getvar("$suspended['on']") != 1>>
		<<set $afterschool_day = $time.daystart>>
		<<if rand(0,3) == 0>>
			<<set $eventtype = 'after_school'>>
			<<gt 'gschool_events' 'break_events'>>
		<<else>>
			<<gt 'gschool_events' 'afterschool_events'>>
		<</if>>
	<</if>>
	<!-- !! Cheerleading tryouts if Sveta decided to attend-->
	<<if $time.hour == 14 and $q.cheerleading?.get('quest_stage') == 1>>
		<<if getvar("$pc.pregtime") < 90>>
			<<gt 'gschool_cheerleading' 'tryouts'>>

		<</if>>
		<!-- !! Sveta attends training after school every Tuesday and Thursday.-->
	<<elseif $time.hour == 14 and $q.cheerleading?.get('day') != $time.daystart and ($time.weekday == 2 or $time.weekday == 4) and $time.isSchoolHoliday == 0 and $q.cheerleading?.get('quest_stage') > 1 and getvar("$suspended['on']") != 1>>
		<<if $npc('A23').pregtalk == 0>>
			<<gt 'gschool_cheerleading' 'afterschool_practice'>>

		<</if>>
		<!-- !! A football game is played once every 2nd Friday and the cheerleaders perform out on the field.-->
	<<elseif $time.hour == 14 and $q.cheerleading?.get('day') != $time.daystart and $time.weekday == 5 and ($time.daystart - ($time.daystart % 7)) % 2 == 1 and $time.isSchoolHoliday == 0 and ($q.cheerleading?.get('quest_stage') >= 3 or $q.cheerleading?.get('backup_game') == 1) and getvar("$suspended['on']") != 1>>
		<<if $npc('A23').pregtalk == 0>>
			<<gt 'gschool_cheerleading' 'afterschool_game'>>

		<</if>>
	<</if>>
	<<if $time.hour <= 8 and getvar("$kanikuli") == 6>>
		<p>Today is graduation day! The school prom is tonight as well.</p>
		<<actCLA 'Go to your graduation'>>
			<<set $menu_off = 1>>
			<<set $time.hour = 10>>
			<<set $time.minutes = 0>>
			<<set $SchoolAtestat = 1>>
			<<set $pc.isSchoolStudent = false>>

			<<if setup.func('homes_properties', 'has_access', 'homeParents')>>
				Everyone from your year is assembled in the auditorium of the school. Your teachers are standing on a platform in front of several rows of chairs where you and your classmates are sitting. Some parents and siblings are sitting in the back rows. You turn your head and see your mother and your brother sitting among them.
			<<else>>
				Everyone from your year is assembled in the auditorium of the school. Your teachers are standing on a platform in front of several rows of chairs where you and your classmates are sitting. Some parents and siblings are sitting in the back rows. Nobody from your family showed up.
			<</if>>
			Your Principial begins calling your classmates in alphabetical order. Finally it's your turn.
			<<if getvar("$class['school_grade_average']") >= 90>>
				<p>You go up to the podium. As the Principal shakes your hand she announces "As every year I'd like to honor our best student of the year. Miss $pc.name_last here performed exceptionally well in her studies and I think that deserves some recognition." She starts applauding and the auditorium quickly joins in.</p>
				<<if setup.func('homes_properties', 'has_access', 'homeParents')>>
					As you return to your place you see your mother smiling brightly.

				<</if>>
			<<elseif getvar("$class['school_grade_average']") >= 70>>
				<p>You go up to the podium. The Principal shakes your hand and gives you your diploma. "Well done, Miss $pc.name_last!" she says before you return to your place.</p>
			<<else>>
				You go up to the podium. The Principal shakes your hand and gives you your diploma and you return to your place.
			<</if>>
			<<ConnectedLocation 'Residential Area' 'pav_residential' '' 'locations/pavlovsk/pavres.jpg' 2 `{priority:9000,hotkeys:['H']}`>>
			<<actCLA 'Go to the prom party'>>
				<<set $time.minutes += 540>>
				<<set $pc.pcs_energy += 70>>
				<<gs 'drugs' 'alcohol' 'vodka' `rand(2,3)`>>
				<!--<<gs 'clothing' 'strip_all'>>-->
				After the ceremony, everyone gets hammered at the prom party. When you wake up, your mouth is dry and you can taste and smell the alcohol on your breath as you feel a headache coming on. Looking around, you see that you're somewhere in the town center and that you're completely naked, with twigs and leaves stuck in your hair. You are a little alarmed when you notice that your clothes are missing.
				You're unable to find your clothes, so you cover yourself with your hands and stick to poorly lit areas as you make your way home. You try as hard as you can, but all you can remember are vague flashbacks of skinny dipping in the town fountain with a group of other students.
				<<act 'Go home'>>
					<<gt 'korrPar'>>
				<</act>>
			<</actCLA>>
		<</actCLA>>
	<</if>>
	<<if getvar("$SchoolAtestat") == -1 and $time.weekday < 6 and $time.hour >= 6 and $time.hour < 14>>
		<<actCLA 'Get your diploma'>>
			<<set $menu_off = 1>>
			<<set $time.minutes += 20>>
			<<set $SchoolAtestat = 1>>
			<<set $pc.isSchoolStudent = false>>
			<<if getvar("$class['school_grade_average']") >= 70>>
				<p>The Principal hands you your diploma. "Well done, Miss $pc.name_last! Good luck in your future!" she says as she shakes your hand.</p>
			<<else>>
				<p>The Principal hands you your diploma. "Good luck in your future!" she says as she shakes your hand.</p>
			<</if>>
			<<ConnectedLocation 'Residential Area' 'pav_residential' '' 'locations/pavlovsk/pavres.jpg' 2 `{priority:9000,hotkeys:['H']}`>>
		<</actCLA>>
	<</if>>
	<!-- !!	act 'Go to old school building': gt-->
	<!-- !!	act 'Go to the Principals Office': gt-->


	<<gs 'camera' 'check_location'>>

	<<if getvar("$joint") > 0 and getvar("$jointhigh") == 0>>
		<<actCLA 'Smoke a joint behind the school building'>>
			<<gs 'drugs' 'joint'>> <<gt $location>>
		<</actCLA>>

	<</if>>
	<<if $time.weekday == 6 and $time.hour == 8 and setup.startingCharacterTagsIncludes('sg') and $pc.isSchoolStudent and getvar("$detention_set") == 1 and getvar("$SchoolBlock") == 0>>
		<<act 'Go to detention'>>
			<<gt 'gschool_detention' 'start'>>
		<</act>>

	<</if>>
	<<if $quest('christina').pre_fight == 1 and $time.weekday < 6 and $time.hour == 14 and $time.isSchoolHoliday == 0>>
		<<actCLA `'Attack '+$npc('A18').usedname`>>
			<<gt 'Zvereva_events' 'KristinaFight'>>
		<</actCLA>>
	<</if>>
	<<if getvar("$suspended['on']") != 1 and $time.isSchoolHoliday == 0>>
		<<if $time.weekday < 6 and $time.hour == 14 and getvar("$dimaRevenge") == 5 and getvar("$dimaRevChoice") == 0>>
			<<gt 'dimaRevenge' $dimaRevenge>>
		<<elseif $time.weekday < 6 and $time.hour == 14 and getvar("$dimaRevenge") == 4 and getvar("$dimaRevChoice") == 1>>
			<<gt 'dimaRevenge' $dimaRevenge>>
		<<elseif $time.weekday < 6 and $time.hour == 7 and getvar("$dimaRevenge") == 5 and getvar("$dimaRevChoice") == 1>>
			<<gt 'dimaRevenge' 5 'before'>>
		<<elseif $time.weekday < 6 and $time.hour == 7 and getvar("$dimaRevenge") == 6 and getvar("$dimaRevChoice") == 1>>
			<<gt 'dimaRevenge' 6 'before'>>
		<<elseif $time.weekday < 6 and $time.hour == 14 and getvar("$dimaRevenge") == 7 and getvar("$dimaRevChoice") == 1>>
			<<gt 'dimaRevenge' $dimaRevenge>>
		<<elseif $time.weekday < 6 and $time.hour == 7 and getvar("$dimaRevenge") == 4 and getvar("$dimaRevChoice") == 2>>
			<<gt 'dimaRevenge' $dimaRevenge 'day4jockbefore'>>
		<<elseif $time.weekday < 6 and $time.hour == 7 and getvar("$dimaRevenge") == 5 and getvar("$dimaRevChoice") == 2>>
			<<gt 'dimaRevenge' $dimaRevenge 'day5jockbefore'>>
		<<elseif $time.weekday < 6 and $time.hour == 14 and getvar("$dimaRevenge") == 6 and getvar("$dimaRevChoice") == 2>>
			<<gt 'dimaRevenge' 5 'day5jockafter'>>
			<!-- !elseif week < 6 and hour = 11 and dimaRevenge = 4 and	dimaRevChoice = 3:-->
			<!-- !	 gt 'gschool_lessons', 'short_break'-->
		<<elseif $time.weekday < 6 and $time.hour == 7 and getvar("$dimaRevenge") == 5 and getvar("$dimaRevChoice") == 3>>
			<<gt 'dimaRevenge' $dimaRevenge>>
		<<elseif $time.weekday < 6 and $time.hour == 14 and getvar("$dimaRevenge") == 4 and getvar("$dimaRevChoice") == 4>>
			<<gt 'dimaRevenge' $dimaRevenge 'after'>>
		<<elseif $time.weekday < 6 and $time.hour == 7 and getvar("$dimaRevenge") == 5 and getvar("$dimaRevChoice") == 4>>
			<<gt 'dimaRevenge' $dimaRevenge 'before'>>
		<<elseif $time.weekday < 6 and $time.hour == 14 and getvar("$dimaRevenge") == 6 and getvar("$dimaRevChoice") == 4>>
			<<gt 'dimaRevenge' 5 'after'>>
		<<elseif $time.weekday < 6 and $time.hour == 7 and getvar("$dimaRevenge") == 7 and getvar("$dimaRevChoice") == 4 and $dimaRevengedaystart >= $time.daystart>>
			<<gt 'dimaRevenge' 6>>
		<<elseif $time.weekday < 6 and $time.hour == 7 and getvar("$dimaRevenge") == 5 and getvar("$dimaRevChoice") == 5>>
			<<gt 'dimaRevenge' $dimaRevenge 'before'>>
		<<elseif $time.weekday < 6 and $time.hour == 7 and getvar("$dimaRevenge") == 4 and getvar("$dimaRevChoice") == 5>>
			<<gt 'dimaRevenge' 5>>
		<<elseif $time.weekday < 6 and $time.hour == 7 and getvar("$dimaRevenge") == 4 and getvar("$dimaRevChoice") == 6>>
			<<gt 'dimaRevenge' $dimaRevenge>>
		<</if>>
	<</if>>
	<<if $time.hour >= 14 and $pc.fame('pav_slut') >= 250 and getvar("$SchoolGossip") > 0 and $afterschoolday != $time.daystart>>
		<<gt 'gschool_sex' 'suck'>>

	<</if>>
	<<if $time.hour == 14 and $time.weekday < 6 and $time.isSchoolHoliday == 0 and $pc.isSchoolStudent>>
		<<if getvar("$ivan_afterschool") == 1>>
			<<act 'Meet Ivan after school'>>
				<<gt 'gschool_sex' 'afterschool'>>
			<</act>>

		<</if>>
		<<if getvar("$Enable_tablemap") == 0>>
			<<if getvar("$anushkaQW['first_visit']") == 0 and getvar("$meet_after_school") == 1>>
				<<link "Anushka">><<gt 'anushka' 'meet_after_school'>><</link>> is leaning against a tree just in front of the school.

			<</if>>
			<<if getvar("$LariskaQW['story']") >= 5 and getvar("$cheerleaders_on") == 0>>
				'You see <<link 'Lariska'>><<setn $time.minutes += 1>><<gt  'LariskaGo'>><</link>> impatiently walks back and fourth across the courtyard, as if she's waiting for someone.'

			<</if>>
			<<if $quest('christina').subpath >= 4 and getvar("$cheerleaders_on") == 0>>
				<<npc 'A18'>><<setn $time.minutes += 1>><<gt  'Zvereva_house_events'  'Chris_walk_home'>><</npc>> is walking across the school courtyard, looking irritated.'

			<</if>>
			<<if getvar("$juliaQW['study_unlocked']") >= 1>>
				'<<link 'Julia'>><<setn $time.minutes += 1>><<gt  'JuliaMilHome'  'julia_go'>><</link>> is sitting out on the courtyard, reading a book.'

			<</if>>
			<<if getvar("$NatbelQW['QWstage']") > 0>>
				'<<link 'Natasha'>><<setn $time.minutes += 1>><<gt  'natbelEv'  'natbel_go'>><</link>> is standing in a corner.'

			<</if>>
			<<if getvar("$artemLernQW") >= 1 and getvar("$artemVitokQW") != 2 and getvar("$artemQW['artemblok']") == 0 and getvar("$artemQW['artlie']") != 2 and getvar("$artemQW['artembrokenheart']") != 1>>
				'<<link 'Artem'>><<setn $time.minutes += 15>><<gt  'artem_events'  'start'>><</link>> is waiting for you near the school entrance.'

			<</if>>
			<<if $katjaQW['afterschool_hangout_day'] != $time.daystart and getvar("$katjaQW['QWstage']") >= 1 and getvar("$locat['katja']") == 6>>
				'<<link 'Katja'>><<setn $time.minutes += 15>><<gt  'katjaEv'>><</link>> is walking across the school courtyard, getting ready to go home.'

			<</if>>
			<<if getvar("$DimaBeHomeOnce") == 1 and getvar("$DimaRudeBlock") == 0>>
				'<<link 'Dimka'>><<setn $time.minutes += 15>><<gt  'dimaEv'  'after_school'>><</link>> is deep in thought, as he leans against a lamp post.'
			<<elseif getvar("$DimaRudeQW") > 0 and $dimarudeday != $time.daystart and getvar("$DimaRudeBlock") == 0>>
				<<if rand(0,4) == 0>>
					<<gt 'dimaEv' 'after_school'>>

				<</if>>
				'<<link 'Dimka'>><<setn $time.minutes += 15>><<gt  'dimaEv'  'after_school'>><</link>> is deep in thought, as he leans against a lamp post.'
			<</if>>
			<<if false>>
			<!-- FAILED TO CONVERT
				if (igor_history = 1 or IgorLoverQW > 0) and igorkruglovday ! daystart and IdorBlock = 0 and locat['igor'] = 6: '<a href="exec:minut += 15 & igorkruglovday = daystart & gt ''igorhome'', ''entrance''">Igor</a> is talking to some of his friends on the courtyard.'
			-----
				<<if (getvar("$igor_history") == 1 or getvar("$IgorLoverQW") > 0) and $igorkruglovday != $time.daystart and getvar("$IdorBlock") == 0 and getvar("$locat['igor']") == 6>>
				<!-- FAILED TO CONVERT
	'<<link "Igor">><<set $time.minutes +  = 15>> <<set $igorkruglovday = $time.daystart>> <<gt 'igorhome' 'entrance'>><</link>> is talking to some of his friends on the courtyard.'
-----
	<<set ERROR: FAILED TO CONVERT LITERAL: """'<a href""" = ERROR: FAILED TO CONVERT LITERAL: """"exec:minut""" + ERROR: FAILED TO CONVERT LITERAL: """= 15""">> <<set $igorkruglovday = $time.daystart>> <<gt 'igorhome' 'entrance'">Igor</a> is talking to some of his friends on the courtyard.'>>

-->
<<warn "CONVERSION ERROR 2c46626c426460cce8cf0213c809f4c6">>

			<</if>>

			-->
			<<warn "CONVERSION ERROR 5fb0951b872d3435bd8f6ac9090996d7">>
			<<if getvar("$fedorKozlovQW") >= 10 and getvar("$kotovVSkozlov") == 1>>
				You can see <<link "Fedor">><<gt 'FedorEv' 'Strela Chat'>><</link>> sitting in the corner of the schoolyard by himself.
			<<elseif getvar("$fedorKozlovQW") >= 10 and getvar("$fedorkozqw") == 2 and getvar("$FedorLuv") < -4>>
				You can see <<link "Fedor">><<gt 'FedorEv2' 'Fedor Breakup'>><</link>> standing by himself with a troubled look on his face.
			<<elseif getvar("$fedorKozlovQW") >= 10>>
				You can see <<link "Fedor">><<gt 'FedorEv' 'Start'>><</link>> standing by himself, his backpack around his arm.
			<</if>>
			<<if getvar("$NikoVolkovQW") >= 5 and getvar("$NikoDate") == 1 and $NikoNextDate_day <= $time.daystart or getvar("$NikoEv") == 11>>
				You can see <<link "Nikolai Volkov">><<gt 'NikoEv' 'niko_dates'>><</link>> smoking outside of the school.
			<<elseif getvar("$NikoVolkovQW") >= 10 and getvar("$NikoEv") >= 17 and getvar("$NikoEv") <= 20 and $NikoDate_Day != $time.daystart>>
				<<link "Nikolai">><<gt 'NikoEv2' 'Events'>><</link>> is smoking outside of the school.
			<</if>>
		<<else>>
			<!-- !display friends in table if switch is on.-->
			<<set $st_count = 0>> <<set $show_table = ''>>
			<<if getvar("$anushkaQW['first_visit']") == 0 and getvar("$meet_after_school") == 1>>
				gs 'show_table', '<<link 'Anushka Konstantinov'>><<gt  'anushka'  'meet_after_school'>><</link>>', '5'

			<</if>>
			<<if getvar("$LariskaQW['story']") >= 5 and getvar("$cheerleaders_on") == 0>>
				gs 'show_table', '<<link 'Lariska Gruzdev'>><<setn $time.minutes += 1>><<gt  'LariskaGo'>><</link>>', '5'

			<</if>>
			<<if $quest('christina').subpath >= 4 and getvar("$cheerleaders_on") == 0>>
				gs 'show_table', <<npc 'A18'>><<setn $time.minutes += 1>><<gt  'Zvereva_house_events'  'Chris_walk_home'>><</npc>>', '5'

			<</if>>
			<<if getvar("$juliaQW['study_unlocked']") >= 1>>
				gs 'show_table', '<<link 'Julia Milova'>><<setn $time.minutes += 1>><<gt  'JuliaMilHome'  'julia_go'>><</link>>', '5'

			<</if>>
			<<if getvar("$NatbelQW['QWstage']") > 0>>
				gs 'show_table', '<<link 'Natasha Belova'>><<setn $time.minutes += 1>><<gt  'natbelEv'  'natbel_go'>><</link>>', '5'

			<</if>>
			<<if getvar("$artemLernQW") >= 1 and getvar("$artemVitokQW") != 2 and getvar("$artemQW['artemblok']") == 0 and getvar("$artemQW['artlie']") != 2 and getvar("$artemQW['artembrokenheart']") != 1>>
				gs 'show_table', '<<link 'Artem Chebotarev'>><<setn $time.minutes += 15>><<gt  'artem_events'  'start'>><</link>>', '5'

			<</if>>
			<<if $katjaQW['afterschool_hangout_day'] != $time.daystart and getvar("$katjaQW['QWstage']") >= 1 and getvar("$locat['katja']") == 6>>
				gs 'show_table', '<<link 'Katja Meynold'>><<setn $time.minutes += 15>><<gt  'katjaEv'>><</link>>', '5'

			<</if>>
			<<if getvar("$DimaBeHomeOnce") == 1 and getvar("$DimaRudeBlock") == 0>>
				gs 'show_table', '<<link 'Dimka Nosov'>><<setn $time.minutes += 15>><<gt  'dimaHome'  'home'>><</link>>', '5'
			<<elseif getvar("$DimaRudeQW") > 0 and $dimarudeday != $time.daystart and getvar("$DimaRudeBlock") == 0>>
				<<if rand(0,4) == 0>>
					<<gt 'dimaEv' 'after_school'>>

				<</if>>
				gs 'show_table', '<<link 'Dimka Nosov'>><<setn $time.minutes += 15>><<gt  'dimaEv'  'after_school'>><</link>>', '5'
			<</if>>
			<<if false>>
			<!-- FAILED TO CONVERT
				if (igor_history = 1 or IgorLoverQW > 0) and igorkruglovday ! daystart and IdorBlock = 0 and locat['igor'] = 6: gs 'show_table', '<a href="exec:minut += 15 & igorkruglovday = daystart & gt ''igorhome'', ''entrance''">Igor Kruglov</a>', '5'
			-----
				<<if (getvar("$igor_history") == 1 or getvar("$IgorLoverQW") > 0) and $igorkruglovday != $time.daystart and getvar("$IdorBlock") == 0 and getvar("$locat['igor']") == 6>>
				<!-- FAILED TO CONVERT
	gs 'show_table', '<<link "Igor Kruglov">><<set $time.minutes +  = 15>> <<set $igorkruglovday = $time.daystart>> <<gt 'igorhome' 'entrance'>><</link>>', '5'
-----
	<<set gs 'show_table' , ERROR: FAILED TO CONVERT LITERAL: """'<a href""" = ERROR: FAILED TO CONVERT LITERAL: """"exec:minut""" + ERROR: FAILED TO CONVERT LITERAL: """= 15""">> <<set $igorkruglovday = $time.daystart>> <<gt 'igorhome' 'entrance'">Igor Kruglov</a>' '5'>>

-->
<<warn "CONVERSION ERROR b3e9e34ac870f499f20332e798a1d27a">>

			<</if>>

			-->
			<<warn "CONVERSION ERROR ec4b7bc4d1e46bc5bec436d2101c4298">>
			<<if getvar("$fedorKozlovQW") >= 10 and getvar("$kotovVSkozlov") == 1>>
				gs 'show_table', '<<link 'Fedor'>><<gt  'FedorEv'  'Strela Chat'>><</link>>', '5'
			<<elseif getvar("$fedorKozlovQW") >= 10 and getvar("$fedorkozqw") == 2 and getvar("$FedorLuv") < -4>>
				gs 'show_table', '<<link 'Fedor'>><<gt  'FedorEv2'  'Fedor Breakup'>><</link>>', '5'
			<<elseif getvar("$fedorKozlovQW") >= 10>>
				gs 'show_table', '<<link 'Fedor'>><<gt  'FedorEv'  'Start'>><</link>>', '5'
			<</if>>
			<<if getvar("$NikoVolkovQW") == 5 and getvar("$NikoDate") == 1 and $NikoNextDate_day <= $time.daystart or getvar("$NikoEv") == 11>>
				gs 'show_table', '<<link 'Nikolai'>><<gt  'NikoEv'  'niko_dates'>><</link>>', '5'
			<<elseif getvar("$NikoVolkovQW") == 10 and getvar("$NikoEv") >= 17 and getvar("$NikoEv") <= 20 and $NikoDate_Day != $time.daystart>>
				gs 'show_table', '<<link 'Nikolai'>><<gt  'NikoEv2'  'Events'>><</link>>', '5'
			<</if>>
			<<if getvar("$st_count") > 0>>
				Near school yard, you see:
				<TABLE BORDER=1><<$show_table>></TR></TABLE>
			<</if>>
		<</if>>
		<<if getvar("$AlbinaQW['albride']") == 0 and $AlbinaQW['RideDaystart'] <= $time.daystart and getvar("$AlbinaQW['Chernov']") > 0 and getvar("$cheerleaders_on") == 0>>
			'<<link 'Albina'>><<setn $time.minutes += 15>><<gt  'albina_starlets_aftermath'>><</link>> is waiting behind the wheel of an SUV parked near the school.'
		<</if>>
		<!-- ! meynold`s events-->
		<<if $time.hour == 14 and $vicky_afterschool != $time.daystart>>
			<<gs 'mey_vika_events' 'near_school'>>

		<</if>>
		<<if getvar("$mey_vika['mey_vika_qw']") == 35 or getvar("$mey_vika['mey_vika_qw']") == 36 and $time.minutes < 45>>
			<<actCLA 'Study with Tamara'>>
				<<if getvar("$mey_vika['mey_vika_qw']") == 36>>
					<<gt 'mey_tamara_events' 'rebuke'>>

				<</if>>
				<<gt 'mey_tamara_events' 'learning0'>>
			<</actCLA>>
		<</if>>
	<</if>>
	<<if $strelaDay != $time.daystart and getvar("$strelaQW") == 1 and $time.hour == 14>>
		<p>A Mitsubishi Pajero and a BMW drive up to the school gates and strong, muscular guys in leather jackets and tracksuits get out of the cars. They have come to meet Vitek, Dan and Vasily. You watch them talk about something, although you're not close enough to hear what it's about. Then you notice Fedor leaving the school, his face swollen and bruised, and he waves at you. "$pc.name_nick! Come here, you're my witness!"</p>
		<<act 'Go and see what he needs'>>
			<<gt 'strela'>>
		<</act>>
	<</if>>

:: gschool_sportsfield_events[events]

:: gschool_sportsfield[outdoors public hasEvents]
<!-- !Outside school sports field-->
	<<gs 'Zvereva_schedule'>>
	<<if $time.month > 3 and $time.month < 11>>
		<<image "locations/pavlovsk/school/grounds/field.jpg">>
	<<else>>
		<<image "locations/pavlovsk/school/grounds/fieldwinter.jpg">>
	<</if>>
	There is a football field near the school with a large track circling around it. Students often use the field and track before and after school.
	<<if $time.weekday == 5 and $time.hour >= 16 and $time.hour <= 18>>
		'As you pass by the sports field, you hear lots of cheering and yelling coming from the younger kids on the field. As you approach, you see '+iif(socialchg['tLazar_day'] ! daystart, '<<link 'Lazar'>><<gt  'gschool_socialchg1'  'tLazar'>><</link>>', 'Lazar')+' on the football field showing off his skills.'

	<</if>>
	<<if ($time.weekday == 1 or $time.weekday == 3) and $time.hour >= 16 and $time.hour <= 18>>
		'Looking toward what you can barely describe as a running track, you notice '+iif(socialchg['tSvyatoslav_day'] ! daystart, '<<link 'Svyatoslav'>><<gt  'gschool_socialchg1'  'tSvyatoslav'>><</link>>', 'Svyatoslav')+' doing sprints by the football field.'

	<</if>>
	<<ConnectedLocationCode 'Leave the sports field' 'locations/pavlovsk/school/building/gschool.jpg' 1 `{priority:5000,hotkeys:['S']}`>>
		<<travel  'school_grounds'>>
	<</ConnectedLocationCode>>
	<<if $wardrobe.clothingworntype == 'danilovich_outfits' and $wardrobe.shoeworntype == 'danilovich'>>
		<<if $pc.pcs_energy >= 5 and $pc.pcs_stam >= $pc.stammax / 5>>
			<<actCLA 'Go for a run (1 hour)'>>
				<<set $menu_off = 1>>
				<<gs 'exercise' 'tier1' 60 'run'>>
				<<if $time.month > 2 and $time.month <= 9>>
					<<image "locations/pavlovsk/school/grounds/runsummer.jpg">>
				<<else>>
					<<image "locations/pavlovsk/school/grounds/runwinter.jpg">>
				<</if>>
				You spend an hour running on the track.
				<<act 'Continue'>>
					<<gt 'gschool_sportsfield'>>
				<</act>>
			<</actCLA>>
		<<elseif $pc.pcs_stam >= $pc.stammax / 5>>
			<!-- FAILED TO CONVERT
				act 'Go for a run (1:00)': '<br><font color="red">You are so hungry you cannot face going for a run.</font>'
			-----
				<<actCLA 'Go for a run (1:00)'>>
				<<set ERROR: FAILED TO CONVERT LITERAL: """'<br><font color""" = ERROR: FAILED TO CONVERT LITERAL: """"red">You are so hungry you cannot face going for a run.<""" / ERROR: FAILED TO CONVERT LITERAL: """font>'""">>
			<</actCLA>>

			-->
			<<warn "CONVERSION ERROR 0cc5a3cc1b1b8aa1f9bd4d7c172ec66b">>
		<<else>>
			<!-- FAILED TO CONVERT
				act 'Go for a run (1:00)': '<br><font color="red">You are to exhausted to do this. Recover your stamina before trying to go for a run.</font>'
			-----
				<<actCLA 'Go for a run (1:00)'>>
				<<set ERROR: FAILED TO CONVERT LITERAL: """'<br><font color""" = ERROR: FAILED TO CONVERT LITERAL: """"red">You are to exhausted to do this. Recover your stamina before trying to go for a run.<""" / ERROR: FAILED TO CONVERT LITERAL: """font>'""">>
			<</actCLA>>

			-->
			<<warn "CONVERSION ERROR 2547b7e5750e5a472ceaedc66d06c3df">>
		<</if>>
	<<elseif ($wardrobe.clothingworntype != 'danilovich_outfits' or $wardrobe.shoeworntype != 'danilovich')>>
		You could go for a run here if you were wearing sports clothes and shoes.
	<</if>>
	<<if $time.hour >= 9 and $time.hour < 18 and setup.startingCharacterTagsIncludes('sg') and $pc.isSchoolStudent and $time.isSchoolHoliday == 0>>
		'With the school open, you can go to the <<link 'changing rooms'>><<setn $time.minutes += 1>><<gt  'school_grounds'  'change_room'>><</link>> by the gym and change your outfit.'

	<</if>>
	<<if $time.weekday == 6 and getvar("$SchoolSorev") == 2 and $time.hour == 10 and getvar("$SchoolBlock") == 0>>
		Athletic students of your school and other schools in the area have gathered at the athletics track near your school. Everyone is getting ready for the running competition.
		<<if $wardrobe.clothingworntype == 'danilovich_outfits' and $wardrobe.shoeworntype == 'danilovich'>>
			<<act 'Participate in the 400m sprint event'>>
				<<gt 'school_grounds' 'SchoolRun2'>>
			<</act>>
		<<else>>
			You need to wear exercise clothes to participate.
		<</if>>
	<</if>>
	<<if $time.weekday == 6 and getvar("$SchoolSorev") == 1 and $time.hour == 10 and getvar("$SchoolBlock") == 0>>
		Athletic students of your school and other schools in the area have gathered at the athletics track near your school. Everyone is getting ready for the running competition.
		<<if $wardrobe.clothingworntype == 'danilovich_outfits' and $wardrobe.shoeworntype == 'danilovich'>>
			<<act 'Participate in the 400m sprint race'>>
				<<gt 'school_grounds' 'SchoolRun'>>
			<</act>>
		<<else>>
			You need to wear exercise clothes to participate.
		<</if>>
	<</if>>
	<!-- ! Giving football preference, since there''s no indoor option for it.-->
	<<if $weather.temperature >= 15 and !$weather.isRaining and $time.hour > 8 and $time.hour < 12 and $time.weekday == 6 and $fbpickupDay + 14 <= $time.daystart and $bbpickupDay != $time.daystart>>
		As you pass by the sports field, you notice that most of the jocks have gathered around the <<link "football field">><<gt 'fbgameout' 'start'>><</link>>.
	<<elseif $weather.temperature >= 15 and !$weather.isRaining and $time.hour > 8 and $time.hour < 12 and $time.weekday == 6 and $bbpickupDay + 14 <= $time.daystart and $fbpickupDay != $time.daystart>>
		As you pass by the sports field, you notice that most of the jocks have gathered around the <<link "basketball court">><<gt 'bbgameout' 'start'>><</link>>.
	<</if>>
	<<gs 'brother' 'bro_school_field'>>
	<<if getvar("$locat['<<npc 'A18'>><</npc>>']") == 16>>
		<<npc 'A18'>><</npc>> and Lina are here, stretching for the race coming up.

	<</if>>
<<if $location_var[$here][0] == 'SchoolRun'>>
	<<set $location_type = 'event_outdoors'>>
	<<set $menu_off = 1>>
	<<set $time.minutes += 30>>
	You think you might be able to win, and sign up to participate in the competition. After quickly changing into your running gear you return to the track. The guys are having their race first, and you watch them as you prepare. As expected, Ivan wins. When the guys have finished, it is the girls'' turn.
	<<actCLA 'Go to the start'>>
		<<set $time.minutes += 30>>
		<<set $SchoolSorev = 0>>
		<<set $kolsorev += 1>>
		<<image "locations/pavlovsk/school/grounds/begsor.jpg">>
		The 400m sprint event for girls is up next. You take off your jacket and go the starting line, mentally preparing yourself for the race.
		<!--<<wait 725>>-->
		On your marks...
		<!--<<wait 725>>-->
		Get set...
		<!--<<wait 725>>-->
		<p>Go!</p>
		<!--<<wait 725>>-->
		<<set $begminus = 0>>
		<<if $pc.bmi > 25>>
			<<set $begminus = (($pc.bmi - 25) * 4)>>
		<<elseif $pc.bmi < 20>>
			<<set $begminus = ((20 - $pc.bmi) * (20 - $pc.bmi))>>
		<</if>>
		<<set $begresult = $pc.skillLevel("run") - $begminus>>
		<<actCLA 'Run'>>
			<<gs 'school_grounds' 'SchoolRun_result'>>
		<</actCLA>>
		<<actCLA 'Give it your best' undefined `{willpower:['skill','run_lvl','hard']}`>>
				<<set $begresult += 10>>

				<<gs 'school_grounds' 'SchoolRun_result'>>
			<</actCLA>>

	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'SchoolRun_result'>>
	<<if getvar("$begresult") < 10>>
		<<run $quest('school').func('groupRelInc','jocks',-2)>>
		You barely manage to reach the finish line at all. There''s no point in checking where you finished, you already know you were last by quite a large margin.
	<<elseif getvar("$begresult") < 15>>
		<<run $quest('school').func('groupRelInc','jocks',-1)>>
		You struggle to keep up with the other girls, and finish in last place.
	<<elseif getvar("$begresult") < 20>>
		You run as fast as you can, but only manage to finish second to last.
	<<elseif getvar("$begresult") < 25>>
		You run as fast as you can, but only manage to take 6th place.
	<<elseif getvar("$begresult") < 30>>
		<<run $quest('school').func('groupRelInc','jocks',1)>>
		You run as fast as you can, but only manage to take 5th place.
	<<elseif getvar("$begresult") < 35>>
		<<run $quest('school').func('groupRelInc','jocks',1)>>
		You run as fast as you can, but only manage to take 4th place.
	<<elseif getvar("$begresult") < 45>>
		<<run $quest('school').func('groupRelInc','jocks',2)>>
		You run as fast as you can, and manage to take 3rd place. Mr. Pavlovich, the P.E. teacher at your school, congratulates you.
	<<elseif getvar("$begresult") < 50>>
		<<run $quest('school').func('groupRelInc','jocks',3)>>
		You run as fast as you can, and manage to take 2nd place. Mr. Pavlovich, the P.E. teacher at your school, congratulates you on your achievement.
	<<else>>
		<<set $swinbeg += 1>>
		<<run $quest('school').func('groupRelInc','jocks',5)>>
		You run as fast as you can, and manage to reach the finish line first. Mr. Pavlovich, the P.E. teacher at your school, congratulates you on winning the competition as you walk around with your arms raised in triumph.
	<</if>>
	<<run $pc.skillExperienceGain('run',1)>>
	<<set $pc.fat -= 2>>
	<<if getvar("$swinbeg") == 3 and getvar("$LocalRun") == 0>>
		<<set $LocalRun = 1>>
		<<if getvar("$razradbeg") < 1>>
			You have won the school running competition three times now and Mr. Pavlovich, the P.E. teacher at your school, announces that your success has not gone unnoticed. He smiles and awards you the third tier sports trophy in running, which you proudly accept and show to everyone.
			<<set $razradbeg = 1>>
		<<else>>
			You have won the school running competition three times now and Mr. Pavlovich, the P.E. teacher at your school, smiles and awards you a local competition trophy which you proudly accept and show to everyone.
		<</if>>
	<</if>>
	<<if getvar("$begresult") > 50>>
		<<act 'Continue'>>
			<<gt 'school_grounds' 'Family extension'>>
		<</act>>
	<<else>>
		<<act 'Return to town'>>
			<<gt 'school_grounds'>>
		<</act>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'SchoolRun2'>>
	<<set $location_type = 'event_outdoors'>>
	<<set $menu_off = 1>>
	<<set $time.minutes += 30>>
	You think you might be able to win, and sign up to participate in the competition. After quickly changing into your running gear you return to the track. The guys are having their race first, and you watch them as you prepare. As expected, Ivan Prokhorov wins. When the guys have finished, it is the girls'' turn.
	<<if $quest('christina').fight == 1 or $quest('christina').blackmail == 2>>
		<<if getvar("$swinbeggor") == 0>>
			<p>You find Lina at the starting line with a smile on her face. Seeing you she waves and calls out cheerfully "Good luck, $pc.name_nick!"</p>
		<<elseif getvar("$swinbeggor") == 1>>
			<p>You find Lina at the starting line with a smile on her face. Seeing you she waves and calls out cheerfully "I am going to get you this time, $pc.name_nick!"</p>
		<<elseif getvar("$swinbeggor") == 2>>
			<p>You find Lina at the starting line with a smile on her face. Seeing you she waves and calls out cheerfully "Not going to get me a third time, $pc.name_nick!"</p>
		<</if>>
	<<else>>
		<<if getvar("$swinbeggor") == 0>>
			<p>Getting ready at the starting line is <<npc 'A18'>><</npc>>, one of the girls in your class. She just scoffs at you. "You'll never beat me!"</p>
		<<elseif getvar("$swinbeggor") == 1>>
			<p>Getting ready at the starting line is <<npc 'A18'>><</npc>>, one of the girls in your class. She looks at you angrily and says "You beat me once, but never again!"</p>
		<<elseif getvar("$swinbeggor") == 2>>
			<p>Getting ready at the starting line is <<npc 'A18'>><</npc>>, one of the girls in your class. She looks at you with pure hatred. "You again, bitch? You're going down this time, I promise you!"</p>
		<</if>>
	<</if>>
	<<actCLA 'Go to the start'>>
		<<set $kolsorev += 1>>
		<<set $time.minutes += 30>>
		<<set $SchoolSorev = 0>>
		<<image "locations/pavlovsk/school/grounds/begsor.jpg">>
		The 400m sprint event for girls is up next. You take off your jacket and go the starting line, mentally preparing yourself for the race.
		<!--<<wait 725>>-->
		On your marks...
		<!--<<wait 725>>-->
		Get set...
		<!--<<wait 725>>-->
		<p>Go!</p>
		<!--<<wait 725>>-->
		<<set $begminus = 0>>
		<<if $pc.bmi > 25>>
			<<set $begminus = (($pc.bmi - 25) * 4)>>
		<<elseif $pc.bmi < 18>>
			<<set $begminus = ((25 - $pc.bmi) * 6)>>
		<</if>>
		<<set $begresult = $pc.skillLevel("run") - $begminus>>
		<<actCLA 'Run'>>
			<<gs 'school_grounds' 'SchoolRun2_result'>>
		<</actCLA>>
		<<actCLA 'Give it your best' undefined `{willpower:['skill','run_lvl','hard']}`>>
				<<set $begresult += 10>>
				<<gs 'willpower' 'pay' 'self'>>
				<<gs 'school_grounds' 'SchoolRun2_result'>>
			<</actCLA>>

	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'SchoolRun2_result'>>
	<<if getvar("$begresult") < 10>>
		<<run $quest('school').func('groupRelInc','jocks',-2)>>
		You barely manage to reach the finish line at all. There''s no point in checking where you finished, you already know you were last by quite a large margin.
	<<elseif getvar("$begresult") < 15>>
		<<run $quest('school').func('groupRelInc','jocks',-1)>>
		You struggle to keep up with the other girls, and finish in last place.
	<<elseif getvar("$begresult") < 20>>
		You run as fast as you can, but only manage to finish second to last.
	<<elseif getvar("$begresult") < 25>>
		You run as fast as you can, but only manage to take 6th place.
	<<elseif getvar("$begresult") < 30>>
		<<run $quest('school').func('groupRelInc','jocks',1)>>
		You run as fast as you can, but only manage to take 5th place.
	<<elseif getvar("$begresult") < 35>>
		<<run $quest('school').func('groupRelInc','jocks',1)>>
		You run as fast as you can, but only manage to take 4th place.
	<<elseif getvar("$begresult") < 40>>
		<<run $quest('school').func('groupRelInc','jocks',2)>>
		You run as fast as you can, and manage to take 3rd place. Mr. Pavlovich, the P.E. teacher at your school, congratulates you.
	<<elseif getvar("$begresult") < 50>>
		<<run $quest('school').func('groupRelInc','jocks',3)>>
		You run as fast as you can, and manage to take 2nd place. Mr. Pavlovich, the P.E. teacher at your school, congratulates you on your achievement.
	<<else>>
		<<set $swinbeggor += 1>>
		<<run $quest('school').func('groupRelInc','jocks',5)>>
		You run as fast as you can, and manage to reach the finish line first. Mr. Pavlovich, the P.E. teacher at your school, congratulates you on winning the competition yet again while you walk around with your arms raised in triumph.
	<</if>>
	<<run $pc.skillExperienceGain('run',1)>>
	<<set $pc.fat -= 2>>
	<<if getvar("$swinbeggor") == 3 and getvar("$LocalRun") == 1>>
		<<set $LocalRun = 2>>
		<<if getvar("$razradbeg") < 2>>
			You have won the competition three more times and Mr. Pavlovich awards you the second tier sports trophy in running.
			<<set $razradbeg = 2>>
		<<else>>
			You have won the competition three more times and Mr. Pavlovich awards you another trophy.
		<</if>>
		<<if $quest('christina').fight == 1 or $quest('christina').blackmail == 2>>
			<<set $npc('A19').rel += 5>>
			Lina stands at at the finish line, gasping for breath. Even though you beat her again, she flashes you a bright smile in congratulations.
		<<else>>
			<<npc 'A18'>><</npc>> stands nearby glaring at you the whole time, her hands balled into fists. She's seething with rage, realizing she cannot beat you.
		<</if>>
	<<elseif getvar("$swinbeggor") == 2 and getvar("$begresult") >= 130>>
		<<if $quest('christina').fight == 1 or $quest('christina').blackmail == 2>>
			<<relationship 'A19' 'love'>>
			Lina stands at at the finish line, gasping for breath. Even though you beat her a second time, she flashes you a bright smile in congratulations.
		<<else>>
			<<relationship 'A18' 'loathe'>>
			<<npc 'A18'>><</npc>> is gasping for breath at the finish line. She was unable to overtake you, and came second again. <<npc 'A18'>><</npc>> avoids your gaze, not wanting to look you in the eye.
		<</if>>
	<<elseif getvar("$swinbeggor") == 1 and getvar("$begresult") >= 130>>
		<<if $quest('christina').fight == 1 or $quest('christina').blackmail == 2>>
			<<relationship 'A19' 'love'>>
			Lina stands at at the finish line, gasping for breath. Even though you beat her, she flashes you a bright smile in congratulations.
		<<else>>
			<<relationship 'A18' 'loathe'>>
			<p><<npc 'A18'>><</npc>> is gasping for breath at the finish line. She was unable to overtake you, and came second yet again. You just flash her a toothy grin and continue your victory lap. Through clenched teeth <<npc 'A18'>><</npc>> growls at you. "You bitch!"</p>
		<</if>>
	<</if>>
	<<if getvar("$begresult") > 50>>
		<<act 'Continue'>>
			<<gt 'school_grounds' 'Family extension'>>
		<</act>>
	<<else>>
		<<act 'Leave'>>
			<<gt 'school_grounds'>>
		<</act>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'change_room'>>
	<<set $loc_arg = 'change_room'>>
	<<set $loc = 'school_grounds'>>
	<<set $location_type = 'bathroom'>>
	<<set $locclass = 'locker'>>
	<<set $locM = 'school_grounds'>>
	<<set $locM_arg = 'change_room'>>
	<<set $menu_loc = 'school_grounds'>>
	<<set $menu_arg = 'change_room'>>
	<<set $menu_off = 0>>
	<<image "locations/pavlovsk/school/gym/locker/lockerroom.jpg">>
	<<actCLA 'Leave'>>
		<<if $wardrobe.clothingworntype == 'nude'>>
			<<msg '<b><font color = red>You need to get dressed first!</font></b>'>>
			<<gt 'school_grounds' 'change_room'>>
		<<else>>
			<<set $time.minutes += 1>>
			<<gt 'school_grounds'>>
		<</if>>
	<</actCLA>>
	<<actCLA 'Go to the sports field'>>
		<<if $wardrobe.clothingworntype == 'nude'>>
			<<msg '<b><font color = red>You need to get dressed first!</font></b>'>>
			<<gt 'school_grounds' 'change_room'>>
		<<else>>
			<<set $time.minutes += 1>>
			<<gt 'gschool_sportsfield'>>
		<</if>>
	<</actCLA>>
	'The locker room is accessed through the school gym, and is left unlocked until 18:30 each day for the use of students using the sports ground for training and events outside school hours. The room is cold, damp and filled with lockers, benches and not much else. You can <<link 'manage your piercings'>><<gt  'wardrobe'  'start'">change your outfit</a> by the lockers here'+iif(pirsA + pirsB + pirsC + pirsD + pirsE + pirsF + pirsN + pirsG > 0  '  and <a href="exec:dynamic $pirManage>><</link>>', '.')+''
	<<if ($time.hour == 18 and $time.minutes >= 30) or $time.hour > 18>>
		The school is closing for the night and you have to leave before you get locked in.
		$exit
	<</if>>
	<<act 'Change your outfit'>>
		<<gt 'wardrobe' 'start'>>
	<</act>>
	<<gs 'wardrobe' 'default_sport_options'>>
	<<publicpan>>
	<<act 'Look in the mirror'>>
		<<gt 'mirror' 'start'>>
	<</act>>
	<<if $pc.pcs_hairbsh < 1>>
		<<act 'Brush your hair'>>
	<<gt 'mirror' 'brush'>>
<</act>>

	<</if>>
	<<quickwash>>
	<<basin>>
	<<if $inventory.get("shampoo") > 0>>
		<<gs 'shower_action'>>
	<<else>>
		<font color="red">You've run out of shampoo and will have to buy some more before you can wash yourself.</font>
	<</if>>
	$inventory.get("tampon")
	<<gs 'bathroom' 'pblc_pee'>>
<</if>>
<<if $location_var[$here][0] == 'Family extension'>>
	<<image "locations/pavlovsk/school/grounds/school_run.jpg">>
	<<if $housing.home == 'homeParents'>>
		<<if $npc('A34').rel > 50>>
			<p>You hear your name and turn to see Kolka. "$pc.name_nick... $pc.name_nick you won!" Kolka shouts while running towards you with a huge grin. He crashes into you and gives you a tight hug.</p>
			<p>"Hey, how's my favourite brother? Thanks for coming, I wasn't aware you knew I was running."</p>
			<p>Kolka, still grinning, replies "Hey, you didn't think I spotted you doing all those laps when the school was closed and training at the community center? You're always out wearing your sports gear and carrying that water bottle, so you're clearly not just meeting friends!"</p>
		<<else>>
			<p>You hear your name and turn to find Kolka. "$pc.name_nick, you won! Well done."</p>
			"Hi Kolka. Thanks for coming, I wasn''t aware you knew I was running."
			<p>"Yeah, well <<=$npc('A29').nickname>> asked me to keep an eye out on what you were doing since you're always out in your sports gear with that water bottle, so I asked the coach."</p>
		<</if>>
		<<set $time.minutes += 4>>
		<<actCLA 'Continue'>>
			<<set $menu_off = 1>>
			<p>At this point, you see <<npc 'A29' undefined 'your mother'>><</npc>> and stepfather approaching.</p>
			<<if $npc('A29').rel > 50>>
				<p><<npc 'A29' undefined 'Your mother'>><</npc>> approaches you and gives you a hug. "I know we've had our differences, but I only want the best for you. I'm so proud of you. Why didn't you say something?"</p>
				<<if $npc('A33').rel > 50>>
					<p>You see Anya coming over behind Kolka. "Go girl! Well done. You should have told me about this during our nightly chats." She comes over and gives you a hug.</p>
				<<else>>
					<p>You see Anya coming over behind Kolka. "Well done $pc.name_nick. Ummm... Why didn't you say something, maybe in the evenings before bed? That way we'd get to know each other better?"</p>
					"Thanks Anya and umm... well you're always reading and I didn''t want to disturb you... Sorry."
					"Hey, don't worry about it. As I said well done, but I''d be interested to hear what''s going on with you so don't worry about disturbing me."
					"Okay, thanks Anya... I'll try." You give her a hug.
				<</if>>
				<p>Your stepfather now joins the conversation. "Come on $pc.name_nick, get showered and changed and we'll meet you outside. We're all going out for dinner to celebrate."</p>
				<p>"You don't have to! I know money is tight and I'm already so happy you all took the time to come and support me. It means a lot."</p>
				<p>"No, I insist. I've talked about this with <<npc 'A29' undefined 'your mother'>><</npc>> and she agrees. It's not often we get the chance to do something like this and we think that some quality family time would be good for all of us."</p>
				<<set $time.minutes += 4>>
				<<actCLA 'Go for a shower'>>
					<<gs 'cleanBody'>>
					<<if $pc.deodorant_on == 1>>
						<<gs 'sweat' 'remove_deo'>>

					<</if>>
					<<set $pc.pcs_hairbsh = 1>>
					<<video "shared/home/bathroom/dush.mp4">>
					After showering and changing, you head out and greet the family.
					<<set $time.minutes += 10>>
					<<actCLA 'Go to a restaurant'>>
						<<gs 'drugs' 'alcohol' 'wine'>>
						<<set $pc.frost = 0>>
						<<set $pc.pcs_health += 10>>
						<<set $pc.mood += 5>>
						<<set $pc.fat += 8>>
						<<set $pc.pcs_energy += 60>>
						<<if $pc.pcs_hydra >= 100>>
							<<set $pc.pcs_hydra += 10>>
						<<else>>
							<<set $pc.pcs_hydra += 20>>
						<</if>>
						<<set $cumspclnt = 2>>
						<<gs 'cum_cleanup'>>
						<<set $pc.pcs_breath = 0>>
						<<image "locations/pavlovsk/school/grounds/restaurant_family.jpg">>
						At the local Del Parco restaurant, you all spend a few hours enjoying your meal as your family encourage you to continue and improve, but stressing that they are very proud of what you've achieved so far.
						<p>Your stepfather orders some wine and although <<npc 'A29' undefined 'your mother'>><</npc>> gives him a disapproving look, he gives you a glass so you can toast your victory.</p>
						At the end of a very enjoyable meal and some quality family time, you thank them again for their kindness and acknowledge that you really appreciate this as you know that money is tight. There''s a big family hug and you all return home.
						<<set $time.minutes += 90>>
						<<actCLA 'Go home'>>
							<<set $time.minutes += 4>> <<set $pavhome_enter = 1>> <<gt 'homes_properties' 'go_home'>>
						<</actCLA>>
					<</actCLA>>
				<</actCLA>>
			<<else>>
				<p>"$pc.name_nick, you won! Well done!" <<npc 'A29' undefined 'your mother'>><</npc>> shouts as she approaches.</p>
				"Thanks. And thanks for coming too."
				"I know that we have our differnces, but I haven''t stopped caring about you and I asked Kolka to let me know if he saw you around as I kept seeing you heading out in your sports gear with your waterbottle and wondered what you were doing." she replies.
				<p>You're a little lost for words, so <<npc 'A29' undefined 'your mother'>><</npc>> continues. "He told me he's seen you running at the track when the school was closed and training at the community centre, so I asked the coach. Anyway I'm so proud of you! Why didn't you say something?"</p>
				<p>When you don't answer, <<npc 'A29' undefined 'your mother'>><</npc>> continues. "Come on, get showered and changed and I'll meet you outside." Anya and Kolka give you a friendly wave and leave.</p>
				<<set $time.minutes += 4>>
				<<actCLA 'Go for a shower'>>
					<<gs 'cleanBody'>>
					<<if $pc.deodorant_on == 1>>
						<<gs 'sweat' 'remove_deo'>>

					<</if>>
					<<set $pc.pcs_hairbsh = 1>>
					<<video "shared/home/bathroom/dush.mp4">>
					After showering and changing, you head out and greet your mother. "Thanks for coming. It means a lot to me."
					<p>"Of course I'd come $pc.name_nick! I just want the best for you and I'm proud of you and your win. Come on, let's go out for a bite to eat. I think we need to have a chat."</p>
					<p>"You don't have to <<=$npc('A29').nickname>>, I'm so glad you came and I know money is tight."</p>
					"That's fine, so long as you don't mind the station cafe. I want to see if we can't patch things up between us."
					<<set $time.minutes += 10>>
					<<actCLA 'Go to the cafe'>>
						<<if $pc.alko > 0>>
							<<setn $pc.alko -= 1>>

						<</if>>
						<<set $pc.frost = 0>>
						<<set $pc.pcs_health += 18>>
						<<set $pc.mood += 15>>
						<<set $pc.fat += 11>>
						<<set $pc.pcs_energy += 70>>
						<<if $pc.pcs_hydra >= 100>>
							<<set $pc.pcs_hydra += 40>>
						<<else>>
							<<set $pc.pcs_hydra += 80>>
						<</if>>
						<<set $cumspclnt = 2>>
						<<gs 'cum_cleanup'>>
						<<set $pc.pcs_breath = 0>>
						<<image "locations/pavlovsk/school/grounds/sveta_mum_restaurant.jpg">>
						<<if $npc('A29').QW > 0>>
							<<if $npc('A29').QW == 1>>
								<<set $npc('A29').QW = 2>>

							<</if>>
							At the station cafe, your mother selects a corner spot away from the main area so you can keep your chat private.
							You both initially have some general small talk during which she again congratulates you on your win and explains that she wants the best for you and will help in any way she can, but you need to meet her half way.
							<p>You're initially unsure how to respond, but after a while in a very low shaky voice, you reply. "I'd love that, but why do you give me such a hard time just because I had sex?"</p>
							<p>As your feelings start to come to the surface, you continue. "Yes, I had sex, but it doesn't make me a bad person! And what gives you the right to immediately treat me like I'm a whore!? I can do the maths, you were 16 when you had Anya! That's younger than me!"</p>
							Your mother sighs and a tear starts rolling down her cheek as she slowly replies "I know. Maybe I was a bit harsh, but I don't want you repeating my mistakes. I want you to have the chance to go to university and make a better life for yourself."
							You feel bad seeing your mother cry and tell her that you're careful and will try your best at school. You also reassure her that you are taking precautions.
							Your mother responds that she accepts that she may have been a bit harsh and apologises.
							<p>"Okay <<=$npc('A29').nickname>>, I'll try and yes it would be great to have my <<=$npc('A29').nickname>> back!" you reply.</p>
							<p>Your mother gets up and comes over to hug you. "Thanks $pc.name_nick, that's all I can ask and I'll try to be more supportive too. Just please talk to me if you're worried about anything."</p>
							After the meal and chat, you both feel relieved and emotionally drained, but happier.
						<<else>>
							At the station cafe, your mother selects a corner spot away from the main area so you can keep your chat private.
							You both initially have some general small talk during which she again congratulates you on your win and explains that she wants the best for you and will help in any way she can, but she doesn''t want you staying out late as you could get into trouble. She continues by saying that she wants you to go to university so that you can make a better life for yourself.
							<p>Although you're a little annoyed that she's still treating you like a child, you do appreciate her concern. "I know <<=$npc('A29').nickname>> and I'm sorry that you get worried when I get back a little late, but you know what time the disco finishes at and that I'll never be home by midnight unless I leave earlier than my friends. They would laugh at me having to be home early for bedtime!"</p>
							<p>Your mother thinks it through for a moment. "Okay, I can accept that. I'm also aware that you're nearly 18, but that won't stop me from worrying. Maybe I've been a bit harsh in my approach out of habit with Anya but, like I said, I only want the best for you. Can you at least try to meet me half way on this and do your best in school too?"</p>
							<p>Unsure how to respond, you sigh. "Okay <<=$npc('A29').nickname>>, I'll try. It's just that it can get a bit overbearing."</p>
							Your mother continues. "Okay, let''s just try to get our relationship back to a good place. Please promise me that you'll do your best in school too. Also, no matter what please know that you can always talk to me if something is worrying you. Please know that I do love you and want the best for you."
							<p>This is the closest you've felt to your mother for ages, so you get up and give her a hug. "Thanks <<=$npc('A29').nickname>>. I'm glad we had this chat to clear the air. I love you too and it'll be good to have my <<=$npc('A29').nickname>> back." She hugs you back and you both finish your meals with some more relaxed conversation.</p>
							After that, you both feel much relieved and emotionally drained, but happier.
						<</if>>
						<<set $npc('A29').rel = 50>>
						<<set $time.minutes += 60>>
						<<actCLA 'Go home'>>
							<<set $time.minutes += 4>> <<set $pavhome_enter = 1>> <<gt 'homes_properties' 'go_home'>>
						<</actCLA>>
					<</actCLA>>
				<</actCLA>>
			<</if>>
		<</actCLA>>
	<<else>>
		<<if $npc('A33').rel > 50>>
			You hear your sister shout your name and look around.
			<p>"Hey $pc.name_nick, go girl well done!" She comes over and gives you a hug. "This calls for a celebration. Let's go for a few beers! You can always burn it off later."</p>
			"Thanks for coming, sis. It means a lot."
			<p>"I wasn't going to miss the opportunity and a possible little celebration with my little sis, was I?"</p>
			"Okay cool. Yeah, I'm up for that. Let me go and shower and change first."
			<p>"Okay, just don't be too long or I might just leave without you!"</p>
			<<set $time.minutes += 4>>
			<<actCLA 'Go for a shower'>>
				<<set $menu_off = 1>>
				<<gs 'cleanBody'>>
				<<if $pc.deodorant_on == 1>>
					<<gs 'sweat' 'remove_deo'>>

				<</if>>
				<<set $pc.pcs_hairbsh = 1>>
				<<set $time.minutes += 30>>
				<<video "shared/home/bathroom/dush.mp4">>
				A few minutes later, you reappear showered and changed and head off to the station cafe.
				<<actCLA 'Have a drink with Anya'>>
					<<gs 'drugs' 'alcohol' 'beer' 4>>
					<<image "locations/pavlovsk/school/grounds/Sis_drink.jpg">>
					You both have a few beers for the next few hours and spend time catching up. Feeling light headed and more than a little tipsy, you both leave the cafe and share a hug as you promise to meet up regularly and catch up. You know that you can see Anya at the community center on Friday evenings.
					<<set $time.minutes += 100>>
					<<actCLA 'Go home'>>
						<<set $time.minutes += 4>> <<gt 'homes_properties' 'go_home'>>
					<</actCLA>>
				<</actCLA>>
			<</actCLA>>
		<<else>>
			<<if getvar("$Boyfriend") == 0>>
				<<if $lover[0] != ''>>
					<<set $lover_number = 0>>
				<<elseif $lover[1] != ''>>
					<<set $lover_number = 1>>
				<<else>>
					<<set $lover_number = 2>>
				<</if>>
				<p>You hear $lover[$lover_number] shouting your name and jog over to meet them. You both embrace with a cuddle and a kiss on the cheek.</p>
				"Hey love, well done."
				"Thanks. And thanks for coming, it means a lot."
				"Of course I''d come and support you. Now go and get freshened up and we'll go out, my treat and you choose."
				You both have another cuddle before you head into the changing rooms to get showered and changed.
				<<set $time.minutes += 4>>
				<<actCLA 'Go take your shower'>>
					<<gs 'cleanBody'>>
					<<if $pc.deodorant_on == 1>>
						<<gs 'sweat' 'remove_deo'>>

					<</if>>
					<<set $pc.pcs_hairbsh = 1>>
					<<video "shared/home/bathroom/dush.mp4">>
					<p>Rejoining $lover[$lover_number], you both have a passionate embrace as most folks have gone. $lover[$lover_number] then says "Well done again $pc.name_nick, sorry but I have something I have to do that won't wait. See you soon."</p>
					<<set $time.minutes += 10>>
					<<actCLA 'Go home'>>
						<<set $time.minutes += 4>> <<gt 'homes_properties' 'go_home'>>
					<</actCLA>>
				<</actCLA>>
			<</if>>
			<<set $time.minutes += 4>>
			<<actCLA 'Go home'>>
				<<set $time.minutes += 4>> <<gt 'homes_properties' 'go_home'>>
			<</actCLA>>
		<</if>>
	<</if>>
<</if>>


