1
0

unicoursework.qsrc 2.6 KB

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