Jelajahi Sumber

[changed] listen attentively in school cost willpower, nerds get an easy check, gopniks a hard check and all other a check depending on their grades

julzor 4 tahun lalu
induk
melakukan
eeb2778283
3 mengubah file dengan 359 tambahan dan 263 penghapusan
  1. 256 195
      locations/gschool_lessons1.qsrc
  2. 99 64
      locations/gschool_lessons2.qsrc
  3. 4 4
      locations/stol.qsrc

+ 256 - 195
locations/gschool_lessons1.qsrc

@@ -79,23 +79,29 @@ if $ARGS[0] = 'math':
 	if dimaRevenge = 1:
 		act 'Continue': gt 'dimaRevenge', 1
 	else
-		act 'Focus on your school work':
-			*clr & cla
-			grupvalue[4] -= 1
-			grupvalue[3] +=1
-			pcs_grades += rand(0,1)
-			gs'stat'
-			'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/attention.jpg"></center>'
-			'You carefully follow today''s lesson trying to take in as much as possible.'
-			act 'Ask a question about the lesson':
+		gs 'willpower', 'misc', 'self', iif((pcs_grades < 50 or grupTipe = 3) and grupTipe ! 4, 'easy', iif(pcs_grades < 90 and grupTipe ! 4, 'medium', 'hard'))
+		if will_cost <= pcs_willpwr:	
+			act 'Focus on your school work (<<will_cost>> Willpower)':
 				*clr & cla
+				grupvalue[4] -= 1
+				grupvalue[3] +=1
 				pcs_grades += rand(0,1)
-				'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/class1.jpg"></center>'
-				'You take a second to ask a question about a part of the lesson that you don''t fully understand and Mr. Tsarev nods approvingly then says, "Sure thing, we can over the solution again and I will show you the many ways that you can find the solution to these problems." Anatoly happily spends some time explaining the topic in greater detail, and answers any questions you might have, teaching you some new ways of solving many problems, in the process.'
-				*nl
+				gs 'willpower', 'pay', 'self'
+				gs'stat'
+				'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/attention.jpg"></center>'
+				'You carefully follow today''s lesson trying to take in as much as possible.'
+				act 'Ask a question about the lesson':
+					*clr & cla
+					pcs_grades += rand(0,1)
+					'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/class1.jpg"></center>'
+					'You take a second to ask a question about a part of the lesson that you don''t fully understand and Mr. Tsarev nods approvingly then says, "Sure thing, we can over the solution again and I will show you the many ways that you can find the solution to these problems." Anatoly happily spends some time explaining the topic in greater detail, and answers any questions you might have, teaching you some new ways of solving many problems, in the process.'
+					*nl
+					act 'Wait for the end of the lesson': gt 'gschool_lessonsev2', 'math'
+				end
 				act 'Wait for the end of the lesson': gt 'gschool_lessonsev2', 'math'
 			end
-			act 'Wait for the end of the lesson': gt 'gschool_lessonsev2', 'math'
+		else
+			act 'Focus on your school work (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
 		end
 
 		act'Daydream':
@@ -355,21 +361,28 @@ if $ARGS[0] = 'russian':
 	'You walk into the classroom and take a seat farthest right, next to a window. The rest of your fellow classmates walk in one by one and just as Mr. Yenotin is about to close the door, one of your classmates grabs the door. Mr. Yenotin tells them that they are late and that next time he will have to report them, which is says with a wink. As he lets them in to find a seat, he never does report anyone for being late. As everyone settles in Mr. Yenotin does a roll call and opens a grammar book telling you to open a certain page.'
 	*nl
 	'After a while he tells the students to do the assignments on the last page of the chapter. He starts walking up and down the classroom mostly talking to the students about other stuff than what they''re currently studying. He''s always trying to impress the other students with his endeavors but no one really buys it since they know he''s probably lying. When someone has a real question he''s quick to answer as fair as possible without being arrogant no matter what kind of question it is.'
-	act 'Listen attentively to Mr. Yenotin':
-		*clr & cla
-		grupvalue[4] -= 1
-		grupvalue[3] +=1
-		pcs_grades += rand(0,1)
-		'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/attention.jpg"></center>'
-		'You listen attentively to Mr. Mr. Yenotin for the duration of the class. He managed making today''s lesson very interesting and informative, and you feel you learned from taking part in the discussion.'
-		act 'Ask a question about the lesson':
+	gs 'willpower', 'misc', 'self', iif((pcs_grades < 50 or grupTipe = 3) and grupTipe ! 4, 'easy', iif(pcs_grades < 90 and grupTipe ! 4, 'medium', 'hard'))
+	if will_cost <= pcs_willpwr:	
+		act 'Listen attentively to Mr. Yenotin (<<will_cost>> Willpower)':
 			*clr & cla
+			grupvalue[4] -= 1
+			grupvalue[3] += 1
 			pcs_grades += rand(0,1)
-			'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/class1.jpg"></center>'
-			'Mr. Yenotin nods approvingly, happy to see his students engaged in class, trying their best. He happily spends some extra time explaining the topic again, and answers any extra questions you might have. You feel smarter, thoroughly understanding today''s lessons now.'
+			gs 'willpower', 'pay', 'self'
+			gs 'stat'
+			'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/attention.jpg"></center>'
+			'You listen attentively to Mr. Mr. Yenotin for the duration of the class. He managed making today''s lesson very interesting and informative, and you feel you learned from taking part in the discussion.'
+			act 'Ask a question about the lesson':
+				*clr & cla
+				pcs_grades += rand(0,1)
+				'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/class1.jpg"></center>'
+				'Mr. Yenotin nods approvingly, happy to see his students engaged in class, trying their best. He happily spends some extra time explaining the topic again, and answers any extra questions you might have. You feel smarter, thoroughly understanding today''s lessons now.'
+				act 'Wait for the end of the lesson': gs 'gschool_lessonsev1', 'russian'
+			end
 			act 'Wait for the end of the lesson': gs 'gschool_lessonsev1', 'russian'
 		end
-		act 'Wait for the end of the lesson': gs 'gschool_lessonsev1', 'russian'
+	else
+		act 'Listen attentively to Mr. Yenotin (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
 	end
 	act 'Don''t pay attention in class':
 		*clr & cla
@@ -580,43 +593,50 @@ if $ARGS[0] = 'literature':
 	'"She''s always piling on the work and expects everyone to have it finished by the end of class." You overhear a girl complain with a heavy sigh.'
 	*nl
 	'Clearing her throat, Ms. Braakman raises her voice to speak over the noise, "The sooner everyone takes out their textbooks, the quicker we can get started. Who knows, maybe we''ll finish early and you''ll have some free time." Hearing this, the room settles down and soon the lesson begins.'
-	act 'Listen attentively':
-		*clr & cla
-		grupvalue[4] -=1
-		grupvalue[3] += 1
-		if rand(0,2) = 0: pcs_grades += 1
-		'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/literature/work2.jpg"></center>'
-		*nl
-		'Obediently, you open your textbook and start following along, even taking notes when you need to. Eventually, Ms. Braakman stops reading the passages herself and starts looking for volunteers to read.'
-		act 'Volunteer to read':gt 'gschool_lessonsev3', 'reading'
-		act 'Avoid being chosen':
+	gs 'willpower', 'misc', 'self', iif((pcs_grades < 50 or grupTipe = 3) and grupTipe ! 4, 'easy', iif(pcs_grades < 90 and grupTipe ! 4, 'medium', 'hard'))
+	if will_cost <= pcs_willpwr:
+		act 'Listen attentively (<<will_cost>> Willpower)':
 			*clr & cla
-			pcs_grades -= rand(0,1)
-			$boy = 'A'+str( val($mid(' 004 140 156 157 144 006 152 159 145',4*rand(0,8)+2,3)))
-			'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/literature/work.jpg"></center>'
-			'You keep your head down and pretend to be deep in thought as Ms. Braakman scans the rooms for a moment. Luckily, she stops and points to someone else in the class. "Please read the next passage."'
+			grupvalue[4] -= 1
+			grupvalue[3] += 1
+			if rand(0,2) = 0: pcs_grades += 1
+			gs 'willpower', 'pay', 'self'
+			gs 'stat'
+			'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/literature/work2.jpg"></center>'
 			*nl
-			if $boy = 'A4':
-				'You watch Igor sink lower into his seat; apparently he was also trying to hide. Reluctantly, he quietly starts to read the passage, but Ms. Braakman interrupts to remind him to speak clearly. Some kids start to snicker and whisper to each other, causing Igor to awkwardly clear his throat before continuing. By the time he''s finished reading, his cheeks are colored a rosy red and he refuses to look up from his desk for the rest of the class.'
-			elseif $boy = 'A140':
-				'Upon being called on, Lizaveta quickly hides her phone under her desk, an innocent smile gracing her face as Ms. Braakman glares at her. "Uh...what page are we on?" she asks with a nervous chuckle. There''s a few scattered laughs, but Ms. Braakman quickly silences the room. A nearby girl points out the right page number and paragraph, and with a smile Lizaveta starts reading as if nothing happened.'
-			elseif $boy = 'A156':
-				'"Give me a fucking break..." Arkadi mutters under his breath. Either Ms. Braakman didn''t hear him, or she''s choosing to avoid confrontation with the gopnik since she continues to wait in silence. Realizing there''s no avoiding this, Arkadi clears his throat and begins reading; his voice is flat and at times he pretends not to be able to pronounce a word just to annoy the teacher. Fed up with his antics, Ms. Braakman cuts him off, sarcastically thanks him for reading and quickly chooses a more competent student. With a triumphant smile, the gopnik closes his book and relaxes into his seat.'
-			elseif $boy = 'A157':
-				'Roman scoffs, "Fuck that." He says nonchalantly. You can feel the tension growing as Ms. Braakman narrows her eyes and tells him again to read, only to be met with a taunting smile and silent defiance from the gopnik. After what feels like an eternity, Ms. Braakman chooses a different student and continues on with the lesson like nothing ever happened.'
-			elseif $boy = 'A144':
-				'Anushka throws her head back and sighs dramatically. "The quicker you read, the sooner this will be over." Ms. Braakman insists. Hearing this, Anushka straightens up and starts to read, taking Ms. Braakman''s comment literally and speaking so fast that you can barely understand her.'
-			elseif $boy = 'A6':
-				'Obediently, Petka reads the passage and does so without any mistakes. "It''s always a pleasure to hear you read, Petka. If only your fellow students took their studies as seriously as you." Ms. Braakman compliments. Petka smiles slightly, but you can tell that he doesn''t like being openly complimented by the teacher, especially when students start to groan and call him a teacher''s pet.'
-			elseif $boy = 'A152':
-				'You watch Feofan frantically hide the comic book he was secretly reading before trying to find the right passage to read. "Save the cartoons for after class." Ms. Braakman warns. Feofan starts to correct her, but the laughter from the other students silences him.'
-			elseif $boy = 'A159':
-				'"Can''t you pick someone else?" Petia asks, slumping back into his seat. "I don''t even know what page we''re on." He garners a few laughs, but Ms. Braakman is quick to reprimand him, reminding him that if he keeps this up he''ll end up in detention and fail her class.'
-			elseif $boy = 'A145':
-				'You look over to see Ekaterina has her head down, presumably asleep. Again, Ms. Braakman asks her to read but the gopnik doesn''t respond. "We can always continue the lesson during detention." She threatens. After a moment, Ekaterina slowly sits up and lazily stretches before asking a nearby student for the page number and reading as instructed.'
+			'Obediently, you open your textbook and start following along, even taking notes when you need to. Eventually, Ms. Braakman stops reading the passages herself and starts looking for volunteers to read.'
+			act 'Volunteer to read':gt 'gschool_lessonsev3', 'reading'
+			act 'Avoid being chosen':
+				*clr & cla
+				pcs_grades -= rand(0,1)
+				$boy = 'A'+str( val($mid(' 004 140 156 157 144 006 152 159 145',4*rand(0,8)+2,3)))
+				'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/literature/work.jpg"></center>'
+				'You keep your head down and pretend to be deep in thought as Ms. Braakman scans the rooms for a moment. Luckily, she stops and points to someone else in the class. "Please read the next passage."'
+				*nl
+				if $boy = 'A4':
+					'You watch Igor sink lower into his seat; apparently he was also trying to hide. Reluctantly, he quietly starts to read the passage, but Ms. Braakman interrupts to remind him to speak clearly. Some kids start to snicker and whisper to each other, causing Igor to awkwardly clear his throat before continuing. By the time he''s finished reading, his cheeks are colored a rosy red and he refuses to look up from his desk for the rest of the class.'
+				elseif $boy = 'A140':
+					'Upon being called on, Lizaveta quickly hides her phone under her desk, an innocent smile gracing her face as Ms. Braakman glares at her. "Uh...what page are we on?" she asks with a nervous chuckle. There''s a few scattered laughs, but Ms. Braakman quickly silences the room. A nearby girl points out the right page number and paragraph, and with a smile Lizaveta starts reading as if nothing happened.'
+				elseif $boy = 'A156':
+					'"Give me a fucking break..." Arkadi mutters under his breath. Either Ms. Braakman didn''t hear him, or she''s choosing to avoid confrontation with the gopnik since she continues to wait in silence. Realizing there''s no avoiding this, Arkadi clears his throat and begins reading; his voice is flat and at times he pretends not to be able to pronounce a word just to annoy the teacher. Fed up with his antics, Ms. Braakman cuts him off, sarcastically thanks him for reading and quickly chooses a more competent student. With a triumphant smile, the gopnik closes his book and relaxes into his seat.'
+				elseif $boy = 'A157':
+					'Roman scoffs, "Fuck that." He says nonchalantly. You can feel the tension growing as Ms. Braakman narrows her eyes and tells him again to read, only to be met with a taunting smile and silent defiance from the gopnik. After what feels like an eternity, Ms. Braakman chooses a different student and continues on with the lesson like nothing ever happened.'
+				elseif $boy = 'A144':
+					'Anushka throws her head back and sighs dramatically. "The quicker you read, the sooner this will be over." Ms. Braakman insists. Hearing this, Anushka straightens up and starts to read, taking Ms. Braakman''s comment literally and speaking so fast that you can barely understand her.'
+				elseif $boy = 'A6':
+					'Obediently, Petka reads the passage and does so without any mistakes. "It''s always a pleasure to hear you read, Petka. If only your fellow students took their studies as seriously as you." Ms. Braakman compliments. Petka smiles slightly, but you can tell that he doesn''t like being openly complimented by the teacher, especially when students start to groan and call him a teacher''s pet.'
+				elseif $boy = 'A152':
+					'You watch Feofan frantically hide the comic book he was secretly reading before trying to find the right passage to read. "Save the cartoons for after class." Ms. Braakman warns. Feofan starts to correct her, but the laughter from the other students silences him.'
+				elseif $boy = 'A159':
+					'"Can''t you pick someone else?" Petia asks, slumping back into his seat. "I don''t even know what page we''re on." He garners a few laughs, but Ms. Braakman is quick to reprimand him, reminding him that if he keeps this up he''ll end up in detention and fail her class.'
+				elseif $boy = 'A145':
+					'You look over to see Ekaterina has her head down, presumably asleep. Again, Ms. Braakman asks her to read but the gopnik doesn''t respond. "We can always continue the lesson during detention." She threatens. After a moment, Ekaterina slowly sits up and lazily stretches before asking a nearby student for the page number and reading as instructed.'
+				end
+				act 'Wait for the end of the lesson': gt 'gschool_lessons', 'short_break'
 			end
-			act 'Wait for the end of the lesson': gt 'gschool_lessons', 'short_break'
 		end
+	else
+		act 'Listen attentively (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
 	end
 
 	act'Daydream':
@@ -810,101 +830,108 @@ if $ARGS[0] = 'english':
 	if dimaRevenge = 1:
 		act 'Continue': gt 'dimaRevenge', 1
 	else
-		act 'Listen attentively':
-			*clr & cla
-			grupvalue[4] -=1
-			grupvalue[3] += 1
-			pcs_grades += 1
-			'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/literature/work2.jpg"></center>'
-			*nl
-			'You actively take part in the lesson, raising your hand to answer questions, following along in your textbook, and working quietly on the worksheets when given them.'
-			act 'Keep working':
+		gs 'willpower', 'misc', 'self', iif((pcs_grades < 50 or grupTipe = 3) and grupTipe ! 4, 'easy', iif(pcs_grades < 90 and grupTipe ! 4, 'medium', 'hard'))
+		if will_cost <= pcs_willpwr:
+			act 'Listen attentively (<<will_cost>> Willpower)':
 				*clr & cla
-				grupvalue[3] +=1
-				if rand(0,2) = 0: pcs_grades += 1
-				'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/ask.jpg"></center>'
-				'Unlike most of the students in your class, you stay focused on your work.'
-				act 'Wait for the end of the lesson': gs 'gschool_lessonsev3', 'working'
-			end
-			act 'Talk to someone':
-				*clr & cla
-				'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/talk.jpg"></center>'
-				pcs_grades -= rand(0,1)
-				'You tell yourself that you''ve worked long enough and deserve a break. Looking around the room, you decide to talk to...'
-				act 'Vicky':
-					cla & *nl
-					pcs_mood += 10
-					npc_rel['A15'] += 1
-					'"I saw this video of an American girl dancing all sexy and stuff, and I''m thinking of learning the dance. Next time I go to the community center, I''ll show up all the girls and steal their boyfriends!" she jokes with a playful smile, but you notice a wicked twinkle in her eyes.'
-					*nl
-					'Vicky''s bubbly personality makes her easy and fun to talk to, and you end up spending the rest of class smiling and laughing with her.'
-					act 'Finish class': gt 'gschool_lessons', 'short_break'
-				end
-				act 'Lena':
-					cla & *nl
-					npc_rel['A20'] += 1
-					'Lena sighs heavily, "Fuck, what''s taking her so long?"'
-					*nl
-					'"Who are you waiting for?" you ask.'
-					*nl
-					'"Lera! She had to go take a piss but she''s taking forever," she snaps back. "Her tongue probably needed a break anyways..." she mumbles quietly after a moment, a small smile spreading across her face.'
-					act 'Finish class': gt 'gschool_lessons', 'short_break'
-				end
-				act 'Lera':
-					cla & *nl
-					npc_rel['A21'] += 1
-					'"It''s hard enough having my dad as a teacher at school, but now that freak Lesco is living with us." Lera spends the rest of class talking about all the awkward run-ins she''s had with her dad in school, and how she and Lena had to beat the shit out of anyone that tried spreading weird rumors about her being "close" to her cousin Lesco.'
-					act 'Finish class': gt 'gschool_lessons', 'short_break'
-				end
-				act 'Radomir':
-					cla & *nl
-					npc_rel['A154'] += 1
-					'You try talking to Radomir, but it''s hard to get a word in with how hard he''s stroking his own ego. "You should have heard me last night, I killed it. You should come hear us play. Everyone thinks we''re amazing, especially the girls. I know you''ll love it, too," he says with a wink. He keeps saying "we" a lot to refer to the rest of the band, but something tells you he''s still talking about himself.'
-					act 'Finish class': gt 'gschool_lessons', 'short_break'
-				end
-				act 'Ivan':
-					cla & *nl
-					npc_rel['A3'] += 1
-					'With a confident smile, Ivan starts to tell you about a recent match he had at the community center. "This kid I''ve never seen before comes up to me and starts talking shit, saying my form is bad and that I couldn''t hit someone even if they were standing still right in front of me," he says with a scoff. "I told him to put his money where his mouth is and get in the ring, and guess what happened?"'
-					*nl
-					'"You beat the crap out of him?" You say with a smile.'
-					*nl
-					'Ivan laughs and you can see his chest puff out slightly. "Of course! The best part is that his girlfriend was there to see it happen, and while he was lying on the mat knocked out, she gave me her number."'
-					act 'Finish class': gt 'gschool_lessons', 'short_break'
-				end
-				act 'Bella':
-					cla & *nl
-					npc_rel['A22'] += 1
-					'"God, this place is more like a daycare than a high school." Bella says, scoffing in disgust. A moment later, a group of kids start talking and laughing loud enough to disrupt the class. "See what I mean?" she adds as she rolls her eyes. "They''re practically adults but they act so childish. I hate it. They need to act their age, like I do."'
-					act 'Finish class': gt 'gschool_lessons', 'short_break'
-				end
-				act 'Veronika':
-					cla & *nl
-					npc_rel['A141'] += 1
-					'You try talking to Veronika, but she has little to say, which is no surprise; she''s always been standoffish. Still, she doesn''t outright tell you to leave you alone, so you take it as a sign that she''s okay with listening to you talk.'
-					act 'Finish class': gt 'gschool_lessons', 'short_break'
+				grupvalue[4] -=1
+				grupvalue[3] += 1
+				pcs_grades += 1
+				gs 'willpower', 'pay', 'self'
+				gs 'stat'
+				'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/literature/work2.jpg"></center>'
+				*nl
+				'You actively take part in the lesson, raising your hand to answer questions, following along in your textbook, and working quietly on the worksheets when given them.'
+				act 'Keep working':
+					*clr & cla
+					grupvalue[3] += 1
+					if rand(0,2) = 0: pcs_grades += 1
+					'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/ask.jpg"></center>'
+					'Unlike most of the students in your class, you stay focused on your work.'
+					act 'Wait for the end of the lesson': gs 'gschool_lessonsev3', 'working'
 				end
-				if grupTipe[61] = 4:
-					act 'Niko':
-						*clr & cla
-						gs 'stat'
-						'<center><b><h4><font color=#E400FF><<"Nikolai [Niko] Volkov">></font></h4></b></center>'
-						if NikoPayback > 0:
-							'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/boy/niko/nikomisc/avatars/<<week>>.jpg"></center>'
-							'As you approach Niko, he sneers at you before saying, "What do you want?" You carefully reply with, "Hey I just want to talk." Scoffs then says, "Fine, why not?" You and Niko spend the next few minutes having a strained conversation until the end of the period.'
-						elseif NikoVolkovQW >= 5:
-							npc_rel['A189'] += 2
-							'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/boy/niko/nikoev/avatars/<<week>>.jpg"></center>'
-							'As you approach Niko, he gives you a warm smile before saying, "My princess graces with me with her presence. How can be of assistance?" You giggle before replying, "I have spare time and I can''t think of a better use of my time then spending it with you." Niko chuckles then grabs onto your hand, lifting it toward his face and giving it a soft kiss before saying, "Your wish is my command." You both the next few minutes chatting while exchanging loving glares until the end of the period.'
-						else
-							npc_rel['A189'] += 1
-							'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/boy/niko/nikoev/avatars/<<week>>.jpg"></center>'
-							'As you approach Niko, he gives you a warm smile before saying, "Ahh a lovely princess decides to grace me with her presence. How can I be of assistance?" You giggle before replying, "You''re so weird, I just want to chat for a bit okay?" Niko chuckles then grabs onto your hand, lifting it toward his face and giving it a soft kiss before saying, "Your wish is my command." You both begin chatting until the end of the period.'
-						end
+				act 'Talk to someone':
+					*clr & cla
+					'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/talk.jpg"></center>'
+					pcs_grades -= rand(0,1)
+					'You tell yourself that you''ve worked long enough and deserve a break. Looking around the room, you decide to talk to...'
+					act 'Vicky':
+						cla & *nl
+						pcs_mood += 10
+						npc_rel['A15'] += 1
+						'"I saw this video of an American girl dancing all sexy and stuff, and I''m thinking of learning the dance. Next time I go to the community center, I''ll show up all the girls and steal their boyfriends!" she jokes with a playful smile, but you notice a wicked twinkle in her eyes.'
+						*nl
+						'Vicky''s bubbly personality makes her easy and fun to talk to, and you end up spending the rest of class smiling and laughing with her.'
+						act 'Finish class': gt 'gschool_lessons', 'short_break'
+					end
+					act 'Lena':
+						cla & *nl
+						npc_rel['A20'] += 1
+						'Lena sighs heavily, "Fuck, what''s taking her so long?"'
+						*nl
+						'"Who are you waiting for?" you ask.'
+						*nl
+						'"Lera! She had to go take a piss but she''s taking forever," she snaps back. "Her tongue probably needed a break anyways..." she mumbles quietly after a moment, a small smile spreading across her face.'
 						act 'Finish class': gt 'gschool_lessons', 'short_break'
 					end
+					act 'Lera':
+						cla & *nl
+						npc_rel['A21'] += 1
+						'"It''s hard enough having my dad as a teacher at school, but now that freak Lesco is living with us." Lera spends the rest of class talking about all the awkward run-ins she''s had with her dad in school, and how she and Lena had to beat the shit out of anyone that tried spreading weird rumors about her being "close" to her cousin Lesco.'
+						act 'Finish class': gt 'gschool_lessons', 'short_break'
+					end
+					act 'Radomir':
+						cla & *nl
+						npc_rel['A154'] += 1
+						'You try talking to Radomir, but it''s hard to get a word in with how hard he''s stroking his own ego. "You should have heard me last night, I killed it. You should come hear us play. Everyone thinks we''re amazing, especially the girls. I know you''ll love it, too," he says with a wink. He keeps saying "we" a lot to refer to the rest of the band, but something tells you he''s still talking about himself.'
+						act 'Finish class': gt 'gschool_lessons', 'short_break'
+					end
+					act 'Ivan':
+						cla & *nl
+						npc_rel['A3'] += 1
+						'With a confident smile, Ivan starts to tell you about a recent match he had at the community center. "This kid I''ve never seen before comes up to me and starts talking shit, saying my form is bad and that I couldn''t hit someone even if they were standing still right in front of me," he says with a scoff. "I told him to put his money where his mouth is and get in the ring, and guess what happened?"'
+						*nl
+						'"You beat the crap out of him?" You say with a smile.'
+						*nl
+						'Ivan laughs and you can see his chest puff out slightly. "Of course! The best part is that his girlfriend was there to see it happen, and while he was lying on the mat knocked out, she gave me her number."'
+						act 'Finish class': gt 'gschool_lessons', 'short_break'
+					end
+					act 'Bella':
+						cla & *nl
+						npc_rel['A22'] += 1
+						'"God, this place is more like a daycare than a high school." Bella says, scoffing in disgust. A moment later, a group of kids start talking and laughing loud enough to disrupt the class. "See what I mean?" she adds as she rolls her eyes. "They''re practically adults but they act so childish. I hate it. They need to act their age, like I do."'
+						act 'Finish class': gt 'gschool_lessons', 'short_break'
+					end
+					act 'Veronika':
+						cla & *nl
+						npc_rel['A141'] += 1
+						'You try talking to Veronika, but she has little to say, which is no surprise; she''s always been standoffish. Still, she doesn''t outright tell you to leave you alone, so you take it as a sign that she''s okay with listening to you talk.'
+						act 'Finish class': gt 'gschool_lessons', 'short_break'
+					end
+					if grupTipe[61] = 4:
+						act 'Niko':
+							*clr & cla
+							gs 'stat'
+							'<center><b><h4><font color=#E400FF><<"Nikolai [Niko] Volkov">></font></h4></b></center>'
+							if NikoPayback > 0:
+								'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/boy/niko/nikomisc/avatars/<<week>>.jpg"></center>'
+								'As you approach Niko, he sneers at you before saying, "What do you want?" You carefully reply with, "Hey I just want to talk." Scoffs then says, "Fine, why not?" You and Niko spend the next few minutes having a strained conversation until the end of the period.'
+							elseif NikoVolkovQW >= 5:
+								npc_rel['A189'] += 2
+								'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/boy/niko/nikoev/avatars/<<week>>.jpg"></center>'
+								'As you approach Niko, he gives you a warm smile before saying, "My princess graces with me with her presence. How can be of assistance?" You giggle before replying, "I have spare time and I can''t think of a better use of my time then spending it with you." Niko chuckles then grabs onto your hand, lifting it toward his face and giving it a soft kiss before saying, "Your wish is my command." You both the next few minutes chatting while exchanging loving glares until the end of the period.'
+							else
+								npc_rel['A189'] += 1
+								'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/boy/niko/nikoev/avatars/<<week>>.jpg"></center>'
+								'As you approach Niko, he gives you a warm smile before saying, "Ahh a lovely princess decides to grace me with her presence. How can I be of assistance?" You giggle before replying, "You''re so weird, I just want to chat for a bit okay?" Niko chuckles then grabs onto your hand, lifting it toward his face and giving it a soft kiss before saying, "Your wish is my command." You both begin chatting until the end of the period.'
+							end
+							act 'Finish class': gt 'gschool_lessons', 'short_break'
+						end
+					end
 				end
 			end
+		else
+			act 'Listen attentively (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
 		end
 		act'Daydream':
 			*clr & cla
@@ -1103,21 +1130,28 @@ if $ARGS[0] = 'geography':
 	'You walk into the classroom seeing Mrs. Sokoloff sitting by her desk. The rest of your fellow classmates walk in one by one under the watchful eye of Mrs. Sokoloff. Some of the students get a friendly smile while others get a stern look.'
 	*nl
 	'With no time to spare she sternly tells the class to open the page <<openpage>>. "I hope you all have done your homework." Mrs. Sokoloff is really a take no prisoners kind of teacher, she expects discipline and hard work, the ones able to abide by her rules are treated very kindly.'
-	act 'Listen attentively to Mrs. Sokoloff':
-		*clr & cla
-		grupvalue[4] -=1
-		grupvalue[3] += 1
-		if rand(0,2) = 0: pcs_grades += 1
-		'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/attention.jpg"></center>'
-		'You listen attentively to Mrs. Sokoloff for the duration of the class. Today''s lesson was interesting and informative, and you feel you learned from taking part in class.'
-		act 'Ask a question about the lesson':
+	gs 'willpower', 'misc', 'self', iif((pcs_grades < 50 or grupTipe = 3) and grupTipe ! 4, 'easy', iif(pcs_grades < 90 and grupTipe ! 4, 'medium', 'hard'))
+	if will_cost <= pcs_willpwr:
+		act 'Listen attentively to Mrs. Sokoloff (<<will_cost>> Willpower)':
 			*clr & cla
+			grupvalue[4] -=1
+			grupvalue[3] += 1
 			if rand(0,2) = 0: pcs_grades += 1
-			'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/ask.jpg"></center>'
-			'Mrs. Sokoloff nods approvingly, always happy to see her students engaged in her class. He happily spends some extra time explaining the topic again, and answers any extra questions you might have. You feel smarter, thoroughly understanding today''s lessons now.'
+			gs 'willpower', 'pay', 'self'
+			gs 'stat'
+			'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/attention.jpg"></center>'
+			'You listen attentively to Mrs. Sokoloff for the duration of the class. Today''s lesson was interesting and informative, and you feel you learned from taking part in class.'
+			act 'Ask a question about the lesson':
+				*clr & cla
+				if rand(0,2) = 0: pcs_grades += 1
+				'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/ask.jpg"></center>'
+				'Mrs. Sokoloff nods approvingly, always happy to see her students engaged in her class. He happily spends some extra time explaining the topic again, and answers any extra questions you might have. You feel smarter, thoroughly understanding today''s lessons now.'
+				act 'Wait for the end of the lesson': gs 'gschool_lessonsev2', 'geography'
+			end
 			act 'Wait for the end of the lesson': gs 'gschool_lessonsev2', 'geography'
 		end
-		act 'Wait for the end of the lesson': gs 'gschool_lessonsev2', 'geography'
+	else
+		act 'Listen attentively to Mrs. Sokoloff (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
 	end
 	act 'Don''t pay attention in class':
 		*clr & cla
@@ -1322,21 +1356,28 @@ if $ARGS[0] = 'history':
 	'You walk into the classroom seeing Mrs. Sokoloff sitting by her desk. The rest of your fellow classmates walk in one by one under the watchful eye of Mrs. Sokoloff. Some of the students get a friendly smile while others get a stern look.'
 	*nl
 	'With no time to spare she sternly tells the class to open the page <<openpage>>. "I hope you all have done your homework." Mrs. Sokoloff is really a take no prisoners kind of teacher, she expects discipline and hard work, the ones able to abide by her rules are treated very kindly.'
-	act 'Listen attentively to Mrs. Sokoloff':
-		*clr & cla
-		grupvalue[4] -= 1
-		grupvalue[3] += 1
-		if rand(0,2) = 0: pcs_grades += 1
-		'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/attention.jpg"></center>'
-		'You listen attentively to Mrs. Sokoloff for the duration of the class. Today''s lesson was interesting and informative, and you feel you learned from taking part in class.'
-		act 'Ask a question about the lesson':
+	gs 'willpower', 'misc', 'self', iif((pcs_grades < 50 or grupTipe = 3) and grupTipe ! 4, 'easy', iif(pcs_grades < 90 and grupTipe ! 4, 'medium', 'hard'))
+	if will_cost <= pcs_willpwr:
+		act 'Listen attentively to Mrs. Sokoloff (<<will_cost>> Willpower)':
 			*clr & cla
+			grupvalue[4] -= 1
+			grupvalue[3] += 1
 			if rand(0,2) = 0: pcs_grades += 1
-			'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/ask.jpg"></center>'
-			'Mrs. Sokoloff nods approvingly, always happy to see her students engaged in her class. He happily spends some extra time explaining the topic again, and answers any extra questions you might have. You feel smarter, thoroughly understanding today''s lessons now.'
+			gs 'willpower', 'pay', 'self'
+			gs 'stat'
+			'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/attention.jpg"></center>'
+			'You listen attentively to Mrs. Sokoloff for the duration of the class. Today''s lesson was interesting and informative, and you feel you learned from taking part in class.'
+			act 'Ask a question about the lesson':
+				*clr & cla
+				if rand(0,2) = 0: pcs_grades += 1
+				'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/ask.jpg"></center>'
+				'Mrs. Sokoloff nods approvingly, always happy to see her students engaged in her class. He happily spends some extra time explaining the topic again, and answers any extra questions you might have. You feel smarter, thoroughly understanding today''s lessons now.'
+				act 'Wait for the end of the lesson': gs 'gschool_lessonsev2', 'history'
+			end
 			act 'Wait for the end of the lesson': gs 'gschool_lessonsev2', 'history'
 		end
-		act 'Wait for the end of the lesson': gs 'gschool_lessonsev2', 'history'
+	else
+		act 'Listen attentively to Mrs. Sokoloff (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
 	end
 	act 'Don''t pay attention in class':
 		*clr & cla
@@ -1540,21 +1581,28 @@ if $ARGS[0] = 'biology':
 	'You go to your biology class and find a seat at your lab station. Before long all of your fellow students file in and takes their seats as well. Once the bell rings Miss Orlov takes roll call, you say here when your name is called. With that done, she gets up and starts walking around the room explaining todays lessons. Occasionally stopping at each lab station to make sure the students are doing the work correctly, she often gives words of encouragement if things are going well or stops and helps the student understand what they are doing wrong.'
 	*nl
 	'She occasionally asks questions and those that get them right, she heaps praise upon them. Those that get them wrong, she takes the time to explain why they were wrong and what the correct answer is. Then making sure the student understands, once she is sure the student understands their mistake she moves on with her lesson. She is always quick to help anyone with a problem or answer questions about class, always with that shy smile of hers.'
-	act 'Listen attentively to Miss Orlov':
-		*clr & cla
-		grupvalue[4] -= 1
-		grupvalue[3] += 1
-		if rand(0,2) = 0: pcs_grades += 1
-		'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/attention.jpg"></center>'
-		'You listen attentively to Miss Orlov for the duration of the class. Today''s lesson was interesting and informative, and you feel you learned from taking part in class.'
-		act 'Ask a question about the lesson':
+	gs 'willpower', 'misc', 'self', iif((pcs_grades < 50 or grupTipe = 3) and grupTipe ! 4, 'easy', iif(pcs_grades < 90 and grupTipe ! 4, 'medium', 'hard'))
+	if will_cost <= pcs_willpwr:
+		act 'Listen attentively to Miss Orlov (<<will_cost>> Willpower)':
 			*clr & cla
+			grupvalue[4] -= 1
+			grupvalue[3] += 1
 			if rand(0,2) = 0: pcs_grades += 1
-			'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/ask.jpg"></center>'
-			'Miss Orlov nods approvingly. She happily spends some extra time explaining the topic again to you, and answers any extra questions you might have. She only moves on with the lesson once she is sure she has fully answered your question. You feel like you learned a lot, thoroughly understanding today''s lessons now.'
+			gs 'willpower', 'pay', 'self'
+			gs 'stat'
+			'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/attention.jpg"></center>'
+			'You listen attentively to Miss Orlov for the duration of the class. Today''s lesson was interesting and informative, and you feel you learned from taking part in class.'
+			act 'Ask a question about the lesson':
+				*clr & cla
+				if rand(0,2) = 0: pcs_grades += 1
+				'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/ask.jpg"></center>'
+				'Miss Orlov nods approvingly. She happily spends some extra time explaining the topic again to you, and answers any extra questions you might have. She only moves on with the lesson once she is sure she has fully answered your question. You feel like you learned a lot, thoroughly understanding today''s lessons now.'
+				act 'Wait for the end of the lesson': gs 'gschool_lessonsev1', 'biology'
+			end
 			act 'Wait for the end of the lesson': gs 'gschool_lessonsev1', 'biology'
 		end
-		act 'Wait for the end of the lesson': gs 'gschool_lessonsev1', 'biology'
+	else
+		act 'Listen attentively to Miss Orlov (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
 	end
 	act 'Don''t pay attention in class':
 		*clr & cla
@@ -1759,6 +1807,20 @@ if $ARGS[0] = 'math_late':
 		gs 'stat'
 		'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/late/latem1.jpg"></center>'
 		'When you open the door and walk in Mr Tsarev stops talking and everyone turns their eyes towards you. "So good of you to join us Miss <<$pcs_lastname>>." Several of the kids smirk, a few look annoyed you interrupted class or that you are getting away with being late.'
+		gs 'willpower', 'misc', 'self', 'medium'
+		if will_cost <= pcs_willpwr:	
+			act 'Roll your eyes (<<will_cost>> Willpower)':
+				*clr & cla
+				demerit += 5
+				gs 'willpower', 'pay', 'self'
+				gs'stat'
+				'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/late/latem2.jpg"></center>'
+				'You roll your eyes a bit but say nothing in response. He shakes his head slightly and frowns. "I will have to report this Miss <<$pcs_lastname>>, now please take your seat. You have interrupted class enough."'
+				act 'Take your seat': gt 'gschool_lessons1', 'math'
+			end
+		else
+			act 'Roll your eyes (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
+		end
 		act 'Say you''re sorry':
 			*clr & cla
 			gs 'stat'
@@ -1767,14 +1829,6 @@ if $ARGS[0] = 'math_late':
 			'He shakes his head slightly and sighs a bit. "Very well Miss <<$pcs_lastname>> please take your seat, try not to let it happen again."'
 			act 'Take your seat': gt 'gschool_lessons1', 'math'
 		end
-		act 'Say nothing':
-			*clr & cla
-			demerit += 5
-			gs 'stat'
-			'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/late/latem2.jpg"></center>'
-			'You roll your eyes a bit but say nothing in response. He shakes his head slightly and frowns. "I will have to report this Miss <<$pcs_lastname>>, now please take your seat. You have interrupted class enough."'
-			act 'Take your seat': gt 'gschool_lessons1', 'math'
-		end
 	end
 end
 
@@ -1948,6 +2002,21 @@ if $ARGS[0] = 'literature_late':
 			end
 		else
 			'When you open the door and walk in Mrs Braakman stops talking and everyone turns their eyes towards you. Mrs Braakman address you in a cold tone. "Your late Miss <<$pcs_lastname>>, I will not tolerate students being late to my class." Several of the kids smirk, a few look annoyed you interrupted class.'
+			gs 'willpower', 'misc', 'self', 'medium'	
+			if will_cost <= pcs_willpwr:	
+				act 'Roll your eyes (<<will_cost>> Willpower)':
+					*clr & cla
+					demerit += 5
+					gs 'willpower', 'pay', 'self'
+					gs 'stat'
+					'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/late/latel1.jpg"></center>'
+					'You roll your eyes a bit but say nothing in response. She narrows her eyes at you a little and frowns. "I will have to report this Miss <<$pcs_lastname>>, now take your seat. You have interrupted class enough."'
+					act 'Take your seat': gt 'gschool_lessons1', 'literature'
+				end
+			else
+				act 'Roll your eyes (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
+			end
+
 			act 'Say you''re sorry':
 				*clr & cla
 				demerit += 5
@@ -1957,14 +2026,6 @@ if $ARGS[0] = 'literature_late':
 				'She shakes his head slightly and frowns. "Very well of course I will still have to report this Miss <<$pcs_lastname>>, now take your seat and might I suggest you set your alarm for earlier."'
 				act 'Take your seat': gt 'gschool_lessons1', 'literature'
 			end
-			act 'Say nothing':
-				*clr & cla
-				demerit += 5
-				gs 'stat'
-				'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/late/latel1.jpg"></center>'
-				'You roll your eyes a bit but say nothing in response. She narrows her eyes at you a little and frowns. "I will have to report this Miss <<$pcs_lastname>>, now take your seat. You have interrupted class enough."'
-				act 'Take your seat': gt 'gschool_lessons1', 'literature'
-			end
 		end
 	end
 end

+ 99 - 64
locations/gschool_lessons2.qsrc

@@ -9,26 +9,33 @@ if $ARGS[0] = 'computer':
 	'You go to your computer class and find a seat at one of the computer stations. Before long all of your fellow students file in and takes their seats as well. Once the bell rings Mr. Ivanov takes roll call, you say here when your name is called. With that done, he gets up and starts walking around the room explaining todays lessons. Occasionally stopping to look at the screen of varies students to make sure they are doing it right.'
 	*nl
 	'If he has to correct one of the nerds he will take his time and quietly explain it to them, giving them lots of encouragement. For everyone else he loudly proclaims what you did wrong, drawing attention to how easy this is. He makes sure the whole class knows about their mistake and he does it in such a condescending manner, like he is trying to prove to everyone how much smarter he is than you are, or maybe he just wants the others students to make fun of them. With Mr. Ivanov it is hard to tell. He doesn''t seem to approve of anyone but the nerds and harshly grades everyone else.'
-	act 'Listen attentively to Mr. Ivanov':
-		*clr & cla
-		compskl_exp += rand(1,2)
-		grupvalue[4] -= 1
-		grupvalue[3] +=1
-		'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/attention.jpg"></center>'
-		'You listen attentively to Mr. Ivanov for the duration of the class. Today''s lesson was interesting and informative, and you feel you learned from taking part in class.'
-		act 'Ask a question about the lesson':
+	gs 'willpower', 'misc', 'self', iif((pcs_grades < 50 or grupTipe = 3) and grupTipe ! 4, 'easy', iif(pcs_grades < 90 and grupTipe ! 4, 'medium', 'hard'))
+	if will_cost <= pcs_willpwr:
+		act 'Listen attentively to Mr. Ivanov (<<will_cost>> Willpower)':
 			*clr & cla
-			if rand(0,2) = 0: pcs_grades += 1
-			compskl_exp += rand(0,1)
-			'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/ask.jpg"></center>'
-			if grupTipe=3:
-				'Mr. Ivanov nods approvingly. He happily spends some extra time explaining the topic again to you, and answers any extra questions you might have. You feel like you learned a lot, thoroughly understanding today''s lessons now.'
-			else
-				'Mr. Ivanov audibly sighs. "Why are you unable to grasp this. I know you are not the smartest student, but this is very very simple. Even a small child should be able to grasp it." He goes on to explain the part you asked about again, but he does so in a completely belittling manner.'
+			compskl_exp += rand(1,2)
+			grupvalue[4] -= 1
+			grupvalue[3] +=1
+			'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/attention.jpg"></center>'
+			'You listen attentively to Mr. Ivanov for the duration of the class. Today''s lesson was interesting and informative, and you feel you learned from taking part in class.'
+			act 'Ask a question about the lesson':
+				*clr & cla
+				if rand(0,2) = 0: pcs_grades += 1
+				compskl_exp += rand(0,1)
+				gs 'willpower', 'pay', 'self'
+				gs 'stat'
+				'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/ask.jpg"></center>'
+				if grupTipe=3:
+					'Mr. Ivanov nods approvingly. He happily spends some extra time explaining the topic again to you, and answers any extra questions you might have. You feel like you learned a lot, thoroughly understanding today''s lessons now.'
+				else
+					'Mr. Ivanov audibly sighs. "Why are you unable to grasp this. I know you are not the smartest student, but this is very very simple. Even a small child should be able to grasp it." He goes on to explain the part you asked about again, but he does so in a completely belittling manner.'
+				end
+				act 'Wait for the end of the lesson': gs 'gschool_lessonsev1', 'computer'
 			end
 			act 'Wait for the end of the lesson': gs 'gschool_lessonsev1', 'computer'
 		end
-		act 'Wait for the end of the lesson': gs 'gschool_lessonsev1', 'computer'
+	else
+		act 'Listen attentively to Mr. Ivanov (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
 	end
 	act 'Don''t pay attention in class':
 		*clr & cla
@@ -248,20 +255,27 @@ if $ARGS[0] = 'science':
 	'You go to your biology class and find a seat at your lab station. Before long all of your fellow students file in and takes their seats as well. Once the bell rings Miss Orlov takes roll call, you say here when your name is called. With that done, she gets up and starts writing on the blackboard, she is wearing a fairly short skirt that nearly rides to high when she reaches up to write at the top of the blackboard. Which the boys often encourage by asking her questions about what ever it is she has written at the top of the blackboard that day.'
 	*nl
 	'She occasionally asks questions and those that get them right, she heaps praise upon them. Those that get them wrong, she takes the time to explain why they were wrong and what the correct answer is. Then making sure the student understands, once she is sure the student understands their mistake she moves on with her lesson. She is always quick to help anyone with a problem or answer questions about class, always with that shy smile of hers.'
-	act 'Listen attentively to Miss Orlov':
-		*clr & cla
-		grupvalue[4] -= 1
-		grupvalue[3] += 1
-		'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/attention.jpg"></center>'
-		'You listen attentively to Miss Orlov for the duration of the class. Today''s lesson was interesting and informative, and you feel you learned from taking part in class.'
-		act 'Ask a question about the lesson':
+	gs 'willpower', 'misc', 'self', iif((pcs_grades < 50 or grupTipe = 3) and grupTipe ! 4, 'easy', iif(pcs_grades < 90 and grupTipe ! 4, 'medium', 'hard'))
+	if will_cost <= pcs_willpwr:
+		act 'Listen attentively to Miss Orlov (<<will_cost>> Willpower)':
 			*clr & cla
-			if rand(0,2) = 0: pcs_grades += 1
-			'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/ask.jpg"></center>'
-			'Miss Orlov nods approvingly. She happily spends some extra time explaining the topic again to you, and answers any extra questions you might have. She only moves on with the lesson once she is sure she has fully answered your question. You feel like you learned a lot, thoroughly understanding today''s lessons now.'
+			grupvalue[4] -= 1
+			grupvalue[3] += 1
+			gs 'willpower', 'pay', 'self'
+			gs 'stat'
+			'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/attention.jpg"></center>'
+			'You listen attentively to Miss Orlov for the duration of the class. Today''s lesson was interesting and informative, and you feel you learned from taking part in class.'
+			act 'Ask a question about the lesson':
+				*clr & cla
+				if rand(0,2) = 0: pcs_grades += 1
+				'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/ask.jpg"></center>'
+				'Miss Orlov nods approvingly. She happily spends some extra time explaining the topic again to you, and answers any extra questions you might have. She only moves on with the lesson once she is sure she has fully answered your question. You feel like you learned a lot, thoroughly understanding today''s lessons now.'
+				act 'Wait for the end of the lesson': gs 'gschool_lessonsev1', 'science'
+			end
 			act 'Wait for the end of the lesson': gs 'gschool_lessonsev1', 'science'
 		end
-		act 'Wait for the end of the lesson': gs 'gschool_lessonsev1', 'science'
+	else
+		act 'Listen attentively to Miss Orlov (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
 	end
 	act 'Don''t pay attention in class':
 		*clr & cla
@@ -442,22 +456,29 @@ if $ARGS[0] = 'music':
 	gs 'stat'
 	'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/classmusic.jpg"></center>'
 	'You sit in the classroom and listen to Mr Vasilyev go on about how great music is, you will give him one thing. He is always up beat and positive about teaching art and encourages all of his students to take part.'
-	act 'Listen attentively to Mr. Vasilyev':
-		*clr & cla
-		grupvalue[4] -= 1
-		grupvalue[3] += 1
-		instrmusic_exp += rand(1,2)
-		'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/attention.jpg"></center>'
-		'You listen attentively to Mr. Vasilyev for the duration of the class. Today''s lesson was interesting and informative, and you feel you learned a lot about the history of music and famous artist.'
-		act 'Ask a question about the lesson':
+	gs 'willpower', 'misc', 'self', iif((pcs_grades < 50 or grupTipe = 3) and grupTipe ! 4, 'easy', iif(pcs_grades < 90 and grupTipe ! 4, 'medium', 'hard'))
+	if will_cost <= pcs_willpwr:
+		act 'Listen attentively to Mr. Vasilyev (<<will_cost>> Willpower)':
 			*clr & cla
-			instrmusic_exp += rand(0,1)
-			if rand(0,2) = 0: pcs_grades += 1
-			'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/classmusic.jpg"></center>'
-			'Mr. Vasilyev smiles, always happy to see his students engaged in his class. He happily spends some extra time explaining the topic again, and answers any extra questions you might have. You feel smarter, thoroughly understanding today''s lessons now.'
+			grupvalue[4] -= 1
+			grupvalue[3] += 1
+			instrmusic_exp += rand(1,2)
+			gs 'willpower', 'pay', 'self'
+			gs 'stat'
+			'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/attention.jpg"></center>'
+			'You listen attentively to Mr. Vasilyev for the duration of the class. Today''s lesson was interesting and informative, and you feel you learned a lot about the history of music and famous artist.'
+			act 'Ask a question about the lesson':
+				*clr & cla
+				instrmusic_exp += rand(0,1)
+				if rand(0,2) = 0: pcs_grades += 1
+				'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/classmusic.jpg"></center>'
+				'Mr. Vasilyev smiles, always happy to see his students engaged in his class. He happily spends some extra time explaining the topic again, and answers any extra questions you might have. You feel smarter, thoroughly understanding today''s lessons now.'
+				act 'Wait for the end of the lesson': gs 'gschool_lessonsev3', 'music'
+			end
 			act 'Wait for the end of the lesson': gs 'gschool_lessonsev3', 'music'
 		end
-		act 'Wait for the end of the lesson': gs 'gschool_lessonsev3', 'music'
+	else
+		act 'Listen attentively to Mr. Vasilyev (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
 	end
 	act 'Don''t pay attention in class':
 		*clr & cla
@@ -653,22 +674,29 @@ if $ARGS[0] = 'art':
 	gs 'stat'
 	'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/classart.jpg"></center>'
 	'You sit in the classroom and listen to Mr Vasilyev go on about how great art is, you will give him one thing. He is always up beat and positive about teaching art and encourages all of his students to take part.'
-	act 'Listen attentively to Mr. Vasilyev':
-		*clr & cla
-		grupvalue[4] -= 1
-		grupvalue[3] += 1
-		artslks_exp += rand(1,2)
-		'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/attention.jpg"></center>'
-		'You listen attentively to Mr. Vasilyev for the duration of the class. Today''s lesson was interesting and informative, and you feel you learned a lot about the history of art and famous artist.'
-		act 'Ask a question about the lesson':
+	gs 'willpower', 'misc', 'self', iif((pcs_grades < 50 or grupTipe = 3) and grupTipe ! 4, 'easy', iif(pcs_grades < 90 and grupTipe ! 4, 'medium', 'hard'))
+	if will_cost <= pcs_willpwr:
+		act 'Listen attentively to Mr. Vasilyev (<<will_cost>> Willpower)':
 			*clr & cla
-			artslks_exp += rand(0,1)
-			if rand(0,2) = 0: pcs_grades += 1
-			'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/ask.jpg"></center>'
-			'Mr. Vasilyev smiles, always happy to see his students engaged in his class. He happily spends some extra time explaining the topic again, and answers any extra questions you might have. You feel smarter, thoroughly understanding today''s lessons now.'
+			grupvalue[4] -= 1
+			grupvalue[3] += 1
+			artslks_exp += rand(1,2)
+			gs 'willpower', 'pay', 'self'
+			gs 'stat'
+			'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/attention.jpg"></center>'
+			'You listen attentively to Mr. Vasilyev for the duration of the class. Today''s lesson was interesting and informative, and you feel you learned a lot about the history of art and famous artist.'
+			act 'Ask a question about the lesson':
+				*clr & cla
+				artslks_exp += rand(0,1)
+				if rand(0,2) = 0: pcs_grades += 1
+				'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/ask.jpg"></center>'
+				'Mr. Vasilyev smiles, always happy to see his students engaged in his class. He happily spends some extra time explaining the topic again, and answers any extra questions you might have. You feel smarter, thoroughly understanding today''s lessons now.'
+				act 'Wait for the end of the lesson': gs 'gschool_lessonsev3', 'art'
+			end
 			act 'Wait for the end of the lesson': gs 'gschool_lessonsev3', 'art'
 		end
-		act 'Wait for the end of the lesson': gs 'gschool_lessonsev3', 'art'
+	else
+		act 'Listen attentively to Mr. Vasilyev (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
 	end
 	act 'Don''t pay attention in class':
 		*clr & cla
@@ -878,20 +906,27 @@ if $ARGS[0] = 'shop':
 	gs 'stat'
 	'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/classcomputer.jpg"></center>'
 	'You sit in the classroom and listen to the monotonous droning of your teacher, doing your best not to fall asleep.'
-	act 'Listen attentively to Mr. Kuznetsov':
-		*clr & cla
-		grupvalue[4] -= 1
-		grupvalue[3] += 1
-		'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/attention.jpg"></center>'
-		'You listen attentively to Mr. Kuznetsov for the duration of the class. Today''s lesson was interesting and informative, and you feel you learned from taking part in class.'
-		act 'Ask a question about the lesson':
+	gs 'willpower', 'misc', 'self', iif((pcs_grades < 50 or grupTipe = 3) and grupTipe ! 4, 'easy', iif(pcs_grades < 90 and grupTipe ! 4, 'medium', 'hard'))
+	if will_cost <= pcs_willpwr:
+		act 'Listen attentively to Mr. Kuznetsov (<<will_cost>> Willpower)':
 			*clr & cla
-			if rand(0,2) = 0: pcs_grades += 1
-			'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/class1.jpg"></center>'
-			'Mr. Kuznetsov nods approvingly, always happy to see his students engaged in his class. He happily spends some extra time explaining the topic again, and answers any extra questions you might have. You feel smarter, thoroughly understanding today''s lessons now.'
+			grupvalue[4] -= 1
+			grupvalue[3] += 1
+			gs 'willpower', 'pay', 'self'
+			gs 'stat'				
+			'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/attention.jpg"></center>'
+			'You listen attentively to Mr. Kuznetsov for the duration of the class. Today''s lesson was interesting and informative, and you feel you learned from taking part in class.'
+			act 'Ask a question about the lesson':
+				*clr & cla
+				if rand(0,2) = 0: pcs_grades += 1
+				'<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/classroom/class1.jpg"></center>'
+				'Mr. Kuznetsov nods approvingly, always happy to see his students engaged in his class. He happily spends some extra time explaining the topic again, and answers any extra questions you might have. You feel smarter, thoroughly understanding today''s lessons now.'
+				act 'Wait for the end of the lesson': gs 'gschool_lessonsev2', 'shop'
+			end
 			act 'Wait for the end of the lesson': gs 'gschool_lessonsev2', 'shop'
 		end
-		act 'Wait for the end of the lesson': gs 'gschool_lessonsev2', 'shop'
+	else
+		act 'Listen attentively to Mr. Kuznetsov (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
 	end
 	act 'Don''t pay attention in class':
 		*clr & cla

+ 4 - 4
locations/stol.qsrc

@@ -112,16 +112,16 @@ if $ARGS[0] = 'stolPar':
 	if steroid_have > 0: '<a href="exec:dynamic $use_steroids & gt ''stol'', ''stolPar''"><b>Take steroids.</b></a> Uses left: <<steroid_have>>.'
 	if aphrodisiac_have > 0: '<a href="exec:dynamic $use_aphrodisiac & gt ''stol'', ''stolPar''"><b>Chew aphrodisiac gum.</b></a> Uses left: <<aphrodisiac_have>>.'
 	
-	gs 'willpower', 'misc', 'self', iif(pcs_grades < 50 or grupTipe = 3, 'easy', iif(pcs_grades < 90, 'medium', 'hard'))
+	gs 'willpower', 'misc', 'self', iif((pcs_grades < 50 or grupTipe = 3) and grupTipe ! 4, 'easy', iif(pcs_grades < 90 and grupTipe ! 4, 'medium', 'hard'))
 	if lernHome > 0 and will_cost <= pcs_willpwr:
-		'<br>You have to do homework for school. Finishing everything will take <<lernHome>> hours.'
+		'<br>You have to your homework. Finishing everything will take <<lernHome>> hours.'
 		act 'Do your homework (1:00 and <<will_cost>> Willpower)':
 			cla & *clr
 			'<center><img <<$set_imgh>> src="images/locations/shared/apartment/homework.jpg"></center>'
 			minut += 60
 			lernHome -= 1
 			lern += 1
-			gs 'willpower', 'misc', 'self', iif(pcs_grades < 50 or grupTipe = 3, 'easy', iif(pcs_grades < 90, 'medium', 'hard'))
+			gs 'willpower', 'misc', 'self', iif((pcs_grades < 50 or grupTipe = 3) and grupTipe ! 4, 'easy', iif(pcs_grades < 90 and grupTipe ! 4, 'medium', 'hard'))
 			gs 'willpower', 'pay', 'self'
 			gs'stat'
 			'It took you one hour to '+iif(lernHome = 0, 'complete', 'do a part of')+' your homework.'
@@ -142,7 +142,7 @@ if $ARGS[0] = 'stolPar':
 			minut += 60 * lernHome
 			lern += 1 + lernHome/2
 			lernHome = 0
-			gs 'willpower', 'misc', 'self', iif(pcs_grades < 50 or grupTipe = 3, 'easy', iif(pcs_grades < 90, 'medium', 'hard'))
+			gs 'willpower', 'misc', 'self', iif((pcs_grades < 50 or grupTipe = 3) and grupTipe ! 4, 'easy', iif(pcs_grades < 90 and grupTipe ! 4, 'medium', 'hard'))
 			will_cost = will_cost * lernHome
 			gs'stat'