stol.qsrc 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. # stol
  2. if $ARGS[0] = 'start':
  3. *clr & cla
  4. menu_off = 1
  5. '<center><h1>Desk</h1></center>'
  6. '<center><img <<$set_imgh>> src="images/shared/home/bedroom/stol.jpg"></center>'
  7. *nl
  8. gs 'stat'
  9. 'Bric-a-brac drawer.'
  10. if lubri > 0:'Lubricant, enough for <<lubri>> time(s).'
  11. if krem > 0:'Sunblock, enough for <<krem>> more application(s).'
  12. if abonement > 0:'Fitness center subscription, valid for <<abonement>> more visit(s)'
  13. if dildo > 0:'Realistic Dildo.'
  14. if mentats_have > 0:
  15. '<a href="exec:dynamic $use_mentats & gt ''stol'', ''start''"><b>Take neurobooster pill.</b></a> Uses left: <<mentats_have>>. Warning on the box says not to take more than one per day.'
  16. end
  17. if steroid_have > 0:
  18. '<a href="exec:dynamic $use_steroids & gt ''stol'', ''start''"><b>Take steroids.</b></a> Uses left: <<steroid_have>>.'
  19. end
  20. if aphrodisiac_have > 0:
  21. '<a href="exec:dynamic $use_aphrodisiac & gt ''stol'', ''start''"><b>Chew aphrodisiac gum.</b></a> Uses left: <<aphrodisiac_have>>.'
  22. end
  23. act 'Close the drawer': gt $loc, $metka
  24. act 'Check birth control': gt 'stol', 'bc'
  25. if siga > 0:
  26. act 'Hide some cigarettes in your drawer':
  27. cla
  28. cigIN = input ("How many cigarettes do you want to hide in your drawer? (Your purse contains <<siga>> cigarettes.)")
  29. if cigIN <= 0 or cigIN > siga:
  30. 'You can''t put this amount into the drawer.'
  31. else
  32. stolcigarettes += cigIN
  33. siga -= cigIN
  34. end
  35. gt 'stol', 'start'
  36. end
  37. end
  38. if stolcigarettes > 0:
  39. act 'Take some cigarettes from your drawer':
  40. cla
  41. cigOUT = input ("How many cigarettes do you want to put in your purse? (There are <<stolcigarettes>> cigarettes here.)")
  42. if cigOUT <= 0 or cigOUT > stolcigarettes:
  43. 'You can''t take this amount from your drawer.'
  44. else
  45. stolcigarettes -= cigOUT
  46. siga += cigOUT
  47. end
  48. gt 'stol', 'start'
  49. end
  50. end
  51. if money > 0:
  52. act 'Put some money in the drawer':
  53. cla
  54. stolIN = input ("How much money you want to put in the desk drawer? (Your purse contains <<money>> <b>₽</b>.)")
  55. if stolIN <= 0 or stolIN > money:
  56. !!'Not correct operation.'
  57. else
  58. stolmoney += stolIN
  59. money -= stolIN
  60. end
  61. gt 'stol', 'start'
  62. end
  63. end
  64. if stolmoney > 0:
  65. act 'Take some money from the desk.':
  66. cla
  67. stolOUT = input ("How much money do you want to put in your purse? (There is <<stolmoney>> <b>₽</b> here.)")
  68. if stolOUT <= 0 or stolOUT > stolmoney:
  69. !!'Not correct operation.'
  70. else
  71. stolmoney -= stolOUT
  72. money += stolOUT
  73. !!'You debited <<kartaOUT>> <b>₽</b>, now on your account <<karta>> <b>₽</b>.'
  74. end
  75. gt 'stol', 'start'
  76. end
  77. end
  78. end
  79. if $ARGS[0] = 'stolPar':
  80. *clr & cla
  81. menu_off = 1
  82. gs'stat'
  83. '<center><h1>Desk</h1></center>'
  84. '<center><img <<$set_imgh>> src="images/shared/home/bedroom/stol.jpg"></center>'
  85. *nl
  86. 'You sit down at your desk.'
  87. act 'Get up':gt $loc, $metka
  88. act 'Check your birth control': gt 'stol', 'bc'
  89. if mentats_have > 0:
  90. '<a href="exec:dynamic $use_mentats & gt ''stol'', ''stolPar''"><b>Take neurobooster pill.</b></a> Uses left: <<mentats_have>>. Warning on the box says not to take more than one per day.'
  91. end
  92. if steroid_have > 0:
  93. '<a href="exec:dynamic $use_steroids & gt ''stol'', ''stolPar''"><b>Take steroids.</b></a> Uses left: <<steroid_have>>.'
  94. end
  95. if aphrodisiac_have > 0:
  96. '<a href="exec:dynamic $use_aphrodisiac & gt ''stol'', ''stolPar''"><b>Chew aphrodisiac gum.</b></a> Uses left: <<aphrodisiac_have>>.'
  97. end
  98. if lernHome > 0:
  99. act 'Do your homework':
  100. cla & *clr
  101. '<center><img <<$set_imgh>> src="images/locations/shared/apartment/homework.jpg"></center>'
  102. if lernHome <= 2:
  103. minut += 60*lernHome
  104. lernHome = 0
  105. lern += 1
  106. 'It takes you one hour to complete your homework.'
  107. gs'stat'
  108. elseif lernHome > 2:
  109. minut += 60*2
  110. lernHome = 0
  111. 'It takes you two hours to complete your homework.'
  112. gs'stat'
  113. end
  114. act 'Get up from the table':gt $loc, $metka
  115. end
  116. end
  117. if siga > 0:
  118. act 'Hide some cigarettes in your drawer':
  119. cla
  120. cigIN = input ("How many cigarettes do you want to hide in your drawer? (Your purse contains <<siga>> cigarettes.)")
  121. if cigIN <= 0 or cigIN > siga:
  122. 'You can''t put this amount into the drawer.'
  123. else
  124. stolcigarettes += cigIN
  125. siga -= cigIN
  126. end
  127. gt 'stol', 'stolPar'
  128. end
  129. end
  130. if stolcigarettes > 0:
  131. act 'Take some cigarettes from your drawer':
  132. cla
  133. cigOUT = input ("How many cigarettes do you want to put in your purse? (There are <<stolcigarettes>> cigarettes here.)")
  134. if cigOUT <= 0 or cigOUT > stolcigarettes:
  135. 'You can''t take this amount from your drawer.'
  136. else
  137. stolcigarettes -= cigOUT
  138. siga += cigOUT
  139. end
  140. gt 'stol', 'stolPar'
  141. end
  142. end
  143. if money > 0:
  144. act 'Hide some money in your drawer':
  145. cla
  146. stolIN = input ("How much money you want to hide in your drawer? (Your purse contains <<money>> <b>₽</b>.)")
  147. if stolIN <= 0 or stolIN > money:
  148. 'You can''t put this amount into the drawer.'
  149. else
  150. stolmoney += stolIN
  151. money -= stolIN
  152. end
  153. gt 'stol', 'stolPar'
  154. end
  155. end
  156. if stolmoney > 0:
  157. act 'Take some money from your drawer':
  158. cla
  159. stolOUT = input ("How much money do you want to put in your purse? (There is <<stolmoney>> <b>₽</b> here.)")
  160. if stolOUT <= 0 or stolOUT > stolmoney:
  161. 'You can''t take this amount from your drawer.'
  162. else
  163. stolmoney -= stolOUT
  164. money += stolOUT
  165. if stolmoney > 0: 'You have <<stolmoney>> <b>₽</b> hiden in your drawer.'
  166. end
  167. gt 'stol', 'stolPar'
  168. end
  169. end
  170. end
  171. if $ARGS[0] = 'bc':
  172. *clr & cla
  173. '<center><h1>Desk</h1></center>'
  174. '<center><img <<$set_imgh>> src="images/shared/home/bedroom/stol.jpg"></center>'
  175. *nl
  176. gs 'stat'
  177. gs 'din_bad'
  178. 'In the drawer of your desk, you store your birth control.'
  179. if prezik + prezikcount + preziksabo > 0:
  180. if preziktype = 2 or preziksabo > 0:
  181. 'You have <<iif(preziktype = 2, prezikcount, prezikcount+prezik)>> normal, and <<iif(preziktype = 2, prezik+preziksabo, preziksabo)>> sabotaged <a href="exec:dynamic $din_Table_Condom_Menu"><b>condoms.</b></a>'
  182. elseif preziktype < 2 and preziksabo = 0:
  183. 'You have <<prezik+prezikcount>> <a href="exec:dynamic $din_Table_Condom_Menu"><b>condoms.</b></a>'
  184. end
  185. *nl
  186. else
  187. 'You are out of condoms.'
  188. end
  189. if tabletki > 0 and pillsleft[ptype] > 0:
  190. 'You have <<tabletki>> unopened packages of <a href="exec:dynamic $d_tabletkiedt">birth control pills</a> and <<pillsleft[ptype]>> pills left in your opened package.</b>'
  191. elseif tabletki = 0 and pillsleft[ptype] > 0:
  192. 'You have <<pillsleft[ptype]>> <a href="exec:dynamic $d_tabletkiedt">birth control pills</a> left.</b>'
  193. elseif tabletki > 0 and pillsleft[ptype] = 0:
  194. 'You have <<tabletki>> unopened packages of <a href="exec:dynamic $d_tabletkiedt">birth control pills</a>.'
  195. else
  196. 'You are out of birth control pills.'
  197. end
  198. act 'Close the drawer':gt $loc, $metka
  199. end
  200. --- stol ---------------------------------