127_obkitchen 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. # obkitchen
  2. gs 'stat'
  3. $metkaM = $ARGS[0]
  4. $locM = $CURLOC
  5. '<center><B>in the dorm kitchen</B></center>'
  6. '<center><img src="images\img\centr\obkitchen.jpg"></center>'
  7. act 'In the corridor': gt 'dorm','korr'
  8. if eda > 0:
  9. act 'Cook food (0:30)':
  10. cla
  11. *clr
  12. set minut += 30
  13. gs 'stat'
  14. set edahot += 1
  15. set eda -= 1
  16. set manna -= 5
  17. '<center><img src="images\pics\cook.jpg"></center>'
  18. 'You prepare the meal.'
  19. act 'Leave the meal': gt 'obkitchen'
  20. end
  21. end
  22. if edahot > 0:
  23. act 'Eat cooked food (0:30)':
  24. cla
  25. *clr
  26. gs 'stat'
  27. frost = 0
  28. '<center><img src="images\pics\food.jpg"></center>'
  29. set minut += 30
  30. set edahot -= 1
  31. set health += 10
  32. set manna += 20
  33. if energy >= 30:
  34. set fat += 5
  35. 'You can no longer have.'
  36. end
  37. if energy >= 20 and energy < 30:
  38. set fat += 3
  39. set energy += 10
  40. 'You pushed through the power of a meal.'
  41. end
  42. if energy < 20:
  43. set energy += 20
  44. !set fat += 1
  45. 'You gladly ate cooked food.'
  46. end
  47. if water >= 20:
  48. 'Tea in you no longer climbs.'
  49. end
  50. if water < 20:
  51. 'You gladly drank a mug of tea.'
  52. set water += 20
  53. end
  54. act 'Get up from the table': gt 'obkitchen'
  55. end
  56. end
  57. if pranik > 0:
  58. act 'Drink tea with cookies (0:15)':
  59. cla
  60. *clr
  61. minut += 15
  62. pranik -= 1
  63. set health += 30
  64. set manna += 100
  65. energy += 20
  66. water += 20
  67. fat += 50
  68. frost = 0
  69. gs 'stat'
  70. '<center><img src="images\pics\food.jpg"></center>'
  71. 'You drank tea with cookies, sweet and very bad for the figure, but so nice.'
  72. act 'Get up from the table': gt 'obkitchen'
  73. end
  74. end
  75. if edaD > 0:
  76. act 'Eat diet meal (0:30)':
  77. cla
  78. *clr
  79. frost = 0
  80. '<center><img src="images\pics\food.jpg"></center>'
  81. set minut += 30
  82. set health += 10
  83. set manna += 20
  84. set edaD -= 1
  85. if energy >= 30:
  86. 'You can no longer have.'
  87. end
  88. if energy >= 20 and energy < 30:
  89. set energy += 10
  90. 'You pushed through the power of a meal.'
  91. end
  92. if energy < 20:
  93. set energy += 20
  94. 'You gladly ate cooked food.'
  95. end
  96. if water >= 20:
  97. 'Tea in you no longer climbs.'
  98. end
  99. if water < 20:
  100. 'You gladly drank a mug of tea.'
  101. set water += 20
  102. end
  103. act 'Get up from the table': gt 'obkitchen'
  104. end
  105. end
  106. if fatdel > 0:
  107. act 'Consume fat burners':
  108. cla
  109. *clr
  110. set fatdel -= 1
  111. set fat -= 25
  112. if fat < 0: fat = 0
  113. 'You drank fat burning capsule. These capsules are gradually and results will be seen immediately.'
  114. act 'Get up from the table': gt 'obkitchen'
  115. end
  116. end
  117. act 'Drink':
  118. cla
  119. set minut += 5
  120. if water >= 20:
  121. 'Water in you no longer climbs.'
  122. end
  123. if water < 20:
  124. 'You gladly drank a glass of water.'
  125. set water += 20
  126. end
  127. act 'Get up from the table': gt 'obkitchen'
  128. end
  129. if lekarstvo > 0:
  130. 'You have <<lekarstvo>> tablets.'
  131. if sick > 0 and lekarday ! day:
  132. act 'Take a pill':
  133. cla
  134. *clr
  135. set minut += 5
  136. lekarday = day
  137. lekarstvo -= 1
  138. sick -= sick * 20/100
  139. set lekrand = RAND(0,8)
  140. if lekrand = 0: '<center><img src="images\inBed\lekr1.jpg"></center>'
  141. if lekrand = 1: '<center><img src="images\inBed\lekr2.jpg"></center>'
  142. if lekrand = 2: '<center><img src="images\inBed\lekr3.jpg"></center>'
  143. if lekrand = 3: '<center><img src="images\inBed\lekr4.jpg"></center>'
  144. if lekrand = 4: '<center><img src="images\inBed\lekr5.jpg"></center>'
  145. if lekrand = 5: '<center><img src="images\inBed\lekr6.jpg"></center>'
  146. if lekrand = 6: '<center><img src="images\inBed\lekr7.jpg"></center>'
  147. if lekrand = 7: '<center><img src="images\inBed\lekr8.jpg"></center>'
  148. if lekrand = 8: '<center><img src="images\inBed\lekr9.jpg"></center>'
  149. 'You drank the pill'
  150. act 'Move away': gt 'obkitchen'
  151. end
  152. end
  153. end
  154. if vitamin > 0:
  155. 'You have <<vitamin>> vitaminok.'
  156. if vitaminday ! day:
  157. act 'Drink Vitamins':
  158. cla
  159. *clr
  160. set minut += 5
  161. vitaminday = day
  162. vitamin -= 1
  163. frost = 0
  164. set skinvan += 1
  165. if skinvan = 20: set skinvan = 0 & set skin += 1
  166. 'You drank Vitaminki'
  167. act 'Move away': gt 'obkitchen'
  168. end
  169. end
  170. end
  171. --- obkitchen ---------------------------------