:: gschool_socialchg
<<set $here = 'gschool_socialchg'>>
<<set $ARGS = $location_var[$here]>>
<!-- !2021/05/02-->
<!-- !!Changing social groups-->
<<if !$grupwarning>><<set $grupwarning = []>><</if>>
<<if $location_var[$here][0] == 'test'>>
	<<if $quest('school').groups['cool'].rel > 450 and $grupwarning[1] == 1>>
		<<setinit $grupwarning[1] = 0>>
	<<elseif $quest('school').groups['cool'].rel < 400 and $quest('school').groups['cool'].rel > 350 and $grupwarning[1] > 1>>
		<<setinit $grupwarning[1] = 1>>
	<<elseif $quest('school').groups['jocks'].rel > 450 and $grupwarning[2] == 1>>
		<<setinit $grupwarning[2] = 0>>
	<<elseif $quest('school').groups['jocks'].rel < 400 and $quest('school').groups['jocks'].rel > 350 and $grupwarning[1] > 1>>
		<<setinit $grupwarning[2] = 1>>
	<<elseif $quest('school').groups['nerds'].rel > 450 and $grupwarning[3] == 1>>
		<<setinit $grupwarning[3] = 0>>
	<<elseif $quest('school').groups['nerds'].rel < 400 and $quest('school').groups['nerds'].rel > 350 and $grupwarning[1] > 1>>
		<<setinit $grupwarning[3] = 1>>
	<<elseif $quest('school').groups['gopniks'].rel > 450 and $grupwarning[4] == 1>>
		<<setinit $grupwarning[4] = 0>>
	<<elseif $quest('school').groups['gopniks'].rel < 400 and $quest('school').groups['gopniks'].rel > 350 and $grupwarning[1] > 1>>
		<<setinit $grupwarning[4] = 1>>
	<</if>>
	<<if $pc.fame('pav_slut') > 225 and $quest('school').func('isGroupMember','cool')>>
		<<gt 'gschool_socialchg' 'Pavlovsk slut'>>
	<<elseif $pc.fame('pav_slut') > 250 and $quest('school').func('isGroupMember','jocks')>>
		<<gt 'gschool_socialchg' 'Pavlovsk slut'>>
	<<elseif $pc.fame('pav_slut') > 175 and $quest('school').func('isGroupMember','nerds')>>
		<<gt 'gschool_socialchg' 'Pavlovsk slut'>>
	<<elseif $pc.fame('pav_slut') > 300 and $quest('school').func('isGroupMember','gopniks')>>
		<<gt 'gschool_socialchg' 'Pavlovsk slut'>>
	<<elseif $grupvalue[1] < 200 and $quest('school').func('isGroupMember','cool')>>
		<<gt 'gschool_socialchg' 'coolkid outcast'>>
	<<elseif $grupvalue[1] < 400 and $quest('school').func('isGroupMember','cool') and $grupwarning[1] == 0>>
		<<gt 'gschool_socialchg' 'coolkid warn 1'>>
	<<elseif $grupvalue[1] < 300 and $quest('school').func('isGroupMember','cool') and $grupwarning[1] >= 0>>
		<<gt 'gschool_socialchg' 'coolkid warn 2'>>
	<<elseif $pc.fame('pav_slut') > 175 and $quest('school').func('isGroupMember','cool') and $grupslutwarning[1] == 0>>
		<<gt 'gschool_socialchg' 'coolkid slut warn'>>
	<<elseif $grupvalue[2] < 200 and $quest('school').func('isGroupMember','jocks')>>
		<<gt 'gschool_socialchg' 'jock outcast'>>
	<<elseif $grupvalue[2] < 400 and $quest('school').func('isGroupMember','jocks') and $grupwarning[2] == 0>>
		<<gt 'gschool_socialchg' 'jock warn 1'>>
	<<elseif $grupvalue[2] < 300 and $quest('school').func('isGroupMember','jocks') and $grupwarning[2] >= 0>>
		<<gt 'gschool_socialchg' 'jock warn 2'>>
	<<elseif $pc.fame('pav_slut') > 200 and $quest('school').func('isGroupMember','jocks') and $grupslutwarning[2] == 0>>
		<<gt 'gschool_socialchg' 'jock slut warn'>>
	<<elseif $grupvalue[3] < 200 and $quest('school').func('isGroupMember','nerds')>>
		<<gt 'gschool_socialchg' 'nerd outcast'>>
	<<elseif $grupvalue[3] < 400 and $quest('school').func('isGroupMember','nerds') and $grupwarning[3] == 0>>
		<<gt 'gschool_socialchg' 'nerd warn 1'>>
	<<elseif $grupvalue[3] < 300 and $quest('school').func('isGroupMember','nerds') and $grupwarning[3] >= 0>>
		<<gt 'gschool_socialchg' 'nerd warn 2'>>
	<<elseif $pc.fame('pav_slut') > 125 and $quest('school').func('isGroupMember','nerds') and $grupslutwarning[3] == 0>>
		<<gt 'gschool_socialchg' 'nerd slut warn'>>
	<<elseif $grupvalue[4] < 200 and $quest('school').func('isGroupMember','gopniks')>>
		<<gt 'gschool_socialchg' 'gopnik outcast'>>
	<<elseif $grupvalue[4] < 400 and $quest('school').func('isGroupMember','gopniks') and $grupwarning[4] == 0>>
		<<gt 'gschool_socialchg' 'gopnik warn 1'>>
	<<elseif $grupvalue[4] < 300 and $quest('school').func('isGroupMember','gopniks') and $grupwarning[4] >= 0>>
		<<gt 'gschool_socialchg' 'gopnik warn 2'>>
	<<elseif $pc.fame('pav_slut') > 250 and $quest('school').func('isGroupMember','gopniks') and $grupslutwarning[4] == 0>>
		<<gt 'gschool_socialchg' 'gopnik slut warn'>>
	<<elseif $pc.fame('pav_slut') < 175 and $quest('school').groups['cool'].rel > 800 and getvar("$grupTipe") != 1>>
		<<gt 'gschool_socialchg' 'coolkid'>>
	<<elseif $pc.fame('pav_slut') < 200 and $quest('school').groups['jocks'].rel > 800 and getvar("$grupTipe") != 2>>
		<<gt 'gschool_socialchg' 'jock'>>
	<<elseif $pc.fame('pav_slut') < 125 and $quest('school').groups['nerds'].rel > 800 and getvar("$grupTipe") != 3>>
		<<gt 'gschool_socialchg' 'nerd'>>
	<<elseif $pc.fame('pav_slut') < 250 and $quest('school').groups['gopniks'].rel > 800 and !$quest('school').func('isGroupMember','gopniks')>>
		<<gt 'gschool_socialchg' 'gopnik'>>
	<</if>>
	<<if getvar("$gopnik_initiation") == 1 and $gopnik_initiation_day != $time.daystart>>
		<<set $gopnik_initiation to null>>
		<<set $gopnik_initiation_day to null>>
		<<gt 'gschool_socialchg' 'gopnik miss'>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'Pavlovsk slut'>>
	<<set $menu_off = 1>>
	<<image "locations/pavlovsk/school/events/shamewalk.jpg">>
	Walking down the school hallway, you notice almost everyone is eying you. Some sneer at you, others laugh, and others turn away in disgust. You are used to this treatment with your sexual escapades, but not to this level. No one wants to greet you and most actively avoid you. You are starting to feel a bit uncomfortable at all the staring eyes. As you approach your locker, you see someone has spray painted ''Slut'' on it in big red letters. You hear someone walking up behind you before you turn around to see who it might be.
	<<run $quest('school').func('groupRelSet','cool',Math.min(100,grupvalue[1]))>>
	<<run $quest('school').func('groupRelSet','jocks',Math.min(150,grupvalue[2]))>>
	<<run $quest('school').func('groupRelSet','nerds',0)>>
	<<run $quest('school').func('groupRelSet','gopniks',Math.min(200,grupvalue[4]))>>
	<<setinit $old_grupvalue[1] = $quest('school').groups['cool'].rel>>
	<<setinit $old_grupvalue[2] = $quest('school').groups['jocks'].rel>>
	<<setinit $old_grupvalue[3] = $quest('school').groups['nerds'].rel>>
	<<setinit $old_grupvalue[4] = $quest('school').groups['gopniks'].rel>>
	<<setinit $grupslutwarning[1] = 0>>
	<<setinit $grupslutwarning[2] = 0>>
	<<setinit $grupslutwarning[3] = 0>>
	<<setinit $grupslutwarning[4] = 0>>
	<<run $quest('school').func('groupMembersRelInc','cool',-30)>>
	<<run $quest('school').func('groupMembersRelInc','jocks',-25)>>
	<<run $quest('school').func('groupMembersRelInc','gopniks',-20)>>
	<<run $quest('school').func('groupMembersRelInc','nerds',-35)>>
	<<if $quest('school').func('isGroupMember','cool')>>
		<<image "locations/pavlovsk/school/events/coolslut.jpg">>
		<<if $npcs.get('A25','slutStatus',0) == 0>>
			<p>Irina and Dimka walk up to you. Dimka is smirking at you while Irina looks you over from head to toe in complete disgust. Just as you're about to ask what's going on, Irina cuts you off. "Shut your cum hole, slut! I don't want to smell your cum breath. We've all heard about what you've been up to, and your ass is out. You're no longer welcome around us. Find some dick to suck, and maybe they will pretend to care about you." With that, Irina turns and walks away as Dimka gives you a final look and shakes his head.</p>
		<<else>>
			<p>Irina and Dimka walk up to you. Dimka is smirking at you while Irina looks you over from head to toe in complete disgust. Then, just as you're about to ask what's going on, Irina cuts you off. "Shut your cum hole, slut! I don't want to smell your cum breath. We've all heard about what you've been up to, and your ass is out. You're no longer welcome around us. Go and find Sonia. I'm sure you two have a lot in common now." With that, Irina turns and walks away as Dimka gives you a final look and shakes his head.</p>
		<</if>>
		"What a waste, you fucking slut." He then spits at your feet before leaving as well. You hear many of the students around you laughing as you look around. Having been publicly shamed and disavowed by your clique, the other students are ready to prey on your weakness and either start mocking you or actively look away. You grab your stuff and hurry to your next class.
	<<elseif $quest('school').func('isGroupMember','jocks')>>
		<<image "locations/pavlovsk/school/events/jockslut.jpg">>
		<<if $quest('christina').fight < 1 or $quest('christina').blackmail < 2>>
			<p><<npc 'A18'>><</npc>>, Lariska, and Lina walk up to you. Lariska and Lina are looking at you in disgust while <<npc 'A18'>><</npc>> is smirking. She shoves you hard up against your locker. "What are you doing here slut? Shouldn't you be in the boys' bathroom sucking a bunch of cocks? We all heard that's all you do now. At least sluts know to get paid, but you just give it away for free, " she laughs mockingly. Lariska, Lina and several other students nearby join in, openly mocking you.</p>
		<<else>>
			<p>Albina and Lazar walk up to you with looks of disgust on their face. "What are you doing here? Shouldn't you be in the boys' bathroom sucking dick like the whore that you are?" Lazar says mockingly. Albina opens her mouth to say something but chooses to remain quiet and stares at the floor. <<npc 'A18'>><</npc>> smirks at you from behind them, not daring to challenge you directly but enjoying the moment.</p>
		<</if>>
		<<if $npcs.get('A25','slutStatus',0) == 0>>
			"Go hang out with the other losers because none of us gives a shit about you anymore," Lazar says before turning and walking away. Albina looks at you with what you think is disappointment before she shakes her head and follows Lazar. Having been publicly shamed and disavowed by your clique, the other students are ready to prey on your weakness and either start mocking you or actively look away. You grab your stuff and hurry to your next class.
		<<else>>
			"Go hang out with the other losers because none of us gives a shit about you anymore. I'm sure you and Sonia have a lot in common now." Lazar says mockingly before walking away. Albina looks at you with what you think is disappointment before she shakes her head and follows Lazar. Having been publicly shamed and disavowed by your clique, the other students are ready to prey on your weakness and either start mocking you or actively look away. You grab your stuff and hurry to your next class.
		<</if>>
	<<elseif $quest('school').func('isGroupMember','nerds')>>
		<<image "locations/pavlovsk/school/events/nerdslut.jpg">>
		<p>A group of students stand in front of you, wanting a better look at what's written on your locker. They start laughing when you look at them and quickly hurry away from you as if you have the plague. You turn and try to find some of your friends, but most seem to be hiding or hurrying off when you approach. You finally manage to catch up to Gerasim, but he turns to you just as you're about to say something. "Please go away! I don't know what you've gotten yourself into, but the things they say you've done..." He looks disgusted. "I'm sorry, but I can't be seen hanging out with you anymore. I've got enough problems without you making them worse."</p>
		<p>He pauses for a second to stare at the dejected look on your face, realizing that you are now an outcast. He then lets out a short sigh. "I'm sorry, I really am, but this is your fault. What were you thinking doing all that.. sex stuff? Just leave me alone." The last part he says loudly enough for others to hear, which causes some of the other students to laugh at you as he wheels himself away from you decidedly. You take a second to look around as most other students either start mocking you or actively look away. Finally, you grab your stuff and hurry to your next class.</p>
	<<elseif $quest('school').func('isGroupMember','gopniks')>>
		<<image "locations/pavlovsk/school/events/gopnikslut.jpg">>
		<p>You turn and see Pauline, Lera and Lena standing next to you. Lera is snickering. Pauline looks like she's preparing to beat you up, and Lera looks at you with disgust. Pauline shakes her head at you and finally speaks up. "I don't know what your problem is, but apparently, hanging out, partying and having a good time wasn't enough for you. Noooo, you had to go around and be the town bicycle! Don't act all surprised. We've all heard about how you let any guy fuck you in whatever hole they desire. Spineless sluts have no place with us, so stay away from us, or I will beat the living shit out of you." With that, Pauline shoves you against your locker and walks away.</p>
		<p>Lena gives you a final look of disgust and shoves you again while Lera gives you a few parting words before walking away. "If you ever try to approach us, we'll take you to nasty guys who will fuck you so hard that your holes will be loose enough to stick a watermelon inside them!" Having been publicly shamed and disavowed by your clique, the other students are ready to prey on your weakness and either start mocking you or actively look away. You grab your stuff and hurry to your next class.</p>
	<</if>>
	<font color = red>You have been kicked out of your social group and become an outcast.</font>
	<<run $quest('school').func('setGroupMembership','outcasts')>>
	<<actCLA 'Go to class'>>
		<<set $quest('school').period = 0>> <<gt 'gschool_lessons' 'schedule'>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'coolkid'>>
	<<set $menu_off = 1>>
	<<image "locations/pavlovsk/school/events/joincool.jpg">>
	<p>You walk down the hallway and stop at your locker. You sense someone standing behind you and turn to see Vicky, Andrey and Stasya giving you friendly smiles. "Hey, $pc.name_nick, we've been talking, and you seem to have the right attitude to be one of us. So what do you say? Do you want to join the popular clique?" Vicky asks, and the three of them just wait for your response.</p>
	<<actCLA 'No'>>
		<<image "locations/pavlovsk/school/events/nerdslut.jpg">>
		You shake your head. "I like hanging out with you guys, but I don't think that's a good idea."
		Vicky frowns but nods. "Suit yourself then." With that, she turns and leaves. Andrey just shakes his head at you and does the same.
		<p>Stasya gives you a once-over. "I told you guys she wasn't cool enough! What a loser!" With that, she follows the others, leaving you behind to wonder if you made the right choice.</p>
		<<run $quest('school').func('groupRelSet','cool',rand(600,650))>>
		<<setinit $old_grupvalue[1] = $quest('school').groups['cool'].rel>>
		<<run $quest('school').func('groupMembersRelInc','cool',-5)>>
		<<actCLA 'Go to class'>>
			<<set $quest('school').period = 0>> <<gt 'gschool_lessons' 'schedule'>>
		<</actCLA>>
	<</actCLA>>
	<<actCLA 'Yes'>>
		<<image "locations/pavlovsk/school/events/joincool.jpg">>
		<p>You nod your head. "Yes, I would love to! I love hanging out with you guys!"</p>
		Vicky gives you a hug. Once she lets go, Andrey wraps an arm around your shoulder and starts leading you to your next class. "From now on, you're one of us." Stasya gives you a friendly smile as the four of you walk to your next class.
		<<run $quest('school').func('groupRelSet','jocks',Math.min(rand(675,725),grupvalue[2]))>>
		<<run $quest('school').func('groupRelSet','nerds',Math.min(rand(625,675),grupvalue[3]))>>
		<<run $quest('school').func('groupRelSet','gopniks',Math.min(rand(600,650),grupvalue[4]))>>
		<<if $quest('school').func('isGroupMember','jocks')>>
			<<run $quest('school').func('groupRelSet','jocks',rand(500,600))>>

		<</if>>
		<<if $quest('school').func('isGroupMember','nerds')>>
			<<run $quest('school').func('groupRelSet','nerds',rand(500,600))>>

		<</if>>
		<<if $quest('school').func('isGroupMember','gopniks')>>
			<<run $quest('school').func('groupRelSet','gopniks',rand(500,600))>>

		<</if>>
		<<setinit $old_grupvalue[1] = $quest('school').groups['cool'].rel>>
		<<setinit $old_grupvalue[2] = $quest('school').groups['jocks'].rel>>
		<<setinit $old_grupvalue[3] = $quest('school').groups['nerds'].rel>>
		<<setinit $old_grupvalue[4] = $quest('school').groups['gopniks'].rel>>
		<<run $quest('school').func('setGroupMembership','cool')>>
		<<setinit $grupTipe['joined_cool'] = 1>>
		<<run $quest('school').func('groupMembersRelInc','cool',5)>>
		<<actCLA 'Go to class'>>
			<<set $quest('school').period = 0>> <<gt 'gschool_lessons' 'schedule'>>
		<</actCLA>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'coolkid warn 1'>>
	<<setinit $grupwarning[1] = 1>>
	<<set $menu_off = 1>>
	<<image "locations/pavlovsk/school/events/joincool.jpg">>
	<p>You walk down the hallway and stop at your locker. You sense someone standing behind you and turn to see Vicky, Andrey and Stasya giving you friendly smiles. "Hey, $pc.name_nick, is everything okay?"</p>
	<p>Before you can answer, Stasya chimes in. "You haven't been setting the right example of late. You're acting more like the losers than us, so do you want to keep hanging around with us?"</p>
	<p>You are again interrupted before you can speak. "Cool it, Stasya! Look, $pc.name_nick, if you want to hang out with us, just act like you normally do, okay? That's all we're saying." Vicky says before the bell rings, and you all hurry to class. You can't help but worry. Your recent activity has made the other cool kids question whether you belong in the group or not...</p>
	<<actCLA 'Go to class'>>
		<<set $quest('school').period = 0>> <<gt 'gschool_lessons' 'schedule'>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'coolkid warn 2'>>
	<<setinit $grupwarning[1] = 2>>
	<<set $menu_off = 1>>
	<<image "locations/pavlovsk/school/events/joincool.jpg">>
	<p>You walk down the hallway and stop at your locker. You sense someone standing next to you and turn to see Vicky, Andrey and Stasya. "Hey, $pc.name_nick, we talked about this before, but you still seem to be not getting with the program," Vicky says with disdain.</p>
	<p>Before you can answer, Stasya chimes in. "I told you she doesn't want to be one of us! I don't know why we ever let her hang out with us in the first place."</p>
	<p>You are again interrupted before you can speak. "$pc.name_nick, you need to get your act together, or you're out, simple as that," Andrey says before the bell rings and you all hurry to class. You can't help but worry. Your recent activity has made the other cool kids question whether you belong in the group. You need to improve your standing with them or risk being kicked out...</p>
	<<actCLA 'Go to class'>>
		<<set $quest('school').period = 0>> <<gt 'gschool_lessons' 'schedule'>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'coolkid slut warn'>>
	<<setinit $grupslutwarning[1] = 1>>
	<<set $menu_off = 1>>
	<<image "locations/pavlovsk/school/events/joincool.jpg">>
	<p>You walk down the hallway and stop at your locker. You sense someone standing next to you and turn to see Vicky, Andrey and Stasya. "What's going on with you, $pc.name_nick? We've all heard the rumours about your sexual exploits. Of course, we all like sex but come on, this is getting out of hand." Vicky says with a hint of disdain.</p>
	Before you can answer, Stasya chimes in. "Maybe she just wants to be a slut."
	<p>You are again interrupted before you can speak. "$pc.name_nick, you need to start using a little discretion, or you're out," Andrey says before the bell rings and you all hurry to class. You can't help but worry. Your recent activity has made the other cool kids question whether you belong in the group. You better fix things fast, or you risk being kicked out...</p>
	<<actCLA 'Go to class'>>
		<<set $quest('school').period = 0>> <<gt 'gschool_lessons' 'schedule'>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'jock'>>
	<<set $menu_off = 1>>
	<<image "locations/pavlovsk/school/events/joinjock.jpg">>
	<p>You walk down the hallway and stop at your locker. You sense someone standing next to you and turn to see Lariska and Lina giving you friendly smiles. "Hey, $pc.name_nick, we've been talking, and you seem to have the right attitude to be one of us. So what do you say? Do you want to join us and become a jock?" They seem to be waiting on your response.</p>
	<<actCLA 'No'>>
		<<image "locations/pavlovsk/school/events/nerdslut.jpg">>
		You shake your head. "I like hanging out with you guys, but I don't think that's a good idea."
		Lariska frowns, then nods. "Suit yourself." With that, she turns and leaves.
		<p>Lina gives you a once-over. "Well, at least <<npc 'A18'>><</npc>> will be happy." With that, she follows after Lariska, leaving you behind to wonder if you made the right choice.</p>
		<<run $quest('school').func('groupRelSet','jocks',rand(600,650))>>
		<<setinit $old_grupvalue[2] = $quest('school').groups['jocks'].rel>>
		<<run $quest('school').func('groupMembersRelInc','jocks',-5)>>
		<<actCLA 'Go to class'>>
			<<set $quest('school').period = 0>> <<gt 'gschool_lessons' 'schedule'>>
		<</actCLA>>
	<</actCLA>>
	<<actCLA 'Yes'>>
		<<image "locations/pavlovsk/school/events/joinjock.jpg">>
		<p>You nod your head. "Yes, I would love to! I love hanging out with you guys!"</p>
		Lariska gives you a hug. "From now on, you are one of us." Lina gives you a friendly smile, and you all walk to your next class.
		<<run $quest('school').func('groupRelSet','cool',Math.min(rand(675,725),grupvalue[1]))>>
		<<run $quest('school').func('groupRelSet','nerds',Math.min(rand(600,650),grupvalue[3]))>>
		<<run $quest('school').func('groupRelSet','gopniks',Math.min(rand(650,700),grupvalue[4]))>>
		<<if $quest('school').func('isGroupMember','cool')>>
			<<run $quest('school').func('groupRelSet','cool',rand(500,600))>>

		<</if>>
		<<if $quest('school').func('isGroupMember','nerds')>>
			<<run $quest('school').func('groupRelSet','nerds',rand(500,600))>>

		<</if>>
		<<if $quest('school').func('isGroupMember','gopniks')>>
			<<run $quest('school').func('groupRelSet','gopniks',rand(500,600))>>

		<</if>>
		<<setinit $old_grupvalue[1] = $quest('school').groups['cool'].rel>>
		<<setinit $old_grupvalue[2] = $quest('school').groups['jocks'].rel>>
		<<setinit $old_grupvalue[3] = $quest('school').groups['nerds'].rel>>
		<<setinit $old_grupvalue[4] = $quest('school').groups['gopniks'].rel>>
		<<run $quest('school').func('setGroupMembership','jocks')>>
		<<setinit $grupTipe['joined_jock'] = 1>>
		<<run $quest('school').func('groupMembersRelInc','jocks',5)>>
		<<actCLA 'Go to class'>>
			<<set $quest('school').period = 0>> <<gt 'gschool_lessons' 'schedule'>>
		<</actCLA>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'jock warn 1'>>
	<<setinit $grupwarning[2] = 1>>
	<<set $menu_off = 1>>
	<<image "locations/pavlovsk/school/events/joincool.jpg">>
	<p>You walk down the hallway and stop at your locker. You sense someone standing next to you and turn to see Lariska and Lina giving you friendly smiles. "Hey, $pc.name_nick, is everything okay with you?" Lariska asks.</p>
	<p>Before you can answer, Lina chimes in. "You haven't been putting your all into sports, and you're starting to act like some others, so does that mean you don't want to hang around with us anymore?"</p>
	The bell rings, and you all hurry to class, but you can't help but worry. It seems your recent activity has made the other jocks question whether you belong in the group or not...
	<<actCLA 'Go to class'>>
		<<set $quest('school').period = 0>> <<gt 'gschool_lessons' 'schedule'>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'jock warn 2'>>
	<<setinit $grupwarning[2] = 2>>
	<<set $menu_off = 1>>
	<<image "locations/pavlovsk/school/events/joincool.jpg">>
	<p>You walk down the hallway and stop at your locker. You sense someone standing next to you and turn to see Lariska and Lina giving you friendly smiles. "$pc.name_nick, we talked about this before, but you still seem to be not getting the idea." Lariska scoffs.</p>
	Before you can answer, Lina chimes. "<<npc 'A18'>><</npc>> says she doesn't want you to be one of us and that we should have never let you hang out with us in the first place."
	<p>You are again interrupted before you can speak. "$pc.name_nick, you need to get your act together, or you're out, simple as that," Lina says before the bell rings and you all hurry to class. You can't help but worry. Your recent activity has made the other jocks question whether you belong in the group. You better fix things fast or risk becoming kicked out...</p>
	<<actCLA 'Go to class'>>
		<<set $quest('school').period = 0>> <<gt 'gschool_lessons' 'schedule'>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'jock slut warn'>>
	<<setinit $grupslutwarning[2] = 1>>
	<<set $menu_off = 1>>
	<<image "locations/pavlovsk/school/events/joincool.jpg">>
	<p>You walk down the hallway and stop at your locker. You sense someone standing next to you and turn to see Lariska and Lina giving you friendly smiles. "What's going on with you, $pc.name_nick? We've all heard the rumours about your sexual exploits. Sex is fun, but what are you going to do next? Fuck the whole football team?"</p>
	Before you can answer, Lina chimes. "You need to start using a little discretion, or you're out." The bell then rings, and you all hurry to class, but you can't help but worry. Your recent activity has made the other jocks question whether you belong in the group. So you better fix things fast or risk being kicked out...
	<<actCLA 'Go to class'>>
		<<set $quest('school').period = 0>> <<gt 'gschool_lessons' 'schedule'>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'nerd'>>
	<<set $menu_off = 1>>
	<<image "locations/pavlovsk/school/events/joinnerd.jpg">>
	<p>You walk down the hallway and stop at your locker. You sense someone standing next to you and turn to see a group of nerds bunched up, all giving you friendly smiles. "Hey, $pc.name_nick, we've been talking, and we like you. We were wondering if you would like to hang out with us at our game night?" They seem to be waiting on your response.</p>
	<<actCLA 'No'>>
		<<image "locations/pavlovsk/school/events/nerdslut.jpg">>
		You shake your head. "I like hanging out with you guys, but I'm just not interested in doing a game night. Sorry."
		Artem frowns and then nods. "Oh, okay. Well, maybe some other time then..." With that, he turns, and the rest follow, looking a little disappointed. Looks like they were hoping you would join them. It makes you feel a little bad and wonder if you made the right choice.
		<<run $quest('school').func('groupRelSet','nerds',rand(600,650))>>
		<<setinit $old_grupvalue[3] = $quest('school').groups['nerds'].rel>>
		<<run $quest('school').func('groupMembersRelInc','nerds',-5)>>
		<<actCLA 'Go to class'>>
			<<set $quest('school').period = 0>> <<gt 'gschool_lessons' 'schedule'>>
		<</actCLA>>
	<</actCLA>>
	<<actCLA 'Yes'>>
		<<image "locations/pavlovsk/school/events/joinnerd.jpg">>
		<p>You nod your head. "Yes, I would love to hang out with you guys! A game night sounds like a lot of fun."</p>
		<p>They all start speaking at once, excited about you joining them. Feofan then speaks up. "That's great, $pc.name_nick! Meet us at the community centre library tonight at 20:00. See you then." Then, they all start leaving and going to class, saying they look forward to seeing you tonight.</p>
		<!-- !! Used at the first d&d game to se if Sveta is new in the nerd group.-->
		<<if getvar("$grupTipe['joined_nerds']") == 0>>
			<<setinit $grupTipe['joined_nerds'] = 1>>

		<</if>>
		<<run $quest('school').func('groupRelSet','cool',Math.min(rand(600,650),grupvalue[1]))>>
		<<run $quest('school').func('groupRelSet','jocks',Math.min(rand(625,625),grupvalue[2]))>>
		<<run $quest('school').func('groupRelSet','gopniks',Math.min(rand(600,650),grupvalue[4]))>>
		<<if $quest('school').func('isGroupMember','cool')>>
			<<run $quest('school').func('groupRelSet','cool',rand(500,600))>>

		<</if>>
		<<if $quest('school').func('isGroupMember','jocks')>>
			<<run $quest('school').func('groupRelSet','jocks',rand(500,600))>>

		<</if>>
		<<if $quest('school').func('isGroupMember','gopniks')>>
			<<run $quest('school').func('groupRelSet','gopniks',rand(500,600))>>

		<</if>>
		<<setinit $old_grupvalue[1] = $quest('school').groups['cool'].rel>>
		<<setinit $old_grupvalue[2] = $quest('school').groups['jocks'].rel>>
		<<setinit $old_grupvalue[3] = $quest('school').groups['nerds'].rel>>
		<<setinit $old_grupvalue[4] = $quest('school').groups['gopniks'].rel>>
		<<run $quest('school').func('setGroupMembership','nerds')>>
		<<setinit $grupTipe['joined_nerd'] = 1>>
		<<setinit $nerd_game['invite_day'] = $time.daystart>>
		<<setinit $nerd_game['game_day'] = $time.daystart>>
		<<run $quest('school').func('groupMembersRelInc','nerds',5)>>
		<<actCLA 'Go to class'>>
			<<set $quest('school').period = 0>> <<gt 'gschool_lessons' 'schedule'>>
		<</actCLA>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'nerd warn 1'>>
	<<setinit $grupwarning[3] = 1>>
	<<set $menu_off = 1>>
	<<image "locations/pavlovsk/school/events/joincool.jpg">>
	<p>You walk down the hallway and stop at your locker. You sense someone standing next to you and turn to see a group of nerds bunched up and giving you friendly smiles. "Hey, $pc.name_nick, is everything okay with you?"</p>
	<p>Before you can answer, Julia chimes in. "You're acting a lot like the others. Does that mean you don't want to hang out with us anymore?"</p>
	<p>You are again interrupted before you can speak. "Look, $pc.name_nick. We like you and want you to stay, but if you want to hang out with us, just act like you want to hang out with us? That's all we're saying." Feofan says before the bell rings, and you all hurry to class. You can't help but worry. It seems your recent activity has made the other nerds question whether you belong in the group or not...</p>
	<<actCLA 'Go to class'>>
		<<set $quest('school').period = 0>> <<gt 'gschool_lessons' 'schedule'>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'nerd warn 2'>>
	<<setinit $grupwarning[3] = 2>>
	<<set $menu_off = 1>>
	<<image "locations/pavlovsk/school/events/joincool.jpg">>
	<p>You walk down the hallway and stop at your locker. You sense someone standing next to you and turn to see a group of nerds bunched up and giving you friendly smiles. "$pc.name_nick, we talked about this, but you're still acting out," Artem says with disdain.</p>
	<p>Before you can answer, Julia chimes in. "Yeah, we're all worried about you. What's wrong? Is there anything we can do to help? Please just ask."</p>
	<p>You are again interrupted before you can speak. "$pc.name_nick, I don't know what's wrong, but if you don't want to hang out with us, just say so. In any case, we hope things get better for you." Deofan says before the bell rings, and you all hurry to class. You can't help but worry. Your recent activity has made the other nerds question whether you belong in the group. You better fix things fast or risk being kicked out...</p>
	<<actCLA 'Go to class'>>
		<<set $quest('school').period = 0>> <<gt 'gschool_lessons' 'schedule'>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'nerd slut warn'>>
	<<setinit $grupslutwarning[3] = 1>>
	<<set $menu_off = 1>>
	<<image "locations/pavlovsk/school/events/joincool.jpg">>
	<p>You walk down the hallway and stop at your locker. You sense someone standing next to you and turn to see a group of nerds bunched up and giving you friendly smiles. "Hey, $pc.name_nick, what's going on with you? We've all heard some pretty disturbing rumours about you... If they're even half true... I just don't know what to say. You always seemed like such a nice girl." Feofan says with a hint of disappointment.</p>
	<p>Before you can answer, Petka chimes in. "$pc.name_nick, you need to get yourself under control, or you won't be able to hang out with us anymore." The bell rings, and you all hurry to class, but you can't help but worry. Your recent activity has made the other nerds question whether you belong in the group. You better fix things fast or risk being kicked out...</p>
	<<actCLA 'Go to class'>>
		<<set $quest('school').period = 0>> <<gt 'gschool_lessons' 'schedule'>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'gopnik'>>
	<<set $menu_off = 1>>
	<<image "locations/pavlovsk/school/events/joingopnik.jpg">>
	<p>You walk down the hallway and stop at your locker. You sense someone standing next to you and turn to see Vitek and Lena. Vitek gives you a hungry once-over, and Lena gives you a smirk. "Hey, $pc.name_nick, we've been talking, and you seem like you have the right attitude to hang with us. So what do you say? Want to come to one of our exclusive parties tonight?" They seem to be waiting on your response.</p>
	<<actCLA 'No'>>
		<<image "locations/pavlovsk/school/events/nerdslut.jpg">>
		You shake your head. "I like hanging out with you guys, but I'm just not in the partying mood tonight."
		<p>Vitek's eyes darken. "What, are you too good for us all of a sudden? Well, fuck you then!" With that, he storms away. Lena looks at you with a derogatory stare before following her brother, leaving you behind to wonder if you made the right choice.</p>
		<<run $quest('school').func('groupRelSet','gopniks',rand(600,650))>>
		<<setinit $old_grupvalue[4] = $quest('school').groups['gopniks'].rel>>
		<<run $quest('school').func('groupMembersRelInc','gopniks',-5)>>
		<<actCLA 'Go to class'>>
			<<set $quest('school').period = 0>> <<gt 'gschool_lessons' 'schedule'>>
		<</actCLA>>
	<</actCLA>>
	<<actCLA 'Yes'>>
		<<image "locations/pavlovsk/school/events/joingopnik.jpg">>
		You nod your head. "Yeah, that sounds great. I love hanging out and maybe getting a little wasted."
		Vitek smirks and glances at Lena, leaving you wondering what they mean. "Lena will let you know where and when." With that, he turns and walks off, but you can't help but feel you missed something, which makes you feel a little nervous.
		Lena leans over. "Meet Lera and me after school at the apartment garages at eight this evening." She smiles like she knows something you don't, but she briskly walks away without a further word or letting you ask anything.
		<<set $gopnik_initiation = 1>>
		<<set $gopnik_initiation_day = $time.daystart>>
		<<actCLA 'Go to class'>>
			<<set $quest('school').period = 0>> <<gt 'gschool_lessons' 'schedule'>>
		<</actCLA>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'gopnik warn 1'>>
	<<setinit $grupwarning[4] = 1>>
	<<set $menu_off = 1>>
	<<image "locations/pavlovsk/school/events/joincool.jpg">>
	<p>You walk down the hallway and stop at your locker. You sense someone standing next to you and turn to see Vitek, Lena, Lera and Dan. Vitek gives you a once-over. "What the fuck is up with you, $pc.name_nick?"</p>
	<p>Before you can answer, Lena chimes in. "You've been acting like a little submissive bitch lately. Grow a fucking pair and get your shit together!"</p>
	<p>You are again interrupted before you can speak. "Look, $pc.name_nick. If you want to hang out with us, just act like it, okay? That's all we're saying." Lera says before the bell rings, and the group disperses. You can't help but worry. It seems your recent activity has made the other Gopnik question whether you belong in the group or not...</p>
	<<actCLA 'Go to class'>>
		<<set $quest('school').period = 0>> <<gt 'gschool_lessons' 'schedule'>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'gopnik warn 2'>>
	<<setinit $grupwarning[4] = 2>>
	<<set $menu_off = 1>>
	<<image "locations/pavlovsk/school/events/joincool.jpg">>
	<p>You walk down the hallway and stop at your locker. You sense someone standing next to you and turn to see Vitek, Lena, Lera and Dan. Lena shoves you into your locker. "What the fuck bitch? You deaf or something, or do you just think you're too good for us?"</p>
	Before you can answer, Dan chimes in. "I told you she didn''t belong. This bitch is too soft," he says as he plays with your hair. "I don't know why we let Vasily talk us into letting her hang out with us anyways. I mean, maybe if she sucked a few more cocks we could look the other way..." he laughs.
	<p>You are again interrupted before you can speak. "Cool it, Dan. $pc.name_nick, get your shit together, or you're out, simple as that." Vitek says before the bell rings, and the group disperses. You can't help but worry. Your recent activity has made the other Gopnik question whether you belong in the group. You better fix things fast, or you risk being kicked out...</p>
	<<actCLA 'Go to class'>>
		<<set $quest('school').period = 0>> <<gt 'gschool_lessons' 'schedule'>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'gopnik slut warn'>>
	<<setinit $grupslutwarning[4] = 1>>
	<<set $menu_off = 1>>
	<<image "locations/pavlovsk/school/events/joincool.jpg">>
	<p>You walk down the hallway and stop at your locker. You sense someone standing next to you and turn to see Pauline, Lena, Lera and Dan. Dan stands uncomfortably close and wraps an arm around your hip before pulling you closer. "Hey, slut. Sucked any cocks today? I can give you another one..." he says with a laugh.</p>
	Before you can answer, Lera chimes in. "Maybe she just wants to be a slut."
	You are again interrupted before you can speak. "We don't need another Nush. One slut is enough." Pauline says in reply.
	<p>Lera fires back. "Hey, she isn't a slut! She just likes to fuck. It's not like she lets just anyone fuck her. Not like $pc.name_nick here." She gives Dan a pointed look, which makes him give Lera a sour look in return.</p>
	Pauline rolls her eyes. "Whatever. If you want to lick her ass so bad, go ahead and do it, you carpet muncher."
	<p>Before Lera can reply, Lena steps between the girls. "That's enough. We're not here to bitch about this shit." She then turns to you. "And you, chill the fuck out and stop being the town bicycle, or you're out, got it?" They then turn and walk off, still chatting as the bell rings. You can't help but worry. Your recent activity has made the other Gopnik question whether you belong in the group. You better fix things fast, or you risk being kicked out...</p>
	<<actCLA 'Go to class'>>
		<<set $quest('school').period = 0>> <<gt 'gschool_lessons' 'schedule'>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'coolkid outcast'>>
	<<set $menu_off = 1>>
	<<image "locations/pavlovsk/school/events/outcast.jpg">>
	<p>Irina and Dimka walk up to you. Dimka is smirking at you while Irina looks you over from head to toe shaking her head. Just as you're about to speak, Irina cuts you off. "Save it. We don't care. I don't know what happened, but you used to be cool. Now? Well, you made your choice. You're no longer welcome to hang out with us." With that, Irina turns and walks away as Dimka gives you a final look and shakes his head.</p>
	"Now you're where you always belonged. With the other losers." he says before leaving as well. You hear the other students laughing as you look around. Having been publicly disavowed by your clique, the other students are ready to prey on your weakness and either start mocking you or actively look away. You grab your stuff and hurry to your next class.
	<font color = red>You have been kicked out of your social group and become an outcast.</font>
	<<run $quest('school').func('groupRelSet','cool',0)>>
	<<run $quest('school').func('groupRelSet','jocks',Math.min(rand(600,650),grupvalue[2]))>>
	<<run $quest('school').func('groupRelSet','nerds',Math.min(rand(650,700),grupvalue[3]))>>
	<<run $quest('school').func('groupRelSet','gopniks',Math.min(rand(700,750),grupvalue[4]))>>
	<<setinit $old_grupvalue[1] = $quest('school').groups['cool'].rel>>
	<<setinit $old_grupvalue[2] = $quest('school').groups['jocks'].rel>>
	<<setinit $old_grupvalue[3] = $quest('school').groups['nerds'].rel>>
	<<setinit $old_grupvalue[4] = $quest('school').groups['gopniks'].rel>>
	<<run $quest('school').func('setGroupMembership','outcasts')>>
	<<setinit $grupTipe['before_outcast'] = 1>>
	<<run $quest('school').func('groupMembersRelInc','cool',-20)>>
	<<actCLA 'Go to class'>>
		<<set $quest('school').period = 0>> <<gt 'gschool_lessons' 'schedule'>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'jock outcast'>>
	<<set $menu_off = 1>>
	<<image "locations/pavlovsk/school/events/outcast.jpg">>
	<<if $quest('christina').blackmail == 2 or $quest('christina').fight == 1>>
		<p>Lazar and Albina walk up to you, and she scoffs at you dismissively. "It seems like you care more about being a social reject than anything else, so fuck off and go hang out with the other losers where you belong. We're not your friends anymore, and don't try to pretend otherwise." She gives you a pitiful once-over before forcefully shoving you aside and walking away. A disappointed-looking Lazar just shakes his head at you before catching up with Albina, where you hear them clearly mocking you. Having been publicly disavowed by your clique, the other students are ready to prey on your weakness, and either start mocking you or actively look away. You grab your stuff and hurry to your next class.</p>
	<<else>>
		<p><<npc 'A18'>><</npc>>, Lariska and Lina walk up to you. Lariska and Lina look at you like you did something wrong while <<npc 'A18'>><</npc>> smirks. She shoves you hard up against your locker. "What are you doing here bitch? You belong with the loser crowd now, so fuck off." She laughs, and Lariska and Lina join in openly mocking you. "Stay away from us, or I'll show you what happens to little bitches who don't know their place," <<npc 'A18'>><</npc>> warns before they turn and walk away. Having been publicly disavowed by your clique, the other students are ready to prey on your weakness, and either start mocking you or actively look away. You grab your stuff and hurry to your next class.</p>
	<</if>>
	<font color = red>You have been kicked out of your social group and become an outcast.</font>
	<<run $quest('school').func('groupRelSet','cool',Math.min(rand(600,650),grupvalue[1]))>>
	<<run $quest('school').func('groupRelSet','jocks',0)>>
	<<run $quest('school').func('groupRelSet','nerds',Math.min(rand(650,700),grupvalue[3]))>>
	<<run $quest('school').func('groupRelSet','gopniks',Math.min(rand(675,725),grupvalue[4]))>>
	<<setinit $old_grupvalue[1] = $quest('school').groups['cool'].rel>>
	<<setinit $old_grupvalue[2] = $quest('school').groups['jocks'].rel>>
	<<setinit $old_grupvalue[3] = $quest('school').groups['nerds'].rel>>
	<<setinit $old_grupvalue[4] = $quest('school').groups['gopniks'].rel>>
	<<run $quest('school').func('setGroupMembership','outcasts')>>
	<<setinit $grupTipe['before_outcast'] = 2>>
	<<run $quest('school').func('groupMembersRelInc','jocks',-20)>>
	<<actCLA 'Go to class'>>
		<<set $quest('school').period = 0>> <<gt 'gschool_lessons' 'schedule'>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'nerd outcast'>>
	<<set $menu_off = 1>>
	<<image "locations/pavlovsk/school/events/outcast.jpg">>
	You try to find your friends, but most seem to be hiding or hurry off when you approach. You finally manage to catch up to Gerasim, but as you're about to say something, he turns to you. "Please go away. I can't be seen hanging out with you. I've got enough problems without you making them worse. None of us wants to be around you anymore." He sighs when he sees the dejected look on your face. "I'm sorry, I really am, but this is your fault. Please just leave me alone." The last part he says loudly enough for others to hear, which causes some of the other students to laugh at you as he wheels himself away from you decidedly. As you look around, most of the other students either start mocking you or actively look away. Finally, you grab your stuff and hurry to your next class.
	<font color = red>You have been kicked out of your social group and become an outcast.</font>
	<<run $quest('school').func('groupRelSet','cool',Math.min(rand(600,650),grupvalue[1]))>>
	<<run $quest('school').func('groupRelSet','jocks',Math.min(rand(650,700),grupvalue[2]))>>
	<<run $quest('school').func('groupRelSet','nerds',0)>>
	<<run $quest('school').func('groupRelSet','gopniks',Math.min(rand(625,675),grupvalue[4]))>>
	<<setinit $old_grupvalue[1] = $quest('school').groups['cool'].rel>>
	<<setinit $old_grupvalue[2] = $quest('school').groups['jocks'].rel>>
	<<setinit $old_grupvalue[3] = $quest('school').groups['nerds'].rel>>
	<<setinit $old_grupvalue[4] = $quest('school').groups['gopniks'].rel>>
	<<run $quest('school').func('setGroupMembership','outcasts')>>
	<<setinit $grupTipe['before_outcast'] = 3>>
	<<run $quest('school').func('groupMembersRelInc','nerds',-20)>>
	<<actCLA 'Go to class'>>
		<<set $quest('school').period = 0>> <<gt 'gschool_lessons' 'schedule'>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'gopnik outcast'>>
	<<set $menu_off = 1>>
	<<image "locations/pavlovsk/school/events/outcast.jpg">>
	<p>As you approach your locker, Pauline, Lera, and Lena walk up next to you. Pauline looks like she's preparing to beat you up, while Lera looks at you with disgust. Pauline shakes her head at you and finally speaks up. "I don't know what your problem is, but apparently, hanging out, partying and having a good time wasn't enough for you. Nooo, you had to become a spineless cunt afraid of her own shadow, so stay the fuck away from us, or I'll beat the shit out of you!" With that, Pauline shoves you against your locker and walks away. Lena gives you a final look of disgust and pushes you again while Lera gives you a few parting words before walking away. "You're so pathetic. Even the nerds will kick your ass now." Having been publicly disavowed by your clique, the other students are ready to prey on your weakness, and either start mocking you or actively look away. You grab your stuff and hurry to your next class.</p>
	<font color = red>You have been kicked out of your social group and become an outcast.</font>
	<<run $quest('school').func('groupRelSet','cool',Math.min(rand(625,675),grupvalue[1]))>>
	<<run $quest('school').func('groupRelSet','jocks',Math.min(rand(650,700),grupvalue[2]))>>
	<<run $quest('school').func('groupRelSet','nerds',Math.min(rand(600,650),grupvalue[3]))>>
	<<run $quest('school').func('groupRelSet','gopniks',0)>>
	<<setinit $old_grupvalue[1] = $quest('school').groups['cool'].rel>>
	<<setinit $old_grupvalue[2] = $quest('school').groups['jocks'].rel>>
	<<setinit $old_grupvalue[3] = $quest('school').groups['nerds'].rel>>
	<<setinit $old_grupvalue[4] = $quest('school').groups['gopniks'].rel>>
	<<run $quest('school').func('setGroupMembership','outcasts')>>
	<<setinit $grupTipe['before_outcast'] = 4>>
	<<run $quest('school').func('groupMembersRelInc','gopniks',-20)>>
	<<actCLA 'Go to class'>>
		<<set $quest('school').period = 0>> <<gt 'gschool_lessons' 'schedule'>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'gopnik miss'>>
	<h2>School Hall</h2>
	<<image "characters/shared/headshots_main/big20.jpg">>
	<p>Just as you approach your locker, Lena shoves you against it. "Where the fuck were you bitch? We waited almost an hour for you!"</p>
	You start to answer, but she shoves you again before you can even get a single word out. "It doesn't matter. We changed our mind about you. You're not welcome. So get lost." she snarls before storming off. If you try to earn their respect again, they will give you a second chance.
	<<set $time.minutes += 1>>
	<<run $quest('school').func('groupRelSet','gopniks',rand(675,725))>>
	<<setinit $old_grupvalue[4] = $quest('school').groups['gopniks'].rel>>
	<<actCLA 'Go to class'>>
		<<set $quest('school').period = 0>> <<gt 'gschool_lessons' 'schedule'>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'group_student_rel_change'>>
	<<if $grupvalue_student_day != $time.daystart>>
		<<if $npc('A1').rel >= 60>>
			<<run $quest('school').func('groupRelInc','cool',1)>>

		<</if>>
		<<if $npc('A1').rel <= 20>>
			<<run $quest('school').func('groupRelInc','cool',-1)>>

		<</if>>
		<<if $npc('A2').rel >= 60>>
			<<run $quest('school').func('groupRelInc','nerds',1)>>

		<</if>>
		<<if $npc('A2').rel <= 20>>
			<<run $quest('school').func('groupRelInc','nerds',-1)>>

		<</if>>
		<<if $npc('A3').rel >= 60>>
			<<run $quest('school').func('groupRelInc','jocks',1)>>

		<</if>>
		<<if $npc('A3').rel <= 20>>
			<<run $quest('school').func('groupRelInc','jocks',-1)>>

		<</if>>
		<<if $npc('A4').rel >= 60>>
			<<run $quest('school').func('groupRelInc','cool',1)>>

		<</if>>
		<<if $npc('A4').rel <= 20>>
			<<run $quest('school').func('groupRelInc','cool',-1)>>

		<</if>>
		<<if getvar("$fedormasha") == 0 and $npc('A5').rel >= 60>>
			<<run $quest('school').func('groupRelInc','nerds',1)>>

		<</if>>
		<<if getvar("$fedormasha") == 0 and $npc('A5').rel <= 20>>
			<<run $quest('school').func('groupRelInc','nerds',-1)>>

		<</if>>
		<<if $npc('A6').rel >= 60>>
			<<run $quest('school').func('groupRelInc','nerds',1)>>

		<</if>>
		<<if $npc('A6').rel <= 20>>
			<<run $quest('school').func('groupRelInc','nerds',-1)>>

		<</if>>
		<<if $npc('A7').rel >= 60>>
			<<run $quest('school').func('groupRelInc','outcasts',1)>>

		<</if>>
		<<if $npc('A7').rel <= 20>>
			<<run $quest('school').func('groupRelInc','outcasts',-1)>>

		<</if>>
		<<if $npc('A8').rel >= 60>>
			<<run $quest('school').func('groupRelInc','jocks',1)>>

		<</if>>
		<<if $npc('A8').rel <= 20>>
			<<run $quest('school').func('groupRelInc','jocks',-1)>>

		<</if>>
		<<if $npc('A9').rel >= 60>>
			<<run $quest('school').func('groupRelInc','gopniks',1)>>

		<</if>>
		<<if $npc('A9').rel <= 20>>
			<<run $quest('school').func('groupRelInc','gopniks',-1)>>

		<</if>>
		<<if $npc('A10').rel >= 60>>
			<<run $quest('school').func('groupRelInc','gopniks',1)>>

		<</if>>
		<<if $npc('A10').rel <= 20>>
			<<run $quest('school').func('groupRelInc','gopniks',-1)>>

		<</if>>
		<<if $npc('A11').rel >= 60>>
			<<run $quest('school').func('groupRelInc','gopniks',1)>>

		<</if>>
		<<if $npc('A11').rel <= 20>>
			<<run $quest('school').func('groupRelInc','gopniks',-1)>>

		<</if>>
		<<if $npc('A12').rel >= 60>>
			<<run $quest('school').func('groupRelInc','nerds',1)>>

		<</if>>
		<<if $npc('A12').rel <= 20>>
			<<run $quest('school').func('groupRelInc','nerds',-1)>>

		<</if>>
		<<if $npc('A13').rel >= 60>>
			<<run $quest('school').func('groupRelInc','jocks',1)>>

		<</if>>
		<<if $npc('A13').rel <= 20>>
			<<run $quest('school').func('groupRelInc','jocks',-1)>>

		<</if>>
		<<if $npc('A14').rel <= 20>>
			<<run $quest('school').func('groupRelInc','cool',-1)>>

		<</if>>
		<<if $npc('A14').rel >= 60>>
			<<run $quest('school').func('groupRelInc','cool',1)>>

		<</if>>
		<<if $npc('A15').rel >= 60>>
			<<run $quest('school').func('groupRelInc','cool',1)>>

		<</if>>
		<<if $npc('A15').rel <= 20>>
			<<run $quest('school').func('groupRelInc','cool',-1)>>

		<</if>>
		<<if $npc('A16').rel >= 60>>
			<<run $quest('school').func('groupRelInc','nerds',1)>>

		<</if>>
		<<if $npc('A16').rel <= 20>>
			<<run $quest('school').func('groupRelInc','nerds',-1)>>

		<</if>>
		<<if $npc('A17').rel >= 60>>
			<<run $quest('school').func('groupRelInc','cool',1)>>

		<</if>>
		<<if $npc('A17').rel <= 20>>
			<<run $quest('school').func('groupRelInc','cool',-1)>>

		<</if>>
		<<if $npc('A19').rel >= 60>>
			<<run $quest('school').func('groupRelInc','jocks',1)>>

		<</if>>
		<<if $npc('A19').rel <= 20>>
			<<run $quest('school').func('groupRelInc','jocks',-1)>>

		<</if>>
		<<if $npc('A200').rel >= 60>>
			<<run $quest('school').func('groupRelInc','gopniks',1)>>

		<</if>>
		<<if $npc('A200').rel <= 20>>
			<<run $quest('school').func('groupRelInc','gopniks',-1)>>

		<</if>>
		<<if $npc('A21').rel >= 60>>
			<<run $quest('school').func('groupRelInc','gopniks',1)>>

		<</if>>
		<<if $npc('A21').rel <= 20>>
			<<run $quest('school').func('groupRelInc','gopniks',-1)>>

		<</if>>
		<<if $npc('A22').rel >= 60>>
			<<run $quest('school').func('groupRelInc','cool',1)>>

		<</if>>
		<<if $npc('A22').rel <= 20>>
			<<run $quest('school').func('groupRelInc','cool',-1)>>

		<</if>>
		<<if $npc('A23').rel >= 60>>
			<<run $quest('school').func('groupRelInc','jocks',1)>>

		<</if>>
		<<if $npc('A23').rel <= 20>>
			<<run $quest('school').func('groupRelInc','jocks',-1)>>

		<</if>>
		<<if $npc('A24').rel <= 20>>
			<<run $quest('school').func('groupRelInc','gopniks',-1)>>

		<</if>>
		<<if $npc('A24').rel >= 60>>
			<<run $quest('school').func('groupRelInc','gopniks',1)>>

		<</if>>
		<<if $npcs.get('A25','slutStatus',0) == 0 and $npc('A25').rel >= 60>>
			<<run $quest('school').func('groupRelInc','cool',1)>>

		<</if>>
		<<if $npcs.get('A25','slutStatus',0) == 0 and $npc('A25').rel <= 20>>
			<<run $quest('school').func('groupRelInc','cool',-1)>>

		<</if>>
		<<if $npc('A139').rel >= 60>>
			<<run $quest('school').func('groupRelInc','cool',1)>>

		<</if>>
		<<if $npc('A139').rel <= 20>>
			<<run $quest('school').func('groupRelInc','cool',-1)>>

		<</if>>
		<<if $npc('A140').rel >= 60>>
			<<run $quest('school').func('groupRelInc','cool',1)>>

		<</if>>
		<<if $npc('A140').rel <= 20>>
			<<run $quest('school').func('groupRelInc','cool',-1)>>

		<</if>>
		<<if $npc('A141').rel <= 20>>
			<<run $quest('school').func('groupRelInc','jocks',-1)>>

		<</if>>
		<<if $npc('A141').rel >= 60>>
			<<run $quest('school').func('groupRelInc','jocks',1)>>

		<</if>>
		<<if $npc('A142').rel >= 60>>
			<<run $quest('school').func('groupRelInc','nerds',1)>>

		<</if>>
		<<if $npc('A142').rel <= 20>>
			<<run $quest('school').func('groupRelInc','nerds',-1)>>

		<</if>>
		<<if $npc('A143').rel >= 60>>
			<<run $quest('school').func('groupRelInc','gopniks',1)>>

		<</if>>
		<<if $npc('A143').rel <= 20>>
			<<run $quest('school').func('groupRelInc','gopniks',-1)>>

		<</if>>
		<<if $npc('A144').rel >= 60>>
			<<run $quest('school').func('groupRelInc','gopniks',1)>>

		<</if>>
		<<if $npc('A144').rel <= 20>>
			<<run $quest('school').func('groupRelInc','gopniks',-1)>>

		<</if>>
		<<if $npc('A145').rel >= 60>>
			<<run $quest('school').func('groupRelInc','gopniks',1)>>

		<</if>>
		<<if $npc('A145').rel <= 20>>
			<<run $quest('school').func('groupRelInc','gopniks',-1)>>

		<</if>>
		<<if $npc('A146').rel >= 60>>
			<<run $quest('school').func('groupRelInc','cool',1)>>

		<</if>>
		<<if $npc('A146').rel <= 20>>
			<<run $quest('school').func('groupRelInc','cool',-1)>>

		<</if>>
		<<if $npc('A147').rel >= 60>>
			<<run $quest('school').func('groupRelInc','cool',1)>>

		<</if>>
		<<if $npc('A147').rel <= 20>>
			<<run $quest('school').func('groupRelInc','cool',-1)>>

		<</if>>
		<<if $npc('A148').rel >= 60>>
			<<run $quest('school').func('groupRelInc','cool',1)>>

		<</if>>
		<<if $npc('A148').rel <= 20>>
			<<run $quest('school').func('groupRelInc','cool',-1)>>

		<</if>>
		<<if $npc('A149').rel >= 60>>
			<<run $quest('school').func('groupRelInc','jocks',1)>>

		<</if>>
		<<if $npc('A149').rel <= 20>>
			<<run $quest('school').func('groupRelInc','jocks',-1)>>

		<</if>>
		<<if $npc('A150').rel >= 60>>
			<<run $quest('school').func('groupRelInc','jocks',1)>>

		<</if>>
		<<if $npc('A150').rel <= 20>>
			<<run $quest('school').func('groupRelInc','jocks',-1)>>

		<</if>>
		<<if $npc('A151').rel >= 60>>
			<<run $quest('school').func('groupRelInc','nerds',1)>>

		<</if>>
		<<if $npc('A151').rel <= 20>>
			<<run $quest('school').func('groupRelInc','nerds',-1)>>

		<</if>>
		<<if $npc('A152').rel >= 60>>
			<<run $quest('school').func('groupRelInc','nerds',1)>>

		<</if>>
		<<if $npc('A152').rel <= 20>>
			<<run $quest('school').func('groupRelInc','nerds',-1)>>

		<</if>>
		<<if $npc('A153').rel >= 60>>
			<<run $quest('school').func('groupRelInc','nerds',1)>>

		<</if>>
		<<if $npc('A153').rel <= 20>>
			<<run $quest('school').func('groupRelInc','nerds',-1)>>

		<</if>>
		<<if $npc('A154').rel >= 60>>
			<<run $quest('school').func('groupRelInc','gopniks',1)>>

		<</if>>
		<<if $npc('A154').rel <= 20>>
			<<run $quest('school').func('groupRelInc','gopniks',-1)>>

		<</if>>
		<<if $npc('A155').rel >= 60>>
			<<run $quest('school').func('groupRelInc','gopniks',1)>>

		<</if>>
		<<if $npc('A155').rel <= 20>>
			<<run $quest('school').func('groupRelInc','gopniks',-1)>>

		<</if>>
		<<if $npc('A156').rel >= 60>>
			<<run $quest('school').func('groupRelInc','gopniks',1)>>

		<</if>>
		<<if $npc('A156').rel <= 20>>
			<<run $quest('school').func('groupRelInc','gopniks',-1)>>

		<</if>>
		<<if $npc('A157').rel >= 60>>
			<<run $quest('school').func('groupRelInc','gopniks',1)>>

		<</if>>
		<<if $npc('A157').rel <= 20>>
			<<run $quest('school').func('groupRelInc','gopniks',-1)>>

		<</if>>
		<<if $npc('A158').rel >= 60>>
			<<run $quest('school').func('groupRelInc','gopniks',1)>>

		<</if>>
		<<if $npc('A158').rel <= 20>>
			<<run $quest('school').func('groupRelInc','gopniks',-1)>>

		<</if>>
		<<if $npc('A159').rel >= 60>>
			<<run $quest('school').func('groupRelInc','outcasts',1)>>

		<</if>>
		<<if $npc('A159').rel <= 20>>
			<<run $quest('school').func('groupRelInc','outcasts',-1)>>

		<</if>>
		<<if $npc('A165').rel >= 60>>
			<<run $quest('school').func('groupRelInc','jocks',1)>>

		<</if>>
		<<if $npc('A165').rel <= 20>>
			<<run $quest('school').func('groupRelInc','jocks',-1)>>

		<</if>>
		<<if $npc('A189').grupTipe == 4 and $npc('A189').rel >= 60>>
			<<run $quest('school').func('groupRelInc','gopniks',1)>>

		<</if>>
		<<if $npc('A189').grupTipe == 4 and $npc('A189').rel <= 20>>
			<<run $quest('school').func('groupRelInc','gopniks',-1)>>

		<</if>>
		<<set $grupvalue_student_day = $time.daystart>>
		<<if $quest('school').groups['cool'].rel < 0>>
			<<run $quest('school').func('groupRelSet','cool',0)>>

		<</if>>
		<<if $quest('school').groups['jocks'].rel < 0>>
			<<run $quest('school').func('groupRelSet','jocks',0)>>

		<</if>>
		<<if $quest('school').groups['nerds'].rel < 0>>
			<<run $quest('school').func('groupRelSet','nerds',0)>>

		<</if>>
		<<if $quest('school').groups['gopniks'].rel < 0>>
			<<run $quest('school').func('groupRelSet','gopniks',0)>>

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