code:
:: Maths Event1
<<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
<<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
<<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.

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

 "You... Det..." the teacher 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 Kick
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

You tense your leg underneath your desk like a spring, and lash out as hard as you can. You think you tear a muscle, but you feel the blow connect with River's shin immediately. <<gpain>><<pain 6>>

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

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

 "You... Det..." the teacher 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 Ruler
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

<<if $phase is 1>>
	You accept her proposal.

	"Let's see then how deep can it go!" she says.

	You remove your cloths from the waist below. Your classmates are already looking at you and trying to get to a better position.

	<<if $worn.lower.type.includes("naked")>>

	A cheer erupts from the class as they see you're not wearing any underwear.
		<<if $beauty gte($beautymax / 7) * 2>>
			A few even whistles after seeing your
			<<if $worn.genitals.type.includes("chastity")>>
				$worn.genitals.name.
			<<else>>
				<<if $player.penisExist>>penis<</if>><<if $player.penisExist and $player.vaginaExist>> and <</if>><<if $player.vaginaExist>>cute pussy<</if>>.
			<</if>>
		<</if>>
	<</if>>

	The girl hands you the ruler. You walk to Riven's desk and sit on it legs fully spread so your classmates can clearly see your
	<<if $player.penisExist>>asshole<<else>>vagina<</if>>.

	With one hand you push two fingers into your
	<<if $player.penisExist>>asshole<<else>>vagina<</if>> and start spreading it as much as you can.

	<<if $player.bodyliquid.anus.semen gte 1 or $player.bodyliquid.vagina.semen gte 1>>

		A bit of cum drips from your nether regions onto the desk. "Ah, I see you have been used quite recently." says the girl.

		You do not mind her and continue.
	<</if>>

	<<if $arousal gte ($arousalmax / 5) * 3>>
		<<if $player.vaginaExist>>
			You are already completely wet and it takes not much effort to insert the tip of the ruler in your vagina.
		<<else>>
			It takes not much effort to insert the tip of the ruler in your asshole.
		<</if>>

		You start pushing it inside.

		<<if $vaginalstat gte 30>>
			The ruler slides in easily as if it was meant to be. You have obviously taken much bigger things.
		<<else>>
			The ruler slides in, you feel it scratching your insides, but it doesn't hurt at all.
		<</if>>

		Your classmates are enthralled and not a single sound escapes them as they watch your presentation.

		You keep pushing and almost the whole ruler is inside of you now.
		<<if $deviancy gte 35 and $player.vaginaExist>>

			You feel that the ruler has hit your cervix. It just needs a bit more and it would be fully inside you.

			<<if $deviancy gte 55>>
				<<link [[Force it|Maths RulerB]]>><<set $phase to 1>><</link>><<deviant3>>

			<</if>>
		<</if>>
	<<elseif $arousal gte ($arousalmax / 10) * 3>>
		<<if $player.vaginaExist>>
			You are a bit wet and it takes a small effort to insert the tip of the ruler in your vagina.
		<<else>>
			It takes a bit effort to insert the tip of the ruler in your asshole.
		<</if>>

		You start pushing it inside.
		<<if $vaginalstat gte 30>>
		The ruler slides in easily as if it was meant to be. You have obviously taken much bigger things.
		<<else>>
		The ruler slides in, you feel it scratching your insides and it hurts a little bit.
		<</if>>

		Your classmates are enthralled and not a single sound escapes them as they watch your presentation.

		You keep pushing and more than half of the ruler is inside of you now.

		You think this should suffice for the bet.

		Your classmates are amazed.

		"Huh, I didn't think you would do it, but a bet is a bet."
		The girl nods admiringly and hands you the money.
		<<set $money += 4000>><<fameexhibitionism 3>>

		<<link [[Next|Maths Lesson]]>><<endevent>><</link>>
	<<elseif $arousal gte ($arousalmax / 20) * 3>>
		<<if $player.vaginaExist>>
			You are barely wet and it takes some effort to insert the tip of the ruler in your vagina.
		<<else>>
			It takes some effort to insert the tip of the ruler in your asshole.
		<</if>>

		You start pushing it inside.
		<<if $vaginalstat gte 30>>
			The ruler slides in easily as if it was meant to be. You have obviously taken much bigger things.
		<<else>>
			The ruler slowly slides in, you feel it scratching your insides and it hurts, but you force it nonetheless.
		<</if>>

		Your classmates are enthralled and not a single sound escapes them as they watch your presentation.

		You keep pushing and almost half of the ruler is inside of you now.

		You think this should suffice for the bet.

		Your classmates are amazed.

		"Huh, I didn't think you would do it, but a bet is a bet."
		The girl nods admiringly and hands you the money.
		<<set $money += 4000>><<fameexhibitionism 3>>

		<<link [[Next|Maths Lesson]]>><<endevent>><</link>>
	<</if>>
<<elseif $phase is 2>>
	You refuse which causes most of the class members to sigh in deject as they have expected something else.

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

:: Maths RulerB
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>
<<if $phase is 1>>
	You take a deep breath and start forcing the ruler inside of your womb through your cervix.

	The ruler is not so wide so slowly but surely it starts sliding even deeper. You can feel your cervix stretching and opening up as it accepts the foreign object.

	After a grunt from you and one final push the ruler is completely inside of you now, your fingers enter your vagina pushing it even deeper just to show everyone you could still do more if you wanted to.

	You look up triumphantly and proud.

	<<set $deviancy += 1>>
	You feel in control performing such a lewd act soothes and it excites you.
	<<control 25>><<arousal 100>><<set $stress -= 300>><<combattrauma -30>><<ltrauma>><<lstress>><<garousal>>

	Your classmates are amazed. You didn't think you would be able to push it so deep and neither did they.

	The girls jaw is completely dropped and she needs a moment to collect herself.

	"Huh, I didn't think you would do it nor in such extent, but a bet is a bet."

	The girl nods admiringly and hands you the money.

	You take the money and dig deep in your pussy and pull out the ruler. It is messy with your vaginal fluids and tip is a bit bloody as proof of your insane act.

	You decide to keep it.
	<<set $itemruler is 1>>
	<<set $money += 4000>><<fameexhibitionism 3>>

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

:: Maths Event Endure
<<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
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

You feign shock at River's collapse and join in the laughter. <<npc 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
<<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>>

	<<endevent>>
<</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
<<if $molestationstart is 1>>
	<<set $molestationstart to 0>>
	<<controlloss>>
	<<violence 1>>
	<<neutral 1>>
	<<molested>>
	<<maninit>>
	<<if $delinquency lt 400>>
		<<enable_rescue>>
	<</if>>
	<<if $phase is 1>>
		<<npcstrip>><<set $timer to 15>>
	<<elseif $phase is 2>>
		<<hand_gag 0 left>>
	<</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
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

<<if $enemyhealth lte 0>>

	The <<group>> recoil in pain. <<tearful>> you seize the chance to escape.

	<<clotheson>>
	<<endcombat>>

	<<if !$worn.upper.type.includes("naked") and !$worn.lower.type.includes("naked")>>
	<<else>>
		You make a detour to the toilets and find some towels to cover up with before anyone sees you.<<towelup>>
	<</if>>

	Shaken, you walk back to the classroom.

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

	"See ya later loser," says the <<person1>><<person>>.

	<<clotheson>>
	<<endcombat>>

	<<if !$worn.upper.type.includes("naked") and !$worn.lower.type.includes("naked")>>
	<<else>>
		You make a detour to the toilets and find some towels to cover up with before anyone sees you.<<towelup>>
	<</if>>

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

	<<link [[Next|Maths Lesson]]>><</link>>
<<elseif $rescue is 1 and $alarm is 1>><<set $rescued += 1>>
	<<endevent>><<npc Leighton>><<person1>>Leighton rounds a corner, having heard your scream. The <<group>>'s demeanour changes immediately, and they are harried back to <<his>> office.

	<<clotheson>>
	<<endcombat>>

	<<if !$worn.upper.type.includes("naked") and !$worn.lower.type.includes("naked")>>
	<<else>>
		You make a detour to the toilets and find some towels to cover up with before anyone sees you.<<towelup>>
	<</if>>

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

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

	"See ya later loser," says the <<person1>><<person>>.

	<<clotheson>>
	<<endcombat>>

	<<if !$worn.upper.type.includes("naked") and !$worn.lower.type.includes("naked")>>
	<<else>>
		You make a detour to the toilets and find some towels to cover up with before anyone sees you.<<towelup>>
	<</if>>

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

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

:: Maths Event3
<<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 <<person>>, 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
<<if $molestationstart is 1>>
	<<set $molestationstart to 0>>
	<<controlloss>>
	<<violence 1>>
	<<neutral 1>>
	<<molested>>

	<<maninit>><<npcstrip>>
	<<set $timer to 10>>
	<<enable_rescue>>
	<<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>>
<<elseif $enemyarousal gte $enemyarousalmax>>
	<<link [[Next|Maths Event3 Molestation Finish]]>><</link>><<nexttext>>
<<else>>
	<<link [[Next|Maths Event3 Molestation]]>><</link>><<nexttext>>
<</if>>

:: Maths Event3 Molestation Finish
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>
<<person1>>
<<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 <<person>>, 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 <<person>>, at least.<<detention 3>><<gdelinquency>>

	<<clothesontowel>>
	<<endcombat>>

	<<link [[Next|Maths Lesson]]>><</link>>
<<else>>
	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 Event3 Whitney
<<effects>>

You nudge Whitney and lean forward. Whitney notices the <<persons>> antics, grabs the offending hand, and pulls <<him>> from <<his>> chair.

<<endevent>><<npc River>><<person1>>
They tussle on the ground for a moment, to the amusement of the rest of class, but River is quick to break them up. <<He>> sends Whitney to the head's office and the handsy student to the other side of the classroom.

Whitney grins at you on the way out.

<<set $whitneymaths to "sent">>

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

:: Maths Event4
<<effects>>

<<if $whitneymaths is "seat">>

	<<npc Whitney>><<person1>>
	Once outside, Whitney rests <<his>> forearm on the wall above you. "All alone with me," <<he>> says, leaning in to kiss your neck. "What a shame."

	<<if $submissive lte 500>>
		<<link [[Take charge|Maths Event4 Take]]>><<npcincr Whitney love 1>><<npcincr Whitney dom -1>><<def 1>><</link>><<defianttext>><<promiscuous1>><<glove>><<ldom>>

	<</if>>
	<<link [[Allow|Maths Event4 Allow]]>><<npcincr Whitney love 1>><<npcincr Whitney dom 1>><><<stress 6>><<arousal 600>><</link>><<glove>><<gdom>><<gstress>><<garousal>>

	<<link [[Push away|Maths Event4 Push]]>><<npcincr Whitney love -1>><<npcincr Whitney dom -1>><<def 1>><</link>><<llove>><<ldom>>

<<else>>

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

:: Maths Event4 Molestation
<<if $molestationstart is 1>>
	<<set $molestationstart to 0>>
	<<controlloss>>
	<<violence 1>>
	<<neutral 1>>
	<<molested>>

	<<maninit>><<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
<<if $enemyhealth lte 0>>
	You manage to fend off the pair.

	<<clotheson>>
	<<endcombat>>

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

:: Maths Event4 Allow
<<effects>>

Whitney licks and bites your neck and <<his>> hands assault your clothes.

<<link [[Next|Maths Event4 Sex]]>><<set $sexstart to 1>><</link>>

:: Maths Event4 Push
<<effects>>

You push and pull away from Whitney. <<He>> doesn't relent, and you're forced to shove <<him>>. "Suit yourself," <<he>> says. "Slut."

A few minutes later River emerges from the class. "It seems I made a mistake. Come back in." You enter the class, but Whitney finds <<himself>> blocked by River's arm. "You can stay out."

Whitney glares at River as the door shuts behind you.

<<set $whitneymaths to "sent">>

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

:: Maths Event4 Take
<<effects>>

Whitney's eyes open in surprise as you shove <<him>> against the opposite wall and assault <<him>> with your tongue. <<His>> shocks subsides, and <<he>> kisses back while groping at your clothes. <<takeKissVirginity "Whitney" `($whitneyromance is 1?"loveInterest":"romantic")`>>
<<promiscuity1>>

<<link [[Next|Maths Event4 Sex]]>><<set $sexstart to 1>><</link>>

:: Maths Event4 Sex

<<if $sexstart is 1>>
	<<set $sexstart to 0>>
	<<consensual>>
	<<set $consensual to 1>>
	<<neutral 1>>

	<<maninit>>
	<<set $enemytrust += 100>><<promiscuity5>>
	<<enable_rescue>>
<</if>>

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

<<actionsman>>
<<if $finish is 1>>
	<<link [[Next|Maths Event4 Sex Finish]]>><</link>><<nexttext>>
<<elseif $enemyhealth lte 0>>
	<<link [[Next|Maths Event4 Sex Finish]]>><</link>><<nexttext>>
<<elseif $enemyarousal gte $enemyarousalmax>>
	<<link [[Next|Maths Event4 Sex Finish]]>><</link>><<nexttext>>
<<elseif $alarm is 1 and $rescue is 1>>
	<<link [[Next|Maths Event4 Sex Finish]]>><</link>><<nexttext>>
<<else>>
	<<link [[Next|Maths Event4 Sex]]>><</link>><<nexttext>>
<</if>>

:: Maths Event4 Sex Finish

<<set $outside to 0>><<effects>>
<<if $enemyarousal gte $enemyarousalmax>>
	<<ejaculation>><<earnFeat "Delinquent Antics">>
	Whitney leans against the wall, face red and panting.

	<<tearful>> you lean against the wall yourself.

	<<clotheson>>
	<<endcombat>>
	<<npc Whitney>><<person1>>
	A few minutes later River emerges from the class. "It seems I made a mistake. Come back in." You enter the class, but Whitney finds <<himself>> blocked by River's arm. "You can stay out."

	Whitney glares at River as the door shuts behind you.

	<<set $whitneymaths to "sent">>

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

<<elseif $enemyhealth lte 0>>
	You shove Whitney against the wall opposite. <<He>> glares at you, but doesn't say anything.

	<<tearful>> you gather youself.

	<<clotheson>>
	<<endcombat>>
	<<npc Whitney>><<person1>>
	A few minutes later River emerges from the class. "It seems I made a mistake. Come back in." You enter the class, but Whitney finds <<himself>> blocked by River's arm. "You can stay out."

	Whitney glares at River as the door shuts behind you.

	<<set $whitneymaths to "sent">>

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

<<elseif $alarm is 1 and $rescue is 1>>
	The classroom door bursts open. River steps through, eyes livid. Grasping Whitney by the collar, the maths teacher hauls <<him>> away from you. Whitney staggers to a stop, eyeing up <<his>> new opponent with clenched fists. After a moment however, <<he>> relaxes. "Whatever," <<he>> says. "Later, slut."

	<<tearful>> you rise to your feet.

	<<clotheson>>
	<<endcombat>>
	<<npc Whitney>><<person1>>
	<<if $exposed gte 1>>
		River returns to the room a moment, then reappears with some towels for you to cover with.

	<</if>>
	You follow river into the classroom, and take your seat.

	<<set $whitneymaths to "sent">>
	<<link [[Next|Maths Lesson]]>><<endevent>><</link>>

<<else>>
	Whitney's reluctant to stop, but <<he>> respects your wishes and steps back. <<He>> leans against the wall opposite, eyeing you up.

	<<tearful>> you gather youself.

	<<clotheson>>
	<<endcombat>>

	<<npc Whitney>><<person1>>
	A few minutes later River emerges from the class. "It seems I made a mistake. Come back in." You enter the class, but Whitney finds <<himself>> blocked by River's arm. "You can stay out."

	Whitney glares at River as the door shuts behind you.

	<<set $whitneymaths to "sent">>

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

<</if>>

:: Maths Whitney Makeout
<<effects>>

You turn to face Whitney, lean in, and kiss. <<He>> kisses back, wrapping <<his>> arms around you and pulling you closer, almost violently. <<takeKissVirginity "Whitney" `($whitneyromance is 1?"loveInterest":"romantic")`>>

<<if random(1, 2) gte 2>>
	<<endevent>><<npc River>><<person1>>
	Someone giggles. River turns, dropping <<his>> pen when <<he>> sees Whitney and you. "Whitney!" <<he>> shouts, though <<his>> voice trembles a little. "That's assault! Get out, right now!"

	<<endevent>><<npc Whitney>><<person1>>
	Whitney doesn't argue. <<He>> grins as <<he>> pulls away from you, stands, and swaggers from the room.

	<<set $whitneymaths to "sent">>

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

<<else>>
	River turns back to the class, but Whitney doesn't stop.

	<<link [[Keep kissing|Maths Whitney Keep]]>><</link>>

	<<link [[Pull away|Maths Whitney Pull]]>><<npcincr Whitney love -1>><</link>><<llove>>

<</if>>

:: Maths Whitney Keep
<<effects>>

<<endevent>><<npc River>><<person1>>
River sees Whitney and you, dropping <<his>> pen in shock. "Whitney!" <<he>> shouts, though <<his>> voice trembles a little. "That's assault! Get out, right now!"

<<endevent>><<npc Whitney>><<person1>>
Whitney doesn't argue. <<He>> grins as <<he>> pulls away from you, stands, and swaggers from the room.

<<set $whitneymaths to "sent">>

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

:: Maths Whitney Pull
<<effects>>

You pull away from Whitney. <<He>> tries to pull you back, but notices River and decides against it, instead reclining in <<his>> chair.

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

:: Maths Whitney Work
<<effects>>

<<if random(1, 2) is 2>>

	You keep your head down and continue working. Whitney wraps <<his>> hand around your head and tries to pull you into a kiss.

	<<link [[Kiss|Maths Whitney Makeout]]>><<npcincr Whitney love 1>><<npcincr Whitney dom 1>><</link>><<glove>><<gdom>>

	<<link [[Resist|Maths Whitney Resist]]>><<npcincr Whitney love -1>><<npcincr Whitney dom -1>><</link>><<llove>><<ldom>>

<<else>>
	You keep your head down. Whitney continues to play with your hair as <<he>> gazes out the window.

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

<</if>>

:: Maths Whitney Resist
<<effects>>

You resist Whitney, but <<he>> doesn't give up. <<He>> pulls you harder, just as River turns to the class.

"Out!" the teacher says. "Out this instant." Whitney doesn't argue. <<His>> chair legs screech across the floor as <<he>> stands and leaves the room.

<<set $whitneymaths to "sent">>

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

:: Maths Whitney Read
<<effects>>

You unfurl the paper, and see a brief, scrawled message.

<<if $rng gte 51>>
	<<if $whitneypantiescheck is 1>>
		"You're not wearing <<if $player.gender_appearance is "f">>panties<<else>>underwear<</if>>, right? Show me."
	<<else>>
		"Show me your <<if $player.gender_appearance is "f">>panties<<else>>underwear<</if>>, slut."
	<</if>>

	<<if $whitneypantiescheck is 1>>
		<<if !$worn.under_lower.type.includes("naked")>>
			Whitney won't be happy if <<he>> finds out you've ignored <<his>> demand.

			<<set $skulduggerydifficulty to 300>>
			<<link [[Try to trick Whitney|Maths Whitney Undies Trick]]>><</link>><<skulduggerydifficulty>>

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

	<<link [[Show|Maths Whitney Undies Show]]>><</link>><<exhibitionist1>>

	<<link [[Ignore|Maths Whitney Undies Ignore]]>><</link>>

<<else>>
	"How's my slut doing?"

	<<link [[Respond politely|Maths Whitney Respond]]>><<set $phase to 0>><</link>>

	<<link [[Respond flirtatiously|Maths Whitney Respond]]>><<set $phase to 1>><<npcincr Whitney lust 1>><</link>><<promiscuous1>><<glust>>

	<<link [[Respond aggressively|Maths Whitney Respond]]>><<set $phase to 2>><<def 1>><<npcincr Whitney dom -1>><</link>><<ldom>>

	<<link [[Just throw the paper back|Maths Whitney Throw]]>><</link>>

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

<</if>>

:: Maths Whitney Undies Show
<<effects>>

<<if $worn.under_lower.type.includes("naked")>>
	<<if setup.clothes.lower[clothesIndex('lower', $worn.lower)].skirt is 1>>
		You lift your skirt at the thigh, high enough to show your waistline, confirming that you're not wearing underwear beneath. You cover yourself quickly.<<exhibitionism1>>

		"Nice," Whitney says, prompting River to turn and glare.

		<<unset $whitneypantiesmaths>>
	<<else>>
		You pull your $worn.lower.name down a little, confirming that you're not wearing underwear beneath. You cover yourself quickly.<<exhibitionism1>>

		"Nice," Whitney says, prompting River to turn and glare.

		<<unset $whitneypantiesmaths>>
	<</if>>
<<elseif $whitneypantiescheck is 1>>
	<<if setup.clothes.lower[clothesIndex('lower', $worn.lower)].skirt is 1>>
		You lift your skirt at the thigh, high enough to show your waistline, showing your $worn.under_lower.name beneath. You cover yourself quickly.<<exhibitionism1>>

		Whitney glares at you, but doesn't say anything. This won't be the end of it.

		<<set $whitneypantiesmaths to "seen">>
	<<else>>
		You pull your $worn.lower.name down a little, showing your $worn.under_lower.name beneath. You cover yourself quickly.<<exhibitionism1>>

		Whitney glares at you, but doesn't say anything. This won't be the end of it.

		<<set $whitneypantiesmaths to "seen">>
	<</if>>
<<else>>
	<<if setup.clothes.lower[clothesIndex('lower', $worn.lower)].skirt is 1>>
		You lift your skirt at the thigh, high enough to show your $worn.under_lower.name. You cover yourself quickly.<<exhibitionism1>>

		"Nice," Whitney says, prompting River to turn and glare.

	<<else>>
		You pull your $worn.lower.name down a little, low enough to show your $worn.under_lower.name. You cover yourself quickly.<<exhibitionism1>>

		"Nice," Whitney says, prompting River to turn and glare.

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

<<link [[Next|Maths Lesson]]>><<endevent>><<set $eventskip to 1>><</link>>

:: Maths Whitney Undies Trick
<<effects>>

<<if setup.clothes.lower[clothesIndex('lower', $worn.lower)].skirt is 1>>
	You lift your skirt to your waistline, and try to hoist up your $worn.under_lower.name, hoping to give the impression that you're wearing nothing beneath.
<<else>>
	You pull your $worn.lower.name and $worn.under_lower.name down a little, hoping to give the impression that you're wearing nothing beneath.
<</if>>

<<skulduggerycheck>>
<<if $skulduggerysuccess is 1>>

	"Nice," Whitney says, fooled. River turns and glares at <<him>>.

		<<if $skulduggery lte ($skulduggerydifficulty + 100)>>
		<<skulduggeryskilluse>>
		<<else>>
		That was too easy. You didn't learn anything.

		<</if>>

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

	<<unset $whitneypantiesmaths>>
<<else>>

Whitney glares at you. <<He>> saw through the ruse. <<He>> doesn't say anything, but this won't be the end of it.

	<<if $skulduggery lte ($skulduggerydifficulty + 100)>>
	<<skulduggeryskilluse>>
	<<else>>
	That was too easy. You didn't learn anything.

	<</if>>

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

	<<set $whitneypantiesmaths to "seen">>
<</if>>

:: Maths Whitney Undies Ignore
<<effects>>

You ignore Whitney's demand and turn to face the front of the class. <<He>> barrages you with more crumpled paper, then starts throwing pens. You do your best to ignore <<him>>.

<<if $whitneypantiescheck is 1>>
	<<set $whitneypantiesmaths to "refused">>
<</if>>

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

:: Maths Whitney Respond
<<effects>>

<<if $phase is 0>>
	You write a brief but polite response, wait until you're sure River's back is turned, then throw the paper back at Whitney.

	<<He>> catches it in one hand and unfurls it. <<His>> friends lean over to read it. One of them whispers something. Whitney chucks the paper over <<his>> shoulder, looking bored.

<<elseif $phase is 1>>
	You write a brief but suggestive response, wait until you're sure River's back is turned, then throw the paper back at Whitney. <<promiscuity1>>

	<<He>> catches it in one hand and unfurls it. <<His>> friends lean over to read it. One of them whispers something as Whitney grins. <<He>> whispers back to <<his>> friend, who writes something on <<his>> behalf.

	Whitney throws the paper once more, just as River turns. The teacher snatches it from the air, and drops it in the bin without reading it.
	<<endevent>><<npc River>><<person1>>
	<<He>> points at the door.
	<<endevent>><<npc Whitney>><<person1>>
	With an exasperated sigh, Whitney rises to	<<his>> feet and leaves the room.

	<<set $whitneymaths to "sent">>
<<else>>
	You write a curt message telling Whitney to leave you alone, wait until you're sure River's back is turned, then throw the paper back.

	<<He>> catches it in one hand and unfurls it. <<His>> friends lean over to read it. One of them whispers something. Whitney chucks the paper over <<his>> shoulder and sticks <<his>> tongue out at you.

<</if>>

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

:: Maths Whitney Throw
<<effects>>

<<if $rng gte 81>>
	You throw the crumpled paper back at Whitney, but River turns as you do. <<endevent>><<npc River>><<person1>><<He>> fixes you with a glare.<<detention 1>><<gdelinquency>>

	<<endevent>><<npc Whitney>><<person1>>
	Whitney looks amused as the paper bounces off <<his>> head.

<<else>>
	You throw the crumpled paper back at Whitney. <<He>> doesn't react as it bounces off <<his>> head, but fixes you with a stare while running <<his>> tongue along <<his>> top lip.

<</if>>

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

:: Maths Whitney Bin
<<effects>>

You throw the paper in the bin. Whitney continues to stare at you.

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

:: Maths Whitney Tolerate
<<effects>>

Whitney barrages you whenever River's back is turned. You do your best to ignore it. The floor around you is soon littered with the <<person2>><<persons>> stationery.

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

:: Maths Whitney River
<<effects>>

You put your hand up. "Yes?" River says when <<endevent>><<npc River>><<person1>><<he>> spots you.

<<if $submissive gte 1150>>
	"Wh-Whitney's bullying me," you say.
<<elseif $submissive lte 850>>
	"Whitney's ruining my concentration," you say.
<<else>>
	"Whitney keeps throwing pens at me," you say.
<</if>>

River gestures at the door without even looking at Whitney, who stands with a theatric sigh and saunters from the room.

<<set $whitneymaths to "sent">>

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

:: Maths Whitney Retaliate
<<effects>>

Some of Whitney's ammo lands on your desk. You throw it back. Whitney deflects it with <<his>> arms, and follows it up with a protractor.

This continues for a while, the two of you pelting stationery across the room whenever River's back is turned, until one of <<his>> shots flies wide and bounces off River's back. <<endevent>><<npc River>><<person1>><<He>> sends Whitney out, but seems aware of your involvement.

<<set $whitneymaths to "sent">>

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

:: Maths Whitney Oral Refuse
<<effects>>

<<if $submissive gte 1150>>
	"B-but," you stutter. "We might get in trouble."
<<elseif $submissive lte 850>>
	"I'm not getting in trouble just because you're horny," you say. "Sort yourself out."
<<else>>
	"Not in the middle of class," you say. "We'll get in trouble."
<</if>>

Whitney tries to pressure you into changing your mind, but you remain resolute until <<he>> gives up.

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

:: Maths Whitney Oral
<<if $molestationstart is 1>>
	<<set $molestationstart to 0>>
	<<controlloss>>
	<<violence 1>>
	<<neutral 1>>
	<<molested>>

	<<maninit>>
	<<set $position to "doggy">>
	You don't want to, but decide complying with Whitney is the easiest option. While River is distracted on the other side of class, you slip beneath Whitney's desk. You'll need to be quick, or River will notice.

	<<if $pronoun is "m">>
		Whitney unzips <<his>> fly once you're underneath,
	<<else>>
		Whitney lifts <<his>> skirt once you're underneath,
	<</if>>

	<<set $enemyanger to 70>>
	<<if $NPCList[0].penis isnot "none">>
		revealing <<his>> penis. <<Hes>> already erect.
	<<else>>
		revealing <<his>> pussy.
	<</if>>
	<<He>> grasps your hair and pulls you closer.

	<<npcoral>><<set $NPCList[0].lefthand to "hair">><<set $head to "grappled">><<set $NPCList[0].mouth to "none">><<set $enemyhealthmax to 10>><<set $enemyhealth to 10>>
	<<set $timer to 10>>
	<<enable_rescue>>
<</if>>

<<if $sexstart is 1>>
	<<set $sexstart to 0>>
	<<consensual>>
	<<set $consensual to 1>>
	<<neutral 1>>

	<<maninit>>
	<<set $position to "doggy">>
	You make sure that River is distracted on the other side of the room, then slip beneath the desk. You'll need to be quick, or River will notice.

	<<if $pronoun is "m">>
		Whitney unzips <<his>> fly once you're underneath,
	<<else>>
		Whitney lifts <<his>> skirt once you're underneath,
	<</if>>

	<<set $enemyanger to 70>>
	<<if $NPCList[0].penis isnot "none">>
		revealing <<his>> penis. <<Hes>> already erect. You lean forward, and run your tongue from base to tip, letting <<him>> feel your breath against <<his>> skin.
	<<else>>
		revealing <<his>> pussy. You run your tongue over <<his>> labia, letting <<him>> feel your breath against <<his>> skin.
	<</if>>
	<<He>> reaches beneath the desk and grasps your hair.
	<<if $phase is 2>>
		<<promiscuity1>>
	<<elseif $phase is 1>>
		<<promiscuity4>>
	<<else>>

	<</if>>

	<<npcoral>><<set $NPCList[0].lefthand to "hair">><<set $head to "grappled">><<set $NPCList[0].mouth to "none">><<set $enemyhealthmax to 10>><<set $enemyhealth to 10>>
	<<set $timer to 10>>
	<<enable_rescue>>
<</if>>

<<effects>>

<<if $timer gte 8>>
	River is distracted on the other side of the room.
<<elseif $timer gte 4>>
	River is walking this way, but is distracted by other students' work.
<<elseif $timer gte 1>>
	River has noticed your empty seat.
<<else>>
	River is close!
<</if>>

<<effectsman>><<man>>

<<stateman>>

<<set $enemyarousal += 20>>
<<actionsman>>

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

:: Maths Whitney Oral Finish
<<effects>>
<<if $enemyarousal gte $enemyarousalmax>>
	<<ejaculation>><<npcincr Whitney lust -20>><<earnFeat "Delinquent Antics">>

	<<if $NPCList[0].penis isnot "none">>
		<<He>> forces your face into <<his>> crotch, making sure you catch every last drop.
	<<else>>
		<<He>> forces your face into <<his>> crotch, making sure you can't breathe until <<hes>> done cumming.
	<</if>>

	<<He>> releases <<his>> grip on your hair, and you climb out from under <<his>> desk. <<He>> reclines in <<his>> seat, a smile on <<his>> face and <<his>> eyes shut.<<llust>>

	<<clotheson>>
	<<endcombat>>

	<<npc River>><<person1>>
	"Whitney!" River shouts across the room. "I will not tolerate napping in class."

	"Come on <<sir>>," Whitney replies, opening one eye. <<endevent>><<npc Whitney>><<person1>>"I've just been <<if $NPCList[0].penis isnot "none">>sucked off<<else>>eaten out<</if>>."

	<<endevent>><<npc River>><<person1>>
	River steadies <<himself>> against a nearby desk as a murmur of laughter erupts across the room. The teacher steels <<himself>>, and silences the class with a glare, before turning back to Whitney. "Go see Leighton. Now!"

	<<endevent>><<npc Whitney>><<person1>>Whitney rises to <<his>> feet. "Sure," <<he>> yawns. "I got what I came for." <<He>> swaggers from the room.

	<<tearful>> you watch <<him>> leave.

	<<set $whitneymaths to "sent">>
	<<link [[Next|Maths Lesson]]>><<endevent>><</link>>
<<elseif $enemyhealth lte 0>>
	Whitney shouts in pain and kicks you out from under the desk. The noise attracts attention, and everyone in class looks over. Including River.

	<<clotheson>>
	<<endcombat>>

	<<npc River>><<person1>>
	"Are you assaulting a student?" <<he>> says, glaring at Whitney. "Out. Right now."

	<<endevent>>
	<<npc Whitney>><<person1>>
	"Fucking fine," Whitney says with a frustrated sneer. <<He>> stomps from the room without looking at you.

	<<tearful>> you return to your desk.

	<<set $whitneymaths to "sent">>
	<<link [[Next|Maths Lesson]]>><<endevent>><</link>>
<<elseif $alarm is 1 and $rescue is 1>>
	<<set $rescued += 1>>
	Your cry attracts attention, and everyone in class looks over. Including River.

	<<clotheson>>
	<<endcombat>>

	<<npc River>><<person1>>
	"Are you assaulting a student?" <<he>> says, glaring at Whitney. "Out. Right now."

	<<endevent>>
	<<npc Whitney>><<person1>>
	"Fucking fine," Whitney says with a frustrated sneer. <<He>> stomps from the room without looking at you.

	<<tearful>> you return to your desk.

	<<set $whitneymaths to "sent">>
	<<link [[Next|Maths Lesson]]>><<endevent>><</link>>
<<elseif $finish is 1>>
	Whitney kicks you out from beneath the desk. <<tearful>> you scramble to your seat before anyone notices.

	<<clotheson>>
	<<endcombat>>

	<<link [[Next|Maths Lesson]]>><<endevent>><</link>>
<<else>>
	"Whitney," River shouts across the room. "Whatever you're up to, stop it. Where's your friend?"

	<<tearful>> you pull away from Whitney's crotch.

	<<clotheson>>
	<<endcombat>>

	<<npc Whitney>><<person1>>
	You try to scramble back to your seat, but Whitney tugs your hair in an attempt to pull you back against <<his>> crotch.

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

	<<link [[Refuse|Maths Whitney Oral Refuse 2]]>><</link>>

<</if>>

:: Maths Whitney Oral Allow
<<effects>>

You go along with Whitney's recklessness, getting a faceful of <<if $NPCList[0].penis isnot "none">>cock<<else>>pussy<</if>>.

Through the gap above <<his>> thigh you see River arrive. <<endevent>><<npc River>><<person1>><<His>> breath catches in <<his>> throat when <<he>> sees you. "De-deten..." <<he>> manages. <<He>> sways on the spot, and collapses.

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

"Fucking nice," Whitney says, standing and dragging you with <<him>>. Unsure what just happened, the rest of the class watch as Whitney pushes you down on <<his>> desk.

<<link [[Next|Maths Whitney Sex]]>><<set $sexstart to 1>><</link>>

:: Maths Whitney Oral Refuse 2
<<effects>>

You pull away from Whitney's grasp and climb back to your seat.

<<if $submissive gte 1150>>
	"I-I dropped my pen," you stutter.
<<elseif $submissive lte 850>>
	"I was picking up my pen," you say. "Surely that's allowed."
<<else>>
	"I dropped my pen," you say.
<</if>>

River eyes you with suspicion, but doesn't say anything.

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

:: Maths Whitney Sex
<<effects>>

<<if $sexstart is 1>>
	<<set $sexstart to 0>>
	<<consensual>>
	<<set $consensual to 1>>
	<<neutral 1>>

	<<maninit>>
	<<set $enemytrust += 100>>

	Some students react with embarrassed horror, other crowd closer, eager to see what Whitney intends.
<</if>>
<<effects>>
<<effectsman>><<man>>
<<audience>>
<<stateman>>

<<actionsman>>
<<if $finish is 1>>
	<<link [[Next|Maths Whitney Sex Finish]]>><</link>><<nexttext>>
<<elseif $enemyhealth lte 0>>
	<<link [[Next|Maths Whitney Sex Finish]]>><</link>><<nexttext>>
<<elseif $enemyarousal gte $enemyarousalmax>>
	<<link [[Next|Maths Whitney Sex Finish]]>><</link>><<nexttext>>
<<else>>
	<<link [[Next|Maths Whitney Sex]]>><</link>><<nexttext>>
<</if>>

:: Maths Whitney Sex Finish

<<set $outside to 0>><<effects>>
<<if $enemyarousal gte $enemyarousalmax>>
	<<ejaculation>><<earnFeat "Delinquent Antics">>

	Whitney climbs off you. <<tearful>> you drop off the desk.

	<<clotheson>>
	<<endcombat>>
<<elseif $enemyhealth lte 0>>
	You shove Whitney away from you. <<tearful>> you drop off the desk.

	<<clotheson>>
	<<endcombat>>
<<else>>
	Whitney climbs off you. <<tearful>> you drop off the desk.

	<<clotheson>>
	<<endcombat>>
<</if>>

<<npc River>><<person1>>River comes to <<his>> senses, and pulls <<himself>> off the floor. "Go see Leighton," <<he>> says, addressing Whitney with a level stare. "Right now."

Whitney swaggers from the room, a smug smile on <<his>> face.

<<set $whitneymaths to "sent">>

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

:: Maths Whitney Protractor Endure
<<effects>>

You ignore Whitney's jabbing as best you can, until River notices <<his>> relocation and sends <<him>> to <<his>> original seat.

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

:: Maths Whitney Protractor Tell
<<effects>>

<<if $submissive gte 1150>>
	"Ex-excuse me," you say, putting up your hand. River turns. "Whitney keeps poking me."
<<elseif $submissive lte 850>>
	"Hey teacher," you say. River turns. "Could you send Whitney out? They keep stabbing me with a protractor."
<<else>>
	"Teacher," you say, putting up your hand. River turns. "Whitney keeps stabbing me."
<</if>>

River points at the door. Whitney shoots you an evil look as <<he>> leaves the room.

<<set $whitneymaths to "sent">>
<<link [[Next|Maths Lesson]]>><<endevent>><</link>>

:: Maths Whitney Protractor Retaliate
<<effects>>

Whitney tries to jab you again, but you swivel around and stab at <<his>> arm with your own protractor compass. You jab at each other for a few moments, until River hears the scuffle and sends Whitney back to <<his>> seat.

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

:: Maths Whitney Watch
<<effects>>

Whitney pulls the <<person2>><<person>> over the desk, scattering stationery over the floor. <<His>> rear sticks out, facing the class.

<<if $pronoun is "f">>
	With a flourish, Whitney flicks up the <<persons>> skirt, baring <<his>> pale pink panties to the class.
<<else>>
	Whitney tugs down the <<persons>> shorts, baring pale blue briefs to the class.
<</if>>
Someone laughs. "P-please don't," the <<person>> manages as Whitney grasps the rim of <<his>> underwear.

Whitney ignores <<his>> pleading, and exposes <<him>> to the class.

<<link [[Next|Maths Whitney Watch 2]]>><</link>>

:: Maths Whitney Watch 2
<<effects>>

<<if $NPCList[1].penis isnot "none">>
	"I can see <<his>> ass and penis!"

	"How humiliating."

	"Keep going, Whitney. Punish the <<if $pronoun is "m">>pervert<<else>>slut<</if>>."

<<else>>
	"I can see <<his>> ass and pussy!"

	"How humiliating."

	"Keep going, Whitney. Punish the <<if $pronoun is "m">>pervert<<else>>slut<</if>>."

<</if>>
The <<person>> covers <<his>> face and sobs.

The bully glances at the door, then releases the <<person>>. <<He>> hastens to cover <<himself>> as Whitney returns to the seat beside you, wearing a satisfied smile.

River arrives in the class soon after. The <<person2>><<persons>> face remains red, though the sobs have subsided.

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

:: Maths Whitney Intervene
<<effects>>

<<if $submissive gte 1150>>
	"St-stop," you say. "Don't bully <<person2>><<him>>."
<<elseif $submissive lte 850>>
	"I can look after myself," you say. "Put <<person2>><<him>> down."
<<else>>
	"Put <<person2>><<him>> down," you say. "Don't hurt <<him>>."
<</if>>

<<person1>>
Whitney considers a moment,

<<if $NPCName[$NPCNameList.indexOf("Whitney")].dom gte 10>>
	then tightens <<his>> grip and pulls the <<person2>><<person>> over the desk, scattering stationery over the floor. <<His>> rear sticks out, facing the class.

	<<if $pronoun is "f">>
		With a flourish, Whitney flicks up the <<persons>> skirt, baring <<his>> pale pink panties to the class.
	<<else>>
		Whitney tugs down the <<persons>> shorts, baring pale blue briefs to the class.
	<</if>>
	Someone laughs. "P-please don't," the <<person2>><<person>> manages as Whitney grasps the rim of <<his>> underwear.

	Whitney pauses, then releases <<him>>. "You're lucky my <<girlfriend>> is so soft," <<person1>><<he>> says as the <<person2>><<person>> hastens to cover <<himself>>.

<<else>>
	then releases <<his>> grip. The <<person2>><<person>> backs away from the bully, but Whitney is uninterested.
<</if>>

<<He>> sits down beside you, just before River returns to class.

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

:: Maths Whitney Encourage
<<effects>>

<<if $submissive gte 1150>>
	"I'll feel safer if you show <<person2>><<him>> who's boss," you say.
<<elseif $submissive lte 850>>
	"What are you waiting for?" you say. "You're not gonna go easy on <<person2>><<him>>, are you?"
<<else>>
	"Show <<person2>><<him>> what happens to people who disrespect me," you say.
<</if>>

Whitney grins and pulls the <<person2>><<person>> over the desk, scattering stationery over the floor. <<His>> rear sticks out, facing the class.

<<if $pronoun is "f">>
	With a flourish, Whitney flicks up the <<persons>> skirt, baring <<his>> pale pink panties to the class.
<<else>>
	Whitney tugs down the <<persons>> shorts, baring pale blue briefs to the class.
<</if>>
Someone laughs. "P-please don't," the <<person>> manages as Whitney grasps the rim of <<his>> underwear.

Whitney ignores <<his>> pleading, and exposes <<him>> to the class.

<<if $NPCList[1].penis isnot "none" and $analdisable isnot "f">>
	<<link [[Next|Maths Whitney Watch 2]]>><</link>>
<<else>>
	<<link [[Next|Maths Whitney Encourage 2]]>><</link>>
<</if>>

:: Maths Whitney Encourage 2
<<effects>>

<<if $NPCList[1].penis isnot "none">>
	"I can see <<his>> ass and penis!"

	"How humiliating."

	"Keep going, Whitney. Punish the <<if $pronoun is "m">>pervert<<else>>slut<</if>>."

<<else>>
	"I can see <<his>> ass and pussy!"

	"How humiliating."

	"Keep going, Whitney. Punish the <<if $pronoun is "m">>pervert<<else>>slut<</if>>."

<</if>>
The <<person>> covers <<his>> face and sobs.

Whitney releases the <<person2>><<person>>, but only to duck and pick up a pen from the floor. "Your punishment's not over," <<person1>><<he>> says, leaning an arm on the <<person2>><<persons>> back.

<<person1>>
<<if $NPCList[1].penis isnot "none">>
	<<He>> presses the tip of the pen against the <<person2>><<persons>> ass, prodding and pushing, until it slides in.
<<else>>
	<<He>> presses the tip of the pen against the <<person2>><<persons>> pussy, prodding and pushing, until it slides in.
<</if>>
The <<person>> yelps, much to the delight of the watching students. Others try to ignore what's happening, horrified but too afraid to intervene. One of Whitney's friends guards the door, making sure no one leaves to tell River.

<<link [[Next|Maths Whitney Encourage 3]]>><</link>>

:: Maths Whitney Encourage 3
<<effects>>

Whitney inserts more pens into the helpless <<person>>, who sobs and bears it. The torment ends when footsteps are heard outside the class. Everyone rushes back to their seats. Everyone but the <<person>>, who seems afraid to move.

At last <<he>> stirs, pulling the pens from <<his>> body and hurrying to cover <<himself>>. <<His>> legs give out and <<he>> collapses to the floor. River returns to find <<him>> crying on <<his>> knees, picking up <<his>> stationery with shaking fingers.

<<endevent>>
<<npc River>><<person1>>
"Who did this?" River asks, <<his>> cold eyes glancing around the room, boring into each student. <<He>> helps the victim pick up <<his>> things, but they won't speak up, nor will any of the witnesses. River's eyes settle on Whitney, who can't contain a smirk.

River sends Whitney out while glaring at you and Whitney's other friends. "You're not off the hook either," <<he>> says, before turning back to the whiteboard.

<<set $whitneymaths to "sent">>
<<link [[Next|Maths Lesson]]>><<endevent>><</link>>

:: Maths Whitney Shirt Resist
<<effects>>

You struggle to keep yourself covered. Whitney doesn't push you too far, but seems disappointed. "Fine," <<he>> says, reclining with <<his>> arms behind <<his>> head.

<<endevent>><<npc River>><<person1>>
River almost swoons when <<he>> sees Whitney without a shirt, and needs to steady <<himself>> on <<his>> desk. "O-out," <<he>> manages. "And put your shirt on."

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

<<set $whitneymaths to "sent">>

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

:: Maths Whitney Shirt Allow
<<effects>>

<<upperstrip>>
<<if $worn.under_upper.type.includes("naked") and ($player.gender is "f" or $player.gender_appearance is "f" or $player.gender is "h")>>
	Whitney tugs your shirt up and off your body, revealing your <<breasts>> to the room.<<exhibitionism3>>
<<elseif $player.gender is "f" or $player.gender_appearance is "f" or $player.gender is "h">>
	Whitney tugs your shirt up and off your body, revealing your $worn.under_upper.name to the room.<<exhibitionism3>>
<<else>>
	Whitney tugs your shirt up and off your body, revealing your <<undertop>> to the room.

<</if>>

<<endevent>><<npc River>><<person1>>
Whitney's friends cheer, prompting River to turn. <<He>> almost swoons when <<he>> sees Whitney and you, and steadies <<himself>> against <<his>> desk.

"What's wrong, <<sir>>?" Whitney asks, wrapping an arm around your waist. "It's hot in here. We're just trying to get comfortable. To help us focus."

River recovers enough to speak. "P-put your shirts on," <<he>> manages. "And you, Whitney, should leave. Now."

<<endevent>><<npc Whitney>><<person1>>
Whitney rises to <<his>> feet, but refuses to wear the shirt, instead slinging it over <<his>> shoulder as <<he>> swaggers from the room.

<<set $whitneymaths to "sent">>
<<link [[Next|Maths Lesson]]>><<clotheson>><<endevent>><</link>>


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

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

		<<npc River>><<person1>>
		River's eyes narrow as you glance at <<him>>. "You can't be trying to attend my lesson without a uniform. Go see the head."

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

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

			<<mathsstart>>
		<<elseif $time lte ($hour * 60 + 5)>>
			You enter the maths classroom.
			<<npc River>><<person1>>
			River is preparing at the front of the room while the seats fill.
			<<if $worn.over_upper.name isnot "naked" or $worn.over_lower.name isnot "naked" or $worn.over_head.name isnot "naked">>
				<<undressOverClothes "mathsClassroom">>
				You hang your coat at the back of the class and take your seat.
			<</if>>

			<<mathsstart>>
		<<else>>
			You enter the maths classroom.
			<<npc 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
			<<if $worn.over_upper.name isnot "naked" or $worn.over_lower.name isnot "naked" or $worn.over_head.name isnot "naked">>
				hang your coat at the back of the class and
				<<undressOverClothes "mathsClassroom">>
			<</if>>
			take a seat as River continues.

			<<mathsstart>>
		<</if>>

	<<elseif $rightarm is "bound" or $leftarm is "bound" or $feetuse is "bound">>
		<<npc River>><<person1>>
		River's eyes narrow as <<he>> sees your bound <<if $rightarm is "bound" or $leftarm is "bound">>arms<</if>><<if ($rightarm is "bound" or $leftarm is "bound") and $feetuse is "bound">> and <</if>><<if $feetuse is "bound">>legs<</if>>. "And another one. Look, whatever silly game you're playing needs to stop. You're not coming in here tied up like that. Go see the head."

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

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

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

	<</if>>

	<<exhibitionclassroom>>

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

<</if>>

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

<<if $weekday is 6 and $minute gte 37>>
	River walks up and down the aisles, placing a white exam booklet in front of each student.<<gstress>><<stress 6>>

	<<exam maths>>

	<<npc River>><<person1>>
	There's a shuffle of paper as students open the first page. River will brook no talking. <<He>> sits at the front of the room, cold eyes staring at no one in particular, but observing everyone.

	<<if $whitneymaths is "active">>
		<<endevent>><<npc Whitney>><<person1>>
		Even Whitney is silent, but this doesn't stop <<him>> bouncing a rubber off your back with an underarm throw.
	<<elseif $whitneymaths is "seat">>
		<<endevent>><<npc Whitney>><<person1>>
		Even Whitney is silent, but this doesn't stop <<him>> groping you beneath the desk.<<garousal>><<arousal 600>>
	<</if>>

	<<endevent>>
	<<if $arousal gte $arousalmax>>
		<<set _teacher to "River">>
		<<orgasmLocation "classroom">>
	<</if>>
	<<exam_cheat maths>>
	<<link [[Focus|Maths Exam]]>><<stress 6>><<set $phase to 0>><<set $exam_chance += 5>><</link>><<gstress>> | + 5% Pass chance

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

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

	<<if $whitneymaths is "active">>
		<<link [[Catch Whitney's rubber|Maths Exam]]>><<set $phase to 3>><</link>><<dancedifficulty 1 1000>>

	<<elseif $whitneymaths is "seat" and $promiscuity gte 35>>
		<<npc Whitney>><<person1>>
		<<if $NPCList[0].penis isnot "none">>
			<<link [[Satisfy Whitney with a handjob|Maths Exam]]>><<set $phase to 4>><<npcincr Whitney love 1>><<npcincr Whitney lust 1>><</link>><<skill_difficulty handskill "Hand Skill" 1 1000>><<ghandskill>><<glove>><<glust>>

		<<else>>
			<<link [[Satisfy Whitney with your fingers|Maths Exam]]>><<set $phase to 5>><<npcincr Whitney love 1>><<npcincr Whitney lust 1>><</link>><<skill_difficulty handskill "Hand Skill" 1 1000>><<ghandskill>><<glove>><<glust>>

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

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

	<<if $whitneymaths is "seat">>
		<<link [[Chat with Whitney|Maths Lesson Socialise]]>><</link>><<gcool>><<ltrauma>><<lstress>><<glove>><<gharass>>

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

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

	<<if $whitneymaths is "seat">>
		<<if $exhibitionism gte 75>>
			<<link [[Masturbate|Maths Lesson Masturbate]]>><<set $masturbationstart to 1>><<npcincr Whitney lust 1>><</link>><<exhibitionist5>><<glust>>

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

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

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

Embarrassed, you apologise and leave.

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

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

You mock the teacher. "Sorry for interrupting <<sir>>, 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>><<npcincr River love -1>>
<<link [[Next|Hallways]]>><<endevent>><</link>>

:: Maths Lesson Focus
<<set $outside to 0>><<set $location to "school">><<schooleffects>><<effects>>

<<towelup>>

You focus on listening to the teacher and studying the material. It's hard going, <<if $whitneymaths is "seat">>particularly with Whitney distracting you,<</if>> but you think you're making progress.

<<advancelesson>>
<<mathsskill _lesson_progress>>
<<stress _lesson_progress>>

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

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

<<towelup>>

<<if $whitneymaths is "seat">>
	You do the bare minimum of work, focusing instead on chatting with Whitney and <<nnpc_his "Whitney">> friends. <<npcincr Whitney love 1>><<glove>>
<<elseif $cool gte ($coolmax / 5 * 2)>>
	You do the bare minimum of work, focusing instead on trying to endear yourself to your classmates. You soon become the centre of attention.
<<elseif $cool gte ($coolmax / 5)>>
	You do the bare minimum of work, focusing instead on trying to endear yourself to your classmates.
<<else>>
	You do the bare minimum of work, focusing instead on trying to endear yourself to your classmates. Most avoid interacting with you.
<</if>>

<<status 1>>

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

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

	<<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
<<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>>
<<if $whitneymaths is "seat">>
	Whitney has the same idea.
<</if>>

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

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

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

repo_name: Area/degrees

license: mit