code:
:: Science Event1

<<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

<<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

<<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>>

	<<if $uncomfortable.nude is false>>
		<<link [[Undress|Science Undress]]>><<schoolrep_naked>><<strip>><<set $phase to 4>><<npcincr Sirris dom 1>><<scienceskill>><<arousal 600>><</link>><<garousal>><<gscience>>

	<<else>>
		<<link [[Undress|Science Undress]]>><<schoolrep_naked>><<strip>><<set $phase to 4>><<npcincr Sirris dom 1>><<scienceskill>><<stress 1>><</link>><<gstress>><<gscience>>

	<</if>>
<<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>>

	<<if $uncomfortable.nude is false>>
		<<link [[Undress|Science Undress]]>><<schoolrep_naked>><<strip>><<set $phase to 3>><<npcincr Sirris dom 1>><<scienceskill>><<arousal 600>><<set $scienceprogression to 4>><</link>><<garousal>><<gscience>>

	<<else>>
		<<link [[Undress|Science Undress]]>><<schoolrep_naked>><<strip>><<set $phase to 3>><<npcincr Sirris dom 1>><<scienceskill>><<stress 1>><<set $scienceprogression to 4>><</link>><<gstress>><<gscience>>

	<</if>>
<<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>>

	<<if $uncomfortable.nude is false>>
		<<link [[Undress|Science Undress]]>><<schoolrep_naked>><<strip>><<set $phase to 2>><<npcincr Sirris dom 1>><<scienceskill>><<arousal 600>><<set $scienceprogression to 3>><</link>><<garousal>><<gscience>>

	<<else>>
		<<link [[Undress|Science Undress]]>><<schoolrep_naked>><<strip>><<set $phase to 2>><<npcincr Sirris dom 1>><<scienceskill>><<stress 1>><<set $scienceprogression to 3>><</link>><<gstress>><<gscience>>

	<</if>>
<<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 !$worn.under_lower.type.includes("naked")>>
		<<link [[Refuse|Science Refusal]]>><<detention 1>><</link>><<gdelinquency>>

		<<if $uncomfortable.underwear is false>>
			<<link [[Undress|Science Undress]]>><<upperstrip>><<lowerstrip>><<set $phase to 1>><<npcincr Sirris dom 1>><<scienceskill>><<arousal 600>><<set $scienceprogression to 2>><</link>><<garousal>><<gscience>>

		<<else>>
			<<link [[Undress|Science Undress]]>><<upperstrip>><<lowerstrip>><<set $phase to 1>><<npcincr Sirris dom 1>><<scienceskill>><<stress 1>><<set $scienceprogression to 2>><</link>><<gstress>><<gscience>>

		<</if>>
	<<else>>
		<<if $uncomfortable.nude is false>>
			You speak clearly, making sure the whole class hears. "I'm not wearing any."
		<<else>>
			You speak as quietly as possible, making sure only Sirris can hear. "I'm... I'm not wearing any."

		<</if>>
		<<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>>

			<<if $uncomfortable.nude is false>>
				<<link [[Undress|Science Undress]]>><<schoolrep_naked>><<strip>><<set $phase to 2>><<npcincr Sirris dom 1>><<scienceskill>><<stress 1>><<arousal 300>><<set $scienceprogression to 2>><</link>><<garousal>><<gscience>>

			<<else>>
				<<link [[Undress|Science Undress]]>><<schoolrep_naked>><<strip>><<set $phase to 2>><<npcincr Sirris dom 1>><<scienceskill>><<stress 1>><<trauma 1>><<set $scienceprogression to 2>><</link>><<gtrauma>><<gstress>><<gscience>>

			<</if>>
		<<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]]>><<strip>><<schoolrep_naked>><<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

<<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
<<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. <<if pregnancyBellyVisible()>><<He>> spends some amount of time talking about your belly and the baby inside. <</if>>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>>
	<<push_nnpc_genderknown true>>

	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. <<if pregnancyBellyVisible()>><<He>> spends some amount of time talking about your belly and the baby inside. <</if>>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>>
	<<push_nnpc_genderknown true>>

	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. <<if pregnancyBellyVisible()>><<He>> spends some amount of time talking about your belly and the baby inside. <</if>>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. 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.

	<<if $uncomfortable.nude is false>>
		<<link [[Climb atop the desk|Science Undress Desk]]>><<npcincr Sirris dom 1>><<scienceskill>><<arousal 600>><<set $scienceprogression to 4>><</link>><<garousal>><<gscience>>

	<<else>>
		<<link [[Climb atop the desk|Science Undress Desk]]>><<npcincr Sirris dom 1>><<scienceskill>><<stress 1>><<trauma 1>><<set $scienceprogression to 4>><</link>><<gtrauma>><<gstress>><<garousal>><<gscience>>

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

<<elseif $phase is 4>>
	<<push_nnpc_genderknown true>>

	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. <<if pregnancyBellyVisible()>><<He>> spends some amount of time talking about your belly and the baby inside. <</if>>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.

	<<if $uncomfortable.nude is false>>
		<<link [[Climb atop the desk|Science Undress Desk]]>><<npcincr Sirris dom 1>><<scienceskill>><<stress 1>><<arousal 600>><<set $scienceprogression to 4>><</link>><<garousal>><<gscience>>

	<<else>>
		<<link [[Climb atop the desk|Science Undress Desk]]>><<npcincr Sirris dom 1>><<scienceskill>><<stress 1>><<trauma 1>><<set $scienceprogression to 4>><</link>><<gtrauma>><<gstress>><<garousal>><<gscience>>

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

<<elseif $phase is 5>>
	<<if !$worn.genitals.type.includes("hidden")>>
		<<push_nnpc_genderknown true>>
	<</if>>
	<<flaunting>> 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
<<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.
	<<arousal 2000>>

	<<if $worn.genitals.type.includes("chastity")>>
		"As you can see, <<pshe>> is wearing a $worn.genitals.name, but we should be able to move it slightly for a better look..."<<person1>><<He>> starts tugging on your $worn.genitals.name, this way and that, rubbing it against your <<genitals 1>>. 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 $player.vaginaExist>>
		<<if $player.penisExist>>
			<<person1>><<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. "As you can see, <<pshe>> is someone who is rather unique in having both a penis and a vagina.

			<<person2>>"<<pShes>><<if $penissize lt 0>> not<</if>> getting hard!" exclaims the <<person>>, redoubling your humiliation. Sirris ignores the interjection and continues.

		<</if>>
		<<if (setup.bodyliquid.combined("vagina")) gte 7>>
			<<person1>><<He>> produces a speculum. As soon as <<he>> inserts it into your vagina, cum and sexual fluids squirt out and quickly pool on <<his>> desk. Your classmates crowd round for a closer look, shoving each other for a better position.

			"Is that cum, <<sir>>?!"

			"Haven't you ever washed that?"

			"How many guys have you fucked!?"

			"<<pShe>> probably washed it out this morning!"

			"Need a refill?"

			Sirris is silent, probably lost for words.
			<<set $player.bodyliquid.vagina.semen -=2>><<set $player.bodyliquid.vagina.goo -=2>>

		<<elseif (setup.bodyliquid.combined("vagina")) gte 3>>
			<<person1>><<He>> produces a speculum and inserts it into your vagina, before opening it and giving the class a clear view of your cervix. Some cum and sexual fluids drool out and start to pool on <<his>> desk. Your classmates crowd round for a closer look, shoving each other for a better position.

			"Is that normal, <<sir>>?"

			"That looks like cum!"

			Sirris is silent.

		<<else>>
			<<person1>><<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.

		<</if>>

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

	<<else>>
		<<person1>><<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.

		<<if $wolfgirl gte 4 and !["hidden", "disabled"].includes($transformationParts.wolf.pubes)>>
			"<<pShes>> really hairy!" one girl says. "Is that normal, <<sir>>?"

		<</if>>

		<<person2>>"<<pShes>><<if $penissize lt 0>> not<</if>> getting hard!" exclaims the <<person>>, 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>>

<<else>>
	You do as instructed, and spread your legs, exposing yourself to the room. Sirris looks increasingly flustered, but continues regardless.
	<<arousal 2000>>
	<<if $worn.genitals.type.includes("chastity")>>
		"As you can see, <<pshe>> is wearing a $worn.genitals.name, but we should be able to move it slightly for a better look..."<<person1>><<He>> starts tugging on your $worn.genitals.name, this way and that, rubbing it against your <<genitals 1>>. 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 $player.vaginaExist>>
		<<if $player.penisExist>>
			<<person1>><<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. "As you can see, <<pshe>> is someone who is rather unique in having both a penis and a vagina.

			<<person2>>"<<pShes>><<if $penissize lt 0>> not<</if>> getting hard!" exclaims the <<person>>, redoubling your humiliation. Sirris ignores the interjection and continues.

		<</if>>
		<<person1>><<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 <<person>>, redoubling your humiliation. Sirris ignores the interjection and commences <<person1>><<his>> explanation of female anatomy, using your displayed womanhood as a prop.

	<<else>>
		<<person1>><<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>><<if $penissize lt 0>> not<</if>> getting hard!" exclaims the <<person>>, 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

<<if $molestationstart is 1>>
	<<set $molestationstart to 0>>
	<<controlloss>>
	<<violence 1>>
	<<neutral 1>>
	<<molested>>

	<<generates1>><<generates2>><<generates3>><<generates4>><<generates5>><<generates6>><<maninit>><<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
<<effects>>
<<endcombat>>

<<npc Leighton>><<person1>>Leighton's stern voice resonates through the room, and the <<group>> back off. Sirris must have summoned <<him>> when <<endevent>><<npc 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]]>><<endevent>><</link>>

:: Science Terrarium
<<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 to 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 100>><<scienceskill 1>><</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 to 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 100>><<scienceskill 1>><</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 to 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 100>><<scienceskill 1>><</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 to 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 100>><<scienceskill 1>><</link>><<gtrauma>><<gstress>><<garousal>><<gscience>>

	<<link [[Move away|Science Terrarium Escape]]>><</link>>
<<else>>
	A <<person1>><<person>> and <<person2>><<person>> move to 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 100>><<scienceskill 1>><</link>><<gtrauma>><<gstress>><<garousal>><<gscience>>

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

:: Science Terrarium Endure
<<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." The <<group>> 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, the <<group>> 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." The <<group>> 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, the <<group>> 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." The <<group>> 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, the <<group>> 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." The <<group>> 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, the <<group>> 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, the <<group>> tire and move away, allowing you to continue unmolested.

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

<</if>>

:: Science Terrarium Escape
<<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
<<if $molestationstart is 1>>
	<<set $molestationstart to 0>>
	<<controlloss>>
	<<violence 1>>
	<<neutral 1>>
	<<molested>>

	<<maninit>>
	<<if $phase is 1>>
		<<set $timer to 6>><<npcstrip>><<enable_rescue>>
	<<elseif $phase is 2>>
		<<set $timer to 12>><<npcstrip>><<enable_rescue>>
	<<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
<<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
<<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 $worn.upper.integrity -= 10>><<set $worn.lower.integrity -= 10>><<set $worn.under_lower.integrity -= 10>>
<<endevent>>

<<npc 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
<<effects>>
<<endevent>><<npc 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
<<set $outside to 1>><<set $location to "school">><<effects>><<set $bus to "danube">>

<<if $molestationstart is 1>>
	<<set $molestationstart to 0>>
	<<molested>>
	<<controlloss>>
	<<set $combat to 1>>
	<<set $enemytype to "swarm">>
	<<swarminit "worms" "jar" "held above the terrarium" "fall into the terrarium" "block" 0 10>>

	<<set $timer to 24>>
	<<set $phase to 2>>
<</if>>

<<if $phase is 2>>
	<<set $phase to 1>>
	The pair of students sit 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 $stressmax>>
	<<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
<<effects>>

<<if $timer lte 0>>
<<endevent>>
<<npc 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
<<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
<<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 $worn.lower.name. Suitably covered, you lift the box and resume your journey. Fortunately the delinquents torment you no further, content to laugh at your back.

	<<endevent>>
	<<npc 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

<<if $molestationstart is 1>>
	<<if $phase is 3>>
		<<set $molestationstart to 0>>
		<<controlloss>>
		<<violence 1>>
		<<neutral 1>>
		<<molested>>
		<<maninit>><<npcstrip>><<set $timer to 20>>
		<<if $delinquency lt 400>>
			<<enable_rescue>>
		<</if>>
	<<elseif $phase is 4>>
		<<set $molestationstart to 0>>
		<<controlloss>>
		<<violence 1>>
		<<neutral 1>>
		<<molested>>
		<<maninit>><<hand_gag 0 left>>
		<<if $delinquency lt 400>>
			<<enable_rescue>>
		<</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
<<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 !$worn.upper.type.includes("naked") and !$worn.lower.type.includes("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>>

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

	<<endcombat>>

		<<if !$worn.upper.type.includes("naked") and !$worn.lower.type.includes("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]]>><<endevent>><</link>>
<<elseif $rescue is 1 and $alarm is 1>><<set $rescued += 1>>
	<<endevent>><<npc Leighton>><<person1>>Leighton rounds a corner, having heard your scream. The <<group>>'s demeanour changes immediately, and they are harried back to <<his>> office. <<tearful>> you head back to the classroom.

	<<clotheson>>
	<<endcombat>>

		<<if !$worn.upper.type.includes("naked") and !$worn.lower.type.includes("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, the <<group>> take their leave. You hear their laughter long after they pass from view. <<tearful>> you gather yourself.

	<<clotheson>>
	<<endcombat>>

		<<if !$worn.upper.type.includes("naked") and !$worn.lower.type.includes("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
<<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
<<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 <<if $rightarm is "bound" or $leftarm is "bound">>arm<<else>>limb<</if>>s while swimming. Just be careful, okay?"

<<endevent>>

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

:: Science Kick
<<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>>
<<npc 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
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

<<if $schoolstate is "first">>
	<<if $worn.upper.type.includes("naked") and $worn.lower.type.includes("naked")>>
		<<outfitChecks>>
		/*Check for when the pc is only wearing an overcoat*/
		<<if $worn.over_upper.name isnot "naked" and $worn.over_lower.name isnot "naked" and $worn.under_upper.name is "naked" and $worn.under_lower.name is "naked">>
			As you go to hang your <<if _middleOutfit>>$worn.over_upper.name<<else>>$worn.over_upper.name and $worn.over_lower.name<</if>>, you remember that you're naked underneath.
		<<elseif $worn.over_upper.name isnot "naked" and $worn.over_lower.name isnot "naked" and ($worn.under_upper.type.includes("swim") or $worn.under_lower.type.includes("swim"))>>
			As you go to hang your <<if _middleOutfit>>$worn.over_upper.name<<else>>$worn.over_upper.name and $worn.over_lower.name<</if>>, you remember that you're only wearing swimwear underneath.
		<<elseif $worn.over_upper.name isnot "naked" and $worn.over_lower.name isnot "naked" and $worn.under_upper.name isnot "naked" and $worn.under_lower.name isnot "naked">>
			As you go to hang your <<if _middleOutfit>>$worn.over_upper.name<<else>>$worn.over_upper.name and $worn.over_lower.name<</if>>, you remember that you're only wearing underwear underneath.
		<</if>>

		<<npc Sirris>><<person1>>
		Sirris looks at you while you stand there. "What are you staring into space for? You can't just be wearing nothing under that coat can you? The head might have some spares if you need them."

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

	<<elseif $worn.upper.type.includes("school") and $worn.lower.type.includes("school") and $rightarm isnot "bound">>
		<<if $scienceattended is 1>>
			You rejoin the science lesson,
			<<if $worn.over_upper.name isnot "naked" or $worn.over_lower.name isnot "naked" or $worn.over_head.name isnot "naked">>
				hang your coat at the back of the class
				<<undressOverClothes "scienceClassroom">>
			<</if>>
			and take your seat.

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

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

			You enter the science classroom.
			<<npc Sirris>><<person1>>
			Sirris is preparing at the front of the room while the seats fill.
			<<if $worn.over_upper.name isnot "naked" or $worn.over_lower.name isnot "naked" or $worn.over_head.name isnot "naked">>
				<<undressOverClothes "scienceClassroom">>
				You hang your coat at the back of the class and take your seat.
			<</if>>

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

		<<else>>
			You enter the science classroom.
			<<npc Sirris>><<person1>>
			<<if $scienceExcused is true>>
				<<unset $scienceExcused>>
				Sirris cuts off mid-sentence to regard you. "Excused tardiness, please take a seat." <<He>> smiles at you.
			<<else>>
				Sirris cuts off mid-sentence to regard you. "I'm sorry, but I'll have to record your tardiness."
				<<gdelinquency>>

				<<detention 1>>
			<</if>>
			You
			<<if $worn.over_upper.name isnot "naked" or $worn.over_lower.name isnot "naked" or $worn.over_head.name isnot "naked">>
				hang your coat at the back of the class and
				<<undressOverClothes "scienceClassroom">>
			<</if>>
			take a seat as Sirris continues.

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

		<</if>>

	<<elseif $rightarm is "bound" or $leftarm is "bound" or $feetuse is "bound">>
		Sirris notices your bound <<if $rightarm is "bound" or $leftarm is "bound">>arms<</if>><<if ($rightarm is "bound" or $leftarm is "bound") and $feetuse is "bound">> and <</if>><<if $feetuse is "bound">>legs<</if>>. "Is this some kind of experiment? The results would be really hazardous. I can't let you do science like that. Go see the head."

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

	<<else>>
		<<npc 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>>
	<<if $worn.upper.type.includes("naked") and $worn.lower.type.includes("naked")>>

		You don't think you should study while not being properly dressed.

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

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

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

		<<npc 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>>

		<<npc 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.

	<<if $arousal gte $arousalmax>>
		<<orgasmLocation "emptyClassroom">>
	<</if>>
	<<storeon "scienceClassroom" "check">>
	<<if _store_check is 1>>
		<<storeon "scienceClassroom">>
		You take your coat at the back of the class.

	<</if>>

	<<exhibitionclassroom>>

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

<</if>>

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

Embarrassed, you apologise and leave.

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

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

You mock the teacher. "A white lab coat is a good idea <<sir>>, 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>><<npcincr Sirris love -1>>
<<link [[Next|Hallways]]>><<endevent>><</link>>

:: Science Classroom Study
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>
<<if $worn.over_upper.name isnot "naked" or $worn.over_lower.name isnot "naked" or $worn.over_head.name isnot "naked">>
	<<undressOverClothes "scienceClassroom">>
	You hang your coat at the back of the class, take your seat and read a science textbook.
<<else>>
	You take a seat and read a science textbook.
<</if>>

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

<<if $worn.upper.type.includes("school") and $worn.lower.type.includes("school") and $rightarm isnot "bound" and $leftarm isnot "bound" and $feetuse isnot "bound">>

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

<<elseif $rightarm is "bound" or $leftarm is "bound" or $feetuse is "bound">>
	Sirris notices your bound <<if $rightarm is "bound" or $leftarm is "bound">>arms<</if>><<if ($rightarm is "bound" or $leftarm is "bound") and $feetuse is "bound">> and <</if>><<if $feetuse is "bound">>legs<</if>>. "Is this some kind of experiment? The results would be really dangerous. I can't let you do science like that. Go see the head."

	<<link [[Next|Hallways]]>><<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>>

<<schooleffects>>
<<set _time_to_pass to 60 - $minute>>
<<if $hour is 7>>

	<<set _time_to_pass += 60>>
<</if>>
<<pass _time_to_pass>>
<<schooleffects>>

<<set _stress to Math.trunc(_time_to_pass / 5)>>
<<stress _stress>>

<<set _science to _time_to_pass / 20>>
<<scienceskill _science>>

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

<<if $weekday is 6 and $minute gte 37>>
	<<npc Sirris>><<person1>>
	"It's time for the Friday exam," Sirris says, handing out booklets. "Don't be nervous."<<gstress>><<stress 6>>

	<<if $arousal gte $arousalmax>>
		<<set _teacher to "Sirris">>
		<<orgasmLocation "classroom">>
	<</if>>

	<<exam science>>

	There's a shuffle of paper as students open the first page. "No talking during the exam," Sirris adds as <<he>> sits at the front of the room. "Even if you've finished. It won't take long."

	<<endevent>>
	<<exam_cheat science>>
	<<link [[Focus|Science Exam]]>><<stress 6>><<set $phase to 0>><<set $exam_chance += 5>><</link>><<gstress>> | + 5% Pass chance

	<<link [[Try to relax|Science Exam]]>><<set $phase to 1>><</link>>

	<<link [[Cheat|Science Exam]]>><<set $phase to 2>><</link>><<skulduggerydifficulty>>

<<elseif $schoolevent is 0 and $schooleventtimer lte 0 and $weekday isnot 6>><<set $schoolevent += 1>><<set $schooleventtimer to 14>>
	<<npc 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>><<npc 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>><<npc 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>><<npc Leighton>><<person1>>

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

<<elseif $schoolevent is 1 and $schooleventtimer lte 0 and $weekday isnot 6>><<set $schoolevent += 1>><<set $schooleventtimer to 14>>
	<<npc Sirris>><<person1>>"The headteacher has once again asked to take charge of the lesson," Sirris says.<<endevent>><<npc 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>><<npc Sirris>><<person1>>
	"O-okay." Sirris turns to the class as <<he>> leaves. "Be good," <<he>> whispers.

	<<endevent>><<npc Leighton>><<person1>>

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

<<elseif $schoolevent is 2 and $schooleventtimer lte 0 and $weekday isnot 6>><<set $schoolevent += 1>><<set $schooleventtimer to 14>>
	<<npc 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>><<npc 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>><<npc Sirris>><<person1>>
	Sirris looks at the class as <<he>> leaves. "I won't be long," <<he>> whispers.

	<<endevent>><<npc 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>>
	<<if $arousal gte $arousalmax>>
		<<set _teacher to "Sirris">>
		<<orgasmLocation "classroom">>
	<</if>>

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

	<<link [[Socialise with classmates|Science Lesson Socialise]]>><</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 Socialise
<<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 gte ($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>>

<<status 1>>

<<advancelesson>>
<<set _stress to _lesson_progress * -1>>
<<stress _stress>>
<<set _trauma to _lesson_progress * -0.5>>
<<trauma _trauma>>

<<if $phase is 1>>
	<<set $phase to 0>>
	The bell rings, signifying the end of the lesson. You
	<<storeon "scienceClassroom" "check">>
	<<if _store_check is 1>>
		<<storeon "scienceClassroom">>
		grab your coat and
	<</if>>
	leave the classroom.

	<<link [[Next|Hallways]]>><<endevent>><</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
<<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>>

<<advancelesson>>
<<set _stress to _lesson_progress * -1>>
<<stress _stress>>

<<if $phase is 1>>
	<<set $phase to 0>>
	The bell rings, signifying the end of the lesson. You
	<<storeon "scienceClassroom" "check">>
	<<if _store_check is 1>>
		<<storeon "scienceClassroom">>
		grab your coat and
	<</if>>
	leave the classroom.

	<<link [[Next|Hallways]]>><<endevent>><</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
<<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.

<<advancelesson>>
<<scienceskill _lesson_progress>>
<<stress _lesson_progress>>

<<if $phase is 1>>
	<<set $phase to 0>>
	The bell rings, signifying the end of the lesson. You
	<<storeon "scienceClassroom" "check">>
	<<if _store_check is 1>>
		<<storeon "scienceClassroom">>
		grab your coat and
	<</if>>
	leave the classroom.

	<<link [[Next|Hallways]]>><<endevent>><</link>>
<<else>>
	<<set $danger to random(1, 10000)>><<set $dangerevent to 0>>
	<<if $danger gte (8900 - $allure)>>
		<<eventsscience>>
	<<else>>
		<<eventssciencesafe>>
	<</if>>
<</if>>

repo_name: Area/degrees

license: mit


code:
:: Events Swimming Molestation

<<if $molestationstart is 1>>
	<<set $molestationstart to 0>>
	<<controlloss>>
	<<violence 1>>
	<<neutral 1>>
	<<molested>>
	<<maninit>><<npcexpose>>
	<<set $timer to 18>>
	<<if $delinquency lt 400>><<enable_rescue>><</if>>
	The <<person2>><<person>> continues to fondle your butt while the <<person1>><<person>> bends down to your chest.
	<<if $worn.upper.exposed gte 2 and $worn.under_upper.exposed gte 1>>
		Without breaking eye contact, <<he>> gently licks your <<nipple>> with the tip of <<his>> tongue.
	<<elseif $worn.upper.exposed gte 2>>
		Without breaking eye contact, <<he>> gently licks your <<nipple>> through your $worn.under_upper.name with the tip of <<his>> tongue.
	<<else>>
		Without breaking eye contact, <<he>> gently licks your <<nipple>> through your $worn.upper.name 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

<<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 $worn.upper.exposed gte 2 and $worn.under_upper.exposed gte 1>>
	Without breaking eye contact, <<he>> gently licks your <<nipple>> with the tip of <<his>> tongue.
<<elseif $worn.upper.exposed gte 2>>
	Without breaking eye contact, <<he>> gently licks your <<nipple>> through your $worn.under_upper.name with the tip of <<his>> tongue.
<<else>>
	Without breaking eye contact, <<he>> gently licks your <<nipple>> through your $worn.upper.name 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

<<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 <<him>>.

	<<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
<<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.
<<underlowerruined>><<underupperruined>>

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

:: Events Swimming Molestation Single
<<if $molestationstart is 1>>
	<<set $molestationstart to 0>>
	<<controlloss>>
	<<violence 1>>
	<<neutral 1>>
	<<molested>>

	<<maninit>><<npcexpose>>
	<<if $delinquency lt 400>><<enable_rescue>><</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
<<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
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>

<<flaunting>> 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
<<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
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>

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

<<if $player.gender_appearance is "m">>
	<<link [[Next|School Boy Changing Room]]>><<endevent>><</link>>
<<else>>
	<<link [[Next|School Girl Changing Room]]>><<endevent>><</link>>
<</if>>

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

You swim right up to the <<person>>, and tell <<him>> to leave you alone. "S-sorry," <<he>> says, staring at <<his>> feet.<<endevent>><<npc 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
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>

<<if $rng gte 81>>
	You try to ignore the <<person>>, 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
<<if $molestationstart is 1>>
	<<set $molestationstart to 0>>
	<<controlloss>>
	<<violence 1>>
	<<neutral 1>>
	<<molested>>

	<<maninit>>
	<<if $delinquency lt 400>><<enable_rescue>><</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
<<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 <<person>>. "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
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>

<<if $swimmingSuccess>>
	You disappear beneath the water and swim away from them. They try to keep up, but tire and instead hunt for easier prey.

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

<<else>>
	<<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 $worn.under_lower.name. "I think I know how to remind you of your place."

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

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

:: Evens Swimming Endure
<<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
<<if $molestationstart is 1>>
	<<set $molestationstart to 0>>
	<<controlloss>>
	<<violence 1>>
	<<neutral 1>>
	<<molested>>

	<<maninit>>
	<<if $delinquency lt 400>><<enable_rescue>><</if>>
	<<set $timer to 20>>
<</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 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
<<if $molestationstart is 1>>
	<<set $molestationstart to 0>>
	<<controlloss>>
	<<violence 1>>
	<<neutral 1>>
	<<molested>>

	<<maninit>><<npcstrip>>
	<<if $delinquency lt 400>><<enable_rescue>><</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 $worn.under_upper.type.includes("naked") and $worn.under_lower.type.includes("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
<<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>><<person>>, who throws it to the <<person3>><<person>>, 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>>

	<<stealclothes>>

	<<clotheson>>
	<<endcombat>>

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

<</if>>

:: Events Swimming Nude Molestation Finish
<<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>>
<<else>>
	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
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>

<<if $delinquency gte 400>>
	<<endevent>><<npc 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>><<npc 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>>

:: Events Swimming NPC Dive
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>
<<if $phase is 1>>The <<person>>
	<<if $rng gte 80>>
		dives elegantly
	<<elseif $rng gte 60>>
		bellyflops painfully
	<<elseif $rng gte 40>>
		dives competently
	<<elseif $rng gte 20>>
		jumps quickly
	<<else>>
		splashes clumsily
	<</if>>
	into the water.
	<<if $rng gte 60>>
		A number of people <<if $rng lt 80>>sarcastically<</if>>
		applaud.
	<</if>>
	<<if $rng % 4 is 0 and $swimall is 1>>
		Several blush while staring at the <<person>>'s genitals.
	<<elseif $rng % 4 is 0>>
		Unfortunately, <<he>> lost <<his>> swimwear during the dive. A couple of students start to harass <<him>>.
	<</if>>

	You continue with your swim.

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

<<elseif $phase is 2>>/*secret dive*/
	Mason starts to demonstrate a swimming technique by the poolside.
	<<if $awareness gte 200 or ($rng % 3 is 0)>>
		<<if $awareness gte 300 or $skulduggery gte 400>>
			Detecting that Mason is trying to distract you from something,
		<<else>>
			<<if $rng % 2>>Hearing a noise behind you,<<else>>Noticing Mason's glance behind you,<</if>>
		<</if>>you turn around to see the <<person>> climbing naked onto the diving board.

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

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

		<<link [[Attract attention|Events Swimming NPC Nude Dive]]>><<set $phase to 3>><</link>><<gcool>>

	<<else>>
		It's interesting. A moment later, you hear a splash behind you.

		It seems the <<person>> dived while no one was looking. How odd.

		You continue with your swim.

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

	<</if>>
<<elseif $phase is 3>>The <<person>> climbs naked onto the diving board, and then
	<<if $rng gte 80>>
		dives elegantly
	<<elseif $rng gte 60>>
		bellyflops painfully
	<<elseif $rng gte 40>>
		dives competently
	<<elseif $rng gte 20>>
		jumps quickly
	<<else>>
		splashes clumsily
	<</if>>
	into the water. <<if $rng gte 60>>A number of people applaud.<</if>>
	<<if $exhibitionism gte 35>>

		Imagining yourself exposed like that excites you.
		<<garousal>><<arousal 3>>
	<</if>>

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

<<else>>
	Gravity briefly inverts sending <<him>> flailing into the roof before dropping <<him>> haplessly into the pool. (This is an error, please report)/*error*/

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

<</if>>

:: Events Swimming NPC Nude Dive
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>
<<set $rng to random(1, 100)>>
<<if $rng gte 80>>
	<<set _dives_into to "dives elegantly into">>
<<elseif $rng gte 60>>
	<<set _dives_into to "dives into">>
<<elseif $rng gte 40>>
	<<set _dives_into to "bellyflops painfully against">>
<<elseif $rng gte 20>>
	<<set _dives_into to "jumps quickly into">>
<<else>>
	<<set _dives_into to "splashes clumsily into">>
<</if>>
<<if $phase is 1>>
	You look back to Mason and continue listening. A moment later, you hear a splash behind. The <<person>> dived while no one was looking.

	Mason soon finishes and you continue with your swim.
<<elseif $phase is 2>>
	Your eyes explore the <<persons>> naked body as <<he>> creeps along the board and then _dives_into the pool.
	<<arousal 300>>

	Soon after, Mason finishes the demonstration and you continue with your swim.
<<elseif $phase is 3>>
	"Teacher! Look at that <<personsimple>>!" You shout, pointing. "<<Hes>> not wearing anything!"<<status 1>>

	The entire class turn around to gawk at the <<person>>.
	<<if $rng % 2>>
		Resolute, <<he>> sets <<his>> jaw, and walks to the end of the diving board. After a brief hesitation, <<he>> _dives_into the water.
	<<else>>
		<<He>> turns bright red and runs away.
	<</if>>
	<<if $exhibitionism gte 35>>

		Imagining yourself exposed like that excites you.
		<<garousal>><<arousal 300>>
	<</if>>
<</if>>

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


code:
:: School Swimming Late

<<if $exposed gte 2 and $swimall is 1>>
	<<set $cstate to "fine">>
<<elseif $exposed gte 2 and $swimall isnot 1>>
	<<if $swimnudecounter is 0>>
		<<set $cstate to "naked">>
	<<else>>
		<<set $cstate to "fine">>
	<</if>>
<<elseif $swimall is 1>>
	<<if $exposed gte 2>>
		<<set $cstate to "fine">>
	<<else>>
		<<set $cstate to "clothed">>
	<</if>>
<<elseif ($worn.under_lower.type.includes("swim") or $worn.lower.type.includes("swim"))
and ($worn.under_upper.type.includes("swim") or $worn.upper.type.includes("swim") or ($worn.under_upper.type.includes("naked") and $worn.upper.type.includes("naked") and ($player.gender_appearance is "m" or $swimCrossdressPermission is true)))
and (($worn.upper.type.includes("naked") or $worn.upper.type.includes("swim")) and ($worn.lower.type.includes("naked") or $worn.lower.type.includes("swim")))>>
	<<set $cstate to "fine">>
<<else>>
	<<set $cstate to "wrong">>
<</if>>

<<if $cstate is "nakedfirst">>
	<<schoolpoolexposed>>

<<else>>

	<<npc Mason>><<person1>>You enter the swimming pool room.

	<<if $rng gte 50>>
		Mason and the class are in the water.
	<<elseif $rng gte 25>>
		Mason stands by the pool explaining something to the class.
	<<elseif $rng gte 5 or $swimall is 1>>
		Mason is demonstrating a swimming technique by the poolside.
	<<else>>
		The class is in the pool but Mason is nowhere to be seen. After a moment <<he>> enters through a side door with a
		<<print either("swimsuit", "pair of swim shorts")>> in <<his>> hand. <<He>> hands it to a <<generatey2>><<person2>><<person>><<person1>> in the water before
		<<he>> turns to you.
	<</if>>
	<<set $rng to random(1,100)>>

	<<if (($delinquency gte 800 and $rng lte 90) or ($delinquency gte 500 and $rng lte 50) or $swimmingattended is 2) and $swimall isnot 1>>

		"You again," <<he>> says. "I've had enough. You're Leighton's problem. Class dismissed."<<detention 2>>
		<<He>> grabs your arm and guides you toward the exit<<if $exposed is 1>> without regard for your modesty<</if>>.
		<<if $exposed gte 2 and ($rightarm is "bound" or $leftarm is "bound")>>
			On the way out <<he>> picks up a towel from the rack and puts it around your waist.

			"I don't even want to know how you got yourself bound up," <<he>> exclaims, "you can explain that to Leighton, too."<<detention 1>>

			<<link [[Next|School Swimming Late Detention]]>><<endevent>><<pass 2>><<towelupm>><</link>>
		<<elseif $exposed gte 2>>
			On the way out <<he>> picks up a towel from the rack. "Put this on," <<he>> says.

			<<link [[Put on the towel|School Swimming Late Detention]]>><<endevent>><<pass 2>><<towelup>><</link>>

		<<else>>

			<<link [[Next|School Swimming Late Detention]]>><<endevent>><<pass 2>><</link>>
		<</if>>
	<<elseif $rng gte 25>>
		"Glad you could join us," <<he>> says. "I'm afraid you are too late to
		participate.<<if $cstate isnot "fine">> And you are not even dressed
		<<if $swimall is 1>><<detention 5>>'properly'<<else>><<detention 1>>properly<</if>>.<</if>>"

		<<He>> points to a chair in the corner. "Sit there and be still."<<detention 1>><<gdelinquency>>

		<<link [[Sit and wait|School Swimming Late Wait]]>><<endevent>><</link>>

		<<if $exposed lte 0>>
			<<maleicon>><<link [[Boys' changing room|School Boy Changing Room]]>><<detention 1>><<endevent>><</link>><<gdelinquency>>

			<<femaleicon>><<link [[Girls' changing room|School Girl Changing Room]]>><<detention 1>><<endevent>><</link>><<gdelinquency>>
		<<elseif $exposed gte 1>>
			<<maleicon>><<link [[Grab some towels and enter the boys' changing room|School Boy Changing Room]]>><<towelupm>><<detention 1>><<endevent>><</link>><<gdelinquency>>

			<<femaleicon>><<link [[Grab some towels and enter the girls' changing room|School Girl Changing Room]]>><<towelup>><<detention 1>><<endevent>><</link>><<gdelinquency>>
		<</if>>
	<<elseif $rng gte 10>>
		"I'm glad you could join as after all," <<he>> says. "The <<nnpc_title "Leighton">> will want a word with you."

		<<He>> points to the exit door.<<detention 1>><<gdelinquency>>

		<<link [[Leave|School Pool Entrance]]>><<pass 2>><<endevent>><</link>>

		<<if $exposed gte 1>>
			<<maleicon>><<link [[Grab some towels and enter the boys' changing room|School Boy Changing Room]]>><<towelupm>><<detention 1>><<endevent>><</link>><<gdelinquency>>

			<<femaleicon>><<link [[Grab some towels and enter the girls' changing room|School Girl Changing Room]]>><<towelup>><<detention 1>><<endevent>><</link>><<gdelinquency>>
		<</if>>
	<<else>>
		<<He>> shakes <<his>> head <<print either("tiredly", "with resignation")>>. "Not sure why you bothered to show this late." <<He>> points towards the changing rooms.<<detention 1>>

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

			<<femaleicon>><<link [[Girls' changing room|School Girl Changing Room]]>><<endevent>><</link>>
		<<elseif $exposed gte 1>>
			<<maleicon>><<link [[Grab some towels and enter the boys' changing room|School Boy Changing Room]]>><<towelupm>><<endevent>><</link>>

			<<femaleicon>><<link [[Grab some towels and enter the girls' changing room|School Girl Changing Room]]>><<towelup>><<endevent>><</link>>
		<</if>>
	<</if>>
<</if>>

:: School Swimming Late Wait
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>

You sit down on the chair.
<<if $exposed gte 2>>
	<<if $swimall isnot 1>>
		<<if $exhibitionism gte 75>>
			Your exposed <<genitalsandbreasts is are>> on display for the whole class.<<arousal 600>>
		<<else>>
			You cover your exposed <<genitalsandbreasts>> with your hands.<<arousal 300>><<stress 1>>
		<</if>>
	<<else>>
		While your exposed <<genitalsandbreasts is are>> on display for the whole class, the same
		is true for everyone else here.<<arousal 100>>
	<</if>>
<</if>>
You feel the stares of your classmates.<<stress 1>><<status +1>><<gcool>>

<<if $stress gte $stressmax>>
	<<link [[Everything fades to black...|School Passout]]>><</link>>
<<else>>
	<<set $cwaittime = Math.clamp(15*60 - $time, 1, 9)>>
	<<link [[Wait|School Swimming Late Wait End]]>><<stress 1>><<pass $cwaittime>><</link>><<gstress>>

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

		<<femaleicon>><<link [[Girls' changing room|School Girl Changing Room]]>><<detention 1>><</link>><<gdelinquency>>
	<<elseif $exposed gte 1>>
		<<maleicon>><<link [[Grab some towels and enter the boys' changing room|School Boy Changing Room]]>><<towelupm>><<detention 1>><</link>><<gdelinquency>>

		<<femaleicon>><<link [[Grab some towels and enter the girls' changing room|School Girl Changing Room]]>><<towelup>><<detention 1>><</link>><<gdelinquency>>
	<</if>>
<</if>>

:: School Swimming Late Wait End
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>

<<if $swimall is 1>>
	The bell rings, signifying the end of the lesson. Mason hands out towels to each student as they pass, trying to avoid eye contact.
<<else>>
	The bell rings, signifying the end of the lesson.
<</if>>

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

	<<femaleicon>><<link [[Girls' changing room|School Girl Changing Room]]>><</link>>
<<elseif $exposed gte 1>>
	<<maleicon>><<link [[Grab some towels and enter the boys' changing room|School Boy Changing Room]]>><<towelupm>><</link>>

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

:: School Swimming Late Detention
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

You are in the school hallways.<<pass 2>>

<<if $time gte (15 * 60)>>
	Classes have just ended and the hallways are full of students on their way out.
<<else>>
	You hear speaking behind the various classroom doors, but some classes have just ended and students are streaming out.
<</if>>

Mason holds you fast and drags you towards Leighton's office.

<<if $exposed gte 1>>
	You're steered round a corner and into a corridor full of <<peopley>>. <<covered>>
	A nearby <<persony>> looks at you and <<if $exposed gte 2>>gasps in shock<<else>>snickers<</if>>.<<stress 1>>
	Others have a similar reaction. As the noise grows more turn to look, until everyone is watching you.

<<else>>
	Most students ignore you, but a <<generatey1>><<person1>><<person>> points at you. "Someone's visiting Leighton," <<he>> stage whispers
	to <<his>> friends.<<stress 1>>

<</if>>

<<if $stress gte $stressmax>>
	<<link [[Everything fades to black...|School Passout]]>><<endevent>><</link>>
<<else>>
	<<link [[Walk|School Swimming Late Detention 2]]>><<endevent>><<set $phase to 1>><</link>>

	<<if $exposed gte 2 and $exhibitionism gte 75>>
		<<link [[Flaunt|School Swimming Late Detention Flaunt]]>><<endevent>><</link>><<exhibitionist5>>

	<<elseif $exposed gte 1 and $exhibitionism gte 55>>
		<<link [[Flaunt|School Swimming Late Detention Flaunt]]>><<endevent>><</link>><<exhibitionist4>>

	<</if>>
	<<if $exhibitionism gte 55 and ($rightarm isnot "bound" or $leftarm isnot "bound") and $exposed lt 2>>
		<<checkdroptowel>>
		<<if _exlevel gte 2>>
			<<link [[Drop the towel and flaunt|School Swimming Late Detention Flaunt]]>><<droptowel>><<endevent>><</link>><<exhibitionist5>>

		<<elseif _exlevel>>
			<<link [[Drop the towel and flaunt|School Swimming Late Detention Flaunt]]>><<droptowel>><<endevent>><</link>><<exhibitionist4>>

		<</if>>
	<</if>>
	<<if $feetuse isnot "bound">>
		<<link [[Run away|School Swimming Late Detention 2]]>><<endevent>><<set $phase to 2>><</link>><<athleticsdifficulty 100 600>>
	<</if>>
<</if>>

:: School Swimming Late Detention Flaunt
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

<<flaunting>> you march down the corridor like it was a catwalk. Some look away, going red in the face.
Most though are keen to take in the sight of the <<if $worn.lower.type.includes("naked") and $worn.under_lower.type.includes("naked")>>naked<<else>>nearly naked<</if>> <<girl>> marching down the centre.

"Feel free to look," you announce. "There's no shame in it."<<status 5>><<arousal 50>>

<<if $exposed gte 2>>
	<<exhibitionism5>>
	<<fameexhibitionism 50>>
	<<npc Mason>><<person1>>Mason is trying <<his>> best to shield your body with <<hers>>.

	<<link [[Walk|School Swimming Late Detention 2]]>><<endevent>><<set $phase to 1>><</link>>

	<<if $feetuse isnot "bound">>
		<<link [[Try to bolt|School Swimming Late Detention 2]]>><<endevent>><<set $phase to 2>><</link>><<athleticsdifficulty 1 400>>

		<<link [[Try to duck|School Swimming Late Detention 2]]>><<endevent>><<set $phase to 2>><</link>><<dancedifficulty 100 600>>
	<</if>>
<<else>>
	<<exhibitionism4>>
	<<fameexhibitionism 25>>
	<<npc Mason>><<person1>>Mason tightens <<his>> grip and pushes you along, trying <<his>> best to shield your body with <<hers>>.

	<<link [[Walk|School Swimming Late Detention 2]]>><<endevent>><<set $phase to 1>><</link>>

	<<if $feetuse isnot "bound">>
		<<link [[Try to bolt|School Swimming Late Detention 2]]>><<endevent>><<set $phase to 2>><</link>><<athleticsdifficulty 200 1000>>
	<</if>>
<</if>>

:: School Swimming Late Detention 2
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

<<if $phase is 2 and $danceSuccess>>
	With quick feet you duck out of Mason's grip and weave your way between the other students. Mason gives chase, but you
	manage to hide in a nearby maintenance cupboard.

	<<link [[Next (0:10)|Hallways]]>><<pass 10>><</link>>
<<elseif $phase is 2 and $athleticsSuccess>>
	With a sudden jolt you escape Mason's grip and dive between the other students. Mason gives chase, but you
	manage to hide in a nearby maintenance cupboard.

	<<link [[Next (0:10)|Hallways]]>><<pass 10>><</link>>
<<else>>
	<<if $phase is 2>>
		You try to break free, but Mason's grip is too firm.<<gpain>><<pain 4>>

	<</if>>

	You are in the school hallways in front of Leighton's Office.<<pass 2>>

	<<if $time gte (15 * 60)>>
		Classes have just ended and the hallway is full of students.
	<<else>>
		You hear speaking behind the various classroom doors, but some classes have just ended and students are streaming out.
	<</if>>
	<<if $exposed gte 1>><<covered>><</if>>

	<<if $carried.upper.name isnot "naked" or $carried.lower.name isnot "naked">>
		You put your towel back on just before
		<<silently>><<clotheson>><</silently>>
	<</if>>
	Mason opens the Head's Office's door and pushes you in.

	<<link [[Enter|School Detention]]>><</link>>

	<<if $phase is 1 and $feetuse isnot "bound">>
		<<link [[Run away|School Swimming Late Detention 2]]>><<endevent>><<set $phase to 2>><</link>><<athleticsdifficulty 200 800>>
	<</if>>
<</if>>