gschool.qsrc 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. # gschool
  2. if $ARGS[0] = 'schedule':
  3. if school_period = 0:
  4. *nl
  5. if week = 1: '<b>Next period</b>: Math'
  6. if week = 2: '<b>Next period</b>: English'
  7. if week = 3: '<b>Next period</b>: Math'
  8. if week = 4: '<b>Next period</b>: English'
  9. if week = 5: '<b>Next period</b>: Math'
  10. !'8.00 - 8.45'
  11. elseif school_period = 1:
  12. *nl
  13. if week = 1: '<b>Next period</b>: Russian'
  14. if week = 2: '<b>Next period</b>: Geography'
  15. if week = 3: '<b>Next period</b>: Russian'
  16. if week = 4: '<b>Next period</b>: Geography'
  17. if week = 5: '<b>Next period</b>: Russian'
  18. !'8.50 - 9.35'
  19. elseif school_period = 2:
  20. *nl
  21. '<b>Next</b>: Morning break'
  22. !'9.35 - 9.55'
  23. elseif school_period = 3:
  24. *nl
  25. if week = 1: '<b>Next period</b>: Literature'
  26. if week = 2: '<b>Next period</b>: Science'
  27. if week = 3: '<b>Next period</b>: Biology'
  28. if week = 4: '<b>Next period</b>: Science'
  29. if week = 5: '<b>Next period</b>: Literature'
  30. !'9.55 - 10.40'
  31. elseif school_period = 4:
  32. *nl
  33. if week = 1: '<b>Next period</b>: Art'
  34. if week = 2: '<b>Next period</b>: Shop'
  35. if week = 3: '<b>Next period</b>: History'
  36. if week = 4: '<b>Next period</b>: Shop'
  37. if week = 5: '<b>Next period</b>: Art'
  38. !'10.45 - 11.30'
  39. elseif school_period = 5:
  40. *nl
  41. '<b>Next</b>: Lunch break'
  42. !'11.30 - 12.25'
  43. elseif school_period = 6:
  44. *nl
  45. if week = 1: '<b>Next period</b>: Biology'
  46. if week = 2: '<b>Next period</b>: Computer'
  47. if week = 3: '<b>Next period</b>: Computer'
  48. if week = 4: '<b>Next period</b>: Computer'
  49. if week = 5: '<b>Next period</b>: History'
  50. !'12.25 - 13.10'
  51. elseif school_period = 7:
  52. *nl
  53. if week = 1: '<b>Next period</b>: P.E.'
  54. if week = 2: '<b>Next period</b>: Music'
  55. if week = 3: '<b>Next period</b>: P.E.'
  56. if week = 4: '<b>Next period</b>: Music'
  57. if week = 5: '<b>Next period</b>: P.E.'
  58. !'13.15 - 15.00'
  59. end
  60. end
  61. if $ARGS[0] = 'weekly grade update':
  62. if kanikuli = 0 and week = 1 and SchoolAtestat = 0:
  63. if lernHome > 0 and petka['homework'] = 1: gs 'grades', 'homework', 'school', 'yes', rand(0, lernHome), 2, 'A6'
  64. pcs_traits['nerd_points'] -= lernHome
  65. if lernHome = 0:
  66. pcs_traits['nerd_points'] += pcs_traits['nerd_lernHome']
  67. if pcs_traits['nerd_lernHome'] < 5:
  68. pcs_traits['nerd_lernHome'] += 1
  69. else
  70. pcs_traits['nerd_lernHome'] = 0
  71. end
  72. end
  73. lernHome = 0
  74. if class['first_grade_check'] > 0:
  75. gs 'grades', 'calculate_grade', 'school'
  76. gs 'grades', 'assing_grade_description', 'school'
  77. else
  78. i = 0
  79. :grade_loop
  80. dynamic 'class[''school_<<$class_list_name[i]>>_weekly_grade_gain''] = 0'
  81. i +=1
  82. if ARRSIZE('class_list_institution') > i: jump 'grade_loop'
  83. end
  84. end
  85. end
  86. --- gschool ---------------------------------