uni_admin.qsrc 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. # uni_admin
  2. !!This is the file containing the university administartion office.
  3. !!It is important since include to option to enroll in university, and therefore sets the variable regarding the choice of study.
  4. !!The follwoing vables will be set in this file.
  5. !! university['prep_enrolled'] is set to 1 in the player enrolls in the university preparation program.
  6. !! university['student'] is set to 1 in the player enrolls in a university program.
  7. !! $university['enrolled_in'] is set to the name of the university program the player enrolls in, there is the following progams: teaching_studies
  8. !! university['enrolled_in_semester'] is set to the semester the player enrolls in starting fom 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 across the room, on each end is a large set of stairs that go up to the next level. Opposite you is a long wall with several hallways going off to each side and two straight ahead.'
  24. !!this below will all need to be updated and cleaned up. I am leaving it as is for now as I don''t know how to fix it
  25. if university['diploma'] > 0:
  26. 'You have graduated from the University.'
  27. elseif university['expelled_for_missing_exam'] = 0 and university['expelled'] = 1:
  28. 'You have been expelled from the University for failing your exams.'
  29. elseif university['expelled_for_missing_exam'] = 1:
  30. 'You have been expelled from the University for skipping your exams.'
  31. elseif func('uniutil', 'student', 'expelled_for_other_reason'):
  32. 'You have been expelled from the University for reasons unrelated to your exam results.'
  33. elseif university['student'] = 0:
  34. if university['prep_enrolled'] = 1 and month = 8:
  35. 'You''ve enrolled in the preparatory classes.'
  36. elseif university['prep_enrolled'] = 1:
  37. 'You''ve enrolled in the preparatory classes. They will start in August'
  38. else
  39. 'You can take preparatory classes at the University on weekdays for 15000<b>₽</b>.'
  40. end
  41. 'Admission examinations for the University are held in August.'
  42. end
  43. act 'Leave':
  44. minut += 2
  45. gt 'uni_grounds', 'main'
  46. end
  47. if university['prep_enrolled'] = 1 and university['entrance_exam_passed'] = 0 and month = 8:
  48. act 'Attend preparatory class (1:00)': gt 'uni_admin', 'take_prep'
  49. end
  50. !!if graduated school with good grade or
  51. if university['entrance_exam_passed'] = 0 and university['prep_enrolled'] = 1 and month = 8:
  52. act 'Take the entrance exam (1:00)': gt 'uni_admin', 'take_test'
  53. end
  54. if (university['entrance_exam_passed'] = 1 or university['prep_enrolled'] = 0) and university['student'] = 0 and university['diploma'] = 0 and age >= 17 and (storyline ! 1 or SchoolAtestat = 1) and month < 9:
  55. act 'Enroll at the University': gt 'uni_admin', 'enrollment'
  56. end
  57. if university['enrolled_in_semester'] > 0 and university['enrolled_in_semester'] = university['semester_passed'] and university['semeter_passed'] < 8:
  58. act 'Enroll in your next semester': gt 'uni_admin', 'enrollment_semester'
  59. end
  60. !!the if below should only show up if Sveta tried to enroll and didn''t or couldn''t pay for the classes before
  61. if university['entrance_information'] = 1 and university['prep_enrolled'] = 0 and university['student'] = 0 and month < 9: gs 'uni_admin', 'prep_pay'
  62. end
  63. if $ARGS[0] = 'enrollment':
  64. $sexloc = 'uni_admin'
  65. cla & *clr
  66. minut += 15
  67. gs 'stat'
  68. '<center><b><font color="maroon">Enrollment office</font></b></center>'
  69. '<center><img <<$set_imgh>> src="images/locations/city/island/university/admin/enrollment1.jpg"></center>'
  70. 'You enter the enrollment office, where there are several desks with women working behind them and a fair number of young people about your age waiting in a side room. You inform them you wish to enroll at the university, they take down your name and ask you to go wait in the waiting room until your name is called. You walk into the other room, smile and nod to the other prospective students and take a seat.'
  71. act 'Wait your turn':
  72. cla & *clr
  73. '<center><b><font color="maroon">Enrollment office</font></b></center>'
  74. '<center><img <<$set_imgh>> src="images/locations/city/island/university/admin/enrollment2.jpg"></center>'
  75. 'You wait until until your name is called by one of the women. She then leads you down a side hall to one of the offices, letting you take a seat and introduce yourself. After a brief discussion the woman takes your information and enters it into the computer.'
  76. if class['school_grade_average'] >= 70 or university['entrance_exam_passed'] = 1:
  77. minut += 15
  78. 'She looks over the information for a bit, filling in some data. Several minutes later she turns to you and smiles, telling you that you are eligible to enroll 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 route you want to choose.'
  79. act 'Teaching degree':
  80. cla
  81. 'You inform her you wish to acquire a teaching degree. She hands you a packet of information about your classes you will be attending and about dorm life., next she inquires if you will be signing up for any elective classes at this time.'
  82. act 'No not now':
  83. cla
  84. 'You shake your head no and tell her you don''t intend to sign up for any elective classes right now. She nods and makes a few more notes and then hands 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.'
  85. act 'Leave':gt 'uni_admin', 'start'
  86. end
  87. act 'Enroll':
  88. !!This sets the variables such that the player is enrroled in the first semester of the teaching program.
  89. university['prep_counter'] = 0
  90. university['prep_enrolled'] = 0
  91. university['student'] = 1
  92. $university['enrolled_in']= 'teaching_studies'
  93. university['enrolled_in_semester'] = 1
  94. home_owned[11] = 1
  95. !!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)
  96. gs 'grades', 'createclass', 'uni_teaching_studies_semester_1', 'general education 101', 3, 2, 'no', 'no', 1, 12
  97. gs 'grades', 'createclass', 'uni_teaching_studies_semester_1', 'teaching methods 101', 3, 2, 'no', 'no', 1, 12
  98. gs 'grades', 'createclass', 'uni_teaching_studies_semester_1', 'learning theories 101', 3, 2, 'no', 'no', 1, 12
  99. gs 'grades', 'grade_award', 'uni_teaching_studies_semester_1', 'general education 101', 35
  100. gs 'grades', 'grade_award', 'uni_teaching_studies_semester_1', 'teaching methods 101', 35
  101. gs 'grades', 'grade_award', 'uni_teaching_studies_semester_1', 'learning theories 101', 35
  102. cla
  103. '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 the 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.'
  104. if (day - week) >= 27 and month = 8:
  105. university['semester_week'] = 1
  106. *nl
  107. 'She tells you that you enrolled at the last minute, and the classes have already started this week.'
  108. end
  109. act 'Leave':gt 'uni_admin', 'start'
  110. !!once we have the framework working i will start working on some elective classes, once we have a couple of them I will add them here.
  111. !!act 'Take some elective classes':
  112. end
  113. end
  114. else
  115. university['entrance_information'] = 1
  116. minut += 5
  117. 'She looks over the information for a bit, filling in some data. Several minutes later she turns to you frowning and tells you that you not are eligible to enroll at the university at this time, your grades from Pavlovsk Secondary School were not good enough. She informs you with so many students applying they can only take those with better grades, but you can still get in if you sign up and take the preparatory classes and pass them with a high enough grade. You do have to pay for the classes though.'
  118. act 'You don''t want to sign up':
  119. cla
  120. 'You shake your head and thank her, but tell her you will think about it. She smiles to you and tells you she understands, then you leave.'
  121. act 'Leave class':gt 'uni_admin', 'start'
  122. end
  123. act 'You don''t have enough money':
  124. cla
  125. 'You tell her you don''t have enough money to pay for the classes. She nods in understanding and tells you if you get the money to come back and you can sign up later. You thank her for the information and leave.'
  126. act 'Leave class':gt 'uni_admin', 'start'
  127. end
  128. gs 'uni_admin', 'prep_pay'
  129. end
  130. end
  131. end
  132. if $ARGS[0] = 'enrollment_semester':
  133. $sexloc = 'uni_admin'
  134. cla & *clr
  135. minut += 15
  136. gs 'stat'
  137. '<center><b><font color="maroon">Enrollment office</font></b></center>'
  138. '<center><img <<$set_imgh>> src="images/locations/city/island/university/admin/enrollment1.jpg"></center>'
  139. 'You enter the enrollment office, where there are several desks with women working behind them and a fair number of young people about your age waiting in a side room. You inform them you wish to enroll at the university, they take down your name and ask you to go wait in the waiting room until your name is called. You walk into the other room, smile and nod to the other prospective students and take a seat.'
  140. act 'Wait your turn':
  141. cla & *clr
  142. '<center><b><font color="maroon">Enrollment office</font></b></center>'
  143. '<center><img <<$set_imgh>> src="images/locations/city/island/university/admin/enrollment2.jpg"></center>'
  144. 'You wait until until your name is called by one of the women. She then leads you down a side hall to one of the offices, letting you take a seat and introduce yourself. After a brief discussion the woman takes your information and enters it into the computer.'
  145. if $university['enrolled_in']= 'teaching_studies':
  146. minut += 15
  147. 'She looks over the information for a bit, filling in some data. Several minutes later she turns to you and smiles, telling you that you since you passed your last semester you can enroll 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.'
  148. act 'Enroll':
  149. !!This sets the variables such that the player is enrolled in next semester of the teaching program.
  150. university['enrolled_in_semester'] += 1
  151. if university['enrolled_in_semester'] = 2:
  152. !!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)
  153. gs 'grades', 'createclass', 'uni_teaching_studies_semester_2', 'general education 102', 3, 2, 'no', 'no', 1, 12
  154. gs 'grades', 'createclass', 'uni_teaching_studies_semester_2', 'teaching methods 102', 3, 2, 'no', 'no', 1, 12
  155. gs 'grades', 'createclass', 'uni_teaching_studies_semester_2', 'psychology of a student 101', 3, 2, 'no', 'no', 1, 12
  156. gs 'grades', 'grade_award', 'uni_teaching_studies_semester_2', 'general education 102', (class['uni_teaching_studies_semester_1_general education 101_grade']/3+10)
  157. gs 'grades', 'grade_award', 'uni_teaching_studies_semester_2', 'teaching methods 102', (class['uni_teaching_studies_semester_1_teaching methods 101_grade']/3+10)
  158. gs 'grades', 'grade_award', 'uni_teaching_studies_semester_2', 'psychology of a student 101', 35
  159. end
  160. cla
  161. 'You tell her you would like to continue to pursue a teaching degree. She smiles and nods, then finishes filling out some more paperwork about the courses you can expect to take.'
  162. if (day - week) >= 27 and month = 8:
  163. university['semester_week'] = 1
  164. *nl
  165. 'She tells you that you enrolled at the last minute, and the classes have already started this week.'
  166. end
  167. act 'Leave':gt 'uni_admin', 'start'
  168. !!once we have the framework working i will start working on some elective classes, once we have a couple of them I will add them here.
  169. !!act 'Take some elective classes':
  170. end
  171. end
  172. end
  173. end
  174. if $ARGS[0] = 'prep_pay':
  175. if money >= 15000:
  176. act 'Pay for the preparatory classes 15000<b>₽</b>) (Cash)':
  177. cla & *clr
  178. minut += 10
  179. money -= 15000
  180. gs 'stat'
  181. university['prep_enrolled'] = 1
  182. '<center><b><font color="maroon">Enrollment office</font></b></center>'
  183. '<center><img <<$set_imgh>> src="images/locations/city/island/university/admin/payment.jpg"></center>'
  184. 'You go back to the enrollment office, paying 15000<b>₽</b> for the preparatory classes. They are held every weekday until <b>21:00</b>.'
  185. act 'Leave':gt 'uni_admin', 'start'
  186. end
  187. end
  188. if karta >= 15000:
  189. act 'Pay for the preparatory classes 15000<b>₽</b>) (Card)':
  190. cla & *clr
  191. minut += 10
  192. karta -= 15000
  193. gs 'stat'
  194. university['prep_enrolled'] = 1
  195. '<center><b><font color="maroon">Enrollment office</font></b></center>'
  196. '<center><img <<$set_imgh>> src="images/locations/city/island/university/admin/payment.jpg"></center>'
  197. 'You go back to the enrollment office, paying 15000<b>₽</b> for the preparatory classes. They are held every weekday until <b>21:00</b>.'
  198. act 'Leave':gt 'uni_admin', 'start'
  199. end
  200. end
  201. end
  202. if $ARGS[0] = 'take_prep':
  203. $sexloc = 'uni_admin'
  204. cla & *clr
  205. minut += 60
  206. university['prep_counter'] += 1
  207. intel_exp += 1 + (mentats_dose - rand(0,mentats_dose))
  208. gs 'stat'
  209. '<center><b><font color="maroon">Preparatory class</font></b></center>'
  210. '<center><img <<$set_imgh>> src="images/locations/city/island/university/admin/prepcourse1.jpg"></center>'
  211. '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.'
  212. act 'Leave class':gt 'uni_admin', 'start'
  213. end
  214. if $ARGS[0] = 'take_test':
  215. $sexloc = 'uni_admin'
  216. cla & *clr
  217. minut += 60
  218. intel_exp += 1 + (mentats_dose - rand(0,mentats_dose))
  219. gs 'stat'
  220. '<center><b><font color="maroon">Entrance Exam</font></b></center>'
  221. '<center><img <<$set_imgh>> src="images/locations/city/island/university/admin/prepcourse1.jpg"></center>'
  222. 'You enter the exam room and take your seat. A professor comes out and talks over all the different parts of the exam you will be taking and discusses what is required to pass. Once that is done he passes out the test, then starts the clock. You have one hour to complete the test.'
  223. !!this is a copy of the old stuff, the code will need to be completely rewritten not sure how we will do it. I assume it will take intel and pav school grades into account? don''t know
  224. if pcs_intel +university['prep_counter'] >= 100:
  225. university['entrance_exam_passed'] = 1
  226. 'You completed the entrance examination, passing it with a perfect score.'
  227. elseif pcs_intel + university['prep_counter'] >= 80:
  228. university['entrance_exam_passed'] = 1
  229. 'You completed the entrance examination, passing it.'
  230. else
  231. university['entrance_exam_passed'] = -1
  232. 'You completed the entrance examination, failing to pass the exam.'
  233. end
  234. act 'Leave the exam room':gt 'uni_admin', 'start'
  235. end
  236. --- uni_admin ---------------------------------