pav_library.qsrc 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. # pav_library
  2. !2021/10/05
  3. !2023/09/11 Loan update by Anjuna
  4. menu_off = 0
  5. if $ARGS[0] = '':
  6. gs 'shortgs', 'setloc', 'pav_library', ''
  7. $location_type = 'public_indoors'
  8. frost = 0
  9. gs 'stat'
  10. gs 'themes', 'indoors'
  11. '<center><b><font color="maroon">Community center library</font></b></center>'
  12. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/gdkbibl.jpg"></center>'
  13. 'For such a small town, the library is surprisingly large, containing many interesting books on a wide variety of subjects.'
  14. if mid($start_type,1,2) = 'sg' and kanikuli = 0 and week < 6 and nerdstudynight['day'] ! daystart and hour > 14 and SchoolAtestat = 0:
  15. 'The nerds are sitting at a table studying together.'
  16. end
  17. if mid($start_type,1,2) = 'sg' and kanikuli = 0 and week > 5 and hour >= 12 and hour < 14:
  18. if nataliaQW['library_day_check'] ! daystart:
  19. nataliaQW['library_day_check'] = daystart
  20. if rand(0,3) = 0: nataliaQW['library_day'] = daystart
  21. end
  22. if nataliaQW['library_day'] = daystart:
  23. 'You see your classmate <a href="exec: gt ''natalia_pavlova'',''library''">Natalia Pavlova</a> sitting alone at one of the tables.'
  24. end
  25. end
  26. act 'Leave': gt 'pav_commcenter'
  27. act 'Go to the toilets': gt 'gdktoilet', 'start'
  28. if nerd_game['game_day'] = daystart and hour = 19: act 'Wait for game night to start': minut = 60 & gt 'pav_library'
  29. if nerd_game['game_day'] = daystart and hour = 20: act 'Join the nerds': gt 'nerd_game_night', 'game'
  30. if hour <= 7 or hour >= 18:
  31. 'The library is closed.'
  32. exit
  33. end
  34. 'Between the bookshelves are some tables which can be used for studying. Some of them have <a href="exec: gs ''internet_mobile'', ''get_access'', ''free'', ''noporn'',''nocamshow'' & gs ''internet_mobile'', ''add_limitation'', ''general-text'', ''On this public computer all adult content sites are blocked'' & gt ''Komp'',''start''">computers</a> for public use.'
  35. if lernHome > 0: 'You could do your homework with the help of one of the computers.'
  36. act 'Read a book': gt 'pav_library', 'read'
  37. act 'Borrow a book': gt 'pav_library', 'loan'
  38. act 'Study for an hour':
  39. *clr & cla
  40. menu_off = 1
  41. gs 'library_functions', 'read_book'
  42. lern += rand(1, 3)
  43. grupvalue[3] += 2
  44. gs 'stat'
  45. '<center><img <<$set_imgh>> src="images/pc/items/accessories/books/learning' + rand(1,3) + '.jpg"></center>'
  46. 'You read several books that should help you with your school work, you feel that you learned something today.'
  47. act 'Put the book back': gt 'pav_library'
  48. end
  49. if lernhome > 0:
  50. gs 'willpower', 'chore', 'self', iif(grupTipe = 4 and pcs_traits['nerd_status'] = 0, 'hard', iif(pcs_traits['nerd_status'] > 0, 'easy', 'medium'))
  51. if pcs_traits['nerd_status'] = 2: will_cost = will_cost / 2
  52. if pcs_willpwr < will_cost and pcs_traits['nerd_status'] < 3:
  53. act 'Do your homework (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  54. else
  55. act 'Do your homework (1:00' + iif(pcs_traits['nerd_status'] = 3, '', ' and <<will_cost>> Willpower')+')':
  56. *clr & cla
  57. minut += 60
  58. pcs_mood += 5 * pcs_traits['nerd_status']
  59. lern += 1
  60. gs 'willpower', 'chore', 'self', iif(grupTipe = 4, 'hard', iif(pcs_traits['nerd_status'] > 0, 'easy', 'medium'))
  61. if pcs_traits['nerd_status'] = 2: will_cost = will_cost / 2
  62. if pcs_traits['nerd_status'] < 3: gs 'willpower', 'pay', 'self'
  63. gs 'stat'
  64. gs 'grades', 'homework', 'school', 'yes', 1, 0, 0
  65. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/homework.jpg"></center>'
  66. 'You sit down at one of the tables with a computer and use it to help you do your homework.'
  67. 'After an hour, you''ve '+iif(lernHome = 0, 'completed', 'done a part of')+' your homework.'
  68. act 'Get up from the table': gt 'pav_library'
  69. end
  70. end
  71. end
  72. if mid($start_type,1,2) = 'sg' and kanikuli = 0 and week < 6 and nerdstudynight['day'] ! daystart and hour > 14 and SchoolAtestat = 0 and SchoolBlock = 0 and (class['school_grades_above_40'] + class['school_grades_above_70'] + class['school_grades_above_90'] <= 20 or grupTipe = 3):
  73. act 'Join the nerd''s study group': gt 'pav_library_nerdstudy', 'nerd_study_night'
  74. end
  75. end
  76. if $ARGS[0] = 'read':
  77. gs 'shortgs', 'setloc', 'pav_library', 'read'
  78. '<center><b><font color="maroon">Community center library</font></b></center>'
  79. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/gdkbibl.jpg"></center>'
  80. act 'Leave': gt 'pav_commcenter'
  81. if hour >= 18:
  82. !! Note find stern librarian image
  83. 'The librarian finds you still reading and shooshes you out of the library'
  84. exit
  85. end
  86. act 'Go back': gt 'pav_library'
  87. gs 'library_functions', 'set_library_read_acts'
  88. end
  89. if $ARGS[0] = 'loan':
  90. gs 'shortgs', 'setloc', 'pav_library', 'loan'
  91. '<center><b><font color="maroon">Community center library</font></b></center>'
  92. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/gdkbibl.jpg"></center>'
  93. act 'Leave': gt 'pav_commcenter'
  94. if hour >= 18:
  95. 'The library is closing for the night.'
  96. exit
  97. end
  98. act 'Go back': gt 'pav_library'
  99. gs 'library_functions', 'set_loan_acts'
  100. end
  101. --- pav_library ---------------------------------