unicoursework.qsrc 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # unicoursework
  2. !2021/04/26
  3. $unicourseworkloc[0] = $ARGS[1]
  4. $unicourseworkloc[1] = $ARGS[2]
  5. if $ARGS[0] = 'start':
  6. if func('uniutil', 'student', 'enrolled') and func('uniutil', 'assignment_progress', 'is_not_finished'):
  7. if $unicourseworkloc[0] = 'komp':
  8. 'You should probably do some of your <a href="exec:gt ''unicoursework'', ''do_coursework'', $unicourseworkloc[0], $unicourseworkloc[1]">coursework</a>.'
  9. else
  10. act 'Do some coursework (1:00)':
  11. gt 'unicoursework', 'do_coursework', $unicourseworkloc[0], $unicourseworkloc[1]
  12. end
  13. end
  14. end
  15. end
  16. if $ARGS[0] = 'do_coursework':
  17. *clr & cla
  18. menu_off = 1
  19. minut += 60
  20. if $ARGS[1] = 'komp':
  21. elektro += 3
  22. internet -= 1
  23. compskl_exp += 1
  24. end
  25. gs 'uniutil', 'assignment_progress', 'update'
  26. pcs_mood -= 10
  27. gs 'stat'
  28. if $ARGS[1] = 'komp':
  29. '<center><b>Coursework</b></center>'
  30. '<center><img <<$set_imgh>> src="images/pc/items/accessories/computer/kursak.jpg"></center>'
  31. else
  32. '<center><img <<$set_imgh>> src="images/pc/activities/study.jpg"></center>'
  33. end
  34. if $ARGS[1] = 'komp':
  35. 'It may be boring, but it still needs doing! You spend an hour doing coursework, and '+func('uniutil', 'assignment_progress', 'get')+'% of it is now finished.'
  36. elseif $ARGS[1] = 'sitr2x':
  37. 'You sat and studied, and you managed to complete some of your coursework. You are now '+func('uniutil', 'assignment_progress', 'get')+' percent done.'
  38. elseif $ARGS[1] = 'sitr':
  39. 'You work on your course''s homework and are about '+func('uniutil', 'assignment_progress', 'get')+' percent done.'
  40. elseif $ARGS[1] = 'pav_shared_apt':
  41. 'You sit down on the sofa bed and do some of your coursework. You''ve finished '+func('uniutil', 'assignment_progress', 'get')+' percent of it.'
  42. elseif $ARGS[1] = 'nichBedroomServant':
  43. 'You work on your coursework and have now completed '+func('uniutil', 'assignment_progress', 'get')+' percent.'
  44. elseif $ARGS[1] = 'bedrPar':
  45. 'You sit down at your desk and do some of your coursework. You''ve finished '+func('uniutil', 'assignment_progress', 'get')+' percent of it.'
  46. else
  47. 'You sit for an hour and do some of your work for class. You''ve finished '+func('uniutil', 'assignment_progress', 'get')+' percent of the work.'
  48. end
  49. if func('uniutil', 'assignment_progress', 'is_not_finished'):
  50. act 'Do some more coursework (1:00)':
  51. gt 'unicoursework', 'do_coursework', $unicourseworkloc[0], $unicourseworkloc[1]
  52. end
  53. end
  54. act 'Stop':
  55. gt $unicourseworkloc[0], $unicourseworkloc[1]
  56. end
  57. end
  58. --- unicoursework ---------------------------------