uni_admin.qsrc 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. # uni_admin
  2. !!This is the file containing the university administartion office.
  3. !!It is important to include an option to enroll in university, and therefore set the variable regarding the choice of study.
  4. !!The following variables will be set in this file.
  5. !! university['prep_enrolled'] is set to 1 if the player enrolls in the university preparation program.
  6. !! university['student'] is set to 1 if the player enrolls in a university program.
  7. !! $university['enrolled_in'] is set to the name of the university program the player enrols in. There is the following progams: teaching_studies
  8. !! university['enrolled_in_semester'] is set to the semester the player enrolls in starting at 1 for the first semester and ending with 8 for the last.
  9. if $ARGS[0] = 'start':
  10. $sexloc = 'uni_admin'
  11. $location_type = 'public_indoors'
  12. cla & *clr
  13. minut += 5
  14. $menu_loc = 'uni_admin'
  15. $menu_arg = 'start'
  16. $loc = 'uni_admin'
  17. $loc_arg = 'start'
  18. menu_off = 0
  19. gs 'stat'
  20. gs 'themes', 'indoors'
  21. '<center><b><font color="maroon">The University Administration Building</font></b></center>'
  22. '<center><img <<$set_imgh>> src="images/locations/city/island/university/admin/uni_admin.jpg"></center>'
  23. 'The main lobby is large with several pillars spread across the room. At each end of the room is a large set of stairs that go up to the next level. Several hallways going off in all directions stand opposite you.'
  24. if university['diploma'] > 0:
  25. 'You have graduated from the university.'
  26. elseif university['expelled_for_missing_exam'] = 0 and university['expelled'] = 1:
  27. 'You have been expelled from the university for failing your exams.'
  28. elseif university['expelled_for_missing_exam'] = 1:
  29. 'You have been expelled from the university for skipping your exams.'
  30. elseif func('uniutil', 'student', 'expelled_for_other_reason'):
  31. 'You have been expelled from the university for reasons unrelated to your exam results.'
  32. elseif university['student'] = 0:
  33. if university['enrolled_in_semester'] = 0:
  34. 'Enrollment period for new students is form May to August, All new students will start their classes in the week that includes September 1st'
  35. end
  36. if university['prep_enrolled'] = 1 and month = 8:
  37. 'You''ve enrolled in the preparatory classes.'
  38. elseif university['prep_enrolled'] = 1:
  39. 'You''ve enrolled in the preparatory classes. They will start in August'
  40. else
  41. 'You can take preparatory classes at the university on weekdays for 15000<b>₽</b>.'
  42. end
  43. 'Admission exams for the university are held in August.'
  44. end
  45. act 'Leave':
  46. minut += 2
  47. gt 'uni_grounds', 'main'
  48. end
  49. if university['prep_enrolled'] = 1 and university['entrance_exam_passed'] = 0 and month = 8:
  50. act 'Attend preparatory class (1:00)': gt 'uni_admin', 'take_prep'
  51. end
  52. !!if graduated school with good grade or
  53. if university['entrance_exam_passed'] = 0 and university['prep_enrolled'] = 1 and month = 8:
  54. act 'Take the entrance exam (1:00)': gt 'uni_admin', 'take_test'
  55. end
  56. if (university['entrance_exam_passed'] = 1 or university['prep_enrolled'] = 0) and university['student'] = 0 and university['diploma'] = 0 and age >= 17 and (mid($start_type,1,2) ! 'sg' or SchoolAtestat = 1) and month < 9 and month > 4 and university['exam_week'] = 0:
  57. act 'Enroll at the university': gt 'uni_admin', 'enrollment'
  58. end
  59. if university['enrolled_in_semester'] > 0 and university['enrolled_in_semester'] = university['semester_passed'] and university['semeter_passed'] < 8:
  60. act 'Register for your next semester': gt 'uni_admin', 'enrollment_semester'
  61. end
  62. !!the if below should only show up if Sveta tried to enroll and didn''t or couldn''t pay for the classes before
  63. if university['entrance_information'] = 1 and university['prep_enrolled'] = 0 and university['student'] = 0 and month < 9: gs 'uni_admin', 'prep_pay'
  64. end
  65. if $ARGS[0] = 'enrollment':
  66. $sexloc = 'uni_admin'
  67. cla & *clr
  68. minut += 15
  69. gs 'stat'
  70. '<center><b><font color="maroon">Enrollment Office</font></b></center>'
  71. '<center><img <<$set_imgh>> src="images/locations/city/island/university/admin/enrollment1.jpg"></center>'
  72. 'You enter the enrollment office, where there are several desks with women working behind them and a fair number of people around your age waiting in a side room. You inform them that you wish to enrol at the university. They take down your name and ask you to wait in the waiting room until your name is called. You walk into the other room and nod at the other prospective students before taking a seat.'
  73. act 'Wait your turn':
  74. cla & *clr
  75. '<center><b><font color="maroon">Enrollment office</font></b></center>'
  76. '<center><img <<$set_imgh>> src="images/locations/city/island/university/admin/enrollment2.jpg"></center>'
  77. 'You wait until until your name is called by one of the women, who leads you down a side hall to one of the offices. You take a seat and introduce yourself, and after a brief discussion the woman takes your information and enters it into the computer.'
  78. if class['school_grade_average'] >= 70 or university['entrance_exam_passed'] = 1:
  79. minut += 15
  80. 'She looks over your information, including that the classes for all new students will start in the week that includes September 1st, and fills in some data. Several minutes later, she turns to you and smiles, telling you that you are eligible to enrol at the university. She gives you a lot of paperwork and you spend some time filling it all out. Once done, she asks you to stand up so she can take your picture. As she works on your university ID card she tells you about the different degrees, giving you time to decide which one you want to choose.'
  81. act 'Teaching degree':
  82. cla
  83. 'You inform her you wish to acquire a teaching degree. She hands you a packet of information about the classes you will be attending and about dorm life. She then inquires if you will be signing up for any elective classes at this time.'
  84. act 'Not right now':
  85. cla
  86. 'You shake your head and tell her you don''t intend to sign up for any elective classes right now. She nods and makes a few more notes before handing over your finished paperwork, welcoming you to Saint Petersburg University. You get up and leave, looking forward to when you can come back and start your classes.'
  87. act 'Leave':gt 'uni_admin', 'start'
  88. end
  89. act 'Enrol':
  90. !!This sets the variables such that the player is enrolled in the first semester of the teaching program.
  91. university['prep_counter'] = 0
  92. university['prep_enrolled'] = 0
  93. university['student'] = 1
  94. $university['enrolled_in']= 'teaching_studies'
  95. university['enrolled_in_semester'] = 1
  96. gs 'homes_properties', 'set_ownership', 'university_dorm', 4
  97. !!This creates the classes for the first semester of the teaching program to be used by the grade system, and gives the player a starting grade value (which is a failing grade, the player have to study if they want to pass)
  98. gs 'grades', 'createclass', 'uni_teaching_studies_semester_1', 'general education 101', 3, 2, 'no', 'no', 1, 12
  99. gs 'grades', 'createclass', 'uni_teaching_studies_semester_1', 'teaching methods 101', 3, 2, 'no', 'no', 1, 12
  100. gs 'grades', 'createclass', 'uni_teaching_studies_semester_1', 'learning theories 101', 3, 2, 'no', 'no', 1, 12
  101. gs 'grades', 'grade_award', 'uni_teaching_studies_semester_1', 'general education 101', 35
  102. gs 'grades', 'grade_award', 'uni_teaching_studies_semester_1', 'teaching methods 101', 35
  103. gs 'grades', 'grade_award', 'uni_teaching_studies_semester_1', 'learning theories 101', 35
  104. cla
  105. 'You tell her you would like to pursue a teaching degree. She smiles and nods, then finishes filling out some more paperwork about the courses you can expect to take. Once your ID is done she hands it over, along with all of your paperwork. You are now officially enrolled as a student at the Saint Petersburg University. Finally she reminds you that including that the classes for all new students will start in the week that includes September 1st'
  106. if (day - week) >= 27 and month = 8:
  107. university['semester_week'] = 1
  108. *nl
  109. 'She tells you that you enrolled at the last minute, and the classes have already started this week.'
  110. end
  111. act 'Leave':gt 'uni_admin', 'start'
  112. !!Once we have the framework working, I will start working on some elective classes and add them here.
  113. !!act 'Take some elective classes':
  114. end
  115. end
  116. else
  117. university['entrance_information'] = 1
  118. minut += 5
  119. 'She looks over the information, filling in some data. Several minutes later she turns to you and frowns, telling you that you''re not eligible to enrol at the university at this time. Your grades from secondary school were not good enough. She informs you that with so many students applying, they can only take those with better grades, but you can still get in if you take the preparatory classes and pass them with a high enough grade. You do have to pay for them though.'
  120. act 'You don''t want to sign up':
  121. cla
  122. 'You shake your head and thank her, telling her you will think about it. She smiles at you and tells you she understands before you leave.'
  123. act 'Leave class':gt 'uni_admin', 'start'
  124. end
  125. act 'You don''t have enough money':
  126. cla
  127. 'You tell her you don''t have enough money to pay for the classes. She nods in understanding and tells you to come back and sign up later if you get the money. You thank her for the information and leave.'
  128. act 'Leave class':gt 'uni_admin', 'start'
  129. end
  130. gs 'uni_admin', 'prep_pay'
  131. end
  132. end
  133. end
  134. if $ARGS[0] = 'enrollment_semester':
  135. $sexloc = 'uni_admin'
  136. cla & *clr
  137. minut += 15
  138. gs 'stat'
  139. '<center><b><font color="maroon">Enrollment Office</font></b></center>'
  140. '<center><img <<$set_imgh>> src="images/locations/city/island/university/admin/enrollment1.jpg"></center>'
  141. 'You enter the enrollment office, where there are several desks with women working behind them and a fair number of people around your age waiting in a side room. You inform them that you wish to register for your next semester.'
  142. act 'Wait your turn':
  143. cla & *clr
  144. '<center><b><font color="maroon">Enrollment office</font></b></center>'
  145. '<center><img <<$set_imgh>> src="images/locations/city/island/university/admin/enrollment2.jpg"></center>'
  146. 'You wait until until your name is called by one of the women, who leads you down a side hall to one of the offices. You take a seat and introduce yourself, and after a brief discussion the woman takes your information and enters it into the computer.'
  147. if $university['enrolled_in']= 'teaching_studies':
  148. minut += 15
  149. 'She looks over your information and fills in some data. Several minutes later she turns to you and smiles, telling you that you since you passed your last semester you can register in the '+trim(MID(' first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, tenth', (university['enrolled_in_semester']+1)*8,7))+' of the Teaching Studies Program. She gives you the paperwork and you spend some time filling it all out.'
  150. act 'Enrol':
  151. !!This sets the variables such that the player is enrolled in next semester of the teaching program.
  152. university['enrolled_in_semester'] += 1
  153. if university['enrolled_in_semester'] = 2:
  154. !!This creates the classes for the second semester of the teaching program to be used by the grade system, and gives the player a starting grade value (which is a failing grade, the player have to study if they want to pass)
  155. gs 'grades', 'createclass', 'uni_teaching_studies_semester_2', 'general education 102', 3, 2, 'no', 'no', 1, 12
  156. gs 'grades', 'createclass', 'uni_teaching_studies_semester_2', 'teaching methods 102', 3, 2, 'no', 'no', 1, 12
  157. gs 'grades', 'createclass', 'uni_teaching_studies_semester_2', 'psychology of a student 101', 3, 2, 'no', 'no', 1, 12
  158. gs 'grades', 'grade_award', 'uni_teaching_studies_semester_2', 'general education 102', (class['uni_teaching_studies_semester_1_general education 101_grade']/3+10)
  159. gs 'grades', 'grade_award', 'uni_teaching_studies_semester_2', 'teaching methods 102', (class['uni_teaching_studies_semester_1_teaching methods 101_grade']/3+10)
  160. gs 'grades', 'grade_award', 'uni_teaching_studies_semester_2', 'psychology of a student 101', 35
  161. elseif university['enrolled_in_semester'] = 3:
  162. !!This creates the classes for the third semester of the teaching program to be used by the grade system, and gives the player a starting grade value (which is a failing grade, the player have to study if they want to pass)
  163. gs 'grades', 'createclass', 'uni_teaching_studies_semester_3', 'general education 201', 3, 2, 'no', 'no', 1, 12
  164. gs 'grades', 'createclass', 'uni_teaching_studies_semester_3', 'assessment 201', 3, 2, 'no', 'no', 1, 12
  165. gs 'grades', 'createclass', 'uni_teaching_studies_semester_3', 'learning theories 201', 3, 2, 'no', 'no', 1, 12
  166. gs 'grades', 'grade_award', 'uni_teaching_studies_semester_3', 'general_education_201', ((class['uni_teaching_studies_semester_1_general education 101_grade'] + class['uni_teaching_studies_semester_2_general education 102_grade'])/6+10)
  167. gs 'grades', 'grade_award', 'uni_teaching_studies_semester_3', 'learning theories 201', (class['uni_teaching_studies_semester_1_teaching methods 101_grade']/3+10)
  168. gs 'grades', 'grade_award', 'uni_teaching_studies_semester_3', 'assessment 201', 35
  169. elseif university['enrolled_in_semester'] = 4:
  170. !!This creates the classes for the fourth semester of the teaching program to be used by the grade system, and gives the player a starting grade value (which is a failing grade, the player have to study if they want to pass)
  171. gs 'grades', 'createclass', 'uni_teaching_studies_semester_4', 'general education 202', 3, 2, 'no', 'no', 1, 12
  172. gs 'grades', 'createclass', 'uni_teaching_studies_semester_4', 'learning theories 202', 3, 2, 'no', 'no', 1, 12
  173. gs 'grades', 'createclass', 'uni_teaching_studies_semester_4', 'psychology of a student 201', 3, 2, 'no', 'no', 1, 12
  174. gs 'grades', 'grade_award', 'uni_teaching_studies_semester_4', 'general education 202', ((class['uni_teaching_studies_semester_1_general education 101_grade'] + class['uni_teaching_studies_semester_2_general education 102_grade'] + class['uni_teaching_studies_semester_3_general education 201_grade'])/9+10)
  175. gs 'grades', 'grade_award', 'uni_teaching_studies_semester_4', 'learning theories 202', ((class['uni_teaching_studies_semester_1_teaching methods 101_grade'] + class['uni_teaching_studies_semester_3_teaching methods 201_grade'])/6+10)
  176. gs 'grades', 'grade_award', 'uni_teaching_studies_semester_4', 'psychology of a student 201', (class['uni_teaching_studies_semester_2_psychology of a student 101_grade']/3+10)
  177. end
  178. cla
  179. 'You tell her you would like to continue pursuing a teaching degree. She smiles and nods, then finishes filling out some more paperwork about the courses you can expect to take.'
  180. if (day - week) >= 27 and month = 8:
  181. university['semester_week'] = 1
  182. *nl
  183. 'She tells you that you enrolled at the last minute, and the classes have already started this week.'
  184. end
  185. act 'Leave':gt 'uni_admin', 'start'
  186. !!Once we have the framework working, I will start working on some elective classes and add them here.
  187. !!act 'Take some elective classes':
  188. end
  189. end
  190. end
  191. end
  192. if $ARGS[0] = 'prep_pay':
  193. if money >= 15000:
  194. act 'Pay for the preparatory classes (15000<b>₽</b>) (Cash)':
  195. cla & *clr
  196. minut += 10
  197. money -= 15000
  198. gs 'stat'
  199. university['prep_enrolled'] = 1
  200. '<center><b><font color="maroon">Enrollment Office</font></b></center>'
  201. '<center><img <<$set_imgh>> src="images/locations/city/island/university/admin/payment.jpg"></center>'
  202. 'You go back to the enrollment office and pay 15000<b>₽</b> for the preparatory classes. They are held every weekday until <b>21:00</b>.'
  203. act 'Leave':gt 'uni_admin', 'start'
  204. end
  205. end
  206. if karta >= 15000:
  207. act 'Pay for the preparatory classes (15000<b>₽</b>) (Card)':
  208. cla & *clr
  209. minut += 10
  210. karta -= 15000
  211. gs 'stat'
  212. university['prep_enrolled'] = 1
  213. '<center><b><font color="maroon">Enrollment Office</font></b></center>'
  214. '<center><img <<$set_imgh>> src="images/locations/city/island/university/admin/payment.jpg"></center>'
  215. 'You go back to the enrollment office and pay 15000<b>₽</b> for the preparatory classes. They are held every weekday until <b>21:00</b>.'
  216. act 'Leave':gt 'uni_admin', 'start'
  217. end
  218. end
  219. end
  220. if $ARGS[0] = 'take_prep':
  221. $sexloc = 'uni_admin'
  222. cla & *clr
  223. minut += 60
  224. university['prep_counter'] += 1
  225. gs 'exp_gain', 'intel', 1 + (mentats_dose - rand(0,mentats_dose))
  226. gs 'stat'
  227. '<center><b><font color="maroon">Preparatory Class</font></b></center>'
  228. '<center><img <<$set_imgh>> src="images/locations/city/island/university/admin/prepcourse1.jpg"></center>'
  229. 'You attend the preparatory class for an hour. You pay close attention to what is being said and take notes for the entrance examination later on.'
  230. act 'Leave class':gt 'uni_admin', 'start'
  231. end
  232. if $ARGS[0] = 'take_test':
  233. $sexloc = 'uni_admin'
  234. cla & *clr
  235. minut += 60
  236. gs 'exp_gain', 'intel', 1 + (mentats_dose - rand(0,mentats_dose))
  237. gs 'stat'
  238. '<center><b><font color="maroon">Entrance Exam</font></b></center>'
  239. '<center><img <<$set_imgh>> src="images/locations/city/island/university/admin/prepcourse1.jpg"></center>'
  240. 'You enter the exam room and take your seat. A professor comes out and talks about the different parts of the exam you will be taking and what is required to pass. Once he''s finished, he passes out the papers and starts the clock. You have one hour to complete the test.'
  241. if pcs_intel +university['prep_counter'] >= 100:
  242. university['entrance_exam_passed'] = 1
  243. 'You completed the entrance examination and passed it with a perfect score.'
  244. elseif pcs_intel + university['prep_counter'] >= 80:
  245. university['entrance_exam_passed'] = 1
  246. 'You completed the entrance examination and passed it.'
  247. else
  248. university['entrance_exam_passed'] = -1
  249. 'You completed the entrance exam, but failed to pass.'
  250. end
  251. act 'Leave the exam room':gt 'uni_admin', 'start'
  252. end
  253. --- uni_admin ---------------------------------