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

<<if $phase is 1>>
<<He>> sits with you for a few minutes, and helps you fill in some holes in your understanding. You feel like you understand the material better.

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

<<elseif $phase is 0>>
<<He>> nods and moves on.

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

<</if>>

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

<<if $phase is 0>>
You slowly creep up to the outbuilding, and manage to deliver the note and get away without incident. It takes a few minutes however, and when you arrive back at class Doren chides you for lollygagging.

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

<<elseif $phase is 1>>
	<<if $rng gte 51>>
	You briskly walk up to the outbuilding, and manage to deliver the note and get away without incident.

<<link [[Next|English Lesson]]>><<endevent>><</link>>
	<<else>>
	You briskly walk up to the outbuilding and deliver the note, but turn to find the dog advancing on you.

			<<if $bestialitydisable is "t">>
			You manage to flee back to the classroom, though not unscathed.<<beastescape>>

			<<integritycheck>><<towelup>>

			<<link [[Next|English Lesson]]>><</link>>
			<<else>>
			<<link [[Next|English Outbuilding Molestation]]>><<set $molestationstart to 1>><</link>>

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

:: English Outbuilding Molestation [nobr]
<<if $molestationstart is 1>>
<<set $molestationstart to 0>>
<<controlloss>>
<<violence 1>>
<<neutral 1>>
<<molested>>
<<set $event to "dogpack">><<set $beasttype to "dog">>
<<set $rescue to 1>>
<<beast1init>>

<</if>>

<<effects>>
<<effectsman>>
<<beast>>

<<stateman>>

<<actionsman>>

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

:: English Outbuilding Molestation Finish [nobr]
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

<<if $rescue is 1 and $alarm is 1>>
	<<if $beaststance is "top">>

	<<set $rescued += 1>>
	<<clothesontowel>>
	<<endcombat>>

	<<generate1>><<person1>>A caretaker emerges from the outbuilding to see what the fuss is about. <<He>> stops in <<his>> tracks when <<he>> sees the dog humping you, mouth agape. <<He>> breaks free from <<his>> stupor and drags the beast off the top of you. <<He>> seems almost as embarrassed as you are, and says nothing as <<he>> locks the dog in its kennel and returns to the outbuilding. <<tearful>> you to return to the classroom.<<famebestiality 10>>

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

	<<else>>

	<<set $rescued += 1>>
	<<clothesontowel>>
	<<endcombat>>

	<<generate1>><<person1>>A caretaker emerges from the outbuilding to see what the fuss is about. "Bad dog! Bad!" The beast backs off, ears and tail drooping. "I'm so sorry, he's just a bit too friendly," <<he>> says as <<he>> returns the dog to its kennel. "No harm done though, right?" <<He>> heads back to the outbuilding. <<tearful>> you to return to the classroom.

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

	<</if>>
<<elseif $enemyarousal gte $enemyarousalmax>>

<<beastejaculation>>

The beast grunts in satisfaction, and leaves you lying on the grass. <<tearful>> you dust yourself off and head back to the classroom.

<<clothesontowel>>
<<endcombat>>

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

<<elseif $enemyhealth lte 0>>

The beast yelps and flees, its tail between its legs. <<tearful>> you dust yourself off and head back to the classroom.

<<clothesontowel>>
<<endcombat>>

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

<</if>>

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

You shout out to Doren for help, and try to explain that you're being harassed. The <<person>> looks shocked, <<his>> eyes widen and <<his>> lip trembles, as if on the verge of tears. <<endevent>><<doren>><<person1>>Doren puts <<his>> hands on <<his>> hips and gives you a level stare. "You're not gonna fool me that easily, <<if $playergenderappearance is "m">>lad.<<else>>lass.<</if>> You should sit over here, away from the innocent."

Doren makes you sit alone on the other side of the room. You got away at least.

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

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

<<He>> runs <<his>> hand further up your thigh, with no regard for how you feel about it.

<<if $undertype is "chastity">>
<<He>> stops when <<he>> feels the metal of your chastity belt. "What's this? I heard slaves are sometimes forced to wear these things, are you someone's property?" <<He>> smirks. "I'd best be careful, I don't want to offend anyone." <<He>> doesn't bother you for the rest of the lesson.
<<elseif $undertype is "naked">><<fameexhibitionism 1>>
<<He>> suddenly recoils, blushing. "You aren't wearing any underwear?! You really are a pervert." <<He>> doesn't bother you for the rest of the lesson.
<<else>>
<<He>> traces the outline of your $underclothes with a finger, from your waist to your groin. <<He>> moves slowly, clearly enjoying the moment. <<He>> takes things no further though, withdrawing <<his>> hand and acting like nothing happened.
<</if>><<garousal>><<arousal 2>>

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

:: English Events Pinch [nobr]
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

The <<person1>><<person>> yelps in shock. Doren looks up, and looks at <<himstop>> The <<person>> is too embarrassed to complain however, instead looking at <<his>> feet and mumbling an apology before sitting back at <<his>> desk.<<promiscuity2>>

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

:: English Events Own [nobr]
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

"What's the matter <<sircomma>>" you say. "Jealous?" The giggling becomes laughter.<<promiscuity3>>

"You kids have a strange idea of humour," Doren says, shaking <<his>> head.

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

:: English Events Stare [nobr]
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

You stare down at your hands and try to ignore the laughter. Doren looks at the <<person2>><<person>> "You know I don't like giving detention," <<person1>><<he>> says. "But you're making it hard for me to avoid." <<person2>>The <<person>> looks away, smirking.

<<if $dorenhonest isnot 1>>

<<person1>>Doren looks back at you. "I'd like to speak to you outside. Come on." You follow <<him>> from the classroom, keeping your head bowed and knowing everyone must be staring at you.

<<He>> shuts the door behind you and speaks in an uncharacteristically quiet tone. "Is everything alright <<lasscomma>> or is there something you want to tell me about?"

<<link [[Be honest|English Events Honest]]>><<set $dorenlove += 1>><<stress 6>><<trauma -6>><</link>><<gstress>><<ltrauma>>

<<link [[Say you're fine|English Events Fine]]>><</link>>

<<else>>

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

<</if>>

:: English Events Honest [nobr]
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>
<<set $dorenhonest to 1>>
You tell Doren that you've been attacked numerous times, and that you don't feel able to cope. Saying it out loud makes you feel dizzy. You don't go into details, but make it clear how trapped you feel.

You realise you're sat on the floor, being held up by Doren's arm. You don't remember falling. "It's okay <<lasscomma>> I've got you." <<He>> pulls a phone out of <<his>> pocket and calls someone. "Hello? Yes. I need someone to cover my class. Yes it's an emergency. No. Goodbye." <<He>> puts the phone away.

<<He>> helps you to your feet. "I want to take you somewhere they can help, okay?" <<He>> takes your hand and together you walk away from class. <<He>> leads you outside to <<his>> parked car. "Climb aboard. It's not a long trip."

<<link [[Climb aboard (0:05)|English Events Police]]>><<pass 5>><</link>>

:: English Events Fine [nobr]
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

You put on a brave face and tell <<him>> you're fine. "Okay. If you say so," <<he>> says. "Now let's get back to class before they break a window."

<<endevent>>

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

:: English Events Police [nobr]
<<set $outside to 0>><<set $location to "town">><<effects>>

Doren drives to Barb street and pulls up outside the police station. "I know this is hard for you, but you need to tell them what you told me." You leave the car and enter the station.

<<generate3>><<person3>>A <<person>> sits at the desk, wearing an officer's uniform. <<He>> doesn't glance up as you enter. Doren knocks on the surface, hard enough that a pencil rolls onto the floor. <<person1>>"We've got a crime to report," <<he>> says. "Maybe several."

The officer looks up. "There's a queue," <<person3>><<he>> says.

Doren looks around the empty room. "Doesn't look like a queue to me."

"A backlog then," the officer replies. "We can't help you for three years."

"Three years!?" Doren slams <<person1>><<his>> fist into the desk, knocking over a mug this time. "This <<girl>> was ra..." <<he>> catches <<himselfstop>> "<<pShe>> was attacked. More than once. You're telling me you can't do anything?"

"We can. In three years," <<person3>><<he>> types something into <<his>> computer. "We already have you on record. We'll contact you when we're ready to take your report. Have a nice day."

<<link [[Next|Doren Intro]]>><</link>>


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

<<if $schoolstate is "third">>
	<<if $uppertype is "school" and $lowertype is "school">>
		<<if $englishattended is 1>>
		You rejoin the English lesson, and take your seat.

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

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

	You enter the English classroom.
	<<doren>><<person1>>
	Doren is preparing at the front of the room while the seats fill.

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

		<<else>>
		You enter the English classroom.
		<<doren>><<person1>>
		Doren cuts off mid-sentence and smiles at you. "Better late than never! Sit down, you've got lost time to make up for."<<gdelinquency>>

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

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

		<</if>>
	<<else>>
	<<doren>><<person1>>
	Doren laughs. "You can't attend my lesson without a uniform. Not my rules. Leighton might have something spare."

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

	<</if>>

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

	<<doren>><<person1>>You enter the English classroom. Doren stops speaking abruptly and looks your way. "Hah! I'm glad you're eager to study in my class, but don't you have another lesson to be at? I have to mark you down for detention or Leighton'll give me another talking to." <<He>> shoos you out the door.<<gdelinquency>>

	<<detention 1>>

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

	<<doren>><<person1>>You enter the English classroom. Doren stops speaking abruptly and looks your way. "Something I can do for you, <<if $playergenderappearance is "m">>lad<<else>>lass<</if>>?" It seems you've interrupted the lesson.

<<set $englishinterrupted to 1>>

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

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

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

You are in the English classroom. Bookshelves line the walls.

<<exhibitionclassroom>>

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

<</if>>

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

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

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

<<else>>

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

<</if>>

<<link [[Focus on the lesson|English Lesson Focus]]>><</link>><<gstress>><<genglish>>

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

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

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

<</if>>

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

Embarrassed, you apologise and leave.

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

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

You mock the teacher. "Sorry for interrupting <<sircomma>> please don't eat me!" Laughter erupts among the seated students.

Doren also laughs. "Go to your class, or I just might!" <<He>> holds the door open for you.<<gdelinquency>>

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

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

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

<<towelup>>

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

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

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

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

<<else>>

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

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

<<towelup>>

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

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

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

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

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

<<else>>

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

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

<<towelup>>

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

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

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

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

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

<<else>>

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

repo_name: UnbarredStream/degrees


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

You stretch languidly, lifting your $upperclothes and exposing your midriff. It's a bit much for the <<person>> and they look away, blushing.<<exhibitionism1>>

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

:: History Events Dress [nobr]
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

You <<nervously>> walk out from behind the screen. You are greeted by laughter as the class sees what you're wearing, though they are quickly silenced by a stern look from Winter. You're too embarrassed by the way your classmates look at you to learn anything, but the segment is over soon enough.

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

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

This is ridiculous, there's no way you're wearing that. Winter glares at you as you take your seat.

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

:: History Events Revealing Dress [nobr]
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

You <<nervously>> walk out from behind the screen. The class falls silent as they see how little you're wearing. Winter smiles in satisfaction. You model the outfit as <<he>> describes the ceremonies it was used in, which all seem to have had a risqué element. You're too embarrassed by the way your classmates look at you to learn anything, but the segment is over soon enough.

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

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

<<if $cool lt 39>>
You lean down to pick up the book. As you do, the <<person>> grabs the back of your head and pushes your face against <<his>> crotch. You try to push <<him>> away, but <<he>> holds you firm, <<if $pronoun is "m">> and undoes <<his>> fly.<<else>> and lifts up <<his>> skirt. <<Hes>> not wearing underwear. <</if>> "Someone go distract the teacher," <<he>> says. Much of the class closes around to watch.

<<link [[Next|History Lesson Molestation]]>><<set $molestationstart to 1>><<set $phase to 2>><</link>>

<<elseif $cool lt 119>>
You lean down to pick up the book. As you do, the <<person>> grabs the back of your head and pushes your face against <<his>> crotch. You try to push <<him>> away, but <<he>> holds you firm, <<if $pronoun is "m">> and undoes <<his>> fly.<<else>> and lifts up <<his>> skirt. <<Hes>> not wearing underwear.<</if>>

<<link [[Next|History Lesson Molestation]]>><<set $molestationstart to 1>><<set $phase to 1>><</link>>

<<else>>
You lean down to pick up the book. As you do, the <<person>> grabs the back of your head and pushes your face against <<his>> crotch. You push <<him>> away as laughter emerges from the rest of the class. "I really am clumsy!" The <<person>> says, now grinning. "No need to be so aggressive though." <<He>> continues <<his>> task, and Winter soon returns.

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

<</if>>

:: History Events Leave [nobr]
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

Not trusting the <<persons>> intentions, you refrain from leaning over to pick up the book. <<He>> tilts <<his>> head and displays a mock frown. "What's wrong? Worried I might do something naughty?" <<His>> friends laugh.

The classroom door starts to open, and the <<person>> continues their task as Winter enters. The teacher sees the textbook on the floor and glares at you. "Pick that up immediately. You should treat school property with more respect," the <<person>> throws an infuriating smile your way as you pick up the book.

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

:: History Lesson Molestation [nobr]
<<if $molestationstart is 1>>
<<set $molestationstart to 0>>
<<controlloss>>
<<violence 1>>
<<neutral 1>>
<<molested>>
<<set $event to "molestationhome">>
<<man1init>><<npcoral>>
	<<if $phase is 1>>
	<<set $timer to 6>><<set $rescue to 1>>
	<<elseif $phase is 2>>
	<<set $timer to 24>><<set $rescue to 0>>
	<</if>>
<</if>>

<<effects>>
<<if $rescue is 0 and $alarm is 1>><<set $alarm to 0>>
No one comes to your aid. Winter must be distracted.

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

<<audience>>

<<stateman>>

<<actionsman>>

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

:: History Lesson Molestation Finish [nobr]
<<effects>>
<<if $enemyarousal gte $enemyarousalmax>>
<<ejaculation>><<famerape 10>>

Satisfied, the <<person>> shoves you to the ground. The rest of the class rushes back to their seats, as footsteps can be heard approaching. You know you'll be in trouble if you're caught lying on the floor. <<tearful>> you struggle into your seat just before Winter returns.

<<clothesontowel>>
<<endcombat>>

<<link [[Next|History Lesson]]>><</link>>
<<elseif $enemyhealth lte 0>>
The <<person>> recoils in pain. <<He>> glares at you, and <<he>> and <<his>> friends look like they've a mind to punish you, but at that moment footsteps can be heard approaching the class, and they think better of it. <<tearful>> you take your seat. Winter returns, with no knowledge of what just took place.

<<clothesontowel>>
<<endcombat>>

<<link [[Next|History Lesson]]>><</link>>
<<elseif $alarm is 1 and $rescue is 1>><<set $rescued += 1>>
Footsteps can be heard rapidly approaching the classroom. The <<person>> pushes you away and returns to <<his>> desk, along with the rest of the class. <<tearful>> you take your seat. Winter arrives, looking angry. "I can't leave you alone for five minutes, can I?" Glad that the assault is over and not wanting Winter to know it was you who screamed, you keep your head down as the lesson continues.

<<clothesontowel>>
<<endcombat>>

<<link [[Next|History Lesson]]>><</link>>
<<else>>
Footsteps can be heard approaching the classroom. The <<person>> pushes you away and returns to <<his>> desk, along with the rest of the class. <<tearful>> you take your seat. Winter arrives, one of the <<persons>> friends in tow, looking diminished. "Don't waste my time again, or you'll never see the end of detention." Glad that the assault is over, you keep your head down as the lesson continues.

<<clothesontowel>>
<<endcombat>>

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

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

You walk to the front of the classroom, and Winter gestures you to bend over the bottom part of the pillory. You do so, and <<he>> lifts over the rest of the device, locking you firmly in place. Your hands and head poke through small holes facing the class. The antique is bolted onto the floor, rendering you quite immobile.

<<if $rng gte 51>>
<<endevent>><<leighton>><<person1>>Before Winter can speak further, the door opens to reveal Leighton, who doesn't look twice at the <<girl>> in the pillory. <<He>> looks at Winter. "We need to talk." Winter nods, and leaves the room without a word.<<endevent>>

<<generates1>><<person1>>The class is silent for a few moments, as the sound of footsteps outside the room fade into nothingness. Then a <<person>> stands up, and saunters over to you. "Who thinks the lesson should continue?" <<He>> asks the rest of the class, smiling slyly. Encouraged by the rest of the class, <<he>> walks behind you.

<<link [[Next|History Lesson Pillory Molestation]]>><<set $molestationstart to 1>><</link>>

<<else>>
Winter lectures about the historical use of the pillory, as well as other archaic punishments. You wonder why <<he>> likes them so much. Before long, <<he>> releases you. "You've been a fine assistant," <<he>> says cheerfully, as you head back to your seat.

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

<</if>>

:: History Lesson Pillory Molestation [nobr]
<<if $molestationstart is 1>>
<<set $molestationstart to 0>>
<<controlloss>>
<<violence 1>>
<<neutral 1>>
<<molested>>
<<set $event to "molestationhome">>
<<man1init>><<npcspank>>
<<set $timer to 18>>
<<set $position to "wall">><<set $leftarm to "bound">><<set $rightarm to "bound">><<set $head to "bound">><<set $lefthand to 0>>
<<if $delinquency lt 400>><<set $rescue to 1>><</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>>

<<effectsman>><<man>>

<<audience>>

<<stateman>>

<<actionsman>>

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

:: History Lesson Pillory Molestation Finish [nobr]
<<effects>>
<<if $enemyarousal gte $enemyarousalmax>>
<<ejaculation>><<famerape 10>>

"I got a bit carried away there." You hear the <<person>> mutter as <<he>> heads back to <<his>> seat

<<exposure>>
	<<if $exposed gte 1>>
	Winter returns to the class, and sees you in your undressed state. The teacher conceals your body with a towel while freeing you from the pillory. "Who's responsible for this?" Everyone looks at the <<personcomma>> who shrinks lower into their seat. "Stay behind after class." <<tearful>> you walk back to your desk, and ease yourself down.
	<<else>>
	<<endevent>><<winter>><<person1>>Winter returns to the class. "Sorry, but we won't have time for this now," <<he>> says as <<he>> releases you from the pillory. <<He>> sounds genuinely disappointed. <<tearful>> you walk back to your desk, and ease yourself down.
	<</if>>

<<clothesontowel>>
<<endcombat>>

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

<<elseif $enemyhealth lte 0>>
The <<person>> recoils in pain, and the class turn against <<himcomma>> laughing at <<his>> inability to properly molest a bound <<girlstop>> <<He>> returns to <<his>> seat, looking diminished.

<<exposure>>
	<<if $exposed gte 1>>
	Winter returns to the class, and sees you in your undressed state. The teacher conceals your body with a towel while freeing you from the pillory. "Who's responsible for this?" Everyone looks at the <<personcomma>> who shrinks lower into their seat. "Stay behind after class." <<tearful>> you walk back to your desk, and ease yourself down.
	<<else>>Winter returns to the class. "Sorry, but we won't have time for this now," <<he>> says as <<he>> releases you from the pillory. <<He>> sounds genuinely disappointed. <<tearful>> you walk back to your desk, and ease yourself down.
	<</if>>

<<clothesontowel>>
<<endcombat>>

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

<<elseif $alarm is 1 and $rescue is 1>><<set $rescued += 1>>
Footsteps can be heard rapidly approaching the classroom. The <<person>> rushes back to <<his>> desk. Winter arrives, looking angry. "I can't leave you alone for five minutes, can I?"

<<exposure>>
	<<if $exposed gte 1>>
	Winter conceals your body with a towel while freeing you from the pillory. "Who's responsible for this?" Everyone looks at the <<personcomma>> who shrinks lower into their seat. "Stay behind after class." <<tearful>> you walk back to your desk, and ease yourself down.
	<<else>>
	<<endevent>><<winter>><<person1>>"Sorry, but we won't have time for this now." Winter says as <<he>> releases you from the pillory. <<He>> sounds genuinely disappointed. <<tearful>> you walk back to your desk, and ease yourself down.
	<</if>>

<<clothesontowel>>
<<endcombat>>

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

<<else>>
Footsteps can be heard approaching the classroom. The <<person>> rushes back to <<his>> desk. The door opens to reveal Winter,

<<exposure>>
	<<if $exposed gte 1>>
	who sees you in your undressed state. The teacher conceals your body with a towel while freeing you from the pillory. "Who's responsible for this?" Everyone looks at the <<personcomma>> who shrinks lower into their seat. "Stay behind after class." <<tearful>> you walk back to your desk, and ease yourself down.
	<<else>>
	<<endevent>><<winter>><<person1>>"Sorry, but we won't have time for this now," <<he>> says as <<he>> releases you from the pillory. <<He>> sounds genuinely disappointed. <<tearful>> you walk back to your desk, and ease yourself down.
	<</if>>

<<clothesontowel>>
<<endcombat>>

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

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

<<winter>><<person1>>You raise your hand, and Winter looks at you. You answer the question, and <<he>> gives you a curt nod before moving on. That's about as close as you'll get to praise in this class.

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

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

<<if $submissive gte 1150>>
"I-I can't... I can't tell you." You say, hunching to conceal the collar around your neck.

<<elseif $submissive lte 850>>
"Mind your own business," you say.

<<else>>
"I can't tell you," you say.

<</if>>

"Fine," says Winter. "Whatever it is, you can show Leighton in Detention."

<<endevent>>

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

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

<<if $submissive gte 1150>>
"I-It's my collar," you say.

<<elseif $submissive lte 850>>
"It's a collar. What's it to you?" you say.

<<else>>
"It's just a collar," you say.

<</if>>

<<He>> reaches down and picks up the leash. "And this? What would possess you to wear such a thing?" Pretty much the entire class is watching now. "Do you like to roleplay as a dog?" Someone giggles, which distracts Winter. "Quiet! Now, where was I..." <<He>> commences <<his>> droning.

<<endevent>>

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


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

<<if $schoolstate is "fourth">>
	<<if $uppertype is "school" and $lowertype is "school">>
		<<if $historyattended is 1>>
		You rejoin the history lesson, and take your seat.

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

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

	You enter the history classroom.
	<<winter>><<person1>>
	Winter is preparing at the front of the room while the seats fill.

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

		<<else>>
		You enter the history classroom.
		<<winter>><<person1>>
		Winter cuts off mid-sentence and looks at you. <<He>> taps <<his>> watch and points to your seat.<<gdelinquency>>

<<detention 1>>
		You take your seat as Winter continues.

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

		<</if>>
	<<else>>
	<<winter>><<person1>>
	Winter looks at your clothing. "You can't have believed I wouldn't notice. Go see the head."

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

	<</if>>

<<elseif $schoolstate is "lunch">>

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

<<schoolperiodtext>>

<<link [[Study history|History Classroom Study]]>><</link>><<gstress>><<ghistory>>

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

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

	<<winter>><<person1>>You enter the history classroom. Winter stops speaking abruptly and looks your way. "Every time you interrupt me you damage your fellow student's chances. I'll mark you down for detention." <<He>> guides you to the door.<<gdelinquency>>

	<<detention 1>>

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

	<<winter>><<person1>>You enter the history classroom. Winter stops speaking abruptly and looks your way. "And what can I do for you?" It seems you've interrupted the lesson.

<<set $historyinterrupted to 1>>

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

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

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

You are in the History classroom. It has a stuffy atmosphere.

<<exhibitionclassroom>>

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

<</if>>

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

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

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

<<else>>

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

<</if>>

<<link [[Focus on the lesson|History Lesson Focus]]>><</link>><<gstress>><<ghistory>>

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

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

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

<</if>>

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

Embarrassed, you apologise and leave.

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

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

You mock the teacher. "Sorry for interrupting <<sircomma>> I got you muddled with the skeleton in the science room." Laughter erupts among the seated students.

Winter sighs. "Is this really what passes for humour today?" <<He>> guides you to the exit and shuts the door behind you.<<gdelinquency>>

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

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

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

<<towelup>>

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

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

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

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

<<else>>

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

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

<<towelup>>

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

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

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

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

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

<<else>>

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

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

<<towelup>>

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

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

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

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

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

<<else>>

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

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

You take a seat and read a history textbook.

<<winter>><<person1>>The classroom soon fills and Winter arrives to begin the lesson.

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

<<else>>
Winter looks at your clothing. "You can't have believed I wouldn't notice. Go see the head."

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

<</if>>

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


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

<<if $phase is 0>>
You turn and give the delinquents a stern talking to.

	<<if $cool gte (($coolmax / 5) * 2)>>
	They recoil as if stung, and stop the harassment.

	<<else>>
	They don't seem impressed; one sticks out their tongue at you, but they stop harassing you.

	<</if>>

River gives you an angry look for disrupting <<his>> class.

<<link [[Next|Maths Lesson]]>><<endevent>><</link>>
<<else>>
Not wanting to cause a fuss, you decide to put up with it. Fortunately, they don't take things too far, content to poke you with rulers when River isn't looking.

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

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

<<if $phase is 0>>
"Very good. I knew you'd get it," <<he>> says, looking at the rest of the class pointedly. When <<he>> turns <<his>> back, other students look at you like you just insulted them.

<<link [[Next|Maths Lesson]]>><<endevent>><</link>>
<<else>>
<<He>> looks at you blankly for a moment. "Liar. Maybe detention will teach you to quit playing dumb." <<He>> returns to <<his>> lecturing.

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

:: Maths Event Bite [nobr]
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

You turn and bite River's hand. You feel your fangs sink into <<his>> flesh.

<<He>> screams and lurches away from you, clutching <<his>> injury. <<He>> stares at you with wide eyes, seemingly lost for words. Most of the class look amused. "You... Det..." <<he>> stammers. "Detention." <<He>> walks to the front of the class, taking a detour around you, and rummages in <<his>> desk for a bandage.

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

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

You remain still on your seat, and endure River's rude tugging. It doesn't take long for <<him>> to give up. "I don't know how these are stuck on, but I want them gone," <<he>> says. <<He>> continues <<his>> march down the classroom, leaving your ears and scalp sore.

<<endevent>>

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

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

You feign shock at River's collapse and join in the laughter. <<river>><<person1>><<He>> soon comes to and looks around with bleary eyes. <<He>> fixes you with a gaze, but doesn't say anything. <<He>> climbs to <<his>> feet and continues the lesson as if nothing happened.

<<endevent>>

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

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

<<if $phase is 1>>
You break the seal and open the envelope. There's a note inside, with the head's computer username and password. That might be useful, but you'll probably be in trouble for tampering with the letter.<<set $headpasswordknown to 1>>

<</if>>

You deliver the note without incident, but on the way back to class you are hounded by a group of delinquents.

<<if $cool lt ($coolmax / 10) and $mathsnote gte 2>>
<<generatey1>><<generatey2>><<generatey3>><<generatey4>>

What starts with verbal teasing soon becomes physical.

<<link [[Next|Maths Note Molestation]]>><<set $molestationstart to 1>><<set $phase to 2>><</link>>

<<elseif $cool lt ($coolmax / 5) and $mathsnote gte 1>><<set $mathsnote to 2>>
<<generatey1>><<generatey2>><<generatey3>><<generatey4>>

What starts with verbal teasing soon becomes physical.

<<link [[Next|Maths Note Molestation]]>><<set $molestationstart to 1>><<set $phase to 1>><</link>>

<<else>><<set $mathsnote to 1>>
They tease you a little but fortunately don't take things too far. You arrive at the classroom.<<gtrauma>><<gstress>><<trauma 2>><<stress 2>>

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

<</if>>

:: Maths Note Molestation [nobr]
<<if $molestationstart is 1>>
	<<if $phase is 1>>
<<set $molestationstart to 0>>
<<controlloss>>
<<violence 1>>
<<neutral 1>>
<<molested>>
<<set $event to "molestationhome">>
<<man1init>><<npcstrip>><<set $timer to 15>>
		<<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>>

<<effectsman>><<man>>

<<stateman>>

<<actionsman>>

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

:: Maths Note Molestation Finish [nobr]
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

<<if $enemyhealth lte 0>>

Your assailants recoil in pain. <<tearful>> you seize the chance to escape.

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

Shaken, you walk back to the classroom.

<<link [[Next|Maths Lesson]]>><</link>>
<<elseif $enemyarousal gte $enemyarousalmax>>

<<ejaculation>>

"See ya later loser," says the <<person1>><<personstop>>

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

<<tearful>> you walk back to the classroom.

<<link [[Next|Maths 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.

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

<<tearful>> you walk back to the classroom.

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

"See ya later loser," says the <<person1>><<personstop>>

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

<<tearful>> you walk back to the classroom.

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

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

<<if $phase is 3>>
You do your best to ignore the fondling. River is distracted on the other side of the room, and the <<person>> becomes more bold.

<<link [[Next|Maths Event3 Molestation]]>><<set $molestationstart to 1>><</link>>

<<elseif $phase is 2>>
You do your best to ignore the fondling. The <<person>> continues to covertly grope and squeeze your butt while acting as though nothing is amiss. You feel a little violated, but put up with it for the sake of peace.

<<link [[Next|Maths Lesson]]>><<endevent>><</link>>
<<elseif $phase is 1>>
You shift your chair away from the <<personcomma>> beyond the reach of their fondling. Unfortunately, River gets the wrong idea. "I asked you to help a fellow student, don't try to weasel out of it. Maybe detention will teach you to respect your colleagues." The <<person>> gives you a mocking smile.

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

:: Maths Event3 Molestation [nobr]
<<if $molestationstart is 1>>
<<set $molestationstart to 0>>
<<controlloss>>
<<violence 1>>
<<neutral 1>>
<<molested>>
<<set $event to "molestationhome">>
<<man1init>><<npcstrip>>
<<set $timer to 10>>
<<set $rescue to 1>>
<<set $enemyhealthmax to 1>><<set $enemyhealth to $enemyhealthmax>>
<</if>>

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

<<stateman>>

<<actionsman>>

<<if $alarm is 1>>
<<link [[Next|Maths Event3 Molestation Finish]]>><</link>><<nexttext>>
<<elseif $timer lte 0>>
<<link [[Next|Maths Event3 Molestation Finish]]>><</link>><<nexttext>>
<<elseif $enemyhealth lte 0>>
<<link [[Next|Maths Event3 Molestation Finish]]>><</link>><<nexttext>>
<<else>>
<<link [[Next|Maths Event3 Molestation]]>><</link>><<nexttext>>
<</if>>

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

<<if $alarm is 1>><<set $rescued += 1>>
You cry for help, causing River and the rest of the class turn to you. River fixes the <<person>> with a glare. "Assaulting another student? This is utterly unacceptable. You can sit alone," the <<person>> is moved to the other side of the room.<<status -10>><<lcool>>

<<tearful>> you gather yourself.

<<clothesontowel>>
<<endcombat>>

<<link [[Next|Maths Lesson]]>><</link>>
<<elseif $enemyhealth lte 0>>
The <<person>> yells in pain, causing River and the rest of the class to turn to you. River glares at you, and talks over your attempt at an explanation. "Assaulting another student? This is utterly unacceptable. You can sit alone." You got away from the <<personcomma>> at least.<<detention 2>><<gdelinquency>>

<<tearful>> you gather yourself.

<<clothesontowel>>
<<endcombat>>

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

<<elseif $enemyarousal gte $enemyarousalmax>>
<<ejaculation>>

The <<person>> groans in satisfaction, causing River to turn and look. "This behaviour is completely unacceptable. I'm separating you two." <<tearful>> you move seats. You got away from the <<personcomma>> at least.<<detention 3>><<gdelinquency>>

<<clothesontowel>>
<<endcombat>>

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

<<elseif $timer lte 0>>
River turns back to the class, and the <<person>> ceases their groping.

<<tearful>> you gather yourself.

<<clothesontowel>>
<<endcombat>>

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

:: Maths Event4 [nobr]
<<generatey1>><<generatey2>>
<<if $rng gte 81>>
As you wait in the corridor, a <<person1>><<person>> and <<person2>><<person>> walk up to you. They stand either side of you, preventing you from moving away.

<<link [[Next|Maths Event4 Molestation]]>><<set $molestationstart to 1>><</link>>
<<else>>
As you wait in the corridor, a <<person1>><<person>> and <<person2>><<person>> eye you up as they pass by. The <<person1>><<person>> grins at you. <<catcall>><<gtrauma>><<gstress>><<trauma 1>><<stress 1>>

A few minutes later River emerges from the class. "It seems I made a mistake. Come back in."

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

<</if>>

:: Maths Event4 Molestation [nobr]
<<if $molestationstart is 1>>
<<set $molestationstart to 0>>
<<controlloss>>
<<violence 1>>
<<neutral 1>>
<<molested>>
<<set $event to "molestationhome">>
<<man1init>><<npcidlegenitals>>
<</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>>

<<effectsman>><<man>>

<<stateman>>

<<actionsman>>

<<if $enemyhealth lte 0>>
<<link [[Next|Maths Event4 Molestation Finish]]>><</link>><<nexttext>>
<<elseif $enemyarousal gte $enemyarousalmax>>
<<link [[Next|Maths Event4 Molestation Finish]]>><</link>><<nexttext>>
<<else>>
<<link [[Next|Maths Event4 Molestation]]>><</link>><<nexttext>>
<</if>>

:: Maths Event4 Molestation Finish [nobr]
<<if $enemyhealth lte 0>>

You manage to fend off the pair.

<<clotheson>>
<<endcombat>>

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

<<tearful>> you gather yourself.

 A few minutes later River emerges from the class. "It seems I made a mistake. Come back in."

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

<<elseif $enemyarousal gte $enemyarousalmax>>
<<ejaculation>>

"Thanks for getting us off, slut." Panting, they walk away.

<<clotheson>>
<<endcombat>>

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

<<tearful>> you gather yourself. A few minutes later River emerges from the class. "It seems I made a mistake. Come back in."

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

<</if>>


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

<<if $schoolstate is "second">>
	<<if $uppertype is "school" and $lowertype is "school">>
		<<if $mathsattended is 1>>
		You rejoin the maths lesson, and take your seat.

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

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

	You enter the maths classroom.
	<<river>><<person1>>
	River is preparing at the front of the room while the seats fill.

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

		<<else>>
		You enter the maths classroom.
		<<river>><<person1>>
		River cuts off mid-sentence to regard you. "You're late. Maybe some time in detention will prevent future tardiness."<<gdelinquency>>

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

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

		<</if>>
	<<else>>
	<<river>><<person1>>
	River's eyes narrow as you enter. "You can't attend my lesson without a uniform. Go see the head."

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

	<</if>>

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

	<<river>><<person1>>You enter the maths classroom. River stops speaking abruptly and looks your way. "You again? Get out." <<He>> shuts the door on you.<<gdelinquency>>

	<<detention 1>>

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

	<<river>><<person1>>You enter the maths classroom. River stops speaking abruptly and looks your way. "Yes, what is it?" It seems you've interrupted the lesson.

<<set $mathsinterrupted to 1>>

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

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

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

You are in the maths classroom. Charts and graphs cover the walls.

<<exhibitionclassroom>>

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

<</if>>

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

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

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

<<else>>

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

<</if>>

<<link [[Focus on the lesson|Maths Lesson Focus]]>><</link>><<gstress>><<gmaths>>

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

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

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

<</if>>

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

Embarrassed, you apologise and leave.

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

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

You mock the teacher. "Sorry for interrupting <<sircomma>> I'll let you get back to putting your class to sleep." Laughter erupts among the seated students.

River is not so amused. "You've made a mistake. Get out."<<gdelinquency>>

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

:: Maths 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>><<mathsskill>>
<<schooleffects>>
<<if $time gte ($hour * 60 + 5) and $time lte ($hour * 60 + 57)>>
<<pass 5>><<stress 1>><<mathsskill>>
<<schooleffects>>
<<else>>
<<set $phase to 1>>
<</if>>
<<if $time gte ($hour * 60 + 5) and $time lte ($hour * 60 + 57)>>
<<pass 5>><<stress 1>><<mathsskill>>
<<schooleffects>>
<<else>>
<<set $phase to 1>>
<</if>>
<<if $time gte ($hour * 60 + 5) and $time lte ($hour * 60 + 57)>>
<<pass 5>><<stress 1>><<mathsskill>>
<<schooleffects>>
<<else>>
<<set $phase to 1>>
<</if>>
<<if $time gte ($hour * 60 + 5) and $time lte ($hour * 60 + 57)>>
<<else>>
<<set $phase to 1>>
<</if>>

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

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

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

<<else>>

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

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

<<towelup>>

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

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

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

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

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

<<else>>

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

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

<<towelup>>

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

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

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

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

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

<<else>>

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