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

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

<<set $logprep to "TBD science answer">>
<<log $logprep 1>>
<<else>>
You keep quiet. You might be wrong anyway.

<<set $logprep to "TBD science no try">>
<<log $logprep 0>>
<</if>>

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

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

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

<<set $logprep to "TBD science sirris help still concern">>
<<log $logprep 2>>
<<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.

<<set $logprep to "TBD science sirris help despair passout">>
<<log $logprep 2>>
<<logopinion "That was">>
<<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.

<<set $logprep to "TBD science sirris help">>
<<log $logprep 2>>
<<link [[Next|Science Lesson]]>><<endevent>><</link>>
<<elseif $phase is 3>>
Sirris nods and moves on.

<<set $logprep to "TBD science sirris nods">>
<<log $logprep 2>>
<<link [[Next|Science Lesson]]>><<endevent>><</link>>
<</if>>

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

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

Sirris smiles at you. "This part of the lesson is on human anatomy. I need you to remove your clothing, all of it. Don't be embarrassed, this is important for the lesson."

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

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

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

Sirris smiles at you. "This part of the lesson is on human anatomy. I need you to remove your clothing, all of it. Don't be embarrassed, this is important for the lesson."

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

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

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

Sirris smiles at you. "This part of the lesson is on human anatomy. I need you to remove your clothing, all of it. Don't be embarrassed, this is important for the lesson."

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

<<set $logprep to "TBD science anatomy uninvasive">>
<<log $logprep 2>>
<<link [[Next|Science Lesson]]>><<endevent>><<set $scienceprogression to 1>><</link>>

<</if>>

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

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

<<set $logprep to "TBD science anatomy refuse3">>
<<log $logprep 2>>
<<logopinion "That was">>
<<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.

<<set $logprep to "TBD science anatomy refuse4">>
<<log $logprep 2>>
<<logopinion "That was">>
<<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.

<<set $logprep to "TBD science anatomy refuse">>
<<log $logprep 2>>
<<logopinion "That was">>
<<link [[Next|Science Lesson]]>><<endevent>><</link>>

<</if>>

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

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

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

<<set $logprep to "TBD science anatomy undress1">>
<<log $logprep 3>>
<<logopinion "That was">>
<<link [[Next|Science Lesson]]>><<clotheson>><<endevent>><</link>>

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

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

<<set $logprep to "TBD science anatomy undress2">>
<<log $logprep 3>>
<<logopinion "That was">>
<<link [[Next|Science Lesson]]>><<clotheson>><<endevent>><</link>>

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

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

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

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

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

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

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

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

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

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

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

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

<<set $logprep to "TBD science anatomy undress5">>
<<log $logprep 3>>
<<logopinion "That was">>
<<link [[Next|Science Lesson]]>><<clotheson>><<endevent>><</link>>

<</if>>

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

<<if $phase is 3>>

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

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

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

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

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

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

	<</if>>

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

<<set $logprep to "TBD science anatomy undress3">>
<<log $logprep 3>>
<<logopinion "That was">>
<<link [[Next|Science Lesson]]>><<clotheson>><<endevent>><</link>>

<<elseif $phase is 4>>

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

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

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

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

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

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

	<</if>>

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

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

<</if>>

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

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

<<stateman>>

<<actionsman>>

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

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

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

<<clothesontowel>>

<<set $logprep to "TBD science anatomy undress4 molest">>
<<log $logprep 3>>
<<logopinion "That was">>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

<</if>>

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

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

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

		<<if $swarmdisable is "t">>

	<<link [[Shatter the glass|Science Terrarium Shatter]]>><<detention 6 "Vandalism">><<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 "Vandalism">><<set $pain += 80>><<stress 6>><<trauma 6>><</link>><<gtrauma>><<gstress>><<gdelinquency>>

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

	<<elseif $rng gte 51>>

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

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

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

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

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

<<set $logprep to "TBD science terrarium4 endure tire">>
<<log $logprep 2>>
<<link [[Next|Science Lesson]]>><<endevent>><</link>>

	<</if>>

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

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

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

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

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

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

<<set $logprep to "TBD science terrarium3 endure tire">>
<<log $logprep 2>>
<<link [[Next|Science Lesson]]>><<endevent>><</link>>

	<</if>>

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

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

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

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

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

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

<<set $logprep to "TBD science terrarium2 endure tire">>
<<log $logprep 2>>
<<link [[Next|Science Lesson]]>><<endevent>><</link>>

	<</if>>

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

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

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

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

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

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

<<set $logprep to "TBD science terrarium1 endure tire">>
<<log $logprep 2>>
<<link [[Next|Science Lesson]]>><<endevent>><</link>>

	<</if>>

<<else>>

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

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

<<set $logprep to "TBD science terrarium endure tire">>
<<log $logprep 2>>
<<link [[Next|Science Lesson]]>><<endevent>><</link>>

<</if>>

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

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

<<set $logprep to "TBD science terrarium escape">>
<<log $logprep 2>>
<<link [[Next|Science Lesson]]>><<endevent>><</link>>

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

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

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

<<stateman>>

<<actionsman>>

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

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

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

<<tearful>> you gather yourself.

<<clothesontowel>>
<<endcombat>>
<<set $logprep to "TBD science terrarium molest cum">>
<<log $logprep 3>>
<<logopinion "That was">>

<<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>>
<<set $logprep to "TBD science terrarium molest beat">>
<<log $logprep 3>>
<<logopinion "That was">>

<<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>>
<<set $logprep to "TBD science terrarium molest">>
<<log $logprep 3>>
<<logopinion "That was">>

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

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

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

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

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

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

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

<<set $logprep to "TBD science terrarium shatter">>
<<log $logprep 3>>
<<logopinion "That was">>
<<link [[Next|Hallways]]>><<endevent>><</link>>

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

<<set $logprep to "TBD science terrarium prisoned">>
<<log $logprep 3>>
<<logopinion "That was">>
<<link [[Next|Science Lesson]]>><<endevent>><</link>>

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

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

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

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

<</if>>

<<audience>>

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

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

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

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

<<clothesontowel>>
<<endcombat>>
<<set $logprep to "TBD science terrarium swarm rescued">>
<<log $logprep 3>>
<<logopinion "That was">>

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

<<else>>

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

<<endcombat>>
<<set $logprep to "TBD science terrarium swarm passout">>
<<log $logprep 3>>
<<logopinion "That was">>

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

<</if>>

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

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

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

	<<set $logprep to "TBD science picked tried tattle">>
	<<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.

	<<set $logprep to "TBD science picked tattle">>
	<</if>>
<<elseif $phase is 1>>
	The students spend the lesson insulting and poking you whenever Sirris isn't looking, and are altogether a nuisance.

	<<set $logprep to "TBD science picked on">>
<</if>>

<<log $logprep 1>>
<<link [[Next|Science Lesson]]>><<endevent>><</link>>

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

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

<<set $logprep to "TBD science dissect focus">>
<<log $logprep 1>>
<<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.

<<set $logprep to "TBD science dissect joke">>
<<log $logprep 1>>
<<link [[Next|Science Lesson]]>><<endevent>><</link>>

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

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

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

<<set $logprep to "TBD science dissect drop">>
<<log $logprep 1>>
<<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.

<<set $logprep to "TBD science dissect ignore them">>
<<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.

<<set $logprep to "TBD science dissect p4">>
<<link [[Next|Science Dissection Molestation]]>><<set $molestationstart to 1>><</link>>
<</if>>

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

<<effects>>

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

<</if>>

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

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

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

<</if>>

<<effectsman>><<man>>

<<stateman>>

<<actionsman>>

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

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

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

<<clotheson>>
<<endcombat>>

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

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

<<set $logprep to $logprep+"TBD science dissect molest cum">>
<<log $logprep 3>>
<<logopinion "That was">>
<<link [[Next|Science Lesson]]>><</link>>

<<elseif $enemyhealth lte 0>>

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

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

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

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

<<endcombat>>

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

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

<<set $logprep to $logprep+"TBD science dissect molest beat">>
<<log $logprep 3>>
<<logopinion "That was">>
<<link [[Next|Science Lesson]]>><</link>>

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

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

<<clotheson>>
<<endcombat>>

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

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

<<set $logprep to $logprep+"TBD science dissect molest rescue">>
<<log $logprep 3>>
<<logopinion "That was">>
<<link [[Next|Science Lesson]]>><</link>>

<<else>>

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

<<clotheson>>
<<endcombat>>

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

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

<<set $logprep to $logprep+"TBD science dissect molest ">>
<<log $logprep 3>>
<<logopinion "That was">>
<<link [[Next|Science Lesson]]>><</link>>
<</if>>

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

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

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

<<set $logprep to "TBD science sock shaming kick ">>
<<log $logprep 2>>
<<endevent>>

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


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

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

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

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

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

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

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

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

		<<set $logprep to "I was late to a science class and got detention.">>
		<<log $logprep 1>>

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

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

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

	<</if>>

<<elseif $schoolstate is "morning">>

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

<<schoolperiodtext>>

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

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

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

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

	<<detention 1 "Interrupt">>
	<<set $logprep to "I interrupted an ongoing science class and got detention.">>
	<<log $logprep 0>>

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

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

<<set $scienceinterrupted to 1>>

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

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

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

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

<<exhibitionclassroom>>

<<if $loglocations is 1>><<log "Was in the science classroom." $locationimportance>><</if>>
<<link [[Leave the room (0:01)|Hallways]]>><<pass 1>><</link>>

<</if>>

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

Embarrassed, you apologise and leave.

<<set $logprep to "I interrupted an ongoing science class and apologised.">>
<<log $logprep 1>>
<<link [[Next|Hallways]]>><<endevent>><</link>>

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

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

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

<<detention 1 "Mock">><<set $sirrislove -= 1>>
<<set $logprep to "I interrupted an ongoing science class mocking Sirris and got detention.">>
<<log $logprep 1>>
<<link [[Next|Hallways]]>><<endevent>><</link>>

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

You take a seat and read a science textbook.

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

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

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

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

<</if>>
<<set _studytime to 5>>
<<pass 5>><<stress 1>><<scienceskill>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<<set _studytime += 5>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<<set _studytime += 5>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<<set _studytime += 5>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<<set _studytime += 5>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<<set _studytime += 5>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<<set _studytime += 5>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<<set _studytime += 5>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<<set _studytime += 5>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<<set _studytime += 5>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<<set _studytime += 5>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<<set _studytime += 5>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<<set _studytime += 5>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<<set _studytime += 5>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<<set _studytime += 5>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<<set _studytime += 5>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<<set _studytime += 5>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<<set _studytime += 5>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<<set _studytime += 5>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<<set _studytime += 5>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<<set _studytime += 5>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<<set _studytime += 5>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<<set _studytime += 5>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<<set _studytime += 5>>
	<</if>>
<</if>>
<<if $studyfinish isnot 1>>
<<pass 5>><<stress 1>>
<<schooleffects>>
	<<if $schoolstate is "first">>
	<<set $studyfinish to 1>>
	<<else>>
	<<set $studyfinish to 0>>
	<<set _studytime += 5>>
	<</if>>
<</if>>
<<set $logprep to "I studied science for the "+_studytime+" minutes I had to wait for the class to start.">>
<<log $logprep 1>>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

"I can help with that, I have-"

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

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

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

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

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

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

	<<else>>

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

	<</if>>

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

	<<link [[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 [nobr]
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

<<towelup>>

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

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

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

<<if $time is ($hour * 60 + 57)>>
<<pass 3>>
<<elseif $time is ($hour * 60 + 58)>>
<<pass 2>>
<<elseif $time is ($hour * 60 + 59)>>
<<pass 1>>
<</if>>
<<log "Attended Science lesson" 1>>
<<link [[Next|Hallways]]>><</link>>

<<else>>

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

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

<<towelup>>

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

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

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

<<if $time is ($hour * 60 + 57)>>
<<pass 3>>
<<elseif $time is ($hour * 60 + 58)>>
<<pass 2>>
<<elseif $time is ($hour * 60 + 59)>>
<<pass 1>>
<</if>>
<<log "Attended Science lesson" 1>>
<<link [[Next|Hallways]]>><</link>>

<<else>>

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

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

<<towelup>>

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

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

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

<<if $time is ($hour * 60 + 57)>>
<<pass 3>>
<<elseif $time is ($hour * 60 + 58)>>
<<pass 2>>
<<elseif $time is ($hour * 60 + 59)>>
<<pass 1>>
<</if>>
<<log "Attended Science lesson" 1>>
<<link [[Next|Hallways]]>><</link>>

<<else>>

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

repo_name: Mauno/degrees


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

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

<<effects>>

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

<</if>>

<<effectsman>><<man>>

<<stateman>>

<<actionsman>>

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

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

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

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

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

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

<<clotheson>>
<<endcombat>>
<<set $logprep to "TBD swimclass molest cum">>
<<log $logprep 3>>
<<logopinion "That was">>

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

<<elseif $enemyhealth lte 0>>

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

<<tearful>> you gather yourself.

<<clotheson>>
<<endcombat>>
<<set $logprep to "TBD swimclass molest beat">>
<<log $logprep 3>>
<<logopinion "That was">>

<<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 "Harass">>
	<<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>>
<<set $logprep to "TBD swimclass molest rescue">>
<<log $logprep 3>>
<<logopinion "That was">>

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

<<else>>

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

<<tearful>> you gather yourself.

<<clotheson>>
<<endcombat>>
<<set $logprep to "TBD swimclass molest">>
<<log $logprep 3>>
<<logopinion "That was">>

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

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

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

<<set $logprep to "TBD swimclass clothing return refuse">>
<<log $logprep 2>>
<<link [[Next|Swimming Lesson]]>><<endevent>><</link>>

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

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

<</if>>

<<effects>>

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

<</if>>

<<effectsman>><<man>>

<<stateman>>

<<actionsman>>

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

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

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

<<tearful>> you gather yourself.

<<clotheson>>
<<endcombat>>
<<set $logprep to "TBD swimclass clothing return molest cum">>
<<log $logprep 3>>
<<logopinion "That was">>

<<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>>
<<set $logprep to "TBD swimclass clothing return molest beat">>
<<log $logprep 3>>
<<logopinion "That was">>

<<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 "Harass">>
	<<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>>
<<set $logprep to "TBD swimclass clothing return molest rescue">>
<<log $logprep 3>>
<<logopinion "That was">>

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

<</if>>

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

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

<<set $logprep to "TBD swimclass flaunt">>
<<log $logprep 2>>
<<link [[Next|Swimming Lesson]]>><<endevent>><</link>>

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

You decide to just get it over with.

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

<<set $logprep to "TBD swimclass lewd dive">>
<<log $logprep 2>>
<<link [[Next|Swimming Lesson]]>><<endevent>><</link>>

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

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

<<set $logprep to "TBD swimclass flee">>
<<log $logprep 2>>
<<if $playergenderappearance is "m">>
<<link [[Next|School Boy's Changing Room]]>><<endevent>><</link>>
<<else>>
<<link [[Next|School Girl's Changing Room]]>><<endevent>><</link>>
<</if>>

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

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

<<set $logprep to "TBD swimclass stalk confront">>
<<log $logprep 2>>
<<link [[Next|Swimming Lesson]]>><<endevent>><</link>>

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

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

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

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

<<set $logprep to "TBD swimclass stalk ignore safe">>
<<log $logprep 2>>
<<link [[Next|Swimming Lesson]]>><<endevent>><</link>>

<</if>>

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

<<effects>>

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

<</if>>

<<effectsman>><<man>>

<<stateman>>

<<actionsman>>

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

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

<<He>> swims away without a word.

<<tearful>> you gather yourself.

<<clotheson>>
<<endcombat>>
<<set $logprep to "TBD swimclass stalk ignore molest cum">>
<<log $logprep 3>>
<<logopinion "That was">>

<<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>>
<<set $logprep to "TBD swimclass stalk ignore molest beat">>
<<log $logprep 3>>
<<logopinion "That was">>

<<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 "Harass">>
	<<else>>
	Your cry attracts Mason's attention. The teacher glares at the <<personstop>> "You're in serious trouble, get changed and go to the head's office," the <<person>> looks about to cry.
	<</if>>

<<tearful>> you gather yourself.

<<clotheson>>
<<endcombat>>
<<set $logprep to "TBD swimclass stalk ignore molest rescue">>
<<log $logprep 3>>
<<logopinion "That was">>

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

<</if>>

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

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

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

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

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

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

<<set $logprep to "TBD swimclass picking swim away success ">>
<<log $logprep 2>>
<<link [[Next|Swimming Lesson]]>><<endevent>><</link>>

<</if>>

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

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

<<set $logprep to "TBD swimclass picking endure ">>
<<log $logprep 2>>
<<link [[Next|Swimming Lesson]]>><<endevent>><</link>>

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

<<effects>>

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

<</if>>

<<effectsman>><<man>>

<<stateman>>

<<actionsman>>

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

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

<<effects>>

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

<</if>>

<<effectsman>><<man>>

<<stateman>>

<<actionsman>>

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

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

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

<<tearful>> you gather yourself.

<<clotheson>>
<<endcombat>>
<<set $logprep to "TBD swimclass picking swim away fail strip molest cum">>
<<log $logprep 3>>
<<logopinion "That was">>

<<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>>
<<set $logprep to "TBD swimclass picking swim away fail strip molest beat">>
<<log $logprep 3>>
<<logopinion "That was">>

<<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 "Harass">>
	<<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>>
<<set $logprep to "TBD swimclass picking swim away fail strip molest rescue">>
<<log $logprep 3>>
<<logopinion "That was">>

<<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>>
<<set $logprep to "TBD swimclass picking swim away fail strip molest timer">>
<<log $logprep 3>>
<<logopinion "That was">>

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

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

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

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

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

<<clotheson>>
<<endcombat>>
<<set $logprep to "TBD swimclass picking swim away fail strip molest ">>
<<log $logprep 3>>
<<logopinion "That was">>

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

<</if>>

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

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

<<tearful>> you gather yourself.

<<clotheson>>
<<endcombat>>
<<set $logprep to "TBD swimclass picking swim away fail nude molest cum">>
<<log $logprep 3>>
<<logopinion "That was">>

<<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>>
<<set $logprep to "TBD swimclass picking swim away fail nude molest beat">>
<<log $logprep 3>>
<<logopinion "That was">>

<<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 "Harass">>
	<<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>>
<<set $logprep to "TBD swimclass picking swim away fail nude molest rescue">>
<<log $logprep 3>>
<<logopinion "That was">>

<<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>>
<<set $logprep to "TBD swimclass picking swim away fail nude molest timer">>
<<log $logprep 3>>
<<logopinion "That was">>

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

<</if>>

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

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

<<set $logprep to "TBD swimclass shove as delinquent">>
<<log $logprep 2>>
<<link [[Next|Swimming Lesson]]>><<endevent>><</link>>

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

<<set $logprep to "TBD swimclass shove">>
<<log $logprep 2>>
<<link [[Next|Swimming Lesson]]>><<endevent>><</link>>

<</if>>

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

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

<<set $logprep to "TBD swimclass freed refuse ">>
<<log $logprep 2>>
<<endevent>>
<<link [[Next|Swimming Lesson]]>><</link>>

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

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

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

<<set $logprep to "TBD swimclass freed refuse ">>
<<log $logprep 2>>
<<endevent>>
<<link [[Next|Swimming Lesson]]>><</link>>