code:
:: Science Event1 [nobr]
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

<<if $phase is 1>>
You raise your hand. Sirris points at you, and you give your answer. <<He>> smiles as you speak. "Well done! It's clear you've been doing your homework."

<<else>>
You keep quiet. You might be wrong anyway.

<</if>>

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

:: Science Event2 [nobr]
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

<<if $phase is 0>>
Sirris' concern is clearly not assuaged, but <<he>> nods and moves on.

<<link [[Next|Science Lesson]]>><<endevent>><</link>>
<<elseif $phase is 1>>
Despair overtakes you and you burst into tears. Sirris says something, but you can't make it out. You lose consciousness.

<<endevent>>

<<ambulance>>
<<elseif $phase is 2>>
Sirris spends a couple of minutes helping you fill some holes in your understanding. When it's over, you feel like you understand the material much better.

<<link [[Next|Science Lesson]]>><<endevent>><</link>>
<<elseif $phase is 3>>
Sirris nods and moves on.

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

:: Science Event3 [nobr]
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

<<if $scienceprogression gte 4 and $delinquency gte 1000>>

Sirris smiles at you. "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."

<<link [[Refuse|Science Refusal]]>><<detention 1>><</link>><<gdelinquency>>

<<link [[Undress|Science Undress]]>><<uppernaked>><<lowernaked>><<undernaked>><<set $phase to 4>><<set $sirrisdom += 1>><<scienceskill>><<stress 1>><</link>><<gstress>><<gscience>>

<<elseif $scienceprogression gte 3 and $delinquency gte 600>>
Sirris turns to the class. "Okay, can you quiet down please." The class shows <<him>> no acknowledgement.

Sirris smiles at you. "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."

<<link [[Refuse|Science Refusal]]>><<detention 1>><</link>><<gdelinquency>>

<<link [[Undress|Science Undress]]>><<uppernaked>><<lowernaked>><<undernaked>><<set $phase to 3>><<set $sirrisdom += 1>><<scienceskill>><<stress 1>><</link>><<gstress>><<gscience>>

<<elseif $scienceprogression gte 2 and $delinquency gte 400>>

Sirris smiles at you. "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."

<<link [[Refuse|Science Refusal]]>><<detention 1>><</link>><<gdelinquency>>

<<link [[Undress|Science Undress]]>><<uppernaked>><<lowernaked>><<undernaked>><<set $phase to 2>><<set $sirrisdom += 1>><<scienceskill>><<stress 1>><<set $scienceprogression to 3>><</link>><<gstress>><<gscience>>

<<elseif $scienceprogression gte 1 and $delinquency gte 10>>
Sirris smiles at you. "I need you to undress for this part. Don't worry, you can keep your underwear on."

	<<if $undertype isnot "naked" and $undertype isnot "chastity">>

	<<link [[Refuse|Science Refusal]]>><<detention 1>><</link>><<gdelinquency>>

	<<link [[Undress|Science Undress]]>><<uppernaked>><<lowernaked>><<set $phase to 1>><<set $sirrisdom += 1>><<scienceskill>><<stress 1>><<set $scienceprogression to 2>><</link>><<gstress>><<gscience>>

	<<else>>
	You speak as quietly as possible, making sure only Sirris can hear. "I'm... I'm not wearing any."

		<<if $delinquency gte 400>>
		<<He>> blushes slightly. "That's against school rules you know. I'm still going have to ask you to strip, it's important for the lesson."

		<<link [[Refuse|Science Refusal]]>><<detention 1>><</link>><<gdelinquency>>

		<<link [[Undress|Science Undress]]>><<uppernaked>><<lowernaked>><<undernaked>><<set $phase to 2>><<set $sirrisdom += 1>><<scienceskill>><<stress 1>><<trauma 1>><<set $scienceprogression to 2>><</link>><<gtrauma>><<gstress>><<gscience>>

		<<else>>
		<<He>> blushes slightly and averts <<his>> eyes from you. "Oh. T-take your seat please."<<gstress>><<gtrauma>>

		<<link [[Sit back down|Science Lesson]]>><<stress 1>><<trauma 1>><<endevent>><</link>>

			<<if $exhibitionism gte 75>>
			<<link [[Strip anyway|Science Undress]]>><<uppernaked>><<lowernaked>><<undernaked>><<set $phase to 5>><<set $scienceprogression to 2>><<scienceskill>><</link>><<gscience>><<exhibitionist5>>

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

<<else>>
Sirris smiles at you. "Don't worry, we're not going to do anything invasive." <<He>> turns to the class. "Okay, can you quiet down a bit please..."

<<He>> talks about various bones and organs, pointing to parts of your body to demonstrate their location. After a short while, <<he>> thanks you and sends you back to your seat.<<gscience>><<scienceskill>>

<<link [[Next|Science Lesson]]>><<endevent>><<set $scienceprogression to 1>><</link>>

<</if>>

:: Science Refusal [nobr]
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

<<if $phase is 3>>
This is going too far. You dress yourself with shaking fingers, doing your best to ignore the disappointed heckling from the class. You walk back to your seat. Sirris doesn't say anything, but refusing a teacher won't reflect well on you.

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

<<elseif $phase is 4>>

This is going too far. You dress yourself with shaking fingers, doing your best to ignore the disappointed heckling from the class. You walk back to your seat. Sirris doesn't say anything, but refusing a teacher won't reflect well on you.

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

<<else>>

You walk back to your seat. Sirris doesn't say anything, but refusing a teacher won't reflect well on you.

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

<</if>>

:: Science Undress [nobr]
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

<<if $phase is 1>>
You <<nervously>> remove your clothing, which immediately grabs the classroom's attention. Sirris continues with the lesson, pointing to parts of your body and explaining various functions. It's hard to pay attention to what <<he>> is saying with all these eyes on you, your <<lewdness>> on display.

<<person1>>Sirris finishes <<his>> demonstration. "Thank you for your help. You can take your seat. Don't forget your clothes." You dress yourself with shaking fingers and take your seat amongst your classmates, pulse still racing.

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

<<elseif $phase is 2>><<set $genderknown.pushUnique($npc)>>
You <<nervously>> remove your clothing, which immediately grabs the classroom's attention. Sirris continues with the lesson, pointing to parts of your body and explaining various functions. It's hard to pay attention to what <<he>> is saying with all these eyes on you, your <<lewdness>> on display.<<generates2>><<person2>>A <<person>> leans forward, eyes wide and almost falling out of <<his>> seat.

<<person1>>Sirris finishes <<his>> demonstration. "Thank you for your help. You can take your seat. Don't forget your clothes." You dress yourself with shaking fingers and take your seat amongst your classmates, pulse still racing.

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

<<elseif $phase is 3>><<set $genderknown.pushUnique($npc)>>
You <<nervously>> remove your clothing, which immediately grabs the classroom's attention. Sirris continues with the lesson, pointing to parts of your body and explaining various functions. It's hard to pay attention to what <<he>> is saying with all these eyes on you, your <<lewdness>> on display.<<generates2>><<person2>>A <<person>> leans forward, eyes wide and almost falling out of <<his>> seat.

<<person1>>Sirris finishes <<his>> demonstration. "Thank you for you help. There's one more thing I need you to do however. Could you climb onto my desk and spread your legs? I'd like to talk a bit about reproductive organs."

<<person2>>The <<person>> looks like <<hes>> about to start salivating. The rest of the class look no less excited at the prospect.

<<link [[Climb atop the desk|Science Undress Desk]]>><<set $sirrisdom += 1>><<scienceskill>><<stress 1>><<trauma 1>><<set $scienceprogression to 4>><</link>><<gtrauma>><<gstress>><<garousal>><<gscience>>

<<link [[Refuse|Science Refusal]]>><<clotheson>><<detention 1>><</link>><<gdelinquency>>

<<elseif $phase is 4>><<set $genderknown.pushUnique($npc)>>
You <<nervously>> remove your clothing, which immediately grabs the classroom's attention. Sirris continues with the lesson, pointing to parts of your body and explaining various functions. It's hard to pay attention to what <<he>> is saying with all these eyes on you, your <<lewdness>> on display.<<generates2>><<person2>>A <<person>> leans forward, eyes wide and almost falling out of <<his>> seat.

<<person1>>Sirris finishes <<his>> demonstration. "Thank you for you help. There's one more thing I need you to do however. Could you climb onto my desk and spread your legs? I'd like to talk a bit about reproductive organs."

<<person2>>The <<person>> looks like <<hes>> about to start salivating. The rest of the class look no less excited at the prospect.

<<link [[Climb atop the desk|Science Undress Desk]]>><<set $sirrisdom += 1>><<scienceskill>><<stress 1>><<trauma 1>><<set $scienceprogression to 4>><</link>><<gtrauma>><<gstress>><<garousal>><<gscience>>

<<link [[Refuse|Science Refusal]]>><<clotheson>><<detention 1>><</link>><<gdelinquency>>

<<elseif $phase is 5>><<set $genderknown.pushUnique($npc)>>
You <<nervously>> remove your clothing, which immediately grabs the classroom's attention. Sirris is blushing furiously now, but <<he>> does <<his>> best to continue with the lesson, pointing to parts of your body and explaining various functions. It's hard to pay attention to what <<he>> is saying with all these eyes on you, your <<lewdness>> proudly displayed.<<generates2>><<person2>>A <<person>> leans forward, eyes wide and almost falling out of <<his>> seat.<<exhibitionism5>>

<<person1>>Sirris finishes <<his>> demonstration. "Thank you for your help. You can take your seat. Don't forget your clothes."
You dress and take your seat, still woozy with power at having commanded everyone's attention so easily.

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

<</if>>

:: Science Undress Desk [nobr]
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

<<if $phase is 3>>

You do as instructed, and spread your legs, exposing yourself to the room. Sirris looks increasingly flustered, but continues regardless.<<set $arousal += 2000>>

	<<if $undertype is "chastity">>
	"As you can see, <<pshe>> is wearing a chastity belt, but we should be able to move it slightly for a better look..."<<person1>><<He>> starts tugging on your belt, this way and that, rubbing it against your <<genitalsstop>> A small moan escapes your lips, and the class erupts into laughter. Sirris recoils from the belt, and stammers. "We... This will do. OK class, listen closely."

	<<elseif $vaginaexist is 1>>
	<<He>> produces a speculum and inserts it into your vagina, before opening it and giving the class a clear view of your cervix. Your classmates crowd round for a closer look, shoving each other for a better position.

	<<person2>>"<<pShes>> getting wet!" exclaims the <<personcomma>> redoubling your humiliation. Sirris ignores the interjection and commences <<person1>><<his>> explanation of female anatomy, using your displayed womanhood as a prop.

	<<else>>
	<<He>> gently takes hold of the end of your penis with <<his>> thumb and forefinger. Your classmates crowd round for a closer look, shoving each other for a better position.

	<<person2>>"<<pShes>> getting hard!" exclaims the <<personcomma>> redoubling your humiliation. Sirris ignores the interjection and commences <<person1>><<his>> explanation of male anatomy, using your displayed manhood as a prop.

	<</if>>

<<person1>>Sirris soon finishes <<his>> demonstration. "Thank you for your help. You can take your seat. Don't forget your clothes." You dress yourself with shaking fingers and take your seat amongst your classmates, pulse still racing.

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

<<elseif $phase is 4>>

You do as instructed, and spread your legs, exposing yourself to the room. Sirris looks increasingly flustered, but continues regardless.<<set $arousal += 2000>>

	<<if $undertype is "chastity">>
	"As you can see, <<pshe>> is wearing a chastity belt, but we should be able to move it slightly for a better look..."<<person1>><<He>> starts tugging on your belt, this way and that, rubbing it against your <<genitalsstop>> A small moan escapes your lips, and the class erupts into laughter. Sirris recoils from the belt, and stammers. "We... This will do. OK class, listen closely."

	<<elseif $vaginaexist is 1>>
	<<He>> produces a speculum and inserts it into your vagina, before opening it and giving the class a clear view of your cervix. Your classmates crowd round for a closer look, shoving each other for a better position.

	<<person2>>"<<pShes>> getting wet!" exclaims the <<personcomma>> redoubling your humiliation. Sirris ignores the interjection and commences <<person1>><<his>> explanation of female anatomy, using your displayed womanhood as a prop.

	<<else>>
	<<He>> gently takes hold of the end of your penis with <<his>> thumb and forefinger. Your classmates crowd round for a closer look, shoving each other for a better position.

	<<person2>>"<<pShes>> getting hard!" exclaims the <<personcomma>> redoubling your humiliation. Sirris ignores the interjection and commences <<person1>><<his>> explanation of male anatomy, using your displayed manhood as a prop.

	<</if>>

The jostling continues, becoming more violent with each passing moment. Sirris is forced away as the class surround you, <<person1>><<his>> protests ignored. Not content to simply watch any longer, hands reach out from all around.

<<link [[Next|Science Undress Molestation]]>><<endevent>><<set $molestationstart to 1>><</link>>

<</if>>

:: Science Undress Molestation [nobr]
<<if $molestationstart is 1>>
<<set $molestationstart to 0>>
<<controlloss>>
<<violence 1>>
<<neutral 1>>
<<molested>>
<<set $event to "molestationhome">>
<<generates1>><<generates2>><<generates3>><<generates4>><<generates5>><<generates6>><<man1init>><<npcstrip>>
<<set $timer to 10>>
<</if>>

<<effects>>
<<effectsman>><<man>>

<<stateman>>

<<actionsman>>

<<if $timer gte 1>>
<<link [[Next|Science Undress Molestation]]>><</link>><<nexttext>>
<<else>>
<<link [[Next|Science Undress Molestation Finish]]>><</link>><<nexttext>>
<</if>>

:: Science Undress Molestation Finish [nobr]
<<effects>>
<<endcombat>>

<<leighton>><<person1>>Leighton's stern voice resonates through the room, and your assailants back off. Sirris must have summoned the <<if $pronoun is "m">>him<<else>>her<</if>> when <<endevent>><<sirris>><<person1>><<he>> lost control of the class. Leighton doesn't stick around once order is restored, leaving Sirris to cover and console you. <<tearful>> you do your best to put on a brave face and return to your seat.

<<clothesontowel>>

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

:: Science Terrarium [nobr]
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>
<<generates1>><<generates2>>

<<if $scienceterrariumprogression is 4 and $science gte 700>>

Something shatters on the other side of the room, and is followed by a cheer from the students. Sirris, looking distraught, heads over to inspect the damage while the noise and chaos in the classroom turns up a notch.

A <<person1>><<person>> and <<person2>><<person>> move either side of you. They inconspicuously move closer, and you feel a hand grope your butt. The <<person1>><<person>> presses <<his>> mouth to your ear and whispers. "You think you're better than us because you get high marks? I bet we could teach you a thing or two."

<<link [[Put up with it|Science Terrarium Endure]]>><<set $phase to 4>><<trauma 1>><<stress 1>><<arousal 1>><<set $science += 1>><<set $school += 10>><</link>><<gtrauma>><<gstress>><<garousal>><<gscience>>

<<link [[Move away|Science Terrarium Escape]]>><</link>>

<<elseif $scienceterrariumprogression is 3 and $science gte 500>>

Something shatters on the other side of the room, and is followed by a cheer from the students. Sirris, looking distraught, heads over to inspect the damage while the noise and chaos in the classroom turns up a notch.

A <<person1>><<person>> and <<person2>><<person>> move either side of you. They inconspicuously move closer, and you feel a hand grope your butt.

<<link [[Put up with it|Science Terrarium Endure]]>><<set $phase to 3>><<trauma 1>><<stress 1>><<arousal 1>><<set $science += 1>><<set $school += 10>><</link>><<gtrauma>><<gstress>><<garousal>><<gscience>>

<<link [[Move away|Science Terrarium Escape]]>><</link>>

<<elseif $scienceterrariumprogression is 2 and $science gte 400>>

A <<person1>><<person>> and <<person2>><<person>> move either side of you. They inconspicuously move closer, and you feel a hand grope your butt.

<<link [[Put up with it|Science Terrarium Endure]]>><<set $phase to 2>><<trauma 1>><<stress 1>><<arousal 1>><<set $science += 1>><<set $school += 10>><</link>><<gtrauma>><<gstress>><<garousal>><<gscience>>

<<link [[Move away|Science Terrarium Escape]]>><</link>>

<<elseif $scienceterrariumprogression is 1 and $science gte 300>>
A <<person1>><<person>> and <<person2>><<person>> move either side of you. They inconspicuously move closer, and you feel a hand grope your butt.

<<link [[Put up with it|Science Terrarium Endure]]>><<set $phase to 1>><<trauma 1>><<stress 1>><<arousal 1>><<set $science += 1>><<set $school += 10>><</link>><<gtrauma>><<gstress>><<garousal>><<gscience>>

<<link [[Move away|Science Terrarium Escape]]>><</link>>

<<else>>
A <<person1>><<person>> and <<person2>><<person>> move either side of you. They inconspicuously move closer, and you feel a hand grope your butt.

<<link [[Put up with it|Science Terrarium Endure]]>><<set $scienceterrariumprogression to 1>><<trauma 1>><<stress 1>><<arousal 1>><<set $science += 1>><<set $school += 10>><</link>><<gtrauma>><<gstress>><<garousal>><<gscience>>

<<link [[Move away|Science Terrarium Escape]]>><</link>>

<</if>>

:: Science Terrarium Endure [nobr]
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

<<if $phase is 4>>
	<<if $rng gte 75>>
You do your best to ignore the molestation, and focus on the task in front of you. Another hand joins the first. You don't react to the fondling, not wanting to give them the satisfaction.

Without giving any warning, they grab you by the shins and haul you up and into the terrarium, before slamming the lid, trapping you. You push against the lid, but it won't budge; they quickly flipped the latch to prevent your escape. Others start gathering around now, to gawk at you through the glass.

		<<if $swarmdisable is "t">>

	<<link [[Shatter the glass|Science Terrarium Shatter]]>><<detention 6>><<set $pain += 80>><<stress 6>><<trauma 6>><</link>><<gtrauma>><<gstress>><<gdelinquency>>

	<<link [[Endure it|Science Terrarium Imprisoned]]>><<status -10>><</link>><<lcool>>
		<<else>>

	With an evil grin, the <<person2>><<person>> kneels and opens the cupboard beneath the terrarium. <<He>> lifts out a number of jars filled with thick, long worms. <<person1>>The <<person>> grabs a couple of the jars. Together, they move them to the grating atop your prison, about to pour them in.

		<<link [[Shatter the glass|Science Terrarium Shatter]]>><<detention 6>><<set $pain += 80>><<stress 6>><<trauma 6>><</link>><<gtrauma>><<gstress>><<gdelinquency>>

		<<link [[Endure it|Science Terrarium Swarm]]>><<set $molestationstart to 1>><</link>>
		<</if>>

	<<elseif $rng gte 51>>

You do your best to ignore the molestation, and focus on the task in front of you. Another hand joins the first. You don't react to the fondling, not wanting to give them the satisfaction.

<<person1>>The <<person>> whispers into your ear. "I can tell you're getting hot and bothered. Don't try to hide it. You want to be fucked." Your assailants become more aggressive with their fondling, you can't continue to ignore them.

<<link [[Next|Science Terrarium Molestation]]>><<set $molestationstart to 1>><</link>>

	<<else>>
You do your best to ignore the molestation, and focus on the task in front of you. Another hand joins the first. You don't react to the fondling, not wanting to give them the satisfaction.

Eventually, your assailants tire and move away, allowing you to continue unmolested.

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

	<</if>>

<<elseif $phase is 3>>
	<<if $rng gte 51>><<set $scienceterrariumprogression to 4>>

You do your best to ignore the molestation, and focus on the task in front of you. Another hand joins the first. You don't react to the fondling, not wanting to give them the satisfaction.

<<person1>>The <<person>> whispers into your ear. "I can tell you're getting hot and bothered. Don't try to hide it." Your assailants become more aggressive with their fondling, you can't continue to ignore them.

<<link [[Next|Science Terrarium Molestation]]>><<set $molestationstart to 1>><</link>>

	<<else>>
You do your best to ignore the molestation, and focus on the task in front of you. Another hand joins the first. You don't react to the fondling, not wanting to give them the satisfaction.

Eventually, your assailants tire and move away, allowing you to continue unmolested.

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

	<</if>>

<<elseif $phase is 2>>
	<<if $rng gte 51>><<set $scienceterrariumprogression to 3>>

You do your best to ignore the molestation, and focus on the task in front of you. Another hand joins the first. You don't react to the fondling, not wanting to give them the satisfaction.

<<person1>>The <<person>> whispers into your ear. "I can tell you're getting hot and bothered. Don't try to hide it." Your assailants become more aggressive with their fondling, you can't continue to ignore them.

<<link [[Next|Science Terrarium Molestation]]>><<set $molestationstart to 1>><</link>>

	<<else>>
You do your best to ignore the molestation, and focus on the task in front of you. Another hand joins the first. You don't react to the fondling, not wanting to give them the satisfaction.

Eventually, your assailants tire and move away, allowing you to continue unmolested.

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

	<</if>>

<<elseif $phase is 1>>
	<<if $rng gte 51>><<set $scienceterrariumprogression to 2>>

You do your best to ignore the molestation, and focus on the task in front of you. Another hand joins the first. You don't react to the fondling, not wanting to give them the satisfaction.

<<person1>>The <<person>> whispers into your ear. "I can tell you're getting hot and bothered. Don't try to hide it." Your assailants become more aggressive with their fondling, you can't continue to ignore them.

<<link [[Next|Science Terrarium Molestation]]>><<set $molestationstart to 1>><</link>>

	<<else>>
You do your best to ignore the molestation, and focus on the task in front of you. Another hand joins the first. You don't react to the fondling, not wanting to give them the satisfaction.

Eventually, your assailants tire and move away, allowing you to continue unmolested.

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

	<</if>>

<<else>>

You do your best to ignore the molestation, and focus on the task in front of you. Another hand joins the first. You don't react to the fondling, not wanting to give them the satisfaction.

Eventually, your assailants tire and move away, allowing you to continue unmolested.

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

<</if>>

:: Science Terrarium Escape [nobr]
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

You move away from the terrarium. You don't like being bullied away from an activity, but there's nothing to be done for now.

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

:: Science Terrarium Molestation [nobr]
<<if $molestationstart is 1>>
<<set $molestationstart to 0>>
<<controlloss>>
<<violence 1>>
<<neutral 1>>
<<molested>>
<<set $event to "molestationhome">>
<<man1init>>
	<<if $phase is 1>>
	<<set $timer to 6>><<npcstrip>><<set $rescue to 1>>
	<<elseif $phase is 2>>
	<<set $timer to 12>><<npcstrip>><<set $rescue to 1>>
	<<elseif $phase is 3>>
	<<set $timer to 18>><<npcstrip>><<set $rescue to 0>>
	<<elseif $phase is 4>>
	<<set $timer to 24>><<set $rescue to 0>>
	<</if>>
<</if>>

<<effects>>
<<if $rescue is 0 and $alarm is 1>><<set $alarm to 0>>
Sirris can't hear you over the cacophony made by the other students!

<</if>>
<<effectsman>><<man>>

<<stateman>>

<<actionsman>>

<<if $alarm is 1 and $rescue is 1>>
<<link [[Next|Science Terrarium Molestation Finish]]>><</link>><<nexttext>>
<<elseif $enemyhealth lte 0>>
<<link [[Next|Science Terrarium Molestation Finish]]>><</link>><<nexttext>>
<<elseif $enemyarousal gte $enemyarousalmax>>
<<link [[Next|Science Terrarium Molestation Finish]]>><</link>><<nexttext>>
<<elseif $timer gte 1>>
<<link [[Next|Science Terrarium Molestation]]>><</link>><<nexttext>>
<<else>>
<<link [[Next|Science Terrarium Molestation Finish]]>><</link>><<nexttext>>
<</if>>

:: Science Terrarium Molestation Finish [nobr]
<<effects>>
<<if $enemyarousal gte $enemyarousalmax>>
<<ejaculation>>

Satisfied, the pair leave you to recoup what remains of your dignity.

<<tearful>> you gather yourself.

<<clothesontowel>>
<<endcombat>>

<<link [[Next|Science Lesson]]>><</link>>
<<elseif $enemyhealth lte 0>>
Recoiling in pain, the <<person2>><<person>> bursts into tears and the <<person1>><<person>> shouts at you. "You'll get yours, bitch!" They decide to leave you alone, for now.

<<clothesontowel>>
<<endcombat>>

<<link [[Next|Science Lesson]]>><</link>>
<<elseif $alarm is 1 and $rescue is 1>><<set $rescued += 1>>
Sirris notices the commotion and rushes over. The pair cease their assault and leave you to recoup what remains of your dignity, giving you a mocking smirk as they do. Sirris is about to say something, but is interrupted by a bang on the other side of the room.<<lcool>>

<<clothesontowel>>
<<endcombat>>

<<link [[Next|Science Lesson]]>><</link>>
<<else>>
Sirris notices the commotion and rushes over. The pair cease their assault and leave you to recoup what remains of your dignity, giving you a mocking smirk as they do. Sirris is about to say something, but is interrupted by a bang on the other side of the room.

<<clothesontowel>>
<<endcombat>>

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

:: Science Terrarium Shatter [nobr]
<<effects>>

Summoning all your strength, you bash the side of the terrarium, shattering it and sending shards of glass in all directions. The <<person1>><<person>> and <<person2>><<person>> take cover along with the rest of the audience, as you climb out of the remains of the vessel.
<<bruise full>><<set $upperintegrity -= 10>><<set $lowerintegrity -= 10>><<set $underintegrity -= 10>>
<<endevent>>

<<sirris>><<person1>>Sirris rushes over to find you standing alone, bleeding and surrounded by the broken remains of the terrarium.

"Are you alright? Why did you do this?! How am I going to explain this to the head?" <<He>> wrings <<his>> hands, clearly distraught. "Everyone stay away from this area until I clean it up."

You spend the rest of the lesson having glass removed by the school nurse.

<<exposure>>
<<towelup>>
<<advancetohour>>

<<link [[Next|Hallways]]>><<endevent>><</link>>

:: Science Terrarium Imprisoned [nobr]
<<effects>>
<<endevent>><<sirris>><<person1>>
You are jeered at for a few minutes before Sirris comes over to see what the fuss is about. <<He>> stands dumbfounded for a moment, mouth agape, before coming to <<his>> senses and freeing you. You climb out, more than a little shaken by the ordeal.

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

:: Science Terrarium Swarm [nobr]
<<set $outside to 1>><<set $location to "town">><<effects>><<set $bus to "danube">>

<<if $molestationstart is 1>><<set $molestationstart to 0>>
<<molested>>
<<controlloss>>
<<set $combat to 1>>
<<set $swarmname to "jars">>
<<set $swarmmove to "held above the terrarium">>
<<set $swarmcreature to "worms">>
<<set $swarmspill to "fall into the terrarium">>
<<set $swarmsteady to "block">>
<<set $swarmSteady to "Block">>
<<set $swarmcount to 10>>
<<set $swarm1 to "contained">>
<<set $swarm2 to "contained">>
<<set $swarm3 to "contained">>
<<set $swarm4 to "contained">>
<<set $swarm5 to "contained">>
<<set $swarm6 to "contained">>
<<set $swarm7 to "contained">>
<<set $swarm8 to "contained">>
<<set $swarm9 to "contained">>
<<set $swarm10 to "contained">>
<<set $swarmactive to 0>>
<<set $timer to 24>>
<<set $phase to 2>>
<</if>>

<<if $phase is 2>><<set $phase to 1>>
The pair sit on the sand to spectate.

<<else>>
	<<if $orgasmdown gte 1 and $phase is 1>><<set $phase to 0>>
	"I can't believe it," the <<person1>><<person>> shouts with joy, "You're cumming from this?" Your audience look ecstatic. You feel utterly humiliated.<<combattrauma 10>>
	<<else>>
	The assembled crowd is enjoying the show.
	<</if>>

<</if>>

<<audience>>

<<swarmeffects>>
<<swarm>>
<<swarmactions>>

<<if $stress gte 10000>>
<<link [[Next|Science Terrarium Swarm Finish]]>><</link>><<nexttext>>
<<elseif $timer lte 0>>
<<link [[Next|Science Terrarium Swarm Finish]]>><</link>><<nexttext>>
<<else>>
<<link "Next">><><</link>><<nexttext>>
<</if>>

:: Science Terrarium Swarm Finish [nobr]
<<effects>>

<<if $timer lte 0>>
<<endevent>>
<<sirris>><<person1>>
Sirris arrives to investigate the commotion. <<His>> eyes widen in horror at the spectacle, before <<he>> releases you from the terrarium. <<tearful>> you haul yourself out of your prison, worms cascading off of you. Sirris helps you cover up, <<he>> looks even more shaken than you.

<<clothesontowel>>
<<endcombat>>

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

<<else>>

It's all just too much for you. You pass out.

<<endcombat>>

<<link [[Next|School Passout]]>><<pass 1 hour>><</link>>

<</if>>

:: Science Pick [nobr]
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

<<if $phase is 0>>
	<<if $delinquency gte 400>>
	Sirris doesn't believe you, thinking it a trick due to your reputation as a delinquent.

	The students spend the lesson insulting and poking you whenever Sirris isn't looking, and are altogether a nuisance.<<gtrauma>><<gstress>><<trauma 2>><<stress 2>>

	<<else>>
	Sirris has the delinquents move to the other side of the classroom. They don't seem too bothered, and soon find someone else to pick on.

	<</if>>
<<elseif $phase is 1>>
	The students spend the lesson insulting and poking you whenever Sirris isn't looking, and are altogether a nuisance.

<</if>>

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

:: Science Dissection [nobr]
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

<<if $phase is 0>>
You focus on the task at hand, and feel more confident in your abilities as a result.

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

<<elseif $phase is 1>>

You joke around with your partner. You endear yourself to them and have a good time.

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

<<elseif $phase is 2>>
You drop the box, its contents audibly shattering as it hits the ground. The delinquents roar with laughter as you struggle to fix your $lowerclothes. Suitably covered, you lift the box and resume your journey. Fortunately the delinquents torment you no further, content to laugh at your back.

<<endevent>>
<<sirris>><<person1>>Sirris hears the distinct tinkling of broken glass as you arrive back at the classroom, where your fellow students are dissecting dead critters. <<He>> looks disappointed. "Don't worry about it, but I'll have to mark you down for detention whether it was your fault or not. Leighton takes the destruction of school property very seriously."

You don't get to join the other students. Sirris has you take the box to the bins. By the time you get back, this part of the lesson is over.

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

<<elseif $phase is 3>>

You do your best to ignore them, but they take it as a challenge and step up their game.

<<link [[Next|Science Dissection Molestation]]>><<set $molestationstart to 1>><</link>>

<<elseif $phase is 4>>
<<person1>>The <<person>> mocks you. "Look, <<pshes>> inviting us!" Just as you get the box on the ground, <<he>> tackles you from behind, clasping <<his>> hand around your mouth.

<<link [[Next|Science Dissection Molestation]]>><<set $molestationstart to 1>><</link>>
<</if>>

:: Science Dissection Molestation [nobr]
<<if $molestationstart is 1>>
	<<if $phase is 3>>
<<set $molestationstart to 0>>
<<controlloss>>
<<violence 1>>
<<neutral 1>>
<<molested>>
<<set $event to "molestationhome">>
<<man1init>><<npcstrip>><<set $timer to 20>>
		<<if $delinquency lt 400>>
		<<set $rescue to 1>>
		<</if>>
	<<elseif $phase is 4>>
<<set $molestationstart to 0>>
<<controlloss>>
<<violence 1>>
<<neutral 1>>
<<molested>>
<<set $event to "molestationhome">>
<<man1init>><<set $lefthand to "mouth">><<set $mouthuse to "lefthand">>
		<<if $delinquency lt 400>>
		<<set $rescue to 1>>
		<</if>>
	<</if>>
<</if>>

<<effects>>

<<if $alarm is 1 and $rescue is 0>><<set $alarm to 0>>
No one comes to your aid, likely due to your reputation as a delinquent.

<</if>>

<<if $timer gte 5>>
You keep walking back to the classroom, doing your best to ignore the harassment.

<<elseif $timer gte 2>>
You keep walking back to the classroom, doing your best to ignore the harassment. You're almost there.

<<elseif $timer is 1>>
You see the classroom up ahead.

<</if>>

<<effectsman>><<man>>

<<stateman>>

<<actionsman>>

<<if $enemyhealth lte 0>>
<<link [[Next|Science Dissection Molestation Finish]]>><</link>><<nexttext>>
<<elseif $enemyarousal gte $enemyarousalmax>>
<<link [[Next|Science Dissection Molestation Finish]]>><</link>><<nexttext>>
<<elseif $rescue is 1 and $alarm is 1>>
<<link [[Next|Science Dissection Molestation Finish]]>><</link>><<nexttext>>
<<elseif $timer is 1>>
<<link [[Next|Science Dissection Molestation Finish]]>><</link>><<nexttext>>
<<else>>
<<link [[Next|Science Dissection Molestation]]>><</link>><<nexttext>>
<</if>>

:: Science Dissection Molestation Finish [nobr]
<<effects>>
<<if $enemyarousal gte $enemyarousalmax>>
<<ejaculation>>

Their lust spent, they realise the weight of what they've done, and flee the scene lest they be caught. <<tearful>> you head towards the classroom.

<<clotheson>>
<<endcombat>>

	<<if $uppertype isnot "naked" and $lowertype isnot "naked">>
	<<else>>
You make a detour to the toilets and find some towels to cover up with before anyone sees you.<<towelup>>
	<</if>>

You arrive back at the classroom and deliver your cargo, safe and sound. The rest of the class is busy dissecting frogs. Lacking a partner, you get one all to yourself.<<gscience>><<scienceskill>>

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

<<elseif $enemyhealth lte 0>>

Your assailants back off. "You'll get yours, <<bitchstop>>" They leave you alone, trying to conceal their injuries. <<tearful>> you head towards the classroom.

<<if $upperoff isnot 0>>
<<uppersteal>>
<</if>>

<<if $loweroff isnot 0>>
<<lowersteal>>
<</if>>

<<if $underoff isnot 0>>
<<understeal>>
<</if>>

<<endcombat>>

	<<if $uppertype isnot "naked" and $lowertype isnot "naked">>
	<<else>>
You make a detour to the toilets and find some towels to cover up with before anyone sees you.<<towelup>>
	<</if>>

You arrive back at the classroom and deliver your cargo, safe and sound. The rest of the class is busy dissecting frogs. Lacking a partner, you get one all to yourself.<<gscience>><<scienceskill>>

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

<<elseif $rescue is 1 and $alarm is 1>><<set $rescued += 1>>

<<endevent>><<leighton>><<person1>>Leighton rounds a corner, having heard your scream. The assailants' demeanour changes immediately, and they are harried back to <<his>> office. <<tearful>> you head back to the classroom.

<<clotheson>>
<<endcombat>>

	<<if $uppertype isnot "naked" and $lowertype isnot "naked">>
	<<else>>
You make a detour to the toilets and find some towels to cover up with before anyone sees you.<<towelup>>
	<</if>>

You arrive back at the classroom and deliver your cargo, safe and sound. The rest of the class is busy dissecting frogs. Lacking a partner, you get one all to yourself.<<gscience>><<scienceskill>>

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

<<else>>

With the classroom in sight, your assailants take their leave. You hear their laughter long after they pass from view. <<tearful>> you gather yourself.

<<clotheson>>
<<endcombat>>

	<<if $uppertype isnot "naked" and $lowertype isnot "naked">>
	<<else>>
You make a detour to the toilets and find some towels to cover up with before anyone sees you.<<towelup>>
	<</if>>

You arrive back at the classroom and deliver your cargo, safe and sound. The rest of the class is busy dissecting frogs. Lacking a partner, you get one all to yourself.<<gscience>><<scienceskill>>

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

:: Events Swimming Freed [nobr]
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>

You swim to the side of the pool and turn around. Mason kneels and cuts through your bindings. "There. I hope another student didn't do this to you." <<He>> steps away.

<<endevent>>

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

:: Events Swimming Freed Refuse [nobr]
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>

<<if $submissive gte 1150>>
"N-no," you say. "I should stay tied up."
<<elseif $submissive lte 850>>
"Did I ask for help?" you say, glaring at the teacher.
<<else>>
"I'm fine. Thanks," you say.
<</if>>

Mason looks confused. "If you're sure. I don't think there's a rule forbidding bound arms while swimming. Just be careful, okay?"

<<endevent>>

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

:: Science Kick [nobr]
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

You decide to give the <<person>> a closer view, and kick <<him>> in the face. <<He>> flinches, but isn't fast enough to dodge the blow. Your foot connects with <<his>> jaw and <<he>> falls out of <<his>> chair. <<His>> friends are laughing at <<him>> now.

<<endevent>>
<<sirris>><<person1>>Sirris looks at you from across the class and sighs. "See Leighton after school," <<he>> says.

<<endevent>>

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


code:
:: Science Classroom [nobr]
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

<<if $schoolstate is "first">>
	<<if $uppertype is "school" and $lowertype is "school">>
		<<if $scienceattended is 1>>
		You rejoin the science lesson, and take your seat.

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

		<<elseif $time lte ($hour * 60 + 5)>>

	You enter the science classroom.
	<<sirris>><<person1>>
	Sirris is preparing at the front of the room while the seats fill.

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

		<<else>>
		You enter the science classroom.
		<<sirris>><<person1>>
		Sirris cuts off mid-sentence to regard you. "I'm sorry, but I'll have to record your tardiness."<<gdelinquency>>

<<detention 1>>
		You take a seat as Sirris continues.

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

		<</if>>
	<<else>>
	<<sirris>><<person1>>
	Sirris looks at your outfit as you enter. "Where's your uniform? I'm not allowed to teach you without one, you know. The head might have some spares."

	<<link [[Next|Hallways]]>><<endevent>><</link>>

	<</if>>

<<elseif $schoolstate is "morning">>

You enter the science classroom. No one else has arrived yet. You could use the extra time to study.

<<schoolperiodtext>>

<<link [[Study science|Science Classroom Study]]>><</link>><<gstress>><<gscience>>

<<link [[Leave|Hallways]]>><</link>>

<<elseif $schoollesson is 1>>
	<<if $scienceinterrupted is 1>>

	<<sirris>><<person1>>You enter the science classroom. Sirris cuts off mid-sentence as you enter, looking surprised, then annoyed. "You again? You can't just keep interrupting like this, shoo!" <<He>> shuts the door on you.<<gdelinquency>>

	<<detention 1>>

	<<link [[Next|Hallways]]>><<endevent>><</link>>
	<<else>>

	<<sirris>><<person1>>You open the door to the science classroom. Sirris cuts off mid-sentence as you enter, looking surprised. "Can I help you?" It seems you've interrupted the lesson.

<<set $scienceinterrupted to 1>>

	<<link [[Apologise|Science Classroom Apology]]>><<trauma 1>><<stress 1>><</link>><<gstress>><<gtrauma>>

		<<if $trauma gte 1>>
		<<link [[Mock|Science Classroom Mock]]>><<status 1>><<stress -12>><</link>><<lstress>><<gcool>><<gdelinquency>>

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

You are in the science classroom. The equipment is kept securely locked away when not in use.

<<exhibitionclassroom>>

<<link [[Leave the room (0:01)|Hallways]]>><<pass 1>><</link>>

<</if>>

:: Science Classroom Apology [nobr]
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

Embarrassed, you apologise and leave.

<<link [[Next|Hallways]]>><<endevent>><</link>>

:: Science Classroom Mock [nobr]
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

You mock the teacher. "A white lab coat is a good idea <<sircomma>> it'll hide the stains." Laughter erupts among the seated students.

Sirris looks exasperated. "Right. I'll have to inform the head of your behaviour, you know. Please, just go."<<gdelinquency>>

<<detention 1>><<set $sirrislove -= 1>>
<<link [[Next|Hallways]]>><<endevent>><</link>>

:: Science Classroom Study [nobr]
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

You take a seat and read a science textbook.

<<sirris>><<person1>>The classroom soon fills and Sirris arrives to begin the lesson.

<<if $uppertype is "school" and $lowertype is "school">>
<<link [[Next|Science Lesson]]>><<endevent>><</link>>

<<else>>
Sirris looks at your outfit as <<he>> enters. "Where's your uniform? I'm not allowed to teach you without one, you know. The head might have some spares."

<<link [[Next|Hallways]]>><<endevent>><</link>>

<</if>>

<<pass 5>><<stress 1>><<scienceskill>>
<<schooleffects>>
<<if $schoolstate is "first">>
<<set $studyfinish to 1>>
<<else>>
<<set $studyfinish to 0>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<</if>>
<</if>>

:: Science Lesson [nobr]
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>
<<set $scienceattended to 1>>

<<if $schoolevent is 0 and $schooleventtimer lte 0>><<set $schoolevent += 1>><<set $schooleventtimer to 14>>
<<sirris>><<person1>>"The headteacher has asked to be involved with the lesson today," Sirris says. "I know you'll all be on your best behaviour." The door opens as <<he>> finishes, and Leighton steps in.

<<endevent>><<leighton>><<person1>><<He>> strides to the front of the class. "Thank you Sirris," <<he>> says. "Why don't you take a break?"

Sirris looks perplexed. "I thought you'd want my help, I've prepared-"

"Don't you worry. I've prepared my own plan for the lesson. Now go relax in that cafe you like."

<<endevent>><<sirris>><<person1>>

Sirris opens <<his>> mouth to argue, but thinks better of it. "Be good," <<he>> whispers to the class on <<his>> way out.

<<endevent>><<leighton>><<person1>>

<<link [[Next|Penis Inspection]]>><<pass 5>><</link>>

<<elseif $schoolevent is 1 and $schooleventtimer lte 0>><<set $schoolevent += 1>><<set $schooleventtimer to 14>>
<<sirris>><<person1>>"The headteacher has once again asked to take charge of the lesson," Sirris says.<<endevent>><<leighton>><<person1>> "I don't know why <<hes>> taken an interest, but <<he>> seemed satisfied last time."

The door swings open and Leighton steps in, a smile on <<his>> face. "Thank you Sirris," <<he>> says. "I'll take it from here."

"Are you sure I can't assist?" Sirris asks.

"I'll be fine. You have a very cute class."

<<endevent>><<sirris>><<person1>>
"O-okay." Sirris turns to the class as <<he>> leaves. "Be good," <<he>> whispers.

<<endevent>><<leighton>><<person1>>

<<link [[Next|Pussy Inspection]]>><<pass 5>><</link>>

<<elseif $schoolevent is 2 and $schooleventtimer lte 0>><<set $schoolevent += 1>><<set $schooleventtimer to 14>>
<<sirris>><<person1>>"The headteacher has asked to take over today's lesson," Sirris says. "I hope it's not because I'm doing my job improperly."

<<endevent>><<leighton>><<person1>>

"You're doing fine," Leighton says as <<he>> enters. "I'm just conducting government-mandated health checks."

"I can help with that, I have-"

Leighton raises <<his>> arm and Sirris fall quiet. "Go take a break. Your class will be in one piece when you return."

<<endevent>><<sirris>><<person1>>
Sirris looks at the class as <<he>> leaves. "I won't be long." <<he>> whispers.

<<endevent>><<leighton>><<person1>>

<<link [[Next|Breast Inspection]]>><<pass 5>><</link>>

<<else>>
	<<if $time lte ($hour * 60 + 5)>>

	The science lesson begins, how do you want to conduct yourself?

	<<else>>

	The science lesson continues, how do you want to conduct yourself?

	<</if>>

	<<link [[Focus on the lesson|Science Lesson Focus]]>><</link>><<gstress>><<gscience>>

	<<link [[Socialize with classmates|Science Lesson Socialize]]>><</link>><<gcool>><<ltrauma>><<lstress>><<gharass>>

	<<link [[Daydream|Science Lesson Daydream]]>><</link>><<lstress>> <<lharass>>

	<<if $exhibitionism gte 55>>
	<<link [[Masturbate|Science Lesson Masturbate]]>><<set $masturbationstart to 1>><</link>><<exhibitionist4>>

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

:: Science Lesson Socialize [nobr]
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

<<towelup>>

<<if $cool gte ($coolmax / 5 * 2)>>
You do the bare minimum of work, focusing instead on trying to endear yourself to your classmates. You soon become the centre of attention.
<<elseif $cool lt ($coolmax / 5)>>
You do the bare minimum of work, focusing instead on trying to endear yourself to your classmates.
<<else>>
You do the bare minimum of work, focusing instead on trying to endear yourself to your classmates. Most avoid interacting with you.
<</if>>

<<pass 5>><<status 1>><<trauma -1>><<stress -1>>
<<schooleffects>>
<<if $time gte ($hour * 60 + 5) and $time lte ($hour * 60 + 57)>>
<<pass 5>><<stress -1>>
<<schooleffects>>
<<else>>
<<set $phase to 1>>
<</if>>
<<if $time gte ($hour * 60 + 5) and $time lte ($hour * 60 + 57)>>
<<pass 5>><<trauma -1>><<stress -1>>
<<schooleffects>>
<<else>>
<<set $phase to 1>>
<</if>>
<<if $time gte ($hour * 60 + 5) and $time lte ($hour * 60 + 57)>>
<<pass 5>><<stress -1>>
<<schooleffects>>
<<else>>
<<set $phase to 1>>
<</if>>
<<if $time gte ($hour * 60 + 5) and $time lte ($hour * 60 + 57)>>
<<else>>
<<set $phase to 1>>
<</if>>

<<if $phase is 1>><<set $phase to 0>>
The bell rings, signifying the end of the lesson. You leave the classroom.

<<if $time is ($hour * 60 + 57)>>
<<pass 3>>
<<elseif $time is ($hour * 60 + 58)>>
<<pass 2>>
<<elseif $time is ($hour * 60 + 59)>>
<<pass 1>>
<</if>>

<<link [[Next|Hallways]]>><</link>>

<<else>>

<<set $danger to random(1, 10000)>><<set $dangerevent to 0>>
	<<if $danger gte (8900 - ($allure * 2))>>
	<<eventsscience>>
	<<else>>
	<<eventssciencesafe>>
	<</if>>
<</if>>

:: Science Lesson Daydream [nobr]
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

<<towelup>>

<<if $trauma gte (($traumamax / 10) * 7)>>
You keep to yourself, afraid that one wrong move will result in the whole class molesting you.
<<elseif $trauma gte (($traumamax / 10) * 2)>>
You focus on your own thoughts, trying to keep the creeping anxiety at bay.
<<else>>
You don't really pay attention to the lesson, instead idly staring out the window and thinking about what you'll do after school.
<</if>>

<<pass 5>><<stress -1>>
<<schooleffects>>
<<if $time gte ($hour * 60 + 5) and $time lte ($hour * 60 + 57)>>
<<pass 5>><<stress -1>>
<<schooleffects>>
<<else>>
<<set $phase to 1>>
<</if>>
<<if $time gte ($hour * 60 + 5) and $time lte ($hour * 60 + 57)>>
<<pass 5>><<stress -1>>
<<schooleffects>>
<<else>>
<<set $phase to 1>>
<</if>>
<<if $time gte ($hour * 60 + 5) and $time lte ($hour * 60 + 57)>>
<<pass 5>><<stress -1>>
<<schooleffects>>
<<else>>
<<set $phase to 1>>
<</if>>
<<if $time gte ($hour * 60 + 5) and $time lte ($hour * 60 + 57)>>
<<else>>
<<set $phase to 1>>
<</if>>

<<if $phase is 1>><<set $phase to 0>>
The bell rings, signifying the end of the lesson. You leave the classroom.

<<if $time is ($hour * 60 + 57)>>
<<pass 3>>
<<elseif $time is ($hour * 60 + 58)>>
<<pass 2>>
<<elseif $time is ($hour * 60 + 59)>>
<<pass 1>>
<</if>>

<<link [[Next|Hallways]]>><</link>>

<<else>>

<<set $danger to random(1, 10000)>><<set $dangerevent to 0>>
	<<if $danger gte (8900 - ($allure / 2))>>
	<<eventsscience>>
	<<else>>
	<<eventssciencesafe>>
	<</if>>
<</if>>

:: Science Lesson Focus [nobr]
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

<<towelup>>

You focus on listening to the teacher and studying the material. It's hard going, but you think you're making progress.

<<pass 5>><<stress 1>><<scienceskill>>
<<schooleffects>>
<<if $time gte ($hour * 60 + 5) and $time lte ($hour * 60 + 57)>>
<<pass 5>><<stress 1>><<scienceskill>>
<<schooleffects>>
<<else>>
<<set $phase to 1>>
<</if>>
<<if $time gte ($hour * 60 + 5) and $time lte ($hour * 60 + 57)>>
<<pass 5>><<stress 1>><<scienceskill>>
<<schooleffects>>
<<else>>
<<set $phase to 1>>
<</if>>
<<if $time gte ($hour * 60 + 5) and $time lte ($hour * 60 + 57)>>
<<pass 5>><<stress 1>><<scienceskill>>
<<schooleffects>>
<<else>>
<<set $phase to 1>>
<</if>>
<<if $time gte ($hour * 60 + 5) and $time lte ($hour * 60 + 57)>>
<<else>>
<<set $phase to 1>>
<</if>>

<<if $phase is 1>><<set $phase to 0>>
The bell rings, signifying the end of the lesson. You leave the classroom.

<<if $time is ($hour * 60 + 57)>>
<<pass 3>>
<<elseif $time is ($hour * 60 + 58)>>
<<pass 2>>
<<elseif $time is ($hour * 60 + 59)>>
<<pass 1>>
<</if>>

<<link [[Next|Hallways]]>><</link>>

<<else>>

<<set $danger to random(1, 10000)>><<set $dangerevent to 0>>
	<<if $danger gte (8900 - $allure)>>
	<<eventsscience>>
	<<else>>
	<<eventssciencesafe>>
	<</if>>
<</if>>

repo_name: warawanaineko/degrees


code:
:: Events Swimming Molestation [nobr]
<<if $molestationstart is 1>>
<<set $molestationstart to 0>>
<<controlloss>>
<<violence 1>>
<<neutral 1>>
<<molested>>
<<set $event to "molestationhome">>
<<man1init>><<npcexpose>>
<<set $timer to 18>>
	<<if $delinquency lt 400>><<set $rescue to 1>><</if>>
	The <<person2>><<person>> continues to fondle your butt while the <<person1>><<person>> bends down to your chest.
	<<if $upperexposed gte 1>>
	Without breaking eye contact, <<He>> gently licks your nipple with the tip of <<his>> tongue.
	<<else>>
	Without breaking eye contact, <<He>> gently licks your nipple through your $upperclothes with the tip of <<his>> tongue.

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

<<effects>>

<<if $alarm is 1 and $rescue is 0>><<set $alarm to 0>>
Mason ignores you, likely due to your reputation as a delinquent.

<</if>>

<<effectsman>><<man>>

<<stateman>>

<<actionsman>>

<<if $enemyhealth lte 0>>
<<link [[Next|Events Swimming Molestation Finish]]>><</link>><<nexttext>>
<<elseif $enemyarousal gte $enemyarousalmax>>
<<link [[Next|Events Swimming Molestation Finish]]>><</link>><<nexttext>>
<<elseif $timer lte 0>>
<<link [[Next|Events Swimming Molestation Finish]]>><</link>><<nexttext>>
<<elseif $rescue is 1 and $alarm is 1>>
<<link [[Next|Events Swimming Molestation Finish]]>><</link>><<nexttext>>
<<else>>
<<link [[Next|Events Swimming Molestation]]>><</link>><<nexttext>>
<</if>>

:: Events Swimming Endure [nobr]
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>

The <<person2>><<person>> continues to fondle your butt while the <<person1>><<person>> bends down to your chest.
<<if $upperexposed gte 1>>
Without breaking eye contact, <<He>> gently licks your nipple with the tip of <<his>> tongue.
<<else>>
Without breaking eye contact, <<He>> gently licks your nipple through your $upperclothes with the tip of <<his>> tongue.
<</if>>
<<He>> is soon interrupted however. When Mason finishes dealing with the commotion, both move away from you, the <<person2>><<person>> giving a parting pinch as <<he>> does.

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

:: Events Swimming Molestation Finish [nobr]
<<effects>>
<<if $enemyarousal gte $enemyarousalmax>>
<<ejaculation>>

The pair come to their senses after a moment, and swim away from you, looking a little guilty.

<<clotheson>>
<<endcombat>>

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

<<elseif $enemyhealth lte 0>>

The <<person1>><<person>> recoils in pain and glares at you. <<He>> swims away, taking the <<person2>><<person>><<person1>> with <<himstop>>

<<tearful>> you gather yourself.

<<clotheson>>
<<endcombat>>

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

<<elseif $alarm is 1 and $rescue is 1>><<set $rescued += 1>>

	<<if $delinquency gte 200>>
	Your cry attracts Mason's attention. "I knew it would have something to do with you. Stop harassing the other students." The teacher gives your protests no heed.<<gdelinquency>><<detention 1>>		<<else>>
	Your cry attracts Mason's attention. The teacher glares at the pair and herds them away from you.
	<</if>>

<<tearful>> you gather yourself.

<<clotheson>>
<<endcombat>>

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

<<else>>

Mason finishes breaking up the fight, and the pair leave you alone.

<<tearful>> you gather yourself.

<<clotheson>>
<<endcombat>>

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

:: Events Swimming Refuse [nobr]
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>

The <<person>> shrugs, then tosses the fabric into the skimmer, where it vanishes with a tearing noise.
<<lowerruined>><<upperruined>>

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

:: Events Swimming Molestation Single [nobr]
<<if $molestationstart is 1>>
<<set $molestationstart to 0>>
<<controlloss>>
<<violence 1>>
<<neutral 1>>
<<molested>>
<<set $event to "molestationhome">>
<<man1init>><<npcexpose>>
	<<if $delinquency lt 400>><<set $rescue to 1>><</if>>

The <<person>> swims right up to you.

<</if>>

<<effects>>

<<if $alarm is 1 and $rescue is 0>><<set $alarm to 0>>
Mason ignores you, likely due to your reputation as a delinquent.

<</if>>

<<effectsman>><<man>>

<<stateman>>

<<actionsman>>

<<if $enemyhealth lte 0>>
<<link [[Next|Events Swimming Molestation Single Finish]]>><</link>><<nexttext>>
<<elseif $enemyarousal gte $enemyarousalmax>>
<<link [[Next|Events Swimming Molestation Single Finish]]>><</link>><<nexttext>>
<<elseif $rescue is 1 and $alarm is 1>>
<<link [[Next|Events Swimming Molestation Single Finish]]>><</link>><<nexttext>>
<<else>>
<<link [[Next|Events Swimming Molestation Single]]>><</link>><<nexttext>>
<</if>>

:: Events Swimming Molestation Single Finish [nobr]
<<effects>>
<<if $enemyarousal gte $enemyarousalmax>>
<<ejaculation>>

"Here you go." <<He>> tosses your clothes to the side. You swim over and restore your dignity. When you turn, the <<person>> is gone.

<<tearful>> you gather yourself.

<<clotheson>>
<<endcombat>>

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

<<elseif $enemyhealth lte 0>>

The <<person>> recoils in pain and glares at you. <<He>> tries to swim away, but you grab the clothes still held in <<his>> hand. You win the ensuing battle, and quickly dress. When you turn, the <<person>> is gone.

<<tearful>> you gather yourself.

<<clotheson>>
<<endcombat>>

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

<<elseif $alarm is 1 and $rescue is 1>><<set $rescued += 1>>

	<<if $delinquency gte 200>>
	Your cry attracts Mason's attention. "I knew it would have something to do with you. Stop harassing the other students. And put your clothes back on, for heaven's sake," the <<person>> is nowhere to be seen, they left your clothes floating on the water.<<gdelinquency>><<detention 1>>
	<<else>>
	Your cry attracts Mason's attention. The teacher glares at the <<person>> "Give those clothes back, now. You're in serious trouble, get changed and go to the head's office." You dress before any more attention is attracted to your predicament.
	<</if>>

<<tearful>> you gather yourself.

<<clotheson>>
<<endcombat>>

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

<</if>>

:: Events Swimming Flaunt [nobr]
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>

You stretch languidly as you approach the platform, hiding nothing. You <<swimmingtext>> dive into the water to the sound of whistles and applause.<<gswimming>><<exhibitionism5>><<swimmingskilluse>>

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

:: Events Swimming Lewd Dive [nobr]
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>

You decide to just get it over with.

<<if $leftarm is "bound" and $rightarm is "bound">>
Bound and unable to cover yourself, you instead face away from your audience. You jump backwards into the water, which is not what you are supposed to do but Mason won't fault you given the circumstance.
<<else>>
You cover your <<lewdness>> as you approach the platform, intensely aware of all the eyes probing you. You jump into the water, not a spectacular performance but Mason won't fault you given the circumstance.
<</if>>
Once concealed beneath the water, Mason manages to regain some control over the class, and pulls most attention away from you.

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

:: Event Swimming Run [nobr]
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>

Overwhelmed, you turn and flee from the room, chased by jeers and laughter.

<<if $playergenderappearance is "m">>
<<link [[Next|School Boy's Changing Room]]>><<endevent>><</link>>
<<else>>
<<link [[Next|School Girl's Changing Room]]>><<endevent>><</link>>
<</if>>

:: Events Swimming Stalk Confront [nobr]
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>

You swim right up to the <<personcomma>> and tell <<him>> to leave you alone. "S-sorry," <<he>> says, staring at <<his>> feet.<<endevent>><<mason>><<person1>> You turn away, and see Mason staring at you disapprovingly. "I don't want to catch you picking on the other students again," <<he>> says. <<He>> refuses to hear your side of the story.

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

:: Events Swimming Stalk Ignore [nobr]
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>

<<if $rng gte 81>>
You try to ignore the <<personcomma>> but <<he>> persists, moving closer to you as <<he>> becomes more confident. <<He>> soon works up the courage to reach out and touch you.

<<link [[Next|Events Swimming Stalk Molestation]]>><<set $molestationstart to 1>><</link>>

<<else>>
The <<person>> continues to follow for a short while, before becoming distracted by someone else.

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

<</if>>

:: Events Swimming Stalk Molestation [nobr]
<<if $molestationstart is 1>>
<<set $molestationstart to 0>>
<<controlloss>>
<<violence 1>>
<<neutral 1>>
<<molested>>
<<set $event to "molestationhome">>
<<man1init>>
	<<if $delinquency lt 400>><<set $rescue to 1>><</if>>
<</if>>

<<effects>>

<<if $alarm is 1 and $rescue is 0>><<set $alarm to 0>>
Mason ignores you, likely due to your reputation as a delinquent.

<</if>>

<<effectsman>><<man>>

<<stateman>>

<<actionsman>>

<<if $enemyhealth lte 0>>
<<link [[Next|Events Swimming Stalk Molestation Finish]]>><</link>><<nexttext>>
<<elseif $enemyarousal gte $enemyarousalmax>>
<<link [[Next|Events Swimming Stalk Molestation Finish]]>><</link>><<nexttext>>
<<elseif $rescue is 1 and $alarm is 1>>
<<link [[Next|Events Swimming Stalk Molestation Finish]]>><</link>><<nexttext>>
<<else>>
<<link [[Next|Events Swimming Stalk Molestation]]>><</link>><<nexttext>>
<</if>>

:: Events Swimming Stalk Molestation Finish [nobr]
<<effects>>
<<if $enemyarousal gte $enemyarousalmax>>
<<ejaculation>>

<<He>> swims away without a word.

<<tearful>> you gather yourself.

<<clotheson>>
<<endcombat>>

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

<<elseif $enemyhealth lte 0>>

The <<person>> recoils in pain and backs away from you. <<tearful>> you seize the chance and escape.

<<clotheson>>
<<endcombat>>

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

<<elseif $alarm is 1 and $rescue is 1>><<set $rescued += 1>>

	<<if $delinquency gte 200>>
	Your cry attracts Mason's attention. "I knew it would have something to do with you. Stop harassing the other students," the <<person>> goes along with it, not wanting to get in trouble.<<gdelinquency>><<detention 1>>
	<<else>>
	Your cry attracts Mason's attention. The teacher glares at the <<personstop>> "You're in serious trouble, get changed and go to the head's office," the <<person>> looks about to cry.
	<</if>>

<<tearful>> you gather yourself.

<<clotheson>>
<<endcombat>>

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

<</if>>

:: Events Swimming Swim Away [nobr]
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>

<<set $swimmingdifficulty to random(-500,1000)>>			<<swimmingcheck>>
<<if $swimmingcheck is "fail">>
	<<if $exposed gte 1>>
You try to swim away, but they catch up, grabbing and surrounding you. The <<person>> grins at you. "This pervert think <<pshe>> can expose <<pherself>> in public without consequences. Let's teach <<phim>> a lesson."

<<link [[Next|Events Swimming Nude Molestation]]>><<set $molestationstart to 1>><</link>>

	<<else>>
You try to swim away, but they catch up, grabbing and surrounding you. The <<person>> grins at you. "How ungrateful!" <<He>> runs <<his>> fingers along the seam of your $lowerclothes. "I think I know how to remind you of your place."

<<link [[Next|Events Swimming Strip Molestation]]>><<set $molestationstart to 1>><</link>>

	<</if>>
<<else>>
You disappear beneath the water and swim away from them. They try to keep up, but quickly tire and start hunting for easier prey.

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

<</if>>

:: Evens Swimming Endure [nobr]
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>

They continue to harass you for a short while, before going after someone else.

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

:: Events Swimming Nude Molestation [nobr]
<<if $molestationstart is 1>>
<<set $molestationstart to 0>>
<<controlloss>>
<<violence 1>>
<<neutral 1>>
<<molested>>
<<set $event to "molestationhome">>
<<man1init>>
	<<if $delinquency lt 400>><<set $rescue to 1>><</if>>
<</if>>
<<set $timer to 20>>

<<effects>>

<<if $alarm is 1 and $rescue is 0>><<set $alarm to 0>>
Mason ignores you, likely due to your reputation as a delinquent.

<</if>>

<<effectsman>><<man>>

<<stateman>>

<<actionsman>>

<<if $enemyhealth lte 0>>
<<link [[Next|Events Swimming Nude Molestation Finish]]>><</link>><<nexttext>>
<<elseif $enemyarousal gte $enemyarousalmax>>
<<link [[Next|Events Swimming Nude Molestation Finish]]>><</link>><<nexttext>>
<<elseif $rescue is 1 and $alarm is 1>>
<<link [[Next|Events Swimming Nude Molestation Finish]]>><</link>><<nexttext>>
<<elseif $timer lte 1>>
<<link [[Next|Events Swimming Nude Molestation Finish]]>><</link>><<nexttext>>
<<else>>
<<link [[Next|Events Swimming Nude Molestation]]>><</link>><<nexttext>>
<</if>>

:: Events Swimming Strip Molestation [nobr]
<<if $molestationstart is 1>>
<<set $molestationstart to 0>>
<<controlloss>>
<<violence 1>>
<<neutral 1>>
<<molested>>
<<set $event to "molestationhome">>
<<man1init>><<npcstrip>>
	<<if $delinquency lt 400>><<set $rescue to 1>><</if>>
<</if>>
<<set $timer to 20>>

<<effects>>

<<if $alarm is 1 and $rescue is 0>><<set $alarm to 0>>
Mason ignores you, likely due to your reputation as a delinquent.

<</if>>

<<effectsman>><<man>>

<<stateman>>

<<actionsman>>

<<if $enemyhealth lte 0>>
<<link [[Next|Events Swimming Strip Molestation Finish]]>><</link>><<nexttext>>
<<elseif $enemyarousal gte $enemyarousalmax>>
<<link [[Next|Events Swimming Strip Molestation Finish]]>><</link>><<nexttext>>
<<elseif $rescue is 1 and $alarm is 1>>
<<link [[Next|Events Swimming Strip Molestation Finish]]>><</link>><<nexttext>>
<<elseif $timer lte 1>>
<<link [[Next|Events Swimming Strip Molestation Finish]]>><</link>><<nexttext>>
<<elseif $uppertype is "naked" and $lowertype is "naked">>
<<link [[Next|Events Swimming Strip Molestation Finish]]>><</link>><<nexttext>>
<<else>>
<<link [[Next|Events Swimming Strip Molestation]]>><</link>><<nexttext>>
<</if>>

:: Events Swimming Strip Molestation Finish [nobr]
<<effects>>
<<if $enemyarousal gte $enemyarousalmax>>
<<ejaculation>>

The <<person1>><<person>> and <<person2>><<person>> high five each other, then leave you lying in the water.

<<tearful>> you gather yourself.

<<clotheson>>
<<endcombat>>

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

<<elseif $enemyhealth lte 0>>

The trio recoil in pain and back away from you. <<tearful>> you seize the chance and escape.

<<clotheson>>
<<endcombat>>

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

<<elseif $alarm is 1 and $rescue is 1>><<set $rescued += 1>>

	<<if $delinquency gte 200>>
	Your cry attracts Mason's attention. "I knew it would have something to do with you. Stop harassing the other students." The trio go along with it, struggling to suppress their smiles.<<gdelinquency>><<detention 1>>
	<<else>>
	Your cry attracts Mason's attention. The teacher glares at the trio. "You're in serious trouble, get changed and go to the head's office." The group leave the pool, chatting and laughing.
	<</if>>

<<tearful>> you gather yourself.

<<clotheson>>
<<endcombat>>

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

<<elseif $timer lte 0>>
You hear Mason's voice. "What's happening over there?" They play innocent. "Nothing!" The <<person3>><<person>> says. Mason looks at them with suspicion, but doesn't say anything else. Your attackers move away from you, not wanting to get in trouble.

<<tearful>> you gather yourself.

<<clotheson>>
<<endcombat>>

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

<<else>>
The <<person1>><<person>> holds your clothing above <<his>> head. When you swim over to try to get it back, <<he>> throws it to the <<person2>><<personcomma>> who throws it to the <<person3>><<personcomma>> the three of them laughing all the while. "This is fun, but I've got an idea," the <<person>> says. Instead of throwing your clothing to one of <<his>> friends, <<he>> chucks it into a nearby skimmer, where it disappears with a tearing noise. "There. Maybe you'll show us some respect in the future." Satisfied, they swim away to find someone else to harass, leaving you naked in the middle of the pool.<<set $stealtextskip to 1>>

<<if $upperoff isnot 0>>
<<uppersteal>>
<</if>>

<<if $loweroff isnot 0>>
<<lowersteal>>
<</if>>

<<if $underoff isnot 0>>
<<understeal>>
<</if>>

<<clotheson>>
<<endcombat>>

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

<</if>>

:: Events Swimming Nude Molestation Finish [nobr]
<<effects>>
<<if $enemyarousal gte $enemyarousalmax>>
<<ejaculation>>

The <<person1>><<person>> and <<person2>><<person>> high five each other, then leave you lying in the water.

<<tearful>> you gather yourself.

<<clotheson>>
<<endcombat>>

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

<<elseif $enemyhealth lte 0>>

The trio recoil in pain and back away from you. <<tearful>> you seize the chance to escape.

<<clotheson>>
<<endcombat>>

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

<<elseif $alarm is 1 and $rescue is 1>><<set $rescued += 1>>

	<<if $delinquency gte 200>>
	Your cry attracts Mason's attention. "I knew it would have something to do with you. Stop harassing the other students." The trio go along with it, struggling to suppress their smiles.<<gdelinquency>><<detention 1>>
	<<else>>
	Your cry attracts Mason's attention. The teacher glares at the trio. "You're in serious trouble, get changed and go to the head's office." The group leave the pool, chatting and laughing.
	<</if>>

<<tearful>> you gather yourself.

<<clotheson>>
<<endcombat>>

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

<<elseif $timer lte 0>>
You hear Mason's voice. "What's happening over there?" They play innocent. "Nothing!" The <<person3>><<person>> says. Mason looks at them with suspicion, but doesn't say anything else. Your attackers move away from you, not wanting to get in trouble.

<<tearful>> you gather yourself.

<<clotheson>>
<<endcombat>>

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

<</if>>

:: Swimming Lesson Shove [nobr]
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>

<<if $delinquency gte 400>>
<<endevent>><<mason>><<person1>>You shove the pair aside. They cry out in surprise, attracting Mason's attention. "I knew it would have something to do with you. Stop harassing the other students." <<He>> doesn't give your protests any heed.<<gdelinquency>><<detention 1>>

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

<<else>>
<<endevent>><<mason>><<person1>>You shove the pair aside. They cry out in surprise, attracting Mason's attention. <<He>> looks at the pair. "You two again. Stop harassing the other students." <<He>> herds them away from you.

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

<</if>>


code:
:: School Pool [nobr]
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>

<<if $schoolstate is "fifth" and $time lte ($hour * 60 + 51)>>
	<<if $lowertype is "swim">>
		<<if $swimmingattended is 1>>
		You rejoin the swimming lesson.

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

		<<elseif $time lte ($hour * 60 + 5)>>
	You enter the swimming pool room.
	<<mason>><<person1>>
	Mason stands by the pool, encouraging students to stretch while waiting for the rest of the class.

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

		<<else>>
	You enter the swimming pool room.
	<<mason>><<person1>>
	Mason and the class are already in the water. "Glad you could join us!" <<He>> says, beckoning.<<gdelinquency>>

<<detention 1>>
		You climb into the water as Mason continues the lesson.

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

		<</if>>
	<<else>>
	You enter the swimming pool room.
	<<mason>><<person1>>
	Mason looks at your clothing. "You can't swim dressed like that! Go get changed."

		<<if $exhibitionism gte 75>>
		<<link [[Ask to swim naked|School Pool Ask Naked]]>><<fameexhibitionism 15>><</link>><<exhibitionist5>>

		<</if>>
		<<if $playergender is "f">>
			<<if $schoolswimsuitupperno gte 1 and $schoolswimsuitlowerno gte 1>>
			<<else>>
				<<if $schoolswimshortsno gte 1>>
				<<link [[Say you only have a boy's swimming costume|School Pool Wrong]]>><</link>>

				<</if>>
			<<link [[Say you don't have anything to change into|School Pool Spare]]>><</link>>

			<</if>>
		<<else>>
			<<if $schoolswimshortsno gte 1>>
			<<else>>
				<<if $schoolswimsuitupperno gte 1 and $schoolswimsuitlowerno gte 1>>
				<<link [[Say you only have a girl's swimming costume|School Pool Wrong]]>><</link>>

				<</if>>
			<<link [[Say you don't have anything to change into|School Pool Spare]]>><</link>>

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

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

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

	<</if>>

<<elseif $schoollesson is 1>>
	<<if $swimminginterrupted is 1>>

	<<mason>><<person1>>You enter the pool room. Mason ceases <<his>> activity and looks your way. "I've got a class to teach. Stop bothering us." <<He>> points to the door.<<gdelinquency>>

	<<detention 1>>

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

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

	<<else>>
	<<mason>><<person1>>
You enter the pool room. Mason ceases <<his>> activity and smiles at you. "Are you lost? Or is there something you need to tell me?" It seems you've interrupted the lesson.

<<set $swimminginterrupted to 1>>

	<<link [[Apologise|Swimming Classroom Apology]]>><<trauma 1>><<stress 1>><</link>><<gstress>><<gtrauma>>

		<<if $trauma gte 1>>
		<<link [[Mock|Swimming Classroom Mock]]>><<status 1>><<stress -12>><</link>><<lstress>><<gcool>><<gdelinquency>>

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

You are in the swimming pool room. It's saturated with the smell of chlorine.

<<if $storelocation is "pool">>
Your clothes are stored in an adjoining room.

<</if>>

<<exhibitionclassroom>>

	<<if $storelocation is "pool">>
	<<link [[Get changed|Swimming Pool Change]]>><</link>>

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

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

<</if>>

:: School Pool Ask Naked [nobr]
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>

<<if $submissive gte 1150>>
"May I swim naked?" you ask. "The water feels nice."
<<elseif $submissive lte 850>>
"I'm swimming naked." you announce.
<<else>>
"Can I swim naked?" you ask.
<</if>>

<<storeclothes>><<set $storelocationinit to "pool">><<storelocation>><<undress>><<exposure>>

<<He>> blushes as the class breaks into excitement. "F-fine," <<he>> says. "You can store you clothes in the room there." <<He>> turns and does <<his>> best to quiet the other students.

<<He>> does little to temper their excitement. You feel their eyes on you as you <<nervously>> strip down to your <<lewdnesscomma>> before slipping into the water. <<covered>><<exhibitionism5>>

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

:: Swimming Lesson [nobr]
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>
<<set $swimmingattended to 1>>

<<if $time lte ($hour * 60 + 5)>>

	<<if $exposed gte 1>>
	You keep your <<lewdness>> hidden beneath the surface of the water, but you still feel vulnerable and exposed. The rest of the class sneak looks when they think you can't see them.

	The swimming lesson begins, how do you want to conduct yourself?

	<<else>>

	The swimming lesson begins, how do you want to conduct yourself?

	<</if>>

<<else>>
	<<if $exposed gte 1>>
	The water helps conceal you, but you still feel exposed. The rest of the class sneak looks when they think you can't see them.

	The swimming lesson continues, how do you want to conduct yourself?

	<<else>>

The swimming lesson continues, how do you want to conduct yourself?

	<</if>>

<</if>>

<<link [[Focus on the lesson|Swimming Lesson Focus]]>><</link>><<gstress>><<gswimming>><<gtiredness>>

<<link [[Socialize with classmates|Swimming Lesson Socialize]]>><</link>><<gcool>><<ltrauma>><<lstress>><<gharass>>

<<link [[Daydream|Swimming Lesson Daydream]]>><</link>><<lstress>> <<lharass>>

<<if $exhibitionism gte 55>>
<<link [[Masturbate|Swimming Lesson Masturbate]]>><<set $masturbationstart to 1>><</link>><<exhibitionist4>>

<</if>>

:: School Pool Wrong [nobr]
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>

You speak in a low voice, so only the teacher will hear you.

<<if $playergender is "f">>
	<<if $playergenderappearance is "f">>
	"I only have a pair of boy's shorts, <<sirstop>>"

	<<He>> blushes. "Oh. That's better than nothing. Go get changed." <<He>> turns back to <<his>> class.

	<<elseif $playergenderappearance is "m">>
	"I only have a pair of boy's shorts, <<sirstop>>"

	<<He>> looks at you blankly. "I don't see the..." <<He>> blushes as realisation dawns on <<his>> youthful face. "Oh. That's better than nothing, and it's not like you have a problem dressing as a boy. Go get changed." <<He>> turns back to <<his>> class.

	<</if>>
<<elseif $playergender is "m">>
	<<if $playergenderappearance is "m">>
	"I only have a girl's suit, <<sirstop>>"

	<<He>> blushes. "Oh. That's better than nothing. Go get changed." <<He>> turns back to <<his>> class.

	<<elseif $playergenderappearance is "f">>
	"I only have a girl's suit, <<sirstop>>"

	<<He>> looks at you blankly. "I don't see the..." <<He>> blushes as realisation dawns on <<his>> youthful face. "Oh. That's better than nothing, and it's not like you have a problem dressing as a girl. Go get changed." <<He>> turns back to <<his>> class.

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

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

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

:: School Pool Spare [nobr]
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>
"I don't have a swimming costume, <<sirstop>>"

<<He>> sighs and climbs out the pool. "Come on, we might have some spares."

<<He>> takes you into a small room and rummages inside a cupboard.

<<if $rng gte 81 and $delinquency gte 200>>
"I'm sorry but we don't have anything to spare. You'll have to swim naked."

<<He>> doesn't wait for you to give voice to your anxiety. "The rest of the class will be distracted, just quietly slip into the water. No one will be able to see anything once you're in."

<<link [[Accept|School Pool Nude]]>><<storeclothes>><<set $storelocationinit to "pool">><<storelocation>><<undress>><<endevent>><<exposure>><</link>>

<<link [[Refuse|School Pool Refuse]]>><<detention 6>><<endevent>><</link>><<gdelinquency>>
<<elseif $rng gte 41>>
	<<if $playergender is "f">>
	<<He>> produces a bundle of fabric and passes it to you. "Don't be long!" <<He>> says happily, before leaving you alone in the room.

	You unfurl the fabric to reveal a rather tattered swimsuit. You slip it on and store your clothes in the cupboard, before heading out for the lesson.

	<<link [[Get changed|Swimming Lesson]]>><<endevent>><</link>>
<<storeclothes>><<set $storelocationinit to "pool">><<storelocation>><<undress>><<spareschoolswimsuit>><<exposure>>

	<<elseif $playergender is "m">>
		<<He>> produces a bundle of fabric and passes it to you. "Don't be long!" <<He>> says happily, before leaving you alone in the room.

	You unfurl the fabric to reveal a rather tattered pair of swim shorts. You slip them on and store your clothes in the cupboard, before heading out for the lesson.

	<<link [[Get changed|Swimming Lesson]]>><<endevent>><</link>>
<<storeclothes>><<set $storelocationinit to "pool">><<storelocation>><<undress>><<spareschoolswimshorts>><<exposure>>

	<</if>>
<<elseif $rng gte 1>>
	<<if $playergender is "f">>

<<He>> produces a bundle of fabric and passes it to you. "Don't be long!" <<He>> says happily, before leaving you alone in the room.

You unfurl the fabric to reveal a rather tattered pair of boy's swim shorts. You rummage in the cupboard yourself, but find not a scrap of clothing. It's the shorts or nothing.

<<link [[Wear the shorts|School Pool Crossdress]]>><<storeclothes>><<set $storelocationinit to "pool">><<storelocation>><<undress>><<spareschoolswimshorts>><<endevent>><<exposure>><</link>>

<<link [[Skip the lesson|School Pool Refuse]]>><<detention 6>><<endevent>><</link>><<gdelinquency>>
	<<elseif $playergender is "m">>

<<He>> produces a bundle of fabric and passes it to you. "Don't be long!" <<He>> says happily, before leaving you alone in the room.

You unfurl the fabric to reveal a rather tattered girl's swimsuit. You rummage in the cupboard yourself, but find not a scrap of clothing. It's the swimsuit or nothing.

<<link [[Wear the swimsuit|School Pool Crossdress]]>><<storeclothes>><<set $storelocationinit to "pool">><<storelocation>><<undress>><<spareschoolswimsuit>><<endevent>><<exposure>><</link>>

<<link [[Skip the lesson|School Pool Refuse]]>><<detention 6>><<endevent>><</link>><<gdelinquency>>
	<</if>>
<</if>>

:: Swimming Classroom Apology [nobr]
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>

Embarrassed, you apologise and leave.

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

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

:: Swimming Classroom Mock [nobr]
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>

You mock the teacher. "Sorry for interrupting <<sirstop>> I just wanted to see you in <<if $pronoun is "f">>that tight swimsuit<<else>>those tight shorts<</if>>." A few of the students laugh, others start blushing.

Mason also blushes. "I-I'll pretend I didn't hear that." <<He>> points to the changing rooms, before quickly looking away from you.<<gdelinquency>>

<<detention 1>><<set $masonlove -= 1>>
	<<link [[Boy's changing room|School Boy's Changing Room]]>><<endevent>><</link>>

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

:: School Pool Nude [nobr]
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>

You <<nervously>> undress and tuck your clothes away inside the cupboard. You open the door slightly and peek through the gap. Thirty or so students, plus the teacher. You'll get in trouble if you don't join them, but can you really expose yourself in front of so many people?

<<link [[This was a mistake!|School Pool Refuse]]>><<undress>><<storeon>><</link>>

<<link [[I have no choice|School Pool Nude Entry]]>><</link>>

:: School Pool Refuse [nobr]
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>

There's no way you're doing this. You leave the pool, clothes on and dignity intact, but refusing a teacher will have consequences.

<<link [[Next|School Pool Entrance]]>><</link>>

:: School Pool Crossdress [nobr]
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>

<<if $phase is 1>><<set $phase to 0>>

You steel yourself and walk through the door, <<lewdness>> on display. You manage to get beneath the flimsy protection of the water, but not before the rest of the class become aware of your state.<<garousal>><<arousal 6>>

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

<<elseif $exposed gte 1>>

You <<nervously>> undress and tuck your clothes away inside the cupboard, before slipping on the <<if $playergender is "f">>shorts<<else>>swimsuit<</if>>. You look down at your <<breastscomma>> there's no way you'll pass as a boy. You open the door slightly and peek through the gap. Thirty or so students, plus the teacher. You'll get in trouble if you don't join them, but can you really expose yourself in front of so many people?

<<link [[This was a mistake!|School Pool Refuse]]>><<undress>><<storeon>><</link>>

<<link [[I have no choice|School Pool Crossdress]]>><<set $phase to 1>><</link>>

<<elseif $exposed lte 0>>

You <<nervously>> undress and tuck your clothes away inside the cupboard, before slipping on the <<if $playergender is "f">>shorts<<else>>swimsuit<</if>>.

You enter the pool room proper. A couple of heads turn, but no one gives you a second glance as you climb into the water.

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

<</if>>

:: School Pool Nude Entry [nobr]
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>

You steel yourself and walk through the door, doing your best to cover your displayed <<nuditystop>> You manage to get beneath the flimsy protection of the water, but not before the rest of the class become aware of your state.<<garousal>><<arousal 6>>

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

:: Swimming Lesson Focus [nobr]
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<water>><<effects>>

<<if $exposed gte 1>>

You focus on following Mason's instructions and exerting yourself. Doing so while keeping your body concealed beneath the water proves to be difficult.<<physique 3>><<swimmingskilluse>>

<<elseif $exposed lte 0>>

You focus on following Mason's instructions and exerting yourself. It's hard going, but you think you're making progress.<<physique 3>><<swimmingskilluse>>

<</if>>

<<pass 5>><<stress 1>><<tiredness 1>>
<<schooleffects>>
<<if $time gte ($hour * 60 + 5) and $time lte ($hour * 60 + 57)>>
<<pass 5>><<stress 1>><<tiredness 1>>
<<schooleffects>>
<<else>>
<<set $phase to 1>>
<</if>>
<<if $time gte ($hour * 60 + 5) and $time lte ($hour * 60 + 57)>>
<<pass 5>><<stress 1>><<tiredness 1>>
<<schooleffects>>
<<else>>
<<set $phase to 1>>
<</if>>
<<if $time gte ($hour * 60 + 5) and $time lte ($hour * 60 + 57)>>
<<pass 5>><<stress 1>><<tiredness 1>>
<<schooleffects>>
<<else>>
<<set $phase to 1>>
<</if>>
<<if $time gte ($hour * 60 + 5) and $time lte ($hour * 60 + 57)>>
<<else>>
<<set $phase to 1>>
<</if>>

<<if $phase is 1>><<set $phase to 0>>
	<<if $exposed gte 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 $time is ($hour * 60 + 57)>>
	<<pass 3>>
	<<elseif $time is ($hour * 60 + 58)>>
	<<pass 2>>
	<<elseif $time is ($hour * 60 + 59)>>
	<<pass 1>>
	<</if>>

	<<if $exposed lte 0>>
	<<link [[Boy's Changing Room|School Boy's Changing Room]]>><</link>>

	<<link [[Girl's Changing Room|School Girl's Changing Room]]>><</link>>

	<</if>>
	<<if $storelocation is "pool">>
	<<link [[Get changed|Swimming Pool Change]]>><</link>>

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

	<<link [[Grab some towels and enter the girl's Changing Room|School Girl's Changing Room]]>><</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>>

:: Swimming Lesson Socialize [nobr]
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<water>><<effects>>

<<if $exposed gte 1>>

You pay little attention to the lesson, instead chatting with your fellow students. Some look away bashfully when you try to engage, but you catch them looking now and then.

<<elseif $exposed lte 0>>

You pay little attention to the lesson, instead chatting with your fellow students.

<</if>>

<<pass 5>><<status 1>><<trauma -1>><<stress -1>>
<<schooleffects>>
<<if $time gte ($hour * 60 + 5) and $time lte ($hour * 60 + 57)>>
<<pass 5>><<stress -1>>
<<schooleffects>>
<<else>>
<<set $phase to 1>>
<</if>>
<<if $time gte ($hour * 60 + 5) and $time lte ($hour * 60 + 57)>>
<<pass 5>><<trauma -1>><<stress -1>>
<<schooleffects>>
<<else>>
<<set $phase to 1>>
<</if>>
<<if $time gte ($hour * 60 + 5) and $time lte ($hour * 60 + 57)>>
<<pass 5>><<stress -1>>
<<schooleffects>>
<<else>>
<<set $phase to 1>>
<</if>>
<<if $time gte ($hour * 60 + 5) and $time lte ($hour * 60 + 57)>>
<<else>>
<<set $phase to 1>>
<</if>>
<<if $phase is 1>><<set $phase to 0>>
	<<if $exposed gte 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 $time is ($hour * 60 + 57)>>
	<<pass 3>>
	<<elseif $time is ($hour * 60 + 58)>>
	<<pass 2>>
	<<elseif $time is ($hour * 60 + 59)>>
	<<pass 1>>
	<</if>>

	<<if $exposed lte 0>>
	<<link [[Boy's Changing Room|School Boy's Changing Room]]>><</link>>

	<<link [[Girl's Changing Room|School Girl's Changing Room]]>><</link>>

	<</if>>
	<<if $storelocation is "pool">>
	<<link [[Get changed|Swimming Pool Change]]>><</link>>

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

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

	<</if>>

<<else>>

	<<if $exposed gte 1>>

	<<set $danger to random(1, 10000)>><<set $dangerevent to 0>>
		<<if $danger gte (8900 - ($allure * 2))>>
		<<eventsswimming>>
		<<else>>
		<<eventsswimmingsafe>>
		<</if>>

	<<elseif $exposed lte 0>>

	<<set $danger to random(1, 10000)>><<set $dangerevent to 0>>
		<<if $danger gte (8900 - ($allure / 2))>>
		<<eventsswimming>>
		<<else>>
		<<eventsswimmingsafe>>
		<</if>>
	<</if>>
<</if>>

:: Swimming Lesson Daydream [nobr]
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<water>><<effects>>

<<if $trauma gte (($traumamax / 10) * 7)>>
You keep to yourself, afraid that one wrong move will result in the whole class molesting you.
<<elseif $trauma gte (($traumamax / 10) * 2)>>
You focus on your own thoughts, trying to keep the creeping anxiety at bay.
<<else>>
	<<if $exposed gte 1>>
	Vulnerable as you are you don't really pay attention to the lesson, instead idly paddling and keeping your <<lewdness>> covered.
	<<elseif $exposed lte 1>>
You don't really pay attention to the lesson, instead idly paddling and thinking about what you'll do after school.
	<</if>>
<</if>>

<<pass 5>><<status 1>><<trauma -1>><<stress -1>>
<<schooleffects>>
<<if $time gte ($hour * 60 + 5) and $time lte ($hour * 60 + 57)>>
<<pass 5>><<stress -1>>
<<schooleffects>>
<<else>>
<<set $phase to 1>>
<</if>>
<<if $time gte ($hour * 60 + 5) and $time lte ($hour * 60 + 57)>>
<<pass 5>><<trauma -1>><<stress -1>>
<<schooleffects>>
<<else>>
<<set $phase to 1>>
<</if>>
<<if $time gte ($hour * 60 + 5) and $time lte ($hour * 60 + 57)>>
<<pass 5>><<stress -1>>
<<schooleffects>>
<<else>>
<<set $phase to 1>>
<</if>>
<<if $time gte ($hour * 60 + 5) and $time lte ($hour * 60 + 57)>>
<<else>>
<<set $phase to 1>>
<</if>>
<<if $phase is 1>><<set $phase to 0>>
	<<if $exposed gte 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 $time is ($hour * 60 + 57)>>
	<<pass 3>>
	<<elseif $time is ($hour * 60 + 58)>>
	<<pass 2>>
	<<elseif $time is ($hour * 60 + 59)>>
	<<pass 1>>
	<</if>>

	<<if $exposed lte 0>>
	<<link [[Boy's Changing Room|School Boy's Changing Room]]>><</link>>

	<<link [[Girl's Changing Room|School Girl's Changing Room]]>><</link>>

	<</if>>
	<<if $storelocation is "pool">>
	<<link [[Get changed|Swimming Pool Change]]>><</link>>

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

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

	<</if>>

<<else>>

	<<if $exposed gte 1>>

	<<set $danger to random(1, 10000)>><<set $dangerevent to 0>>
		<<if $danger gte (8900 - ($allure / 2))>>
		<<eventsswimming>>
		<<else>>
		<<eventsswimmingsafe>>
		<</if>>

	<<elseif $exposed lte 0>>

	<<set $danger to random(1, 10000)>><<set $dangerevent to 0>>
		<<if $danger gte (8900 - ($allure / 10))>>
		<<eventsswimming>>
		<<else>>
		<<eventsswimmingsafe>>
		<</if>>
	<</if>>
<</if>>

:: Swimming Pool Change [nobr]
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>
<<undress>><<storeon>>
You make the short dash to the side room without any interference. You find your clothes where you left them. You quickly dry yourself and change.

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

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