code:
:: Widgets School [widget]
<<widget "schooleffects">>
<<effectstime>>
<<if $schoolday is 1>>
	<<if $hour lte 6>>
		<<set $schoolstate to "early">><<set $schoollesson to 0>>
	<<elseif $hour lte 8>>
		<<set $schoolstate to "morning">><<set $schoollesson to 0>>
	<<elseif $hour is 9>>
		<<set $schoolstate to "first">><<set $schoollesson to 1>>
	<<elseif $hour is 10>>
		<<set $schoolstate to "second">><<set $schoollesson to 1>>
	<<elseif $hour is 11>>
		<<set $schoolstate to "third">><<set $schoollesson to 1>>
	<<elseif $hour is 12>>
		<<set $schoolstate to "lunch">><<set $schoollesson to 0>>
	<<elseif $hour is 13>>
		<<set $schoolstate to "fourth">><<set $schoollesson to 1>>
	<<elseif $hour is 14>>
		<<set $schoolstate to "fifth">><<set $schoollesson to 1>>
	<<elseif $hour lte 16>>
		<<set $schoolstate to "afternoon">><<set $schoollesson to 0>>
	<<elseif $hour gte 17>>
		<<set $schoolstate to "late">><<set $schoollesson to 0>>
	<</if>>

	<<set $changingroomstate to "empty">>
	<<if $time gte (9 * 60 - 2) and $time lte (15 * 60 + 4)>>
		<<if $time lte ($hour * 60 + 4) or $time gte ($hour * 60 + 58)>>
			<<if $time gte (14 * 60 - 2)>>
				<<set $changingroomstate to "own">>
			<<else>>
				<<set $changingroomstate to "other">>
			<</if>>
		<</if>>
	<</if>>

	<<if $schoolstate is "fifth">>
		<<set $poolroomstate to "own">>
	<<elseif $schoollesson is 1>>
		<<set $poolroomstate to "other">>
	<<else>>
		<<set $poolroomstate to "empty">>
	<</if>>
<<else>>
	<<if $hour lte 6>>
		<<set $schoolstate to "earlynoschool">><<set $schoollesson to 0>>
	<<elseif $hour gte 17>>
		<<set $schoolstate to "daynoschool">><<set $schoollesson to 0>>
	<<else>>
		<<set $schoolstate to "latenoschool">><<set $schoollesson to 0>>
	<</if>>
	<<set $changingroomstate to "empty">>
	<<set $poolroomstate to "empty">>
<</if>>
<</widget>>

<<widget "advancelesson">>
<<set _time_left to 59 - $minute>>

<<set _state to $schoolstate>>
<<schooleffects>>
<<if _state isnot $schoolstate>>

	<<set $phase to 1>>
<<elseif _time_left gte 23>>

	<<pass 20>>
<<else>>

	<<set $phase to 1>>
	<<pass _time_left>>
<</if>>
<<schooleffects>>

<<set _lesson_progress to (_time_left gte 20 ? 4 : Math.trunc(_time_left / 5)) + $phase>>
<</widget>>

<<widget "schoolperiod">>
<<if $exposed lte 0>>
	<<if $schoolstate is "morning" or ($schoolstate is "first" and $minute lte 58)>>
		<<scienceicon>><<link [[Go to your science lesson (0:01)|Science Classroom]]>><<pass 1>><</link>>

	<<elseif $schoolstate is "first" or ($schoolstate is "second" and $minute lte 58)>>
		<<mathicon>><<link [[Go to your maths lesson (0:01)|Maths Classroom]]>><<pass 1>><</link>>

	<<elseif $schoolstate is "second" or ($schoolstate is "third" and $minute lte 58)>>
		<<englishicon>><<link [[Go to your English lesson (0:01)|English Classroom]]>><<pass 1>><</link>>

	<<elseif $schoolstate is "third" or ($schoolstate is "lunch" and $minute lte 58)>>
		<<eaticon>><<link [[Join the masses in the canteen (0:01)|Canteen]]>><<pass 1>><</link>>

		<<historyicon>><<link [[Wait in the history classroom (0:01)|History Classroom]]>><<pass 1>><</link>>

	<<elseif $schoolstate is "lunch" or ($schoolstate is "fourth" and $minute lte 58)>>
		<<historyicon>><<link [[Go to your history lesson (0:01)|History Classroom]]>><<pass 1>><</link>>

	<<elseif $schoolstate is "fourth" or ($schoolstate is "fifth" and $minute lte 58)>>
		<<swimmingicon>><<link [[Go to your swimming lesson (0:01)|School Pool Entrance]]>><<pass 1>><</link>>

	<</if>>
<</if>>
<</widget>>

<<widget "schoolperiodtext">>
<<if $schoolstate is "morning">>
	Your science lesson starts at <<ampm 9 00>>.

<<elseif $schoolstate is "first" and $minute lte 58>>
	Your science lesson started at <<ampm 9 00>>!

<<elseif $schoolstate is "first">>
	Your maths lesson starts at <<ampm 10 00>>.

<<elseif $schoolstate is "second" and $minute lte 58>>
	Your maths lesson started at <<ampm 10 00>>!

<<elseif $schoolstate is "second">>
	Your English lesson starts at <<ampm 11 00>>.

<<elseif $schoolstate is "third" and $minute lte 58>>
	Your English lesson started at <<ampm 11 00>>!

<<elseif $schoolstate is "lunch">>
	Your history lesson starts at <<ampm 13 00>>.

<<elseif $schoolstate is "fourth" and $minute lte 58>>
	Your history lesson started at <<ampm 13 00>>!

<<elseif $schoolstate is "fourth">>
	Your swimming lesson starts at <<ampm 14 00>>.

<<elseif $schoolstate is "fifth">>
	Your swimming lesson started at <<ampm 14 00>>!

<</if>>
<</widget>>

<<widget "exhibitorgasm">>
<<if $orgasmdown gte 1>><<set $orgasmdown to 0>>
	<<if $orgasmcurrent lte 0>>
	<<elseif $orgasmcurrent lte 1>>
		You spasm against the bindings.
		<<if $enemyno gte 2>>
			<<if $player.penisExist and $devstate is 1 and $orgasmcount lte 23>>
				The pair's eyes light up as you squirm. "<<pShes>> cumming!" The <<person>> exclaims, stepping back to avoid your discharge while staring in awe.
			<<else>>
				The pair's eyes light up as you squirm. "<<pShes>> cumming!" The <<person>> exclaims.
			<</if>>
		<<else>>
			<<if $player.penisExist and $devstate is 1 and $orgasmcount lte 23>>
			<<else>>
			<</if>>
		<</if>>
	<<elseif $orgasmcurrent is 2>>
		You spasm again against the bindings.
		<<if $enemyno gte 2>>
			<<if $player.penisExist and $devstate is 1 and $orgasmcount lte 23>>
				"I didn't know it could happen more than once!" Says the <<person>>.
			<<else>>
				"I didn't know it could happen more than once!" Says the <<person>>.
			<</if>>
		<<else>>
			<<if $player.penisExist and $devstate is 1 and $orgasmcount lte 23>>
			<<else>>
			<</if>>
		<</if>>
	<<else>>
	<</if>>

<</if>>
<</widget>>

<<widget "changingrooms">>

<<if $exposed gte 2>>
  <<if $player.gender_appearance is "m">>
	<<if $exhibitionism gte 75>>
	<<femaleicon>><<link [[Girls' changing room|School Girl Changing Room]]>><</link>><<exhibitionist5>>

	<</if>>
  <<maleicon>><<link [[Boys' changing room|School Boy Changing Room]]>><</link>>

  <<else>>
	<<if $exhibitionism gte 75>>
		<<maleicon>><<link [[Boys' changing room|School Boy Changing Room]]>><</link>><<exhibitionist5>>

	<</if>>
  <<femaleicon>><<link [[Girls' changing room|School Girl Changing Room]]>><</link>>

  <</if>>
<<else>>
<<maleicon>><<link [[Boys' changing room|School Boy Changing Room]]>><</link>>

<<femaleicon>><<link [[Girls' changing room|School Girl Changing Room]]>><</link>>

<</if>>

<</widget>>

:: Widgets Events Science [widget]
<<widget "eventsscience">>
<<if $rng gte 91 and $player.gender_appearance is "m" and $worn.legs.name is "girl's gym socks">>
<<generates1>><<person1>>A <<person>> looks at your feet. "Why are you wearing girl's socks?" <<he>> asks loudly. "Do they make you feel pretty?" <<His>> friends start laughing.

<<link [[Kick|Science Kick]]>><<stress -12>><<trauma -6>><<detention 3>><</link>><<gdelinquency>><<ltrauma>><<lstress>>

<<link [[Ignore|Science Lesson]]>><<stress 6>><<trauma 6>><<endevent>><</link>><<gtrauma>><<gstress>>

<<elseif $rng gte 91 and $player.gender_appearance is "f" and $worn.legs.name is "boy's gym socks">>
<<generates1>><<person1>>A <<person>> looks at your feet. "Why are you wearing boy's socks?" <<he>> asks loudly. "Do you think they'll make people forget you're a slut?" <<His>> friends start laughing.

<<link [[Kick|Science Kick]]>><<stress -12>><<trauma -6>><<detention 3>><</link>><<gdelinquency>><<ltrauma>><<lstress>>

<<link [[Ignore|Science Lesson]]>><<stress 6>><<trauma 6>><<endevent>><</link>><<gtrauma>><<gstress>>

<<elseif $rng gte 81>>
<<npc Sirris>><<generates2>><<person2>>The class conducts an experiment with chemicals.

A <<person>> splashes your clothes with acid! "Sorry, I slipped," <<he>> says, smirking.

<<set $worn.upper.integrity -= 20>>
<<set $worn.lower.integrity -= 20>>
<<set $worn.under_lower.integrity -= 20>>

<<integritycheck>>
<<exposure>>

  <<if !$worn.upper.type.includes("naked") and !$worn.lower.type.includes("naked")>>
  It's not a very potent acid, but it does leave your clothing worse for wear.

  <<link [[Next|Science Lesson]]>><<endevent>><</link>>

  <<else>>
  The acid eats through your clothes, and you soon find yourself exposed in front of the entire class! You do your best to conceal your <<lewdness>> as Sirris rushes over with some towels.
	  <<if $exhibitionismaction is "excited">>
		You let the class have a good look at your <<nudity>>.
	  <<else>>
		You cover up and try to hide your exposed parts, but not before the rest of the class get a good look.
	  <</if>>

  <<towelup>>

  <<link [[Next|Science Lesson]]>><<endevent>><</link>>

  <</if>>
<<elseif $rng gte 61>>
<<npc Sirris>><<person1>>Sirris asks you to come to the front of the class.

<<link [[Next|Science Event3]]>><</link>>

<<elseif $rng gte 41>>
The class arrange themselves around the terrariums lining the edge of the room. You observe the plants contained within and try to identify the species.

<<link [[Next|Science Terrarium]]>><</link>>

<<elseif $rng gte 21>>
A group of delinquents decide to pick on you.

<<link [[Ask the teacher for help|Science Pick]]>><<status -10>><</link>><<lcool>>

<<link [[Endure it|Science Pick]]>><<set $phase to 1>><<stress 2>><<trauma 2>><</link>><<gtrauma>><<gstress>>

<<elseif $rng gte 1>>
Sirris asks everyone to group up into pairs.

<<set $rng to random(1, 100)>>

  <<if $cool gte 80>>
  You find a partner and together dissect a<<if $rng gte 75>> sheep's eye<<elseif $rng gte 50>>n insect<<elseif $rng gte 25>> worm<<else>> frog<</if>>.

  <<link [[Just focus on the dissection|Science Dissection]]>><<scienceskill>><</link>><<gscience>>

  <<link [[Joke around with your partner|Science Dissection]]>><<trauma -1>><<stress -2>><<status 1>><<set $phase to 1>><</link>><<ltrauma>><<lstress>><<gcool>>

  <<else>>
  <<npc Sirris>><<person1>>The other students avoid you, and you find yourself unable to find a partner. Sirris carries in a plastic box, but stops to speak to you when <<he>> sees that you're alone.

  "I have a special job for you. There's another box like this one in the shed just next to the school entrance. Could you bring it here?"

  You walk to the shed, which is unlocked, and find the box just inside. It's really heavy! You can barely lift it, but manage to carry it back into the school.
  <<physique>><<endevent>>

	<<if $rng gte 21>>
	You arrive back at the classroom, where the rest of the class is busy dissecting frogs. Lacking a partner, you get one all to yourself.
	<<gscience>><<scienceskill>>

	<<link [[Next|Science Lesson]]>><<endevent>><</link>>

	<<else>>
	<<generatey1>><<generatey2>><<generatey3>>
	You walk past three delinquents smoking in a corridor. You didn't see them coming due to the box blocking your view. They start hounding you down the hall.

	<<person1>>The <<person>> grabs the hem of your $worn.lower.name and tries to tug them down!

	<<if $worn.under_lower.type.includes("naked")>>
	You shiver as you realise you aren't wearing any underwear!
	<</if>>

	"Let's see what <<pshes>> got on under this," the <<person2>><<person>> and <<person3>><<person>> move closer, intending to join in.

	You're unable to protect yourself while your arms are occupied by the box. You'll have to bend over to put the box down without breaking anything inside, but you feel that doing so would make you even more vulnerable.

	<<link [[Drop the box and protect yourself|Science Dissection]]>><<set $phase to 2>><<detention 2>><</link>><<gdelinquency>>

	<<link [[Just endure it|Science Dissection]]>><<set $phase to 3>><<stress 2>><<trauma 2>><</link>><<gtrauma>><<gstress>>

	<<link [[Bend over and put the box down gently|Science Dissection]]>><<set $phase to 4>><</link>>
	<</if>>
  <</if>>
<</if>>
<</widget>>

<<widget "eventssciencesafe">>
<<if $scienceproject is "none" and $yeardays gte 2 and $mathsprojectdays isnot (21 + (7 - $weekday))>>
	<<set $scienceproject to "ongoing">><<set $scienceprojectdays to (21 + (7 - $weekday))>>
	<<npc Sirris>><<person1>><<scienceprojectstart>>
	"The science fair will be held in a few weeks," Sirris announces. "Taking part is optional, but it's a good opportunity to learn in a more practical way. The theme is local wildlife. I have a project idea for each of you, but you can come up with your own if you like."

	Sirris asks the class to turn to page $rng of their textbook, then walks around the room handing out small cards. Yours reads: "Lichen grows in many places around town. What impact does the local environment have on the species that thrive?" It continues on to some variables you could test, and ends with: "Remember to ask permission before entering private property!"
	<<set $sciencelichenknown to 1>>

	Sirris arrives back at the front. "The fair will be held on a Saturday, at the town hall. I hope you'll be there even if you don't bring a project."

	Science project added to journal.

	<<if $sciencephallusknown isnot 1 and $promiscuity gte 35>>
		<<set $sciencephallusknown to 1>>
		A lewd thought comes to you as the other students discuss ideas. You've conceived the "local phalli" science project.

	<</if>>
	<<endevent>>
	<<link [[Next|Science Lesson]]>><</link>>

<<elseif $rng gte 81>>
	Sirris asks the class to turn to page $rng of their textbook. The classroom has a laid-back atmosphere, most students spend more time chatting than reading.

	<<link [[Next|Science Lesson]]>><</link>>
<<elseif $rng gte 71>>
	Sirris puts on a short video about <<print either("nature.","space.","magnetic fields.","electrons.","chemical bonds.","Einstein.","the pioneers of the scientific method.","Isaac Newton.","nuclear fusion.","the role of enzymes.", "DNA.")>> The classroom has a laid-back atmosphere. Most students watch, but many carry on chatting.

	<<link [[Next|Science Lesson]]>><</link>>
<<elseif $rng gte 61>>
	The class conducts an experiment with chemicals. You're careful not to spill any.

	<<link [[Next|Science Lesson]]>><</link>>
<<elseif $rng gte 51>>
	<<generates1>><<generates2>><<person1>>
	The class conducts an experiment with chemicals.
	<<if $rng % 2>>
		A <<person>> accidentally spills chemicals down <<his>> clothes.
	<<else>>
		A <<person1>><<person>> 'accidentally' spills chemicals all over a <<person2>><<persons>> clothes.
	<</if>>
	You see the panicking <<personsimple>> fleeing from the class as <<his>> clothes start to dissolve.

	<<link [[Next|Science Lesson]]>><<endevent>><</link>>
<<elseif $rng gte 41>>
	Some delinquents pick on one of the nerdy students. Sirris has the offenders move to the other side of the classroom.

	<<link [[Next|Science Lesson]]>><</link>>
<<elseif $rng gte 31>>
	<<npc Sirris>><<person1>>
	Sirris puts on a video about human reproduction.
	<<if $days gte 25 and $rng % 3 is 0>>/*1 in 3 chance, and won't happen too early*/

		It doesn't seem like an educational film at all - it's graphic. Very graphic. Primarily just a 14 minute home-sex-tape. The only 'educational' input comes from Sirris periodically freezing the video to quiz students on which body parts are being licked, stroked, sucked, bitten or penetrated.
		While the video never shows faces, you start to suspect that one of the participants is Sirris.

		The entire class watches with rapt attention right up to the couple's panting orgasm.
		<<garousal>><<arousal 200>>

		"I know that was quite explicit," Sirris says. "But good scientists aren't squeamish. Humans are animals. And this is simply observing animal behaviour. And as well as knowing the facts and terminology, it's important that you understand what real sex is and what it looks like."
		<<awarenessup 200 1>>
	<<else>>
		It has a strong educational focus, talking extensively about sexual health, STIs, pregnancy, contraception and consent.
		It goes into the basic mechanics of sex with some simple diagrams labelling the body parts and cell types involved.
		<<awarenessup 100 1>>

		The classroom has a laid-back atmosphere. Some students watch, but few with any real interest and many carry on chatting throughout.
		<<if pregnancyBellyVisible()>>You're constantly reminded of the situation you're currently in, and the precious life inside of you.<<lstress>><<stress -10>><</if>>
	<</if>>

	<<link [[Next|Science Lesson]]>><<endevent>><</link>>
<<elseif $rng gte 21>>
	<<npc Sirris>><<person1>>
	Sirris asks the class a question. You think you know the answer.

	<<link [[Put your hand up|Science Event1]]>><<set $phase to 1>><<stress 1>><<scienceskill 1>><</link>><<gstress>><<gscience>>

	<<link [[Keep your head down|Science Event1]]>><</link>>

<<elseif $rng gte 11>>
	Sirris looks around the room, glancing at you for a moment before asking a
	<<if $player.gender_appearance is "m">><<generatesf1>>girl<<else>><<generatesm1>>boy<</if>><<person1>> to come to the front of the class.

	Sirris smiles at the <<person>>.
	<<if $scienceprogression gte 2>>
		<<He>> looks nervous. "This part of the lesson is on human anatomy. I need you to remove your clothing, all of it. Don't be embarrassed, this is important for the lesson."

		<<if $rng % 2 == 0>>
			The <<personsimple>> runs straight out of the room and does not return.

			"I suppose we'll have to make do with the old anatomy charts then," Sirris says. "Sorry class."
		<<else>>
			<<if $pronoun is "m">>
				<<print either("The boy excitedly agrees.", "The boy cheerfully agrees.", "The boy casually agrees.", "The boy reluctantly agrees.", "The boy looks like he wants to cry, but nods meekly.", "The boy tearfully agrees.")>>
			<<else>>
				<<print either("The girl excitedly agrees.", "The girl cheerfully agrees.", "The girl casually agrees.", "The girl reluctantly agrees.", "The girl looks like she wants to cry, but nods meekly.", "The girl tearfully agrees.")>>
			<</if>>
			<<He>> strips, which immediately gets the entire class's full attention. The <<person>> stands naked at the front as the teacher points out numerous parts of <<his>> anatomy.
			<<if $scienceprogression gte 3>>
				Sirris then instructs <<him>> to climb on the desk and spread <<his>> legs. Sirris <<if $pronoun is "m">>holds up his penis<<else>>uses a speculum<</if>> to give the excited class a clearer view.
			<</if>>
			<<if $scienceprogression gte 4>>
				Things finally get a little out of control. The <<person>> squeals as some students get a bit 'handsy.' Finally regaining control,
			<</if>>
			Sirris brings the show to an end, inviting the <<person>> to dress and sit back down.

			While you feel bad for the <<person>>, it definitely made the session more interesting and you think you learned something.
			<<gscience>><<scienceskill>>
		<</if>>
	<<elseif $scienceprogression gte 1>>
	"I need you to undress for this part. Don't worry, you can keep your underwear on."

	<<if $rng % 3 == 0>>
	  The <<personsimple>> runs straight out of the room and does not return.

	  "I suppose we'll have to make do with the old anatomy charts then," Sirris says. "Sorry class."
	<<elseif $rng % 4 == 0>>
	  The <<personsimple>> whispers something to Sirris.

	  Sirris turns bright red and quickly asks the <<person>> to sit back down. "On second thoughts, class, ah... We'll use the anatomy charts," Sirris says. "They're... clearer."
	<<else>>
	  <<if $pronoun is "m">>
	  <<print either("The boy excitedly agrees.", "The boy cheerfully agrees.", "The boy casually agrees.", "The boy reluctantly agrees.", "The boy looks like he wants to cry, but nods meekly.", "The boy tearfully agrees.")>>
	  <<else>>
	  <<print either("The girl excitedly agrees.", "The girl cheerfully agrees.", "The girl casually agrees.", "The girl reluctantly agrees.", "The girl looks like she wants to cry, but nods meekly.", "The girl tearfully agrees.")>>
	  <</if>>
	  <<He>> strips to <<his>> underwear, which immediately grabs the class's attention.
	  Sirris continues with the lesson, pointing to parts of the <<persons>> body and explaining various functions.
	  Sirris soon finishes the demonstration, inviting the <<person>> to dress, sit down and rejoin the class.

	  While you feel a little bad for the <<person>>, it definitely made the session more interesting and you think you learned something.
	  <<gscience>><<scienceskill>>
	<</if>>
  <<else>>
	"Don't worry, we're not going to do anything invasive."

	Over the next few minutes, Sirris talks about various bones and organs, pointing to parts of the <<persons>> body to demonstrate location. It's interesting.
	<<gscience>><<scienceskill>>
  <</if>>

  <<link [[Next|Science Lesson]]>><<endevent>><</link>>

<<elseif $rng gte 1>>
  <<if $dissociation gte 1>>
<<npc Sirris>><<person1>>Sirris approaches you. "Is everything okay?" <<he>> asks. "You don't look... well."

<<link [[I'm fine|Science Event2]]>><</link>>

<<link [[Break down|Science Event2]]>><<set $phase to 1>><</link>>

  <<else>>
Sirris approaches you. "Is there anything I can help clarify for you?"

<<link [[Yes|Science Event2]]>><<set $phase to 2>><<scienceskill 1>><</link>><<gscience>>

<<link [[No|Science Event2]]>><<set $phase to 3>><</link>>

  <</if>>
<</if>>
<</widget>>

:: Widgets Events Maths [widget]
<<widget "eventsmaths">>
<<if $rng gte 91 and (($wolfgirl gte 4 and $transformationParts.wolf.ears isnot "hidden") or ($cat gte 4 and $transformationParts.cat.ears isnot "hidden") or ($bunny gte 4 and $transformationParts.bunny.ears isnot "hidden"))>>

<<npc River>><<person1>>River marches up and down the class. <<He>> stops beside you.
  <<if $riverbite isnot 1>>
	<<set $riverbite to 1>>
		"That headband is against school regulations," <<he>> says, grabbing one of your <<if $wolfgirl gte 4>>wolf<<elseif $cat gte 4>>cat<<else>>bunny<</if>> ears.
  <<else>>
		"You're still wearing that silly headband?" <<he>> says. "I thought I made myself clear." <<He>> grabs one of your <<if $wolfgirl gte 4>>wolf<<elseif $cat gte 4>>cat<<else>>bunny<</if>> ears.
  <</if>>
<<He>> tugs painfully.<<gpain>><<gstress>><<set $pain += 10>><<stress 1>>

<<if $wolfgirl gte 4 or $cat gte 4>>
	<<link [[Bite|Maths Event Bite]]>><<npcincr River dom -1>><<npcincr River love -1>><<detention 6>><<stress -12>><<trauma -6>><<set $submissive -= 10>><</link>><<gdelinquency>><<ltrauma>><<lstress>>
<<elseif $bunny gte 4>>
	<<link [[Kick|Maths Event Kick]]>><<npcincr River dom -1>><<npcincr River love -1>><<detention 6>><<stress -12>><<trauma -6>><<set $submissive -= 10>><</link>><<gdelinquency>><<ltrauma>><<lstress>>
<</if>>

<<link [[Endure|Maths Event Endure]]>><<npcincr River dom 1>><<stress 6>><<trauma 6>><<set $pain += 20>><<set $submissive += 5>><</link>><<gpain>><<gtrauma>><<gstress>>

<<elseif $fameexhibitionism gte 500 and $delinquency gte 500 and $mathrulerin is 0 and $worn.genitals.name isnot "chastity belt">>

	<<npc River>><<person1>>
	You hear River's phone buzzing and without even checking it <<he>> suddenly says <<he>> needs to leave the classroom and will be back in a few minutes.

	<<He>> gives the class some equations to solve while <<he>> is away.

	After you don't hear <<his>> footsteps anymore a girl stands up and picks up a ruler from her desk.

	"Hey you." She looks at you.

	"I've heard you like to show yourself. How about a little something now?" she says. "In front of the whole class of course."

	"I bet you to insert this ruler in your <<if $player.gender_appearance is "m">>asshole<<else>>pussy<</if>>.I'll give you £40 if you do."

	<<link [[Accept the bet|Maths Ruler]]>><<set $phase to 1>><<status +10>><<arousal 1500>><<set $mathrulerin to 1>><</link>><<exhibitionist5>><<fameexhibitionism 3>><<garousal>>

	<<link [[Refuse|Maths Ruler]]>><<stress 2>><<set $phase to 2>><<status -10>><<set $mathrulerin to 1>><</link>><<gstress>>

<<elseif $rng gte 81>>
<<npc River>><<person1>>
River gives the class some equations to solve while <<he>> manages paperwork.
	<<if $whitneymaths is "seat">>
		<<endevent>>
		<<npc Whitney>><<person1>>
		Whitney leans back in <<his>> seat, looking bored. <<He>> reaches up to your head and twirls your hair between <<his>> fingers.

		<<link [[Make out|Maths Whitney Makeout]]>><<npcincr Whitney love 1>><</link>><<glove>>

		<<link [[Keep working|Maths Whitney Work]]>><<mathsskill 1>><</link>><<gmaths>>

	<<elseif $whitneymaths is "active">>
		<<endevent>>

<<npc Whitney>><<person1>>
		A crumpled ball of paper bounces off your head. You turn and see Whitney grinning at you along with a couple of other delinquents.

		<<link [[Read it|Maths Whitney Read]]>><</link>>

		<<link [[Throw it back|Maths Whitney Throw]]>><<def 1>><</link>>

		<<link [[Throw it in the bin|Maths Whitney Bin]]>><</link>>

	<<else>>
		A few delinquents use the opportunity to harass you.

		<<link [[Tell them to stop|Maths Event1]]>><<detention 2>><</link>><<gdelinquency>>

		<<link [[Endure it|Maths Event1]]>><<stress 2>><<set $phase to 1>><</link>><<gstress>>

	<</if>>
<<elseif $rng gte 71 and $whitneymaths is "active">>
	<<npc Whitney>><<person1>><<generateyv2>>
	A pen bounces off your head. It's Whitney. <<He>> reclines in <<his>> seat, rummaging through a neighbouring <<person2>><<persons>> pencil case for more stationery to chuck at you. The <<person>> is too cowed to stop <<person1>><<him>>.

	<<link [[Tolerate it|Maths Whitney Tolerate]]>><<stress 6>><</link>><<gstress>>

	<<link [[Notify River|Maths Whitney River]]>><<npcincr Whitney love -1>><<status -10>><</link>><<lcool>><<llove>>

	<<link [[Retaliate|Maths Whitney Retaliate]]>><<def 1>><<detention 1>><<trauma -6>><</link>><<gdelinquency>><<ltrauma>>

<<elseif $rng gte 71 and $whitneymaths is "seat">>
	<<npc Whitney>><<person1>>
	Whitney leans close, <<his>> breath tickling your ear as <<he>> speaks. "My <<if $NPCList[0].penis isnot "none">>cock<<else>>pussy<</if>> needs your mouth," <<he>> whispers. "Be a good <<girlfriend>> and get under the desk."

	<<link [[Comply grudgingly|Maths Whitney Oral]]>><<set $phase to 0>><<trauma 6>><<stress 6>><<npcincr Whitney dom 1>><<set $submissive += 1>><<set $molestationstart to 1>><</link>><<gtrauma>><<gstress>><<gdom>>

	<<if $promiscuity gte 55>>
	<<link [[Comply enthusiastically|Maths Whitney Oral]]>><<set $phase to 1>><<npcincr Whitney dom 1>><<set $submissive += 1>><<set $sexstart to 1>><</link>><<promiscuous4>><<gdom>>

	<</if>>
	<<if $whitneyromance is 1>>
	<<link [[Comply lovingly|Maths Whitney Oral]]>><<set $phase to 2>><<trauma 6>><<npcincr Whitney dom 1>><<npcincr Whitney love 1>><<set $submissive += 1>><<set $sexstart to 1>><</link>><<promiscuous1>><<gtrauma>><<glove>><<gdom>>

	<</if>>
	<<link [[Refuse|Maths Whitney Oral Refuse]]>><<stress 6>><<npcincr Whitney dom -1>><</link>><<gstress>><<ldom>>

<<elseif $rng gte 61>>
<<npc River>><<generates2>><<person2>>
River has you come to the front of the class to solve an equation on the whiteboard.

  <<if setup.clothes.lower[clothesIndex('lower', $worn.lower)].skirt is 1>>
  As you write on the board, a <<person>> reaches over with a ruler and lifts up your skirt!
	<<if $worn.under_lower.type.includes("naked")>>
		<<if $panicattacks gte 1 and random(1, 2) is 2 and $controlled is 0>>
			A cheer erupts from the class as they see you're not wearing underwear. You need to respond, to whack the ruler away, but your body freezes in mortified panic. Thoughts dart half-formed as you wonder what horrible things the class have in store for you.

			You hear them chatter, but you can't comprehend the words, only the clicks of phone cameras pointed at your <<bottom>> and <<if $player.penisExist>>hardening<</if>> <<genitals>>.

			River turns to the class, and opens <<person1>><<his>> mouth to chide but is interrupted. "But <<sir>>, <<pshes>> not wearing any underwear!"

			The class erupt in laughter as River looks at you. <<He>> steadies <<himself>> against the desk. "That's against school rules," <<he>> says. "Back to your seat. And cover yourself. Now!"

			It's enough to break your paralysis. You straighten your $worn.lower.name, and return to your seat.<<gtrauma>><<gstress>><<gdelinquency>><<gcool>><<trauma 6>><<stress 6>><<detention 4>><<status 1>>

		<<else>>
			A cheer erupts from the class as they see you're not wearing underwear. You brush the ruler away and fix your $worn.lower.name as your face heats up. River turns to the class to see what's causing the commotion. Seeing the <<person2>><<person>> holding the ruler, <<person1>><<he>> opens <<his>> mouth to chide but is interrupted. "But <<sir>>, <<pshes>> not wearing any underwear!"

			The class erupts into another cheer as River looks at you. "Is this true? That's against school rules. Sit down."
			<<gtrauma>><<gstress>><<gdelinquency>><<gcool>><<trauma 2>><<stress 2>><<detention 2>><<status 1>>

			<<if $whitneymaths is "active" or $whitneymaths is "seat">>
				Whitney smirks.

			<</if>>
		<</if>>
	<<else>>
		You brush the ruler away and fix your $worn.lower.name, but not before the class get a good look at your <<if $worn.under_lower.anus_exposed is 1>> bare ass<<else>>$worn.under_lower.name<</if>>.<<gtrauma>><<gstress>><<trauma 1>><<stress 1>>

		<<if $whitneypantiescheck is 1 and $whitneymaths is "active">>
			Whitney glares at you, but doesn't say anything. This won't be the end of it.
			<<set $whitneypantiesmaths to "seen">>

		<</if>>

	<</if>>
  <<else>>
  As you write on the board, a <<person>> reaches over with a ruler and tugs down your $worn.lower.name!
	<<if $worn.under_lower.type.includes("naked")>>
		A cheer erupts from the class as they see you're not wearing underwear. You brush the ruler away and fix your $worn.lower.name as your face heats up. River turns to the class to see what's causing the commotion. Seeing the <<person2>><<person>> holding the ruler, <<person1>><<he>> opens <<his>> mouth to chide but is interrupted. "But <<sir>>, <<pshes>> not wearing any underwear!"

		The class erupts into another cheer as River looks at you. "Is this true? That's against school rules. Sit down."<<gtrauma>><<gstress>><<gdelinquency>><<gcool>><<trauma 2>><<stress 4>><<detention 2>><<status 1>>

		<<if $whitneymaths is "active" or $whitneymaths is "seat">>
			Whitney smirks.

		<</if>>

	<<else>>
		You brush the ruler away and fix your $worn.lower.name, but not before the class get a good look at your <<if $worn.under_lower.anus_exposed is 1>>bare ass<<else>>$worn.under_lower.name<</if>>.<<gtrauma>><<gstress>><<trauma 1>><<stress 2>>

		<<if $whitneypantiescheck is 1 and $whitneymaths is "active">>
			Whitney glares at you, but doesn't say anything. This won't be the end of it.
			<<set $whitneypantiesmaths to "seen">>

		<</if>>

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

<<link [[Next|Maths Lesson]]>><<endevent>><</link>>

<<elseif $rng gte 51 and $whitneymaths is "active">>
	River is demonstrating equations on the whiteboard. Whitney uses the opportunity to force a <<generatey1>><<person1>><<person>> behind you to relocate, before taking <<his>> seat.

	<<endevent>><<npc Whitney>><<person1>>

	Something jabs your waist. Whitney sits with an innocent smile and a protractor compass in <<his>> hand. You turn back to the front, and <<he>> jabs you again.<<gpain>><<pain 6>>

	<<link [[Endure|Maths Whitney Protractor Endure]]>><<stress 6>><<pain 6>><</link>><<gstress>><<gpain>>

	<<link [[Tell River|Maths Whitney Protractor Tell]]>><<status -10>><<mathsskill 6>><<npcincr Whitney love -1>><</link>><<llove>><<lcool>><<gmaths>>

	<<link [[Retaliate|Maths Whitney Protractor Retaliate]]>><<detention 4>><<status 1>><<npcincr Whitney dom -1>><</link>><<gdelinquency>><<ldom>><<gcool>>

<<elseif $rng gte 51 and $whitneymaths is "seat">>
	You hear shouting outside the class. River leaves to investigate.

	<<npc Whitney>><<person1>><<generatey2>>
	"You looking at my <<girlfriend>>?" Whitney says to your side. <<Hes>> glaring at a <<person2>><<person>> behind you.

	"N-no," the <<person2>><<person>> replies. Whitney isn't impressed. <<person1>><<He>> jumps to <<his>> feet and lunges over the <<person2>><<persons>> desk, grasping <<him>> by the collar.

	"<<pShes>> mine, <<person2>><<if $pronoun is "m">>pervert<<else>>slut<</if>>," <<person1>><<he>> hisses. "Now I'm gonna make sure you remember it."

	<<set $rng to random(1, 100)>>
	<<if $rng gte 81>>
		The <<person2>><<person>> looks terrified.
	<<elseif $rng gte 61>>
		The <<person2>><<person>> looks defiant.
	<<elseif $rng gte 41>>
		The <<person2>><<person>> looks angry.
	<<elseif $rng gte 21>>
		The <<person2>><<person>> looks scared.
	<<else>>
		The <<person2>><<person>> looks confused.
	<</if>>

	<<link [[Watch|Maths Whitney Watch]]>><<npcincr Whitney dom 1>><</link>><<gdom>>

	<<link [[Intervene|Maths Whitney Intervene]]>><<famegood 10>><<npcincr Whitney dom -1>><<trauma -6>><</link>><<ldom>><<ltrauma>>

	<<link [[Encourage|Maths Whitney Encourage]]>><<npcincr Whitney love 1>><<detention 3>><</link>><<glove>><<gdelinquency>>

<<elseif $rng gte 41>><<set $rng to random(1, 100)>>

<<npc River>><<person1>>

River stands beside your table. "I need you to deliver a message for me. To the head." <<He>> hands you a sealed envelope.

You leave the classroom.

<<endevent>>
<<link [[Open the envelope|Maths Note]]>><<detention 6>><<set $phase to 1>><</link>><<gdelinquency>>

<<link [[Just deliver it|Maths Note]]>><</link>>

<<elseif $rng gte 31 and ($whitneymaths is "active" or $whitneymaths is "seat")>>

	<<npc Whitney>><<person1>>
	"It's too hot," Whitney insists, pulling <<his>> shirt over <<his>> head,
	<<if $pronoun is "f">>
		leaving <<him>> with just a white bra covering <<his>> $NPCList[0].breastsdesc.
	<<else>>
		leaving <<him>> bare chested.
	<</if>>
	"Much better." Someone giggles.

	<<if !$worn.upper.type.includes("naked") and $whitneymaths is "seat">>
		<<He>> turns to face you, and grasps the hem of your $worn.upper.name. "Let me help you," <<he>> says, trying to pull it up.

		<<if $worn.under_upper.type.includes("naked") and ($player.gender is "f" or $player.gender_appearance is "f")>>
			You blush. You're not wearing anything underneath!

			<<if $exhibitionism gte 15>>
				<<link [[Allow|Maths Whitney Shirt Allow]]>><<npcincr Whitney love 1>><<npcincr Whitney dom 1>><<npcincr Whitney lust 1>><<detention 4>><</link>><<exhibitionist3>><<gdelinquency>><<glove>><<gdom>><<glust>>

			<</if>>
		<<elseif $player.gender is "f" or $player.gender_appearance is "f">>
			You blush.

			<<link [[Allow|Maths Whitney Shirt Allow]]>><<npcincr Whitney love 1>><<npcincr Whitney dom 1>><<npcincr Whitney lust 1>><<detention 4>><</link>><<exhibitionist1>><<gdelinquency>><<glove>><<gdom>><<glust>>

		<<else>>
			<<link [[Allow|Maths Whitney Shirt Allow]]>><<npcincr Whitney love 1>><<npcincr Whitney dom 1>><<npcincr Whitney lust 1>><<detention 4>><</link>><<gdelinquency>><<glove>><<gdom>><<glust>>

		<</if>>
		<<link [[Resist|Maths Whitney Shirt Resist]]>><<stress 6>><</link>><<gstress>>

	<<else>>
		<<endevent>><<npc River>><<person1>>
		River turns to investigate the source of the giggles. <<He>> almost swoons when <<he>> sees Whitney without a school shirt, and steadies <<himself>> against <<his>> desk. "O-out," <<he>> manages. "And put your shirt on."

		<<endevent>>
		<<npc Whitney>><<person1>>
		Whitney rolls <<his>> eyes, but rises to <<his>> feet. <<He>> doesn't wear the shirt, instead slinging it over <<his>> shoulder as <<he>> swaggers from the room.

		<<set $whitneymaths to "sent">>

		<<link [[Next|Maths Lesson]]>><<endevent>><</link>>

	<</if>>
<<elseif $rng gte 21>><<set $rng to random(1, 100)>>
  <<if $maths lte 499>>
  <<generates1>><<person1>>
River has a studious <<person>> help you with the material.
	<<if $cool gte (($coolmax / 5) * 2)>>
	<<He>> is happy to help, and your understanding of the material improves.<<lstress>><<stress -4>><<gmaths>><<mathsskill>>

	<<link [[Next|Maths Lesson]]>><<endevent>><</link>>
	<<elseif $cool gte ($coolmax / 5)>>
	<<He>> doesn't seem particularly happy with the arrangement, but you do learn something.<<gmaths>><<mathsskill>>

	<<link [[Next|Maths Lesson]]>><<endevent>><</link>>
	<<else>>
	<<He>> is clearly embarrassed to be seen with you; <<he>> never looks at you, and rarely speaks. You don't learn anything.

<<link [[Next|Maths Lesson]]>><<endevent>><</link>>
	<</if>>
  <<else>><<generates1>>
	<<if $eventsmaths4 is 1 and $rng gte 71>>
As you are doing well in this class, River has you sit with a <<person1>><<person>> who isn't doing so well, and instructs you to help them. The <<person>> is not at all happy with the arrangement. After a few minutes of trying to explain the material to them, you feel a hand grope your butt.

<<link [[Ignore it|Maths Event3]]>><<trauma 2>><<stress 2>><<arousal 200>><<set $phase to 3>><<set $eventsmaths4 to 1>><</link>><<gtrauma>><<gstress>><<garousal>>

<<link [[Move away|Maths Event3]]>><<detention 2>><<set $phase to 1>><</link>><<gdelinquency>>

<<if $whitneymaths is "seat">>
	<<link [[Tell Whitney|Maths Event3 Whitney]]>><<npcincr Whitney dom 1>><</link>><<gdom "Whitney">>

<</if>>

	<<elseif $rng gte 41>><<set $eventsmaths4 to 1>>
As you are doing well in this class, River has you sit with a <<person1>><<person>> who isn't doing so well, and instructs you to help them. The <<person>> is not at all happy with the arrangement. After a few minutes of trying to explain the material to them, you feel a hand grope your butt.

<<link [[Ignore it|Maths Event3]]>><<trauma 2>><<stress 2>><<arousal 200>><<set $phase to 2>><</link>><<gtrauma>><<gstress>><<garousal>>

<<link [[Move away|Maths Event3]]>><<detention 2>><<set $phase to 1>><</link>><<gdelinquency>>

<<if $whitneymaths is "seat">>
	<<link [[Tell Whitney|Maths Event3 Whitney]]>><<npcincr Whitney dom 1>><</link>><<gdom "Whitney">>

<</if>>

	<<elseif $rng gte 1>>
As you are doing well in this class, River has you sit with a <<person1>><<person>> who isn't doing so well, and instructs you to help them. The <<person>> is not at all happy with the arrangement, but they listen to you without incident.

<<link [[Next|Maths Lesson]]>><<endevent>><</link>>
	<</if>>
  <</if>>
<<else>>
<<npc River>><<person1>><<generates2>>
While River's back is turned, someone throws a pen at <<his>> back. <<He>> stops speaking, and slowly turns to face the class. <<person2>>The <<person>> sat behind you points at you. "<<pShe>> did it!"

  <<if $delinquency gte 400>>
	<<if $whitneymaths is "seat">>
		River looks at you. <<person1>>"I should have known it would be you. Wait outside." You know arguing won't help, so you stand to leave.<<gstress>><<stress 2>>

		Whitney stands beside you. "Sit down," River says. Whitney ignores <<him>> and leaves the class behind you.

	<<else>>
		River looks at you. <<person1>>"I should have known it would be you. Wait outside." You know arguing won't help, so you stand and leave.<<gstress>><<stress 2>>

	<</if>>

  <<link [[Next|Maths Event4]]>><<endevent>><</link>>
  <<else>>
  <<person1>>River is not fooled by the <<person2>><<person>>, and sends them out.

  <<link [[Next|Maths Lesson]]>><<endevent>><</link>>
  <</if>>
<</if>>
<</widget>>

<<widget "eventsmathssafe">>
<<if $mathsproject is "none" and $yeardays gte 23 and $scienceprojectdays isnot (21 + (7 - $weekday))>><<set $mathsproject to "ongoing">><<set $mathsprojectdays to (21 + (7 - $weekday))>>
<<mathsprojectstart>>
<<npc River>><<person1>><<generatey2>>"Everyone listen," River announces. <<He>> knocks on <<his>> desk. "That includes you at the back. I have something special for you today. We hold an annual competition for students in your year." This grabs a <<person2>><<person>> at the front's attention. <<He>> sits upright.
<<if $whitneymaths is "active" or $whitneymaths is "seat">>
	Whitney is less impressed, and reclines in <<nnpc_his "Whitney">> seat with an open textbook resting on <<nnpc_his "Whitney">> face.
<</if>>

"You have a few weeks to solve it," River continues as <<person1>><<he>> hands out booklets. "Whoever provides the most intelligent answer wins. We don't expect anyone to find the solution. That's not the point." <<He>> places a black and white booklet in front of you. You open it. It's incomprehensible.

The <<person2>><<persons>> arm shoots up. "Yes?" River asks.

"You haven't covered this," the <<person>> says. <<His>> voice quivers. You're relieved that you're not alone.

River smiles. "Well observed," <<person1>><<he>> says. "You're all on equal footing. Even if you haven't paid attention in the past. Participation is optional. There's a reward for the winner, but don't prioritise it over your school work."

<<He>> hands out the last of the booklets. "The problem was made for this competition, so don't think you can find the answer somewhere. And don't ask your parents for help," <<he>> adds. <<He>> avoids looking in your direction. "We can always tell. The competition will be held at the town hall, where you will be judged. Good luck."

Maths competition added to journal.

<<endevent>>

<<link [[Next|Maths Lesson]]>><<endevent>><</link>>

<<elseif $rng gte 81>>
<<npc River>><<person1>>
River gives the class some equations to solve while <<he>> manages paperwork.

<<if $whitneymaths is "seat" or $whitneymaths is "active">>
	<<endevent>>
	<<npc Whitney>><<person1>>
	Even Whitney keeps quiet, though <<he>> might just be asleep.
<<else>>
	Even the delinquents keep quiet, careful to avoid River's attention.
<</if>>

<<link [[Next|Maths Lesson]]>><<endevent>><</link>>

<<elseif $rng gte 71>>
  <<generates1>><<generates2>><<person1>><<set _coinflip to random(0,1)>>
  River assigns a high-performing student, a <<person>>, to support one of the struggling delinquents near you.

  <<if $rng % 3 is 0>>
	It goes well. Both students get along and seem to benefit from the arrangement.
  <<else>>
	It is a disaster. The delinquent, a <<person2>><<person>>, resents the <<person1>><<persons>> help, and soon starts bullying <<him>>. Out of the corner of your eye you watch as things escalate out of control.
	<<if _coinflip>>
	River calls an end to the session before things go too far.
	<<else>>
	River investigates when the <<person1>><<person>> screams. <<if $rng % 2>>River sends out the perpetrator.<<else>>Somehow the <<person1>><<person>> ends up being blamed and is given detention.
	<</if>>
	<</if>>
  <</if>>

  <<link [[Next|Maths Lesson]]>><<endevent>><</link>>

<<elseif $rng gte 61>>
<<npc River>><<person1>>
River demonstrates equations on a whiteboard and occasionally asks questions, picking on students <<he>> thinks aren't paying attention.

<<link [[Next|Maths Lesson]]>><<endevent>><</link>>

<<elseif $rng gte 51>>
	<<if $whitneymaths is "seat" or $whitneymaths is "active">>
		Whitney goads a <<generatey1>><<person1>><<person>> into flinging a pen at River's back. The <<person>> is sent out of the room after some argument.
	<<else>>
		Someone across the class flings a pen at River's back. After some argument, the perpetrator is sent out of the room and class resumes.
	<</if>>

	<<link [[Next|Maths Lesson]]>><<endevent>><</link>>

<<elseif $rng gte 41>>
<<npc River>><<person1>>
River demonstrates equations on a whiteboard and occasionally asks questions, picking on students <<he>> thinks aren't paying attention. This time, <<he>> picks on you.

  <<if $maths gte 500>>
  You know the answer, but answering such a tough question correctly will make the other students think you strange.

  <<link [[Answer|Maths Event2]]>><<status -10>><</link>><<lcool>>

  <<link [[Pretend you don't know|Maths Event2]]>><<detention 2>><<stress 2>><<set $phase to 1>><</link>><<gstress>><<gdelinquency>>
  <<else>>
  The question is quite difficult and beyond you, so you tell <<him>> you don't know.

"Of course you don't." Fortunately <<he>> doesn't belabour the point, and continues lecturing.
<<set $stress += 20>><<gstress>>

  <<link [[Next|Maths Lesson]]>><<endevent>><</link>>
  <</if>>

<<elseif $rng gte 35>>

You're called up to the front to answer a question. You walk up and write your answer on the board. River seems satisfied. You sit back down, but feel a sharp pain. Standing up and reaching back, you feel a tack stuck in your <<bottom>>.
<<pain 2>><<stress 6>><<gpain>><<gstress>>

	<<if $whitneymaths is "active">>
		You remove it and sit back down. You hear Whitney laugh behind you.
	<<elseif $whitneymaths is "seat">>
		You remove it and sit back down. Whitney wears an innocent smile.
	<<else>>
		You remove it and sit back down. You hear a couple of delinquents laughing behind you.
	<</if>>

<<link [[Next|Maths Lesson]]>><<endevent>><</link>>

<<elseif $rng gte 31>>

	<<if $whitneymaths is "seat">>
		The class studies trigonometry, filling worksheets while River paces the room. Whitney starts a covert war with another student. They stab each other with compass points.
	<<elseif $whitneymaths is "active">>
		The class studies trigonometry, filling worksheets while River paces the room. Whitney and the other delinquents covertly stab each other with compass points.
	<<else>>
		The class studies trigonometry, filling worksheets while River paces the room. Some students covertly stab each other with compass points.
	<</if>>

<<link [[Next|Maths Lesson]]>><<endevent>><</link>>

<<elseif $rng gte 21>>
<<npc River>><<person1>>
The class studies geometry, filling worksheets while River paces around the room, looking over shoulders and pointing out every little mistake.

<<link [[Next|Maths Lesson]]>><<endevent>><</link>>

<<elseif $rng gte 11>>
<<generates1>><<generates2>><<person1>>
A <<person>> is called to the front of the class to solve an equation on the board. As <<he>> is writing, a <<person2>><<person>> leans forward and uses a ruler to flash the unwitting <<person1>><<personsimple>>'s underwear to the class.
<<if ($rng % 4) is 0>>
However it turns out the <<person>> isn't wearing any, leading to lots of cheering, and a detention for both the humiliated <<personsimple>> and the <<person2>><<person>> with the ruler.
<<else>>The <<personsimple>> slaps away the ruler, and River fixes the <<person2>><<person>> with a glare.

The class goes on.
<</if>>

<<link [[Next|Maths Lesson]]>><<endevent>><</link>>

<<else>>
<<npc River>><<person1>>
River demonstrates equations on a whiteboard before handing out worksheets for the class to complete.

<<link [[Next|Maths Lesson]]>><<endevent>><</link>>
<</if>>
<</widget>>

<<widget "mathsstart">>
<<endevent>>
<<if $NPCName[$NPCNameList.indexOf("Whitney")].state is "active" or $NPCName[$NPCNameList.indexOf("Whitney")].state is "rescued">>
	<<set _whitney_maths_chance to (($NPCName[$NPCNameList.indexOf("Whitney")].love / 3) + ($NPCName[$NPCNameList.indexOf("Whitney")].dom * 3) + ($NPCName[$NPCNameList.indexOf("Whitney")].lust / 3))>>
<</if>>
<<if ($NPCName[$NPCNameList.indexOf("Whitney")].state is "active" or $NPCName[$NPCNameList.indexOf("Whitney")].state is "rescued") and $whitneymaths is undefined>>

	<<npc River>><<person1>>Whitney swaggers in. "So you decided to show up," River says, pointing at an empty seat at the front. "Tuck your shirt in."

	<<endevent>>
	<<if $whitneyromance is 1>>
		<<set $whitneymaths to "seat">>
		<<npc Whitney>><<person1>> Whitney rolls <<his>> eyes, and instead takes a seat beside you. <<He>> tucks just the front of <<his>> shirt into <<his>> <<if $pronoun is "f">>skirt<<else>>trousers<</if>> as <<he>> sits.

	<<else>>
		<<set $whitneymaths to "active">>
		<<npc Whitney>><<person1>> Whitney rolls <<his>> eyes, and instead takes a seat at the back. <<He>> tucks just the front of <<his>> shirt into <<his>> <<if $pronoun is "f">>skirt<<else>>trousers<</if>> as <<he>> sits.

	<</if>>
	<<link [[Next|Maths Lesson]]>><<endevent>><</link>>

<<elseif ($NPCName[$NPCNameList.indexOf("Whitney")].state is "active" or $NPCName[$NPCNameList.indexOf("Whitney")].state is "rescued") and _whitney_maths_chance gte random(1, 100)>>
	<<if $whitneyromance is 1>>
		<<set $whitneymaths to "seat">>
		<<npc Whitney>><<person1>>Whitney enters the class. <<He>> shoves past a <<generatey2>><<person2>><<person>> and sits beside you.

	<<else>>
		<<set $whitneymaths to "active">>
		<<npc Whitney>><<person1>>Whitney enters the class. <<He>> takes a seat at the back.

	<</if>>
	<<link [[Next|Maths Lesson]]>><<endevent>><</link>>

<<else>>
	<<if $whitneymaths isnot undefined>>
		<<set $whitneymaths to "absent">>
	<</if>>

	<<link [[Next|Maths Lesson]]>><<endevent>><</link>>

<</if>>
<</widget>>

:: Widgets Events English [widget]
<<widget "eventsenglish">>
<<if $halloween is 1 and $kylarenglishstate is "active" and $halloween_kylar is undefined>>
	<<npc Kylar>><<person1>>
	<<if $monthday is 31>>
		Kylar leans closer. "There's something I want to show you tonight," <<he>> whispers. Meet me in the park, after <<ampm 21 00>>."
	<<else>>
		Kylar leans closer. "There's something I want to show you on Halloween," <<he>> whispers. Meet me in the park, after <<ampm 21 00>>."
	<</if>>

	<<He>> wears a small smile for the rest of the lesson.
	<<set $halloween_kylar to 1>>

	<<link [[Next|English Lesson]]>><<endevent>><</link>>

<<elseif $rng gte 91 and $goocount + $semencount gte 10>>
<<npc Doren>><<person1>>
Doren stops beside your desk. "You smell... odd," <<he>> says. "Almost like..."

<<generates2>><<person2>>A <<person>> cuts <<person1>><<him>> off. "<<pShe>> smells like cum <<sir>>." Giggling erupts around the class.

<<person1>>

  <<if $promiscuity gte 35>>
  <<link [[Own it|English Events Own]]>><</link>><<promiscuous3>>

  <</if>>
  <<link [[Stare down in shame|English Events Stare]]>><<trauma 6>><<stress 6>><<status -10>><<npcincr Doren love 1>><</link>><<gtrauma>><<gstress>><<lcool>>

<<elseif $rng gte 81>>
	<<if $cool lt 40>>
		<<set $worn.lower.integrity -= 30>>
		<<if $worn.lower.integrity lte 0>>
			As you stand to hand your work in, your $worn.lower.name <<print ($worn.lower.plural? "tear" : "tears")>> clean off of your body!
			You look down in horror and see the remains attached to the chair. Someone put glue on your seat!
			You cover your exposed <<undies>> as soon as you can, but for a moment you were completely exposed.
			Doren rushes over with a towel, while your face flushes with humiliation.

			<<if $worn.under_lower.type.includes("naked") and !$worn.genitals.type.includes("hidden")>>
				<<stress 12>><<trauma 12>><<ggstress>><<ggtrauma>>
				<<if $player.gender isnot $player.gender_appearance and ($schoolrep.crossdress gte 3 or $schoolrep.herm gte 3)>>

					The other students giggle at your plight. You overhear a few whispers while Doren is busy helping you,
					and can make out something about <<print ($player.gender is "h" ? "your genitals" : "you crossdressing")>>. They saw, and they know the rumours are true.
				<<elseif $player.gender isnot $player.gender_appearance>>

					The other students gasp, and the classroom fills with hushed whispers while Doren is busy helping you.
					You can make out something about <<print ($player.gender is "h" ? "your genitals" : "you crossdressing")>>. They saw.
				<</if>>

				<<schoolrep_naked>>
				<<set $genderknown.pushUnique("Doren")>>
				<<if $kylarenglishstate is "active" or $kylarenglishstate is "watching">><<set $genderknown.pushUnique("Kylar")>><</if>>
			<<else>>
				<<stress 6>><<trauma 6>><<gstress>><<gtrauma>>
			<</if>>
			<<if $kylarenglishstate is "active" or $kylarenglishstate is "watching">>

				Kylar blushes and looks away, but <<nnpc_he "Kylar">> clearly saw.<<npcincr Kylar lust 1>><<glust>>
			<</if>>
		<<else>>
			As you stand to hand your work in, your $worn.lower.name <<print ($worn.lower.plural? "tear" : "tears")>>. Someone put glue on your seat!
			Fortunately, your $worn.lower.name survived, though certainly worse for wear.
		<</if>>

	<<else>>
		<<set $worn.lower.integrity -= 10>>
		<<if $worn.lower.integrity lte 0>>
			As you stand to hand your work in, your $worn.lower.name <<print ($worn.lower.plural? "catch" : "catches")>> on the corner of your desk
			and <<print ($worn.lower.plural? "tear" : "tears")>> clean off of your body!
			You look down in horror and see the remains hanging from the desk.
			You cover your exposed <<undies>> as soon as you can, but for a moment you were completely exposed.
			Doren rushes over with a towel, while your face flushes with humiliation.
			<<if $worn.under_lower.type.includes("naked") and !$worn.genitals.type.includes("hidden")>>
				<<stress 12>><<trauma 12>><<ggstress>><<ggtrauma>>
				<<if $player.gender isnot $player.gender_appearance and ($schoolrep.crossdress gte 3 or $schoolrep.herm gte 3)>>

					The other students look almost satisfied by your plight. You overhear a few whispers while Doren is busy helping you,
					and can make out something about <<print ($player.gender is "h"? "your genitals" : "you crossdressing")>>. They saw, and they know the rumours are true.
				<<elseif $player.gender isnot $player.gender_appearance>>

					The other students gasp, and the classroom fills with hushed whispers while Doren is busy helping you.
					You can make out something about <<print ($player.gender is "h"? "your genitals" : "you crossdressing")>>. They saw.
				<</if>>

				<<schoolrep_naked>>
				<<set $genderknown.pushUnique("Doren")>>
				<<if $kylarenglishstate is "active" or $kylarenglishstate is "watching">><<set $genderknown.pushUnique("Kylar")>><</if>>
			<<else>>
				<<stress 6>><<trauma 6>><<gstress>><<gtrauma>>
			<</if>>
			<<if $kylarenglishstate is "active" or $kylarenglishstate is "watching">>

				Kylar blushes and looks away, but <<nnpc_he "Kylar">> clearly saw.<<npcincr Kylar lust 1>><<glust>>
			<</if>>
		<<else>>
			As you stand to hand your work in, your $worn.lower.name <<print ($worn.lower.plural? "catch" : "catches")>> on the corner of your desk and tears.
			Fortunately, your $worn.lower.name survived, though a bit worse for wear.

		<</if>>
	<</if>>
	<<integritycheck>>
	<<link [[Next|English Lesson]]>><<towelup>><</link>>

<<elseif $rng gte 71 and $kylarenglishstate is "active">>

<<npc Kylar>><<person1>>Doren calls Kylar up to the front of the class to recite <<his>> poem. It's a love poem, about you. <<He>> looks overjoyed to be sharing it.
<<status -10>><<lcool>>

<<if $player.penisExist and $genderknown.includes("Kylar")>>
Part of it makes bold claims about the prodigious girth of your penis. Your face heats up.<<status 1>><<gcool>>

<</if>>

Several students giggle and stare. A <<generates2>><<person2>><<person>> shunts <<his>> seat to put distance between you.

<<person1>>

Kylar sits back down and smiles, oblivious to the embarrassment <<he>> caused.

<<endevent>>
<<link [[Next|English Lesson]]>><</link>>

<<elseif $rng gte 61>>
	<<if $english gte 500>>
	<<npc Doren>><<person1>>Doren approaches your desk. "I think you've sussed this material, so while the rest of the class works, I've got a message I need delivered to the caretaker's outbuilding." <<He>> hands you a note containing a list of theatre props. "Just slip it beneath the door."

	<<endevent>>

	<<if $outbuildingvisited is 1>>
		You arrive at the outbuilding where the <<print $outbuildingBeast>> attacked you. Were you to take your time and be careful, you could avoid another such encounter. You would miss some of the lesson though.

		<<link [[Be careful|English Outbuilding]]>><<set $phase to 0>><<detention 1>><</link>><<gdelinquency>>

		<<link [[Risk it|English Outbuilding]]>><<set $phase to 1>><</link>>

	<<else>><<set $outbuildingvisited to 1>>
		<<beastNEWinit 1 dog>><<set $outbuildingBeast to $NPCList[0].type>>
		You head to the outbuilding behind the school and slip the note beneath the door as instructed. As you turn however, you find a <<beasttype>> baring its teeth and advancing on you.

		<<if $monster is 1 or $bestialitydisable is "f">>
			<<link [[Next|English Outbuilding Molestation]]>><<set $molestationstart to 1>><</link>>

		<<else>>
			You manage to flee back to the classroom, though not unscathed.<<beastescape>>

			<<integritycheck>><<towelup>>

			<<link [[Next|English Lesson]]>><<endevent>><</link>>
		<</if>>

	<</if>>

	<<else>>
		Doren takes a special interest in your progress, and doesn't give you a chance to relax.
		<<gstress>><<genglish>><<stress 2>><<englishskill>>

		<<link [[Next|English Lesson]]>><</link>>
	<</if>>

<<elseif $rng gte 41>>
  <<if $delinquency gte 400>>
  <<npc Doren>><<person1>>In a bid to keep the classroom ruckus down, Doren has the less controllable students separated, which includes you <<if $kylarenglishstate is "active">>and Kylar<</if>>. <<He>><<endevent>> seats you next to a quiet <<generates1>><<person1>><<person>> who never causes any trouble.

  After a few minutes the <<persons>> pen rolls on the floor. <<He>> reaches down to pick it up, rests a hand on your thigh and leans in close. "No one will believe you." <<His>> hand travels up your thigh.

	<<if $kylarenglishstate is "active">>
	Until Kylar grabs <<his>> wrist and tugs <<him>> closer.

	<<endevent>>
	<<npc Kylar>><<person1>>"Mine," Kylar whispers. <<He>> flashes the knife in <<his>> pocket. There are no arguments.

	<<endevent>>

	<<link [[Next|English Lesson]]>><</link>>

	<<else>>
	<<He>> sits back down, but continues to molest you.

	<<link [[Call for help|English Event2]]>><<detention 1>><</link>><<gdelinquency>>

	<<link [[Endure it|English Event2 Molest]]>><<stress 4>><<trauma 4>><</link>><<gstress>><<gtrauma>>

	<</if>>
  <<elseif $kylarenglishstate is "active">>
  Some delinquents take an interest in you. One tries to grope, but is cowed by a look from Kylar.

  <<link [[Next|English Lesson]]>><</link>>

  <<else>>
  Some delinquents take an interest in you, and sneak gropes and fondles while the teacher isn't looking.
  <<gtrauma>><<gstress>><<trauma 2>><<stress 2>>

  <<link [[Next|English Lesson]]>><</link>>
  <</if>>
<<elseif $rng gte 21>>
Doren asks you to demonstrate your grammar on the whiteboard. As you walk to the front of the classroom, a foot protrudes into your path and trips you up.
  <<if setup.clothes.lower[clothesIndex('lower', $worn.lower)].skirt is 1>>
	<<if $worn.under_lower.name is "naked" or $worn.under_lower.anus_exposed is 1>>
	Your skirt flares up as you fall to your knees, revealing your bare butt to the whole class. You struggle to your feet, face turning red, as the class whistles and jeers.
	<<stress 3>><<trauma 3>><<gstress>><<gtrauma>>

	<<else>>
	Your skirt flares up as you fall to your knees, revealing your $worn.under_lower.name to the whole class. You struggle to your feet, face turning red, as the class whistles and jeers.
	<<stress 1>><<trauma 1>><<gstress>><<gtrauma>>

	<</if>>
  <<else>>
  You fall forward onto your knees, and the class laughs as you struggle back to your feet.<<stress 1>><<gstress>>

  <</if>>
<<link [[Next|English Lesson]]>><</link>>
<<else>>
<<generates1>><<person1>>A breeze blows through the classroom, rustling hair and lifting a <<person1>><<persons>> paper off <<his>> desk. It lands on the floor next to you. <<He>> walks over and bends to pick it up, almost sticking <<his>> butt in your face.

  <<if $promiscuity gte 15>>
<<link [[Pinch|English Events Pinch]]>><</link>><<promiscuous2>>

  <</if>>
<<link [[Avert your eyes|English Lesson]]>><<endevent>><</link>>

<</if>>
<</widget>>

<<widget "eventsenglishsafe">>
<<if $halloween is 1 and $kylarenglishstate is "active" and $halloween_kylar is undefined>>
	<<npc Kylar>><<person1>>
	<<if $monthday is 31>>
		Kylar leans closer. "There's something I want to show you tonight," <<he>> whispers. Meet me in the park, after <<ampm 21 00>>."
	<<else>>
		Kylar leans closer. "There's something I want to show you on Halloween," <<he>> whispers. Meet me in the park, after <<ampm 21 00>>."
	<</if>>

	<<He>> wears a small smile for the rest of the lesson.
	<<set $halloween_kylar to 1>>

	<<link [[Next|English Lesson]]>><<endevent>><</link>>

<<elseif $rng gte 81>>
	<<npc Doren>><<person1>>The students take turns reciting verses of a poem. Doren sometimes recites a verse personally, <<his>> resounding voice commanding the class' attention.

	<<link [[Next|English Lesson]]>><<endevent>><</link>>

<<elseif $rng gte 61>>
	Doren has the class split into small groups.

	<<if $kylarenglishstate is "active">>
		No one wants to group up with Kylar, so the pair of you work alone.<<endevent>><<npc Kylar>><<person1>> <<He>> is overjoyed.
		<<glove>><<npcincr Kylar love 1>>
	<<elseif $cool gte 160>>
		People gravitate to you, wanting to be part of your group.
		<<lstress>><<ltrauma>><<stress -4>><<trauma -2>>
	<<elseif $cool lt 40>>
		No one wants to group up with you, so you sit alone in the corner. Doren gives you extra attention as a result.
		<<gtrauma>><<gstress>><<genglish>><<trauma 2>><<stress 2>><<englishskill>>
	<<else>>
		You join a group and work together on a small activity.
	<</if>>

	<<link [[Next|English Lesson]]>><<endevent>><</link>>

<<elseif $rng gte 51 and $kylarenglishstate is "active">>
	<<npc Doren>><<person1>> Doren approaches your table. "You okay there, <<lass>>?" <<he>> asks you. <<He>> glances at Kylar, who's absorbed in a sketch of you in <<nnpc_his "Kylar">> sketchbook.

	<<link [[Shake your head|English Kylar Moved]]>><</link>>

	<<link [[Nod|English Kylar Nod]]>><</link>>

<<elseif $rng gte 41>>
	<<npc Doren>><<person1>> Doren approaches your table and asks how you're getting on.

	<<link [[Ask for help|English Event1]]>><<set $phase to 1>><<stress 2>><<englishskill>><</link>><<gstress>><<genglish>>

	<<link [[Say you're fine|English Event1]]>><<set $phase to 0>><</link>>

<<elseif $rng gte 21>>
	Doren explains and demonstrates grammatical rules using the whiteboard.

	<<link [[Next|English Lesson]]>><<endevent>><</link>>

<<else>>
	<<npc Doren>><<person1>>
	Doren hands out worksheets for the class to complete. <<He>> doesn't mind the class talking amongst themselves while they work, resulting in a lively atmosphere.

	<<link [[Next|English Lesson]]>><<endevent>><</link>>

<</if>>
<</widget>>

<<widget "englishstart">>
<<endevent>>

<<if $NPCName[$NPCNameList.indexOf("Kylar")].state is "active" and $kylarenglish is undefined>>
	<<set $kylarenglish to 0>><<set $kylarenglishstate to "watching">>
	<<npc Kylar>><<person1>>You spot Kylar sat alone in the back corner. <<He>> meets your gaze, blushes and looks away.

	<<link [[Next|English Lesson]]>><<endevent>><</link>>

<<elseif $NPCName[$NPCNameList.indexOf("Kylar")].state is "active" and ($kylarenglish is 0 or $kylarenglish is 3) and $NPCName[$NPCNameList.indexOf("Kylar")].love lt 30>>
	<<set $kylarenglishstate to "watching">>

	<<npc Kylar>><<person1>>You feel Kylar stare at you as you take your seat, but <<he>> looks away whenever you glance at <<him>>.

	<<link [[Next|English Lesson]]>><<endevent>><</link>>

<<elseif $NPCName[$NPCNameList.indexOf("Kylar")].state is "active" and ($kylarenglish is 0 or $kylarenglish is 3) and $NPCName[$NPCNameList.indexOf("Kylar")].love lt 60>>
	<<set $kylarenglishstate to "watching">>

	<<npc Kylar>><<person1>>You feel Kylar stare at you as you take your seat, but <<he>> looks away whenever you glance at <<him>>.

	Chair legs scrape across the ground. Kylar shuffles through the room, books clutched to <<his>> chest and eyes fixed on the empty seat beside you. <<He>> almost makes it. Then a <<generatey2>><<person2>><<person>> shoves <<person1>><<him>> aside and takes the seat for <<person2>><<himself>>. Kylar glares at the <<person>>, but returns to <<person1>><<his>> original seat without a word.

	<<link [[Next|English Lesson]]>><<endevent>><</link>>

<<elseif $NPCName[$NPCNameList.indexOf("Kylar")].state is "active" and ($kylarenglish is 0 or $kylarenglish is 3) and $NPCName[$NPCNameList.indexOf("Kylar")].love gte 60>>
	<<set $kylarenglishstate to "absent">>

	<<npc Kylar>><<person1>>You feel Kylar stare at you as you take your seat, but <<he>> looks away whenever you glance at <<him>>.

	Chair legs scrape across the ground. Kylar shuffles through the room, books clutched to <<his>> chest and eyes fixed on the empty seat beside you. <<He>> almost makes it. A <<generatey2>><<person2>><<person>> shoves <<person1>><<him>> aside and takes the seat for <<person2>><<himself>>. <<He>> doesn't give Kylar a single glance.

	Someone screams. <<person1>>Kylar remains stood, a knife in <<his>> hand. <<He>> glares at the <<person2>><<person>> through <<person1>><<his>> dark fringe. The <<person2>><<person>> scrambles backwards over the desk, knocking it over and tumbling to the ground. The other students fall over each other trying to reach the door.

	Doren leaps onto <<nnpc_his "Doren">> table and roars. The screams stop. The scrambling stops. Kylar drops the knife. Everyone stares at Doren, who climbs down and scoops up the weapon. <<nnpc_He "Doren">> grips Kylar's arm. "You're being a right pain," <<nnpc_he "Doren">> says. "Come on, let's not delay the class long." Kylar hangs <<person1>><<his>> head as <<hes>> pulled from the room.

	<<endevent>><<npc Doren>><<person1>>
	The class breaks into nervous laughter as the door shuts. Doren soon returns, without Kylar. Students pester <<him>> for information, but <<he>> won't say a word.

	<<if $kylarenglish is 0>>
		<<if $loveInterest.primary is "None">>
			<<set $loveInterest.primary to "Kylar">>
			Kylar is now your love interest! You aren't sure if you agreed to this.

		<<else>>
			Kylar can now be claimed as your love interest! You aren't sure if you agreed to this.
You can change your love interest in the "Attitudes" menu.

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

	<<set $kylarenglish to 1>>
	<<link [[Next|English Lesson]]>><<endevent>><</link>>

<<elseif $NPCName[$NPCNameList.indexOf("Kylar")].state is "active" and $kylarenglish is 1 and $NPCName[$NPCNameList.indexOf("Kylar")].love gte 60>>
	<<set $kylarenglish to 2>><<set $kylarenglishstate to "active">>

	<<npc Kylar>><<person1>>You feel Kylar stare at you as you take your seat. <<He>> stands and walks across the classroom, eyes fixed on the desk beside you. No one stops <<him>>. <<His>> breathing is heavy as <<he>> sits.

	<<link [[Sit somewhere else|English Kylar Move]]>><<npcincr Kylar love -5>><</link>><<lllove>>

	<<link [[Stay seated|English Lesson]]>><<endevent>><<npcincr Kylar love 1>><<npcincr Kylar rage -1>><</link>><<glove>><<lksuspicion>>

<<elseif $NPCName[$NPCNameList.indexOf("Kylar")].state is "active" and $kylarenglish is 2 and $NPCName[$NPCNameList.indexOf("Kylar")].love gte 60>>
	<<set $kylarenglishstate to "active">>

	<<npc Kylar>><<person1>>You feel Kylar stare at you as you take your seat. <<He>> stands and walks across the classroom, eyes fixed on the desk beside you. <<His>> breathing is heavy as <<he>> sits.

	<<link [[Sit somewhere else|English Kylar Move]]>><<npcincr Kylar love -5>><</link>><<lllove>>

	<<link [[Stay seated|English Lesson]]>><<endevent>><<npcincr Kylar love 1>><<npcincr Kylar rage -1>><</link>><<glove>><<lksuspicion>>

<<elseif $NPCName[$NPCNameList.indexOf("Kylar")].state is "active" and $kylarenglish is 2>>
	<<set $kylarenglishstate to "watching">>

	<<npc Kylar>><<person1>>You feel Kylar stare at you as you take your seat, but <<he>> looks away whenever you glance at <<him>>.

	<<link [[Next|English Lesson]]>><<endevent>><</link>>

<<else>>
	<<set $kylarenglishstate to "absent">>

	<<link [[Next|English Lesson]]>><<endevent>><</link>>

<</if>>
<</widget>>

:: Widgets Events History [widget]
<<widget "eventshistory">>
<<if $rng gte 91>>
	<<npc Winter>><<person1>>Winter stops beside your desk.
	<<if $worn.neck.collared is 1>>
		"What is that around your neck?" <<he>> asks.

		<<link [[Answer|History Lesson Collar]]>><<trauma 6>><<stress 6>><</link>><<gtrauma>><<gstress>>

		<<link [[Conceal it|History Lesson Conceal]]>><<detention 3>><</link>><<gdelinquency>>

	<<elseif ($cat gte 6 and $transformationParts.cat.ears isnot "hidden") or ($wolfgirl gte 4 and $transformationParts.wolf.ears isnot "hidden") or ($demon gte 6 and $transformationParts.demon.horns isnot "hidden") or ($bunny gte 6 and $transformationParts.bunny.ears isnot "hidden")>>
		"What are these on your head?" <<he>> asks.

		<<if $demon gte 6>>
			<<link [[Answer honestly|History Lesson Horns]]>><</link>>
		<<else>>
			<<link [[Answer honestly|History Lesson Ears]]>><</link>>
		<</if>>

		<<link [[Make excuse|History Lesson Excuse]]>><</link>>

	<<elseif $history gte 600>>
		"Good," <<he>> nods, reading over your shoulder. "Good work."<<stress -2>><<lstress>>

		<<link [[Next|History Lesson]]>><<endevent>><</link>>
	<<else>>
		You sense <<him>> reading over your shoulder.

		<<He>> tuts loudly. "I guess we need to go over that part again."

		Someone nearby snickers.
		<<stress 2>><<gstress>>

		<<link [[Next|History Lesson]]>><<endevent>><</link>>
	<</if>>

<<elseif $rng gte 89 and $robinhistory is "seat">>
	<<npc Robin>><<generatey2>><<person2>>
	A paper airplane flies across the room, hitting Winter in the back.

	<<person1>>"It was <<him>>," says a <<person2>><<person>>, pointing at Robin.

	<<if random(1, 2) is 2>>
		Winter glares at Robin. "Out. Now."

		Robin freezes. "B-but I-I-"

		"I won't tolerate that kind of behaviour in my classroom." Robin hangs <<person1>><<his>> head, and pushes <<his>> chair away from the desk.

		<<link [[Defend Robin|History Robin Defend]]>><<npcincr Robin love 1>><<detention 1>><</link>><<gdelinquency>><<glove>>

		<<link [[Stay quiet|History Robin Quiet]]>><<npcincr Robin dom -1>><</link>><<ldom>>

	<<else>>
		Winter glares at the <<person>>. "Out. Now." Thwarted, the <<person>> rises from <<his>> seat and leaves the room.

		<<link [[Next|History Lesson]]>><<endevent>><</link>>

	<</if>>

<<elseif $rng gte 76>>
	<<generates1>><<person1>>You catch a normally shy <<person>> checking you out from across the room.

	<<if $exhibitionism gte 35 and setup.clothes.lower[clothesIndex('lower', $worn.lower)].skirt is 1 and !$worn.under_lower.type.includes("naked")>>
		<<link [[Flash|History Flash]]>><</link>><<exhibitionist2>>

	<<elseif $exhibitionism gte 55 and setup.clothes.lower[clothesIndex('lower', $worn.lower)].skirt is 1>>
		<<link [[Flash|History Flash]]>><</link>><<exhibitionist4>>

	<<else>>
		<<link [[Tease|History Tease]]>><</link>><<exhibitionist1>>

	<</if>>

	<<link [[Ignore|History Lesson]]>><<endevent>><</link>>

<<elseif $rng gte 64 and $robinhistory is "seat">>
	<<npc Robin>><<generatey2>><<person2>>
	A <<person>> leans over Robin's desk, grinning. <<His>> friends watch <<him>>. <<He>> asks something, so quiet you can barely make out the words. "Are you still a virgin?"

	<<if $NPCName[$NPCNameList.indexOf("Robin")].dom gte 80>>
		"That's none of your business," Robin answers.

	<<else>>
		Robin looks uncomfortable, and doesn't answer.

	<</if>>

	The <<person>> returns to <<his>> friends.

	"I wonder who took it," one says aloud. <<person1>>"Doesn't <<he>> seem so innocent?"

	<<if $robinromance is 1>>
		One of them whispers and points at you.
	<<else>>
		"Was it someone in this class?" another whispers.
	<</if>>

	More furtive whispering. You make out some. "I don't have a crush on <<him>>!"

	<<set $rng to random(1, 4)>>
	<<if $rng is 4>>
		"I bet <<hes>> a great kisser."
	<<elseif $rng is 3>>
		"Liar."
	<<elseif $rng is 2>>
		"You should ask <<him>> out."
	<<else>>
		"<<Hes>> so cute. Especially when <<he>> blushes."
	<</if>>

	They continue to fawn as Robin sinks into <<his>> chair.

	<<link [[Next|History Lesson]]>><<endevent>><</link>>

<<elseif $rng gte 52>>
	Winter has the class practise sourcing information from the various bookshelves around the edge of the room. As you move between the shelves, you feel a tug on your $worn.lower.name and hear them tear. In the bustle of the classroom, someone must have closed a cupboard on <<if $worn.lower.plural is 1>>them<<else>>it<</if>> without you noticing.
	<<set $worn.lower.integrity -= 10>>
	<<integritycheck>>
	<<exposure>>

	<<if !$worn.lower.type.includes("naked")>>
		<<gstress>><<stress 2>>

	<<else>>

		However, things are worse than you first assumed. You look down to find your <<undies>> completely exposed, much to the amusement of your classmates. You hasten to find a towel to cover yourself with, before your humiliation becomes too much to bear.
		<<trauma 2>><<gtrauma>><<stress 2>><<gstress>>

		<<towelup>>
	<</if>>
	<<link [[Next|History Lesson]]>><<endevent>><</link>>

<<elseif $rng gte 35 and $robinhistory is "seat">>
	<<npc Robin>><<person1>>
	Winter asks Robin to come to the front of the class. "I have some historical garments I need modelled. They're in your size."

	<<if $NPCName[$NPCNameList.indexOf("Robin")].trauma gte 20>>
		Robin stares at the window, forcing Winter to repeat <<himself>>. Robin shuffles from <<his>> seat and disappears behind the screen.

		<<He>> reppears a few moments later, wearing a
		<<if random(1, 2) is 2>>
			dress.
		<<else>>
			soldier's uniform.
		<</if>>
		<<He>> stares at the carpet, and doesn't say a word.

		Winter begins discussing the outfit, but Robin's demeanor makes the class uncomfortable. You included. Winter cuts the demonstration short.

		"Please change and come with me," Winter says in a soft voice. Robin does as instructed, and follows Winter outside.

		Winter returns without Robin a few minutes later. The lesson continues.

		<<set $robinhistory to "missing">>

		<<link [[Next|History Lesson]]>><<endevent>><</link>>

	<<else>>
		Robin nods, and walks behind the screen at the corner of the classroom.

		<<if random(1, 2) is 2>>
			<<He>> reappears wearing a <<nnpc_gendery "Robin">>'s traditional outfit, and a genuine smile. The segment proves to be interesting. Winter asks Robin to perform a small show to demonstrate the outfit's historical significance, acting appropriately per <<his>> attire.

			Robin changes back, and sits beside you, still smiling.

			<<link [[Next|History Lesson]]>><<endevent>><</link>>

		<<else>>
			Winter asks Robin to hurry up. Robin's head peeks around the screen for a moment.

			"I-I don't know if I can wear this," <<he>> replies. "It's for
			<<if $pronoun is "m">>
				girls."
			<<else>>
				boys."
			<</if>>

			"Don't be bashful," Winter says. "We have a lot to cover."

			Robin steps out, wearing an old
			<<if $pronoun is "m">>
				dress. The skirt is quite short.
			<<else>>
				soldier's uniform. It leaves a lot of <<his>> chest exposed.
			<</if>>

			The segment proves interesting, though Robin is uncomfortable. Winter asks <<him>> to perform a small show to demonstrate the outfit's historical significance, acting appropriately per <<his>> attire. Robin plays along, but is careful not to let the skimpy garment reveal too much.

			Robin changes back, and sits beside you, looking relieved.

			<<link [[Next|History Lesson]]>><<endevent>><</link>>

		<</if>>
	<</if>>
<<elseif $rng gte 27>>
	<<npc Winter>><<person1>>Winter asks you to come to the front of the class. "I have some historical garments I need modelled, they're in your size." <<He>> gestures to the screen at the corner of the room.

	<<if $delinquency gte 400>>
		Behind the screen you find a revealing traditional outfit. You hold it up for a closer look. It won't leave much to the imagination; there's barely enough fabric to conceal your <<breasts>> and crotch. It looks like it'll barely fit you, and the fabric is so taut you'll need to undress before putting it on.

		<<link [[Put it on|History Events Revealing Dress]]>><<stress 6>><<trauma 6>><</link>><<gstress>><<gtrauma>>

		<<link [[Refuse to wear it|History Events Refusal]]>><<detention 2>><</link>><<gdelinquency>>

	<<elseif $delinquency gte 200>>
		<<if $player.gender_appearance is "m">>
			Behind the screen you find a traditional girl's outfit.
			<<if $player.gender is "f" or $player.gender is "h">>
				The class thinks you're a boy, so if you wear this in front of them, they'll think you're crossdressing.
			<</if>>
			It looks like it'll barely fit you, and the fabric is taut so you'll need to undress before putting it on.

			<<link [[Put it on|History Events Dress]]>><<stress 2>><<trauma 2>><</link>><<gstress>><<gtrauma>>

			<<link [[Refuse to wear it|History Events Refusal]]>><<detention 1>><</link>><<gdelinquency>>

		<<elseif $player.gender_appearance is "f">>
			Behind the screen you find a traditional boy's outfit.
			<<if $player.gender is "m" or $player.gender is "h">>
				The class thinks you're a girl, so if you wear this in front of them, they'll think you're crossdressing.
			<</if>>
			It looks like it'll barely fit you, and the fabric is taut so you'll need to undress before putting it on.

			<<link [[Put it on|History Events Dress]]>><<stress 2>><<trauma 2>><</link>><<gstress>><<gtrauma>>

			<<link [[Refuse to wear it|History Events Refusal]]>><<detention 1>><</link>><<gdelinquency>>

		<</if>>
	<<else>>
		Behind the screen you find
		<<if $history gte 500>>
			<<print either("a 19th century American merchant's outfit","a 17th century Caribbean privateer outfit","some late Victorian merchant's garb","a replica WWI officer's uniform")>>.
		<<elseif $history gte 300>>
			<<print either("a bright, old-fashion outfit","a Pirate costume","clothes like people wear in old photos","a soldier costume")>>.
		<<else>>
			some <<print either("old outfit","traditional outfit","old-style clothes")>>.
		<</if>>
		<<if $cool lt 119 and $rng lte 33>>
			Baggy, but not baggy enough to fit over your normal clothes. You quickly change.
			It's an interesting segment, and you feel like you learned something. Winter has you change back before you get too warm.
			<<ghistory>><<historyskill 1>>

			As you take a seat, you feel itchy. It quickly rises to an irresistible need to scratch, but scratching only makes it worse and soon your whole body
			feels like it's burning. You hear some students at the desk in the corner by the screen whispering and snickering, you see them watching you and smiling.

			They put something in your clothes. Itching powder.

			<<link [[Endure it|History Cleanup]]>><<endevent>><<pain 3>><<stress 20>><<set $phase to 3>><</link>><<gpain>><<ggstress>>

			<<link [[Rush to toilet to clean off (0:10)|History Cleanup]]>><<endevent>><<detention 2>><<set $phase to 0>><<stress 10>><</link>><<gdelinquency>>

			<<link [[Tell teacher and ask to go clean off (0:10)|History Cleanup]]>><<endevent>><<status -10>><<set $phase to 1>><</link>><<lcool>>

			<<if $exhibitionism gte 35>>
				<<link [[Strip and clean off there|History Cleanup]]>><<endevent>><<set $phase to 2>><</link>>
				<<if $worn.under_lower.type.includes("naked") or ($worn.under_upper.type.includes("naked") and $breastsize gte 1)>><<gdelinquency>><</if>>

			<</if>>
		<<else>>
			Baggy enough to easily fit over your other clothing. It's an interesting segment, and you feel like you learned something. Winter has you remove the outfit before you get too warm.<<ghistory>><<historyskill 1>>

			<<link [[Next|History Lesson]]>><<endevent>><</link>>
		<</if>>

	<</if>>

<<elseif $rng gte 17 and $robinhistory is "seat">>
	<<npc Robin>><<generatey2>><<person2>>
	A <<person>> leans between you and Robin. "You two make such a cute couple," <<he>> teases with a grin. "Are you dating?"

	<<if $NPCName[$NPCNameList.indexOf("Robin")].trauma gte 20>>
		Robin doesn't react. <<person1>><<He>> just stares down at <<his>> desk. <<He>> doesn't need this right now. You shoo the <<person2>><<person>> away.

		<<link [[Next|History Lesson]]>><<endevent>><</link>>

	<<else>>
		<<if $robinromance is 1>>
			<<link [[Say yes|History Robin Yes]]>><</link>>

			<<link [[Say no|History Robin No Lie]]>><<npcincr Robin love -3>><<npcincr Robin dom -1>><</link>><<lllove>><<ldom>>

		<<else>>
			<<link [[Say yes|History Robin Yes Lie]]>><</link>>

			<<link [[Say no|History Robin No]]>><</link>>

		<</if>>
		<<link [[Stay silent|History Robin Silent]]>><</link>>

	<</if>>

<<elseif $rng gte 8>>
	<<generates1>><<person1>>Winter leaves a <<person>> to hand out textbooks while leaving the class on an errand. When the <<person>> gets to you, <<he>> pauses, <<his>> face curling in a smirk.

	Rather than placing your book on your desk, <<he>> drops it on the floor beside you. "Oops, how clumsy of me. You'd better pick it up before the teacher gets back." The rest of the class turns to watch.

	<<if $skulduggery gte 100>><<set $skulduggerydifficulty to 400>>
		<<link [[Trick them|History Events Trick]]>><</link>><<skulduggerydifficulty>>

	<</if>>
	<<link [[Pick it up|History Events Pick]]>><<trauma 2>><<stress 2>><<status -10>><</link>><<gtrauma>><<gstress>><<lcool>>

	<<link [[Leave it|History Events Leave]]>><<stress 2>><<detention 2>><</link>><<gdelinquency>><<gstress>>

<<else>>
	<<npc Winter>><<person1>>Winter gives the class a thin smile as <<he>> unveils the pillory in the corner of the room. "We're fortunate to have such a rare antique! I'll need somebody to help me demonstrate its use." <<He>> looks around the room. "Any volunteers?"

	<<if $history gte 800>>
		No one volunteers, of course. Winter looks at you. "To the front of the class, please."

		<<link [[Refuse|History Lesson]]>><<detention 1>><<endevent>><</link>><<gdelinquency>>

		<<link [[Go to the front of the class|History Lesson Pillory]]>><<historyskill>><<stress 2>><</link>><<ghistory>><<gstress>>

	<<elseif $history gte 600>>
		No one volunteers, of course. Winter looks at you. "To the front of the class, please."

		<<link [[Refuse|History Lesson]]>><<endevent>><<detention 1>><</link>><<gdelinquency>>

		<<link [[Go to the front of the class|History Lesson Pillory]]>><<historyskill>><<stress 2>><</link>><<ghistory>><<gstress>>

	<<else>>
		<<link [[Keep your head down|History Lesson]]>><<endevent>><</link>>

		<<link [[Volunteer|History Lesson Pillory]]>><<historyskill>><<stress 2>><</link>><<ghistory>><<gstress>>

	<</if>>
<</if>>
<</widget>>

<<widget "eventshistorysafe">>
<<if $halloween is 1 and !$halloween_winter_key>>
	<<set $halloween_winter_key to 1>>
	<<npc Winter>><<person1>>Winter lectures to the class in <<his>> droning voice, but seems distracted. <<He>> looks in each of the room's cupboards, as if searching for something.

	<<link [[Next|History Lesson]]>><<endevent>><</link>>

<<elseif $rng gte 81>>
	<<npc Winter>><<person1>>Winter has the class read in silence, and glares whenever <<he>> hears furtive whispering.

	<<link [[Next|History Lesson]]>><<endevent>><</link>>

<<elseif $rng gte 71>>
	<<generates1>><<person1>><<set _coinflip to random(0,1)>>
	Winter calls a <<person>> to the front of the class and asks <<him>> to model some historical clothes.
	<<if $history gte 700>>
		The clothes look like <<print either("early-medieval servant's garb,", "Tudor-era court clothes for a noble family, possibly the St. Clairs,", "those worn by a medieval 'runner' or courier,", "a pre-industrial Naval uniform,", "stable-boy garb,")>> unless you are mistaken.
		<<if $rng % 2>>However, judging by the <<print either("stitching,","colouring","hems","cut","'Made in Indonesia' label")>> these are only replicas.<<else>>As far as you can tell, these are genuine historical garments.<</if>>
	<<elseif $history gte 300>>
		They look like the stuff from <<print either("those plays you do in English where people say 'Hark!'","that TV show about posh old people in a huge house.","that TV show with all the beards and axes.","those old War photos.","those Roman things where everyone wears sheets.")>>
		Winter gets unusually excited discussing the context of the clothes.
	<<else>>
		The clothes look really old-fashioned and Winter tells some great stories that really bring them to life.
	<</if>>

	Overall it is a fun, enjoyable and educational session.
	<<ghistory>><<historyskill>><<lstress>><<stress -1>>

	<<if _coinflip>>
		The <<person>> seems to enjoy being the centre of attention and plays along enthusiastically with Winter's tales.
	<<else>>
		The <<person>>, however, seems uncomfortable with being the centre of attention. <<He>> looks like <<he>> would rather be somewhere else.
	<</if>>

	<<link [[Next|History Lesson]]>><<endevent>><</link>>

<<elseif $rng gte 66 and $robinhistory is "seat">>
	<<npc Robin>><<person1>>
	Winter calls upon the class to ask a tough question. No one knows the answer, so <<nnpc_he Winter>> picks on Robin.

	<<if random(1, 2) is 2>>
		"Correct," Winter says in response to Robin's answer. <<nnpc_He Winter>> sounds impressed.<<gdom>><<npcincr Robin dom 1>>
	<<else>>
		"Incorrect," Winter says. "Please pay more attention."<<ldom>><<npcincr Robin dom -1>>

		Someone snickers. "As if you could do better," Winter snaps, silencing them.
	<</if>>

	<<link [[Next|History Lesson]]>><<endevent>><</link>>

<<elseif $rng gte 61>>
	Winter asks the class a question.
	<<if $history gte 400>>
		You think you know the answer.

		<<link [[Raise your hand|History Lesson Answer]]>><<stress 2>><<historyskill>><</link>><<ghistory>><<gstress>>

		<<link [[Remain silent|History Lesson]]>><<endevent>><</link>>

	<<else>>
		You don't know the answer.

		<<link [[Next|History Lesson]]>><<endevent>><</link>>

	<</if>>

<<elseif $rng gte 51>>
	<<generates1>><<person1>><<set _coinflip to random(0,1)>>
	A <<person>> near you falls asleep in class.
	<<if $rng % 2>>
		<<He>> quietly dozes for a few minutes, waking up sharply when <<print either("Winter drops a pen.", "a girl's chair scrapes.","the class door opens.","a boy falls off his chair.","another student walks past.","the student behind gives a gentle nudge.")>>
		<<He>> looks around in panic for a moment. You give <<him>> a subtle thumbs up, mouthing 'It's okay.'

		<<He>> nods back in thanks.
		<<gcool>><<status 1>>
	<<else>>
		Everything is fine until <<his>> head rolls back and <<he>> starts loudly snoring. Winter stops talking, glaring at the <<person>>.

		"Wake <<him>> up," Winter commands.

		<<if _coinflip>>Another student wakes<<else>>You wake<</if>> the <<personsimple>> up.

		"Thank you for joining us," Winter smiles. "Perhaps you can tell the head what has you so tired in detention."

		<<His>> cheeks flush.
	<</if>>

	<<link [[Next|History Lesson]]>><<endevent>><</link>>

<<elseif $rng gte 41>>
	<<npc Winter>><<person1>>
	Winter lectures to the class in <<his>> droning voice.
	<<if $tiredness lt 2000>>
		It's a job to stay awake.

		<<link [[Next|History Lesson]]>><<endevent>><<historyskill>><</link>><<ghistory>>

	<<else>>
		You do your best to stay awake, but you're so tired. You awaken several minutes later, fortunately Winter seems not to have noticed.

		<<link [[Next|History Lesson]]>><<endevent>><<set $tiredness -= 200>><</link>><<ltiredness>>

	<</if>>

<<elseif $rng gte 31>>
	Winter shows the class some excerpts from a historical movie.
	<<if $rng % 2>>
		It's a boring old film that everyone has seen. It's educational, but even Winter seems uninspired by this.
	<<else>>
		It's a brand new film with some amazing effects. Winter highlights some of the good history in the film, along with a few amusing inaccuracies.

		It's a fun session.
		<<ghistory>><<historyskill>><<lstress>><<stress -1>>
	<</if>>

	<<link [[Next|History Lesson]]>><<endevent>><</link>>

<<elseif $rng gte 21>>
	Winter has the class practise sourcing information from the various bookshelves around the edge of the room.

	<<link [[Next|History Lesson]]>><<endevent>><</link>>

<<elseif $rng gte 11>>
	Winter goes off on a tangent about the school, park and hospital being on the site of an ancient fortress. They mention rumours of underground lairs, murky dungeons and hidden escape tunnels.

	<<link [[Next|History Lesson]]>><<endevent>><</link>>

<<else>>
	Winter goes off on a tangent about the history of the local transportation system. You don't know if you've ever listened to anything so boring.

	<<link [[Next|History Lesson]]>><<endevent>><</link>>

<</if>>
<</widget>>

:: Widgets Events Swimming [widget]
<<widget "eventsswimming">>

<<if $rng gte 91 and $leftarm is "bound" and $rightarm is "bound">>
	<<npc Mason>><<person1>>
	Mason motions for you to come closer. You <<if $feetuse is "bound">>butterfly <</if>>kick your way to the side of the pool. "Why aren't you using your arms?" <<He>> notices your bindings. "Oh! Can you even get those off on your own? I think I have some scissors."

	<<link [[Be freed|Events Swimming Freed]]>><<unbind>><</link>>

	<<link [[Refuse|Events Swimming Freed Refuse]]>><</link>>

<<elseif $rng gte 81>>

	<<generates1>><<generates2>>A fight breaks out on the other side of the pool. As Mason swims over to break it up, a <<person1>><<person>> and <<person2>><<person>> swim up to you, and trap you between them. The <<person>> starts fondling your butt from behind while the <<person1>><<person>> speaks. "You look lonely, <<bitch>>. Don't worry, we're here to keep you company."

	<<link [[Shove them away|Swimming Lesson Shove]]>><</link>>

	<<if $cool lt 80>>
		<<link [[Endure it|Events Swimming Molestation]]>><<set $molestationstart to 1>><</link>><<gtrauma>><<gstress>><<garousal>>

	<<else>>
		<<link [[Endure it|Events Swimming Endure]]>><<trauma 2>><<stress 2>><<arousal 200>><</link>><<gtrauma>><<gstress>><<garousal>>

	<</if>>

<<elseif $rng gte 71>>

	<<set $rng to random(1, 100)>>
	<<npc Mason>><<generates2>><<person2>>

	Mason points at a <<person>> near you. "You. Climb out, I want to see your diving technique."

	<<if $rng % 5 == 0 and $swimnudecounter gte 3>>/*1 in 5 chance*/
		The <<person>> swims to the edge and climbs out. <<He>> goes to the diving board. A number of people stop to watch.

		<<link [[Next|Events Swimming NPC Dive]]>><<set $phase to 3>><</link>>

	<<elseif $rng % 5 == 0>>
		The <<person>> swims to the edge and whispers something to Mason. Mason flushes, says something back, and leaves. The <<person>> carries on swimming. A few moments later you hear a loud whistle. Mason calls everyone to the edge.

		"Class! Everyone here! It's time for a demonstration."

		<<link [[Next|Events Swimming NPC Dive]]>><<set $phase to 2>><</link>>

	<<elseif $rng % 10>>/*9 in 10 chance*/
		The <<person>> swims to the edge and climbs out. <<He>> goes to the diving board. A number of people stop to watch.

		<<link [[Next|Events Swimming NPC Dive]]>><<set $phase to 1>><</link>>

	<<else>>

		The <<person>> refuses. Mason tries to persuade <<him>> and finally threatens <<him>> with detention, but <<he>> will not dive.

		<<link [[Next|Swimming Lesson]]>><<endevent>><</link>>

	<</if>>

<<elseif $rng gte 61 and $worn.lower.type.includes("naked")>>
	<<set $rng to random(1, 100)>>
	<<npc Mason>><<person1>>Mason points at you. "Climb out, I want to see your diving technique."
	<<if pregnancyBellyVisible()>>
		Face flushing, you remind <<him>> that you're <<if $exposed gte 1>>naked and <</if>>pregnant. <<He>> looks to your belly, embarrassed. "Oh, my mistake..." <<He>> pauses briefly, "Wouldn't want to hurt the baby."

		<<link [[Next|Swimming Lesson]]>><<endevent>><</link>>
	<<elseif $exposed gte 1>>
		Face flushing, you remind <<him>> that you're naked beneath the water. <<He>> looks away, embarrassed.
		"You still need to dive," <<he>> says. "I'll try to distract the other students."

		<<He>> stands beside the pool opposite the diving platform. "Everyone, It's time for a demonstration." You wait until everyone is facing away from you, then <<nervously>> climb out.

		<<set $rng to random(1, 100)>>
		<<if $rng gte 81>>
			<<generates2>><<person2>>As you approach the diving platform however, a <<person>> turns. You cover your body as <<he>> shouts to <<his>> friends, attracting more attention. Mason tries to control the situation, but its no use. The whole class is soon staring at you.
			<<gtrauma>><<trauma 2>><<gstress>><<stress 2>>

			<<if $exhibitionism gte 75>>
				<<link [[Flaunt|Events Swimming Flaunt]]>><</link>><<exhibitionist5>>

			<</if>>
			<<link [[Dive anyway|Events Swimming Lewd Dive]]>><<trauma 2>><<stress 2>><</link>><<gtrauma>><<gstress>>

			<<link [[Run away|Event Swimming Run]]>><<detention 1>><</link>><<gdelinquency>>

		<<else>>
			You glance at the rest of the class, and see their backs still turned. You dive <<swimmingtext>> into the water.
			<<gstress>><<stress 2>><<gswimming>><<swimmingskilluse>>

			<<link [[Next|Swimming Lesson]]>><<endevent>><</link>>
		<</if>>

	<<else>>
		<<set $rng to random(1, 100)>>
		<<if $school gte 1600>>
			<<set $rng to random(1, 100)>>
			<<if $rng gte 81>>
				You climb out into the chilly air, and walk to the edge of the diving platform. You dive <<swimmingtext>> into the water.

				You come back up to the surface. Mason gives you a thumbs up, then directs <<his>> attention elsewhere. You feel like something is amiss, and then you realise, your $worn.under_lower.name <<underlowerplural>> gone!<<endevent>>

				<<generates1>><<person1>><<underlowerstrip>>
				You look around and see your clothes floating in the water. You swim towards them, but a <<person>> beats you to it. <<He>> holds them out of your reach and smiles at you. "Stripping in public? Who'd have known a nerd like you would be so perverted." <<He>> examines your exposed body, then checks if Mason is still distracted. "I wanna have some fun with you. You better do what I want or you'll be spending the rest of the lesson naked."

				<<link [[Accept|Events Swimming Molestation Single]]>><<set $molestationstart to 1>><</link>>

				<<link [[Refuse|Events Swimming Refuse]]>><</link>>

			<<else>>
				You climb out into the chilly air, and walk to the edge of the diving platform. You dive <<swimmingtext>> into the water.

				You come back up to the surface. Mason gives you a thumbs up, then directs <<his>> attention elsewhere. You feel like something is amiss, and then you realise, your $worn.under_lower.name <<underlowerplural>> gone! Seeing your clothes floating several feet away, you quickly swim over and cover up. You glance around the pool, you don't think anybody noticed.
				<<gstress>><<stress 2>><<gswimming>><<swimmingskilluse>>

				<<link [[Next|Swimming Lesson]]>><<endevent>><</link>>
			<</if>>

		<<else>>
			You climb out into the chilly air, and walk to the edge of the diving platform. You dive <<swimmingtext>> into the water.

			You come back up to the surface. Mason gives you a thumbs up, then directs <<his>> attention elsewhere. You feel like something is amiss, and then you realise, your <<undies>> <<underlowerplural>> gone! Seeing your clothes floating several feet away, you quickly swim over and cover up. You glance around the pool, you don't think anybody noticed.
			<<gstress>><<stress 2>><<gswimming>><<swimmingskilluse>>

			<<link [[Next|Swimming Lesson]]>><<endevent>><</link>>
		<</if>>
	<</if>>
<<elseif $rng gte 41>>
	<<generates1>><<person1>>A <<person>> seems to be following you around the pool. Whenever you look at <<him>> however, <<he>> averts <<his>> gaze.

	<<link [[Confront|Events Swimming Stalk Confront]]>><<detention 1>><</link>><<gdelinquency>>

	<<link [[Ignore|Events Swimming Stalk Ignore]]>><</link>>

<<elseif $rng gte 21>>
	<<generates1>><<generates2>><<generates3>>A <<person1>><<person>>, <<person2>><<person>>, and <<person3>><<person>> start picking on you, following and touching you beneath the water. You could try to swim away from them, but it might make things worse if you fail.

	<<link [[Swim away|Events Swimming Swim Away]]>><</link>><<swimmingdifficulty 1 800>>

	<<link [[Endure it|Evens Swimming Endure]]>><<stress 2>><<trauma 2>><<arousal 200>><</link>><<gtrauma>><<gstress>><<garousal>>

<<else>>
	<<if $worn.lower.type.includes("naked")>>
		<<set $pain += 20>>
		You feel a sharp pain in your butt. You floated too close to a skimmer and were pinched by the flap. You manage to not cry out and attract more attention to yourself.
		<<gstress>><<stress 2>>

		<<link [[Next|Swimming Lesson]]>><</link>>
	<<else>>
		<<set $worn.lower.integrity -= 4>>
		<<exposure>>
		Something tugs at your $worn.lower.name. You floated too close to a skimmer and your clothes are caught in its flap.
		<<integritycheck>>
		<<exposure>>
		<<if $worn.lower.type.includes("naked")>>
			You move away, but as you do so your clothing is cruelly ripped free from your body, disappearing through the skimmer in an instant, leaving you <<if $worn.upper.type.includes("naked")>>completely bare.<<else>>bare from the waist down.<</if>>
		<<else>>
			You move away, and your $worn.lower.name <<lowerplural>> torn free of the skimmer, intact but worse for wear.
		<</if>>

		<<link [[Next|Swimming Lesson]]>><</link>>
	<</if>>
<</if>>
<</widget>>

<<widget "eventsswimmingsafe">>
	<<npc Mason>><<person1>>
	<<if $rng gte 21>>
		Mason has the class practise <<print either("the front crawl", "the breaststroke", "the backstroke", "the butterfly stroke")>>.
		<<He>> patrols the outskirts of the pool, giving pointers to those who seem to be struggling.

	<<else>>
		Mason has the class practise diving.
		<<He>> watches from the outskirts of the pool, giving pointers to those who seem to be struggling.

	<</if>>

	<<if $swimmingskill lte 100>>
		You're not very good at swimming, and struggle to even stay above the surface of the water.
	<<elseif $swimmingskill lte 300>>
		You're not a very fast swimmer, and need to take frequent breaks due to the strain on your muscles.
	<<elseif $swimmingskill lte 500>>
		You're not a bad swimmer, but you've a long way to go.
	<<elseif $swimmingskill lte 900>>
		You're a pretty good swimmer, among the best in the class.
	<<else>>
		You're a very good swimmer, easily the best in the class.
	<</if>>

	<<link [[Next|Swimming Lesson]]>><<endevent>><</link>>

<</widget>>

<<widget "schoolpoolexposed">>
<<if $schoolstate is "fifth" and $swimnudecounter gte 1>>
	You step into the pool room. <<covered>>

<<else>>
	<<npc Mason>><<generatey2>><<generatey3>>You take a deep breath, and walk into the pool room with your <<lewdness>> on display.
	A <<person2>><<person>> sees you first. <<He>> clutches <<his>> hands to <<his>> face and squeals.
	The rest of the class follow suit, with varying reactions ranging from glee to embarrassment and amusement to displeasure in the case of the more prudish students.
	<<if $player.penisExist>>
		<<if $penissize is 4>>
			<<if $malechance lt 100>>
				The girls' eyes seem glued to your <<genitals>>, and a few start exchanging excited whispers with each other.
				A few of the boys are clearly less than gleeful at your naked presence. <<if $malechance gt 0>>Others seem interested.<</if>>
			<<else>>
				The boys stare your <<genitals>>, and a few start exchanging excited whispers with each other.
			<</if>>
			<<incgpenisinsecurity>>
			<<status +10>><<gcool>>
		<<elseif $penissize lte 1>>
			A few of the girls exchange whispers and start giggling to themselves, and some of the boys are sporting rather smug expressions.
			<<incgpenisinsecurity>>
		<</if>>
	<</if>>

	<<person1>>Mason has <<his>> back to you. <<He>> turns, then quickly averts <<his>> eyes. "Your swimsuit," <<he>> manages. "Go get it."
	<<detention 6>>

	"Oh?" you say. You lift one hand to your brow, as if scanning the horizon. "I wonder where I left it." The class erupts into laughter.

	Mason refuses to look at you. <<Hes>> blushing. "Get back in the changing room. P-please."

<</if>>
	<<maleicon>><<link [[Boy's changing room|School Boy Changing Room]]>><<endevent>><</link>>

	<<femaleicon>><<link [[Girl's changing room|School Girl Changing Room]]>><<endevent>><</link>>

<</widget>>

:: Lesson Effects Widget [widget]

<<widget "swimminglessoneffects">>

<<advancelesson>>
<<stress _lesson_progress>>
<<tiredness _lesson_progress>>

<<if $phase is 1>>
	<<set $phase to 0>>
	<<if $exposed gte 1 and $swimall isnot 1>>
		The bell rings, signifying the end of the lesson. You wait as the other students leave. Some students linger, doubtlessly hoping to get a nice view when you climb out, but Mason herds them away, giving you some privacy.

	<<elseif $exposed lte 0>>
		The bell rings, signifying the end of the lesson. You climb out of the pool.

	<</if>>

	<<if $exposed lte 0 or $swimall is 1>>
		<<maleicon>><<link [[Boys' changing room|School Boy Changing Room]]>><</link>>

		<<femaleicon>><<link [[Girls' changing room|School Girl Changing Room]]>><</link>>

	<</if>>

	<<if $exposed gte 1>>
		<<link [[Grab some towels and enter the boy's changing room|School Boy Changing Room]]>><<towelupm>><</link>>

		<<link [[Grab some towels and enter the girl's changing room|School Girl Changing Room]]>><<towelup>><</link>>

	<</if>>
<<else>>
	<<if $exposed gte 1>>
		<<set $danger to random(1, 10000)>><<set $dangerevent to 0>>
		<<if $danger gte (8900 - $allure)>>
			<<eventsswimming>>
		<<else>>
			<<eventsswimmingsafe>>
		<</if>>
	<<elseif $exposed lte 0>>
		<<set $danger to random(1, 10000)>><<set $dangerevent to 0>>
		<<if $danger gte (8900 - ($allure / 5))>>
			<<eventsswimming>>
		<<else>>
			<<eventsswimmingsafe>>
		<</if>>
	<</if>>
<</if>>
<</widget>>

<<widget "school_pool_swap">>
<<if $schoolrep.crossdress gte 1 and $school_pool_swap isnot true and $skulduggery gte 400>>

	<<if $minute lte 40>>
		An idea strikes you. Perhaps you could distract from your reputation as a crossdresser.

		<<link [[Swap the boys' and girls' clothes (0:20)|School Changing Swap]]>><<schoolrep crossdress -1>><<pass 20>><<detention 12>><<set $school_pool_swap to true>><</link>><<ggdelinquency>>

	<<else>>
		An idea strikes you. Perhaps you could distract from your reputation as a crossdresser.

		You peek into the pool. The lesson will end soon. You'd need more time to prepare.

	<</if>>
<</if>>
<</widget>>

<<widget "bookRentalOptions">>
<<if $studyBooks is undefined>>
	<<set $studyBooks to {}>>
	<<set $studyBooks.rented to "none">>
	<<set $studyBooks.stolen to "none">>
<</if>>
<<if ($schoolday isnot 1 or $schoolstate is "early" or $schoolstate is "late")>>
	The library is eerily quiet.
<<else>>
	There are a number of textbooks available for rental.
	<<if $studyBooks.rented isnot "none">>
		You must return your rented book before checking out another. Your current rental is <<if $book_rent_timer gt 0>>due back in $book_rent_timer day<<if $book_rent_timer gt 1>>s<</if>>.<<elseif $book_rent_timer is 0>>due today.<<else>>overdue.<</if>>
	<<else>>
		You have no rented books to return.
	<</if>>
<</if>>

<<switch $studyBooks.rented>>
	<<case "science">>
		<<link [[Return your science textbook|Book Rental]]>><<set $bookRent to "return">><</link>>

	<<case "maths">>
		<<link [[Return your maths textbook|Book Rental]]>><<set $bookRent to "return">><</link>>

	<<case "English">>
		<<link [[Return your English textbook|Book Rental]]>><<set $bookRent to "return">><</link>>

	<<case "history">>
		<<link [[Return your history textbook|Book Rental]]>><<set $bookRent to "return">><</link>>

	<<case "Raul and Janet">>
		<<link [[Return "Raul and Janet"|Book Rental]]>><<set $phase to 5>><<set $bookRent to "return">><</link>>

	<<case "Pinch">>
		<<link [[Return the olive-coloured book|Book Rental]]>><<set $phase to 6>><<set $bookRent to "return">><</link>>

	<<default>>
<</switch>>
<<switch $studyBooks.stolen>>
	<<case "science">>
		<<link [[Return your stolen science textbook|Book Rental Return Stolen]]>><</link>>

	<<case "maths">>
		<<link [[Return your stolen maths textbook|Book Rental Return Stolen]]>><</link>>

	<<case "English">>
		<<link [[Return your stolen English textbook|Book Rental Return Stolen]]>><</link>>

	<<case "history">>
		<<link [[Return your stolen history textbook|Book Rental Return Stolen]]>><</link>>

	<<case "Raul and Janet">>
		<<link [[Return your stolen copy of "Raul and Janet"|Book Rental Return Stolen]]>><<set $phase to 5>><</link>>

	<<case "Pinch">>
		<<link [[Return the olive-coloured book|Book Rental Return Stolen]]>><<set $phase to 6>><</link>>

	<<default>>
<</switch>>
<<sydneySchedule>>
<<if _sydney_location is "library">>
	<<if $money gte 2000>>
		<<if $studyBooks.rented is "none">>
			<<if $studyBooks.stolen isnot "science">>
				<<link [[Rent a science textbook (£20)|Book Rental]]>><<set $money -= 2000>><<set $bookRent to "rent">><<set $phase to 1>><<set $studyBooks.rented to "science">><</link>> | + Passive Science

			<</if>>
			<<if $studyBooks.stolen isnot "maths">>
				<<link [[Rent a maths textbook (£20)|Book Rental]]>><<set $money -= 2000>><<set $bookRent to "rent">><<set $phase to 2>><<set $studyBooks.rented to "maths">><</link>> | + Passive Maths

			<</if>>
			<<if $studyBooks.stolen isnot "English">>
				<<link [[Rent an English textbook (£20)|Book Rental]]>><<set $money -= 2000>><<set $bookRent to "rent">><<set $phase to 3>><<set $studyBooks.rented to "English">><</link>> | + Passive English

			<</if>>
			<<if $studyBooks.stolen isnot "history">>
				<<link [[Rent a history textbook (£20)|Book Rental]]>><<set $money -= 2000>><<set $bookRent to "rent">><<set $phase to 4>><<set $studyBooks.rented to "history">><</link>> | + Passive History

			<</if>>
			<<if $english gte 300 and $studyBooks.stolen isnot "Raul and Janet">>
				<<link [[Rent "Raul and Janet" (£20)|Book Rental]]>><<set $money -= 2000>><<set $bookRent to "rent">><<set $phase to 5>><<set $studyBooks.rented to "Raul and Janet">><</link>>

			<</if>>
			<<if (($month is "november" and $monthday gte 24) or $month is "december") and $studyBooks.stolen isnot "Pinch">>
				<<link [[Rent the olive-coloured book (£20)|Book Rental]]>><<set $money -= 2000>><<set $bookRent to "rent">><<set $phase to 6>><<set $studyBooks.rented to "Pinch">><</link>>

			<</if>>
		<<else>>
			<<if $money gte 1500 and $book_rent_timer lte 13 and $book_rent_timer gt 0>>
				<<link [[Renew your book rental (£15)|Book Rental]]>><<set $money -= 1500>><<set $bookRent to "renew">><</link>>

			<<elseif $money lt 1500>>
				You can't afford to renew your rental.

			<<else>>
			<</if>>
		<</if>>
	<<else>>
		You can't afford to rent a textbook.

	<</if>>
<<else>>
	<<if ($schoolday isnot 1 or $schoolstate is "early" or $schoolstate is "late")>>
		<<if $studyBooks.stolen is "none">>
			<<if $studyBooks.rented isnot "science">>
				<<link [[Steal a science textbook|Book Rental]]>><<set $bookRent to "steal">><<set $studyBooks.stolen to "science">><</link>><<crime>> | + Passive Science

			<</if>>
			<<if $studyBooks.rented isnot "maths">>
				<<link [[Steal a maths textbook|Book Rental]]>><<set $bookRent to "steal">><<set $studyBooks.stolen to "maths">><</link>><<crime>> | + Passive Maths

			<</if>>
			<<if $studyBooks.rented isnot "English">>
				<<link [[Steal an English textbook|Book Rental]]>><<set $bookRent to "steal">><<set $studyBooks.stolen to "English">><</link>><<crime>> | + Passive English

			<</if>>
			<<if $studyBooks.rented isnot "history">>
				<<link [[Steal a history textbook|Book Rental]]>><<set $bookRent to "steal">><<set $studyBooks.stolen to "history">><</link>><<crime>> | + Passive History

			<</if>>
			<<if $english gte 300 and $studyBooks.rented isnot "Raul and Janet">>
				<<link [[Steal "Raul and Janet"|Book Rental]]>><<set $phase to 5>><<set $bookRent to "steal">><<set $studyBooks.stolen to "Raul and Janet">><</link>><<crime>>

			<</if>>
			<<if (($month is "november" and $monthday gte 24) or $month is "december") and $studyBooks.stolen isnot "Pinch">>
				<<link [[Steal the olive-coloured book|Book Rental]]>><<set $phase to 6>><<set $bookRent to "steal">><<set $studyBooks.stolen to "Pinch">><</link>><<crime>>

			<</if>>
		<<else>>
			You can only carry one stolen book at a time.

		<</if>>
	<</if>>
<</if>>
<</widget>>

<<widget "homeStudyOptions">>
<<if $studyBooks isnot undefined>>
	<<switch $studyBooks.rented>>
		<<case "science">>
			/*<<link [[Study science (0:20)|$passage]]>><<set $study to 1>><<pass 20>><<set $phase to 1>><</link>><<gscience>>

*/
		<<case "maths">>
			/*<<link [[Study maths (0:20)|$passage]]>><<set $study to 1>><<pass 20>><<set $phase to 2>><</link>><<gmaths>>

*/
		<<case "English">>
			/*<<link [[Study English (0:20)|$passage]]>><<set $study to 1>><<pass 20>><<set $phase to 3>><</link>><<genglish>>

*/
		<<case "history">>
			/*<<link [[Study history (0:20)|$passage]]>><<set $study to 1>><<pass 20>><<set $phase to 4>><</link>><<ghistory>>

*/
		<<case "Raul and Janet">>
			<<link [[Read "Raul and Janet" (0:01)|ScarletBook1]]>><<pass 1>><<set $scarletExitPassage to $passage>><</link>>

		<<case "Pinch">>
			<<link [[Read the olive-coloured book (0:01)|Olive Book 1]]>><<pass 1>><<set $oliveExitPassage to $passage>><</link>>

		<<default>>
	<</switch>>
	<<switch $studyBooks.stolen>>
		<<case "science">>
			/*<<link [[Study science (0:20)|$passage]]>><<set $study to 1>><<pass 20>><<set $phase to 1>><</link>><<gscience>>

*/
		<<case "maths">>
			/*<<link [[Study maths (0:20)|$passage]]>><<set $study to 1>><<pass 20>><<set $phase to 2>><</link>><<gmaths>>

*/
		<<case "English">>
			/*<<link [[Study English (0:20)|$passage]]>><<set $study to 1>><<pass 20>><<set $phase to 3>><</link>><<genglish>>

*/
		<<case "history">>
			/*<<link [[Study history (0:20)|$passage]]>><<set $study to 1>><<pass 20>><<set $phase to 4>><</link>><<ghistory>>

*/
		<<case "Raul and Janet">>
			<<link [[Read "Raul and Janet" (0:01)|ScarletBook1]]>><<pass 1>><<set $scarletExitPassage to $passage>><</link>>

		<<case "Pinch">>
			<<link [[Read the olive-coloured book (0:01)|Olive Book 1]]>><<pass 1>><<set $oliveExitPassage to $passage>><</link>>

		<<default>>
	<</switch>>
<</if>>
<</widget>>

<<widget "droptowel">>
	<<if _toweldrop is "both">>
		<<generalStrip "upper">>
		<<generalStrip "lower">>
	<<elseif _toweldrop is "lower">>
		<<generalStrip "lower">>
	<<elseif _toweldrop is "upper">>
		<<generalStrip "upper">>
	<</if>>
<</widget>>

<<widget "checkdroptowel">>
	<<set _bottom to "nothing">>
	<<set _top to "nothing">>
	<<if $exhibitionism gte 55>>
		<<if ($worn.lower.name is "towel skirt" or $worn.lower.name is "large towel bottom") and $worn.over_lower.exposed gte 2>>
			<<if $worn.under_lower.exposed lt 1 or $exhibitionism gte 75>>
				<<set _bottom to "strip">>
			<</if>>
		<</if>>
		<<if ($worn.upper.name is "towel top" or $worn.upper.name is "large towel") and $worn.over_upper.exposed gte 2>>
			<<if $worn.upper.one_piece isnot 1 or _bottom is "strip">>
				<<set _top to "strip">>
			<</if>>
		<</if>>
	<</if>>

	<<if _bottom is "strip" and _top is "strip">>
		<<set _exlevel to ($worn.under_lower.exposed lt 1 ? 1 : 2)>>
		<<set _toweldrop to "both">>
	<<elseif _bottom is "strip">>
		<<set _exlevel to ($worn.under_lower.exposed lt 1 ? 1 : 2)>>
		<<set _toweldrop to "lower">>
	<<elseif _top is "strip">>
		<<set _exlevel to 1>>
		<<set _toweldrop to "upper">>
	<<else>>
		<<set _exlevel to 0>>
		<<set _toweldrop to "none">>
	<</if>>

<</widget>>

<<widget "destination_pool">>
<<if $bus is "boys">>
	<<link [[Next|School Boy Changing Room]]>><<endevent>><</link>>

<<else>>
	<<link [[Next|School Girl Changing Room]]>><<endevent>><</link>>

<</if>>
<</widget>>

<<widget "boy_lockers">>
<<if $panty_thief gte 1>>
	<<if $locker_mason is 2>>
		Mason keeps poking <<nnpc_his Mason>> head in. You won't be able to raid any more lockers today.

	<<elseif $time lte ($hour * 60 + 47)>>
		<<link [[Raid a locker (0:10)|School Boy Locker]]>><<pass 10>><<arousal 600>><</link>><<garousal>>

	<<else>>
		The lesson will be over soon. There's no time to raid a locker.

	<</if>>
<</if>>
<</widget>>

<<widget "girl_lockers">>
<<if $panty_thief gte 1>>
	<<if $locker_mason is 2>>
		Mason keeps poking <<nnpc_his Mason>> head in. You won't be able to raid any more lockers today.

	<<elseif $time lte ($hour * 60 + 47)>>
		<<link [[Raid a locker (0:10)|School Girl Locker]]>><<pass 10>><<arousal 600>><</link>><<garousal>>

	<<else>>
		The lesson will be over soon. There's no time to raid a locker.

	<</if>>
<</if>>
<</widget>>