1
0

obkitchen.qsrc 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # obkitchen
  2. if $args[0] = '':
  3. $loc_arg = ''
  4. $loc = 'obkitchen'
  5. $location_type = 'private'
  6. $locclass = 'kitr'
  7. $menu_loc = 'obkitchen'
  8. $menu_arg = ''
  9. menu_off = 0
  10. gs 'stat'
  11. '<center><b>in the dorm kitchen</b></center>'
  12. '<center><img <<$set_imgh>> src="images/locations/city/island/university/dorm/obkitchen.jpg"></center>'
  13. act 'Return to the corridor':gt 'dorm', 'korr'
  14. if eda > 0:
  15. 'Your shelf in the refrigerator holds <b><<eda>></b> servings of food.'
  16. if edahot = 0:
  17. act 'Cook food (0:25)':
  18. cla
  19. *clr
  20. menu_off = 1
  21. minut += 25
  22. edahot += 1
  23. eda -= 1
  24. pcs_mood -= 5
  25. gs 'stat'
  26. '<center><img <<$set_imgh>> src="images/shared/home/kitchen/cook.jpg"></center>'
  27. 'You prepare a meal.'
  28. gs 'obkitchen', 'food'
  29. end
  30. end
  31. end
  32. if edaD = 0 and eda = 0:'<b><font color = red>Your shelf in the refrigerator is bare, there is nothing left for you to eat.</font></b>'
  33. if edahot > 0:
  34. 'A cooked meal is on the table.'
  35. gs 'obkitchen', 'food'
  36. end
  37. if pranik > 0:
  38. if pranik = 1:
  39. 'You only have one more portion of tea biscuits.'
  40. else
  41. 'You have enough tea biscuits for <b><<pranik>></b> more snacks.'
  42. end
  43. dynamic $pranik
  44. end
  45. dynamic $edaD
  46. dynamic $fatdel
  47. dynamic $driwater
  48. dynamic $lekarstvo
  49. dynamic $vitamin
  50. end
  51. if $args[0] = 'food':
  52. act 'Eat cooked food':
  53. edahot = 0
  54. gt 'food', 'm_meal'
  55. end
  56. end
  57. --- obkitchen ---------------------------------