# journal_school

!! 12-09-22 - Content split and organised to simplify Journal.

if $ARGS[0] = 'coursesinfo':
	$jumploc = 'generalsub'
	gs 'journal', 'journalmenu'

	'<center><h2>Class schedule</h2></center>'

	'Monday: Math, Russian, Literature, Art, Biology, P.E'
	'Tuesday: English, Geography, Science, Shop, Computer, Music'
	'Wednesday: Math, Russian, Biology, History, Computer and P.E.'
	'Thursday: English, Geography, Science, Shop, Computer, Music'
	'Friday: Math, Russian, Literature, Art, History and P.E.'

	'<center><h2>Grades</h2></center>'

	gs 'grades', 'assing_grade_description', 'school'

	'Math: <<$class[''school_math_grade'']>> (<<class[''school_math_grade'']>>) Russian: <<$class[''school_rus_grade'']>> (<<class[''school_rus_grade'']>>) Literature: <<$class[''school_lit_grade'']>> (<<class[''school_lit_grade'']>>) Art: <<$class[''school_art_grade'']>> (<<class[''school_art_grade'']>>) Biology: <<$class[''school_bio_grade'']>> (<<class[''school_bio_grade'']>>) English: <<$class[''school_eng_grade'']>> (<<class[''school_eng_grade'']>>) Geography: <<$class[''school_geo_grade'']>> (<<class[''school_geo_grade'']>>) Science: <<$class[''school_sci_grade'']>> (<<class[''school_sci_grade'']>>) History: <<$class[''school_his_grade'']>> (<<class[''school_his_grade'']>>) Shop: <<$class[''school_shop_grade'']>> (<<class[''school_shop_grade'']>>) Computer: <<$class[''school_comp_grade'']>> (<<class[''school_comp_grade'']>>) Music: <<$class[''school_mus_grade'']>> (<<class[''school_mus_grade'']>>) P.E.: <<$class[''school_pe_grade'']>> (<<class[''school_pe_grade'']>>)'
	*nl
	'A grade of 1 means "Very Poor" and is generally only used for absence. 2 means "Unsatisfactory" and is also a falling grade. 3 means "Satisfactory" and is a passing grade. 4 means "Good". 5 means "Excellent" and is only given to the best students. (the number in the parenthesis is the variable grade which is what is changed by the actions <<$pcs_nickname>> makes, which is the translated to the actual grade.)'
	*nl

	gs 'grades', 'grade above', 'school', 90
	gs 'grades', 'grade above', 'school', 70
	gs 'grades', 'grade above', 'school', 50
	gs 'grades', 'grade above', 'school', 40

	if class['school_grades_above_90'] = 13:
		'You are getting top marks in all your classes. You are one of the best student in the school, maybe even the best student in school.'
	elseif class['school_grades_above_90'] > 6 and class['school_grades_above_40'] = 13:
		'You are getting top marks in more that half of your classes and not failing any of the others. You are one of the best students in the school.'
	elseif class['school_grades_above_90'] > 6:
		'You are getting top marks in more that half of your classes and even if you are failing some of the others you are still one of the best students in the school and should have no problem getting into the university if you want.'
	elseif class['school_grades_above_90'] > 0 and class['school_grades_above_70'] = 13:
		'You are only getting top marks in a few of your classes but the rest of you grades are still good. You should have no trouble getting into university if you want.'
	elseif class['school_grades_above_90'] > 0 and class['school_grades_above_70'] > 10 and class['school_grades_above_40'] = 13:
		'You are only getting top marks in a few of your classes but only a few of your grades are bad and you are not failing any classes. You should probably have no trouble getting into university if you want, but improving the bad grades would not be a bad idea.'
	elseif class['school_grades_above_90'] > 0 and class['school_grades_above_70'] > 10:
		'You are only getting top marks in a few of your classes but only a few of your grades are bad and you are failing some classes. If you want to get into university you should probably try to improve the failing and bad grades.'
	elseif class['school_grades_above_90'] > 0 and class['school_grades_above_40'] = 13:
		'You''re only getting top marks in some of your classes and a lot of bad grades, but you''re not failing any classes. You need to improve your bad grades if you want to get into university.'
	elseif class['school_grades_above_90'] > 0 and class['school_grades_above_40'] > 10:
		'You''re getting top marks in a few of your classes, but are failing some of the others. You should improve your grades if you want to get into university.'
	elseif class['school_grades_above_90'] > 0 and class['school_grades_above_40'] > 6:
		'You are getting top marks in a few of your classes but failing a lot of classes. If you want to get into university you need to do something about your failing and bad grades.'
	elseif class['school_grades_above_90'] > 0:
		'Even a top mark or two is not helping when you are failing more than half your classes. It will require a lot of work if you want to go to a university after school.'
	elseif class['school_grades_above_70'] = 13:
		'You are getting good grades in all of your classes, but no excellent grades. You should have no trouble getting into university if you want, but getting some of those excellent marks will not hurt.'
	elseif class['school_grades_above_70'] > 6 and class['school_grades_above_40'] =13:
		'You are getting good grades in over half of your classes, but no excellent grades. At least you''re not failing any classes. It wouldn''t hurt to improve some of the bad grades, especially if you want to get into university.'
	elseif class['school_grades_above_70'] > 6 and class['school_grades_above_40'] >10:
		'You are getting good grades in over half of your classes, but no excellent grades and you are failing a few classes. If you want to get into university, then you''ll need to improve some of the bad grades.'
	elseif class['school_grades_above_70'] > 0 and class['school_grades_above_40'] = 13:
		'You are getting good grades in a few of your classes, but no excellent grades. At least you''re not failing any classes. If you want to get into university, then you''ll need to improve some of the bad grades.'
	elseif class['school_grades_above_70'] > 0 and class['school_grades_above_40'] >10:
		'You are getting good grades in a few of your classes but no excellent grades and you are failing a few classes. If you want to get into university, then you''ll need to improve some of the bad grades.'
	elseif class['school_grades_above_70'] > 0 and class['school_grades_above_40'] >6:
		'You are getting good grades in a few of your classes, but no excellent grades and you are failing a lot of classes. If you want to get into university, then you''ll really need to improve your grades in some of your failing classes.'
	elseif class['school_grades_above_70'] > 0:
		'A good grade or two is not not enough when you are failing more than half your classes. It will require a lot of work to turn this one around.'
	elseif class['school_grades_above_40'] = 13:
		'You are not getting any good grades, but at least you are not failing any classes. It will require a lot of work if you want to go to a university after school.'
	elseif class['school_grades_above_40']  > 10:
		'Failing this many classes puts you in danger of not graduating.'
	elseif class['school_grades_above_40']  > 6:
		'You are failing a lot of your classes and are barely passing the rest. You won''t graduate if you can''t get your grades up.'
	else
		'You are failing all of your classes! You need to do something about this if you want to graduate.'
	end

	act 'Go back': gt 'journal', 'generaltab'
	gs 'journal_school', 'leaveactions'
	
!! courses
end


!! Removing crosslink to gschool_groups
if $ARGS[0] = 'create_grid':
	$grid_text = ''
	grid_count = 0
	
	temp_grid_grouptipe = ARGS[1]
	$temp_grid_groupname = $ARGS[2]
	
	'<center><table cellspacing="3">'

	i = 1
	:grid_loop
		if npc_grupTipe['A<<i>>'] = temp_grid_grouptipe and schoolenable['A<<i>>'] = 1:

			$grid_text += '<td><table bgcolor=<<$bcolor2>>><tr><td align="center"><a href="exec: gt ''journal_school'', ''' + $temp_grid_groupname + ''' "><img  height="100" src="images/characters/shared/headshots_main/<<i>>.jpg"></a></td></tr><tr><td align="center"><<$npc_usedname[''A<<i>>'']>></td></tr></table>' + '</td>'

			grid_count += 1
			if grid_count = 6 and npc_grupTipe['A<<i>>'] = temp_grid_grouptipe:
				$grid_text +='</tr><tr>'
				grid_count = 0
			end
		end

		i += 1
	
	if i <= aarraynumber: jump 'grid_loop'

	'<<$grid_text>>'
	'</table></center>'
	
	killvar 'i'
	killvar 'temp_grid_gruptipe'
	killvar '$temp_grid_groupname'
end


if $ARGS[0] = 'school':
	$jumploc = 'generalsub'
	gs 'journal', 'journalmenu'
	'<center><h2>School</h2></center>'
	'You attend the secondary school in Pavlovsk and have known most of your classmates your whole life. You are on friendly terms with some of them and less so with others. The relationships you''ve had have changed over the years. The school is fairly new, built only a few years ago along with a new sports field that some students use after school. When the school was built it was state of the art, but as the years have passed, it is starting to fall into disrepair. The old school building was left to rot and is now a shell of its former self. It''s sometimes used by the students as a place to hang out. There are four different cliques at the school that most of the students belong to while the rest are the outcasts who no one wants to have anything to do with unless it involves bullying them.'
	*nl
	'There are the <b>Cool kids</b>. They are the ones with that <i>IT</i> factor. Maybe they are wealthy, charming, possess a good sense of style, are just good looking, or all of the above. They are mostly concerned with appearances above all things. If you don''t look good, then they don''t consider you worthy.'
	*nl
	'Next are the <b>Jocks</b>. They are all into one or more sports and spend most of their time working out or playing sports and look down on those with no athletic ability. There is some overlap between them and the cool kids and they mostly get along with each other. '
	*nl
	'Following them are the <b>Nerds</b>, who are all into what many consider ''nerdy'' or ''geeky'' stuff like cosplay, role playing games, or other fringe activities. Most of them are also very smart and do well in school. They tend to keep their heads down and focus on doing their school work.'
	
	*nl
	'The last group are the <b>Gopniks</b>. They are a rowdy bunch that range from small time criminals, to party animals and trouble makers. They thumb their nose at authority and are often barely passing their classes, leaving many to wonder why they bother coming to school at all.'
	*nl
	
	
	'<center><h2>Students & Teachers</h2></center>'

	'<center><h2>Cool kids</h2></center>'
	gs 'journal_school', 'create_grid', 1, 'popular'

	'<center><h2>Jocks</h2></center>'
	gs 'journal_school', 'create_grid', 2, 'jocks'

	'<center><h2>Nerds</h2></center>'
	gs 'journal_school', 'create_grid', 3, 'nerds'

	'<center><h2>Gopniks</h2></center>'
	gs 'journal_school', 'create_grid', 4, 'gopniks'

	'<center><h2>Outcast</h2></center>'
	gs 'journal_school', 'create_grid', 5, 'outcasts'

	'<center><h2>Teachers & Facility</h2></center>'
	gs 'journal_school', 'create_grid', 6, 'teachers'


	act 'Go back': gt 'journal', 'generaltab'
	gs 'journal_school', 'leaveactions'

end


if $ARGS[0] = 'popular':
	*clr & cla
	gs 'journal', 'journalmenu'

	'<center><h2>Cool kids</h2></center>'
	'All the popular kids listed by popularity within their own clique, which is mostly based on style, natural charm, good looks and how wealthy their family is.'
	
	*nl
	!!Dima
	gs 'journal_NPC_information', 'A1',   'gschool'
	*nl
	!!Bella
	gs 'journal_NPC_information', 'A22',  'gschool'
	*nl
	!!Irina
	gs 'journal_NPC_information', 'A17',  'gschool'
	*nl
	!!Vicky
	gs 'journal_NPC_information', 'A15',  'gschool'
	*nl
	!!Stasya
	gs 'journal_NPC_information', 'A139', 'gschool'
	*nl
	!!Marcus
	gs 'journal_NPC_information', 'A146', 'gschool'
	*nl
	!!Lizaveta
	gs 'journal_NPC_information', 'A140', 'gschool'
	*nl
	!!Andrey
	gs 'journal_NPC_information', 'A147', 'gschool'
	*nl
	!!Katja
	gs 'journal_NPC_information', 'A14',  'gschool'
	*nl
	!!Sonja
	if npc_grupTipe['A25'] = 1: 
		gs 'journal_NPC_information', 'A25', 'gschool'
		*nl
	end
	!!Mefodiy
	gs 'journal_NPC_information', 'A148', 'gschool'
	*nl
	!!Igor
	gs 'journal_NPC_information', 'A4',   'gschool'

	act 'Go back': gt 'journal_school', 'school'
	gs 'journal_school', 'leaveactions'

end


if $ARGS[0] = 'jocks':
	*clr & cla
	gs 'journal', 'journalmenu'

	'<center><h2>Jocks</h2></center>'
	'All the jocks listed by popularity within their own clique, which mostly is how gifted they are with sports and their attitude.'

	*nl
	!!Lazar
	gs 'journal_NPC_information', 'A149', 'gschool'
	*nl
	!!Albina
	gs 'journal_NPC_information', 'A23',  'gschool'
	*nl
	!!Ivan
	gs 'journal_NPC_information', 'A3',   'gschool'
	*nl
	!!Christina
	gs 'journal_NPC_information', 'A18',  'gschool'
	*nl
	!!Svyatoslav
	gs 'journal_NPC_information', 'A8',   'gschool'
	*nl
	!!Fedor
	if npc_grupTipe['A5'] = 2: 
		gs 'journal_NPC_information', 'A5', 'gschool'
		*nl
	end
	!!Vanya
	gs 'journal_NPC_information', 'A165', 'gschool'
	*nl
	!!Lariska
	gs 'journal_NPC_information', 'A13',  'gschool'
	*nl
	!!Erast
	gs 'journal_NPC_information', 'A150', 'gschool'
	*nl
	!!Veronika
	gs 'journal_NPC_information', 'A141', 'gschool'
	*nl
	!!Lina
	gs 'journal_NPC_information', 'A19',  'gschool'

	act 'Go back': gt 'journal_school', 'school'
	gs 'journal_school', 'leaveactions'
end


if $ARGS[0] = 'nerds':
	*clr & cla
	gs 'journal', 'journalmenu'

	'<center><h2>Nerds</h2></center>'
	'All the nerds in your school, by their own internal pecking order. It seems even nerds have a hierarchy.'

	*nl	
	!!Feofan
	gs 'journal_NPC_information', 'A152', 'gschool'
	*nl
	!!Artem
	gs 'journal_NPC_information', 'A2',   'gschool'
	*nl
	!!Zinaida
	gs 'journal_NPC_information', 'A142', 'gschool'
	*nl
	!!Gerasim
	gs 'journal_NPC_information', 'A153', 'gschool'
	*nl
	!!Julia
	gs 'journal_NPC_information', 'A12',  'gschool'
	*nl
	!!Petka
	gs 'journal_NPC_information', 'A6',   'gschool'
	*nl
	!!Natasha
	gs 'journal_NPC_information', 'A16',  'gschool'
	*nl
	!!Evgeny
	gs 'journal_NPC_information', 'A151', 'gschool'
	*nl
	!!Natalia
	gs 'journal_NPC_information', 'A240', 'gschool'

	act 'Go back': gt 'journal_school', 'school'
	gs 'journal_school', 'leaveactions'
end


if $ARGS[0] = 'gopniks':
	*clr & cla
	gs 'journal', 'journalmenu'

	'<center><h2>Gopniks</h2></center>'
	'All the gopniks listed by popularity within their own clique, which is mostly how tough they are, their attitude and how scared the rest are of them. The girls don''t have the respect of the boys, and most are seen as beneath the guys.'

	*nl
	!!Vitek
	gs 'journal_NPC_information', 'A9',   'gschool'
	*nl
	!!Dan
	gs 'journal_NPC_information', 'A10',  'gschool'
	*nl
	!!Vasily
	gs 'journal_NPC_information', 'A11',  'gschool'
	*nl
	!!Roman
	gs 'journal_NPC_information', 'A157', 'gschool'
	*nl
	!!Arkadi
	gs 'journal_NPC_information', 'A156', 'gschool'
	*nl
	!!Valentin
	gs 'journal_NPC_information', 'A158', 'gschool'
	*nl
	!!Radomir
	gs 'journal_NPC_information', 'A154', 'gschool'
	*nl
	!!Katyusha
	gs 'journal_NPC_information', 'A145', 'gschool'
	*nl
	!!Pauline
	gs 'journal_NPC_information', 'A24',  'gschool'
	*nl
	!!Lena
	gs 'journal_NPC_information', 'A20',  'gschool'
	*nl
	!!Alyona
	gs 'journal_NPC_information', 'A143', 'gschool'
	*nl
	!!Lera
	gs 'journal_NPC_information', 'A21',  'gschool'
	*nl
	!!Anushka
	gs 'journal_NPC_information', 'A144', 'gschool'
	*nl
	!!Lavrenti
	gs 'journal_NPC_information', 'A155', 'gschool'
	*nl
	!!Nikolai
	gs 'journal_NPC_information', 'A189', 'gschool'

	act 'Go back': gt 'journal_school', 'school'
	gs 'journal_school', 'leaveactions'
end


if $ARGS[0] = 'outcasts':
	*clr & cla
	gs 'journal', 'journalmenu'

	'<center><h2>Outcast</h2></center>'

	!!Lesco
	gs 'journal_NPC_information', 'A7',   'gschool'
	*nl
	!!Petia
	gs 'journal_NPC_information', 'A159', 'gschool'
	*nl
	!!Sonia
	if npc_grupTipe['A25'] = 5: 
		gs 'journal_NPC_information', 'A25', 'gschool'
		*nl
	end
	!!Fedor
	if npc_grupTipe['A5']  = 5: 
		gs 'journal_NPC_information', 'A5',  'gschool'
	end

	act 'Go back': gt 'journal_school', 'school'
	gs 'journal_school', 'leaveactions'
end


if $ARGS[0] = 'teachers':
	*clr & cla
	gs 'journal', 'journalmenu'

	'<center><h2>Teachers & Facility</h2></center>'

	!!Aleksandrina
	gs 'journal_NPC_information', 'A134', 'gschool'
	*nl
	!!Ruslan
	gs 'journal_NPC_information', 'A132', 'gschool'
	*nl
	!!Anatoly
	gs 'journal_NPC_information', 'A26',  'gschool'
	*nl
	!!Yeva
	gs 'journal_NPC_information', 'A135', 'gschool'
	*nl
	!!Serafim
	gs 'journal_NPC_information', 'A129', 'gschool'
	*nl
	!!Makar
	gs 'journal_NPC_information', 'A128', 'gschool'
	*nl
	!!Raven
	gs 'journal_NPC_information', 'A137', 'gschool'
	*nl
	!!Ilya
	gs 'journal_NPC_information', 'A130', 'gschool'
	*nl
	!!Viktor
	gs 'journal_NPC_information', 'A131', 'gschool'
	*nl
	!!Mikhail
	gs 'journal_NPC_information', 'A69',  'gschool'
	*nl
	!!Arina
	gs 'journal_NPC_information', 'A138', 'gschool'
	*nl
	!!Olga
	gs 'journal_NPC_information', 'A136', 'gschool'
	*nl
	!!Rolan
	gs 'journal_NPC_information', 'A133', 'gschool'


	act 'Go back': gt 'journal_school', 'school'
	gs 'journal_school', 'leaveactions'

end



!! Helper functions

if $ARGS[0] = 'leaveactions':
	act 'Put your notebook down': 		 
		killvar 'jumploc'
		jclose = 1
		gt $loc, $loc_arg
	end	
end

--- journal_school ---------------------------------
