stol.qsrc 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373
  1. # stol
  2. if $ARGS[0] = 'start':
  3. *clr & cla
  4. menu_off = 1
  5. gs 'stat'
  6. '<center><h1>Desk</h1></center>'
  7. '<center><img <<$set_imgh>> src="images/shared/home/bedroom/stol.jpg"></center>'
  8. *nl
  9. 'You sit down at your desk.'
  10. act 'Get up': gt $loc, $loc_arg
  11. act 'Check your birth control': gt 'stol', 'bc'
  12. if mentats_have > 0:
  13. '<a href="exec:gs ''drugs'', ''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.'
  14. end
  15. if steroid_have > 0:
  16. '<a href="exec:gs ''drugs'', ''steroids'' & gt ''stol'', ''start''"><b>Take steroids.</b></a> Uses left: <<steroid_have>>.'
  17. end
  18. if aphrodisiac_have > 0:
  19. '<a href="exec:gs ''drugs'', ''aphrodisiac'' & gt ''stol'', ''start''"><b>Chew aphrodisiac gum.</b></a> Uses left: <<aphrodisiac_have>>.'
  20. end
  21. killvar '$stol_loc_temp'
  22. if mc_inventory['strapon'] = 1:
  23. if mc_inventory['dildo_small'] + mc_inventory['dildo_normal'] + mc_inventory['dildo_big'] + mc_inventory['dildo_large'] + mc_inventory['dildo_huge'] + mc_inventory['dildo_enormous'] + mc_inventory['dildo_gigantic'] > 0:
  24. act 'Check out your strapon harness': $stol_loc_temp = 'start' & gt 'stol', 'strapon'
  25. else
  26. act 'Check out your strapon harness': '<br>You don''t have any dildos to attach to your strapon harness'
  27. end
  28. end
  29. if mc_inventory['cigarettes'] > 0:
  30. act 'Hide some cigarettes in your drawer':
  31. cla
  32. cigIN = input('How many cigarettes do you want to hide in your drawer? (Your purse contains <<mc_inventory[''cigarettes'']>> cigarettes.)')
  33. if cigIN <= 0 or cigIN > mc_inventory['cigarettes']:
  34. 'You can''t put this amount into the drawer.'
  35. else
  36. stolcigarettes += cigIN
  37. mc_inventory['cigarettes'] -= cigIN
  38. end
  39. gt 'stol', 'start'
  40. end
  41. end
  42. if stolcigarettes > 0:
  43. act 'Take some cigarettes from your drawer':
  44. cla
  45. cigOUT = input ("How many cigarettes do you want to put in your purse? (There are <<stolcigarettes>> cigarettes here.)")
  46. if cigOUT <= 0 or cigOUT > stolcigarettes:
  47. 'You can''t take this amount from your drawer.'
  48. else
  49. stolcigarettes -= cigOUT
  50. mc_inventory['cigarettes'] += cigOUT
  51. end
  52. gt 'stol', 'start'
  53. end
  54. end
  55. if money > 0:
  56. act 'Put some money in the desk drawer':
  57. cla
  58. stolIN = input ("How much money you want to put in the drawer? (Your purse contains <<money>> <b>₽</b>.)")
  59. if stolIN <= 0 or stolIN > money:
  60. 'You can''t put this amount into the drawer.'
  61. else
  62. stolmoney += stolIN
  63. money -= stolIN
  64. end
  65. gt 'stol', 'start'
  66. end
  67. end
  68. if stolmoney > 0:
  69. act 'Take some money from the desk drawer':
  70. cla
  71. stolOUT = input ("How much money do you want to put in your purse? (There is <<stolmoney>> <b>₽</b> here.)")
  72. if stolOUT <= 0 or stolOUT > stolmoney:
  73. 'You can''t take this amount from the drawer.'
  74. else
  75. stolmoney -= stolOUT
  76. money += stolOUT
  77. if stolmoney > 0: 'You have <<stolmoney>> <b>₽</b> hiden in the drawer.'
  78. end
  79. gt 'stol', 'start'
  80. end
  81. end
  82. !! uni homework
  83. if university['enrolled_in_semester'] > university['semester_passed']:
  84. if university['semester_week'] > 0:
  85. i = 0
  86. :study_loop
  87. if $class_list_institution[i] = 'uni_<<$university[''enrolled_in'']>>_semester_<<university[''enrolled_in_semester'']>>':
  88. if dyneval ('RESULT = class[''<<$class_list_institution[i]>>_<<$class_list_name[i]>>_optional_weekly_grade_gain'']') < dyneval ('RESULT = class[''<<$class_list_institution[i]>>_<<$class_list_name[i]>>_optional_weekly_max'']'):
  89. dynamic ' act ''Study for your <<$class_list_name[i]>> class'': gt ''stol'', ''studying'', ''<<$class_list_institution[i]>>'', ''<<$class_list_name[i]>>'', ''start'' '
  90. else
  91. *nl
  92. 'You don''t need to study more this week for your <<$class_list_name[i]>> class.'
  93. end
  94. end
  95. i += 1
  96. if ARRSIZE('class_list_institution') >= i: jump 'study_loop'
  97. killvar 'i'
  98. elseif university['exam_week'] > 0:
  99. i = 0
  100. :exam_loop
  101. if $class_list_institution[i] = 'uni_<<$university[''enrolled_in'']>>_semester_<<university[''enrolled_in_semester'']>>' and func('uni_programs', 'exam', 'is_over', $class_list_name[i]) = 0:
  102. dynamic ' act ''Study intensely for your <<$class_list_name[i]>> exam'': gt ''stol'', ''studying_exam'', ''<<$class_list_institution[i]>>'', ''<<$class_list_name[i]>>'', ''start'' '
  103. end
  104. i += 1
  105. if ARRSIZE('class_list_institution') >= i: jump 'exam_loop'
  106. killvar 'i'
  107. end
  108. end
  109. !! school homework
  110. gs 'willpower', 'chore', 'self', iif(grupTipe = 4 and pcs_traits['nerd_status'] = 0, 'hard', iif(pcs_traits['nerd_status'] > 0, 'easy', 'medium'))
  111. if pcs_traits['nerd_status'] = 2: will_cost = will_cost / 2
  112. if lernHome > 0 and (will_cost <= pcs_willpwr or pcs_traits['nerd_status'] = 3):
  113. '<br>You have homework to do. Finishing everything will take <<lernHome>> '+iif(lernHome = 1, 'hour.', 'hours.')
  114. act 'Do some homework (1:00'+iif(pcs_traits['nerd_status'] = 3, '', ' and <<will_cost>> Willpower')+')':
  115. cla & *clr
  116. '<center><img <<$set_imgh>> src="images/locations/shared/apartment/homework.jpg"></center>'
  117. minut += 60
  118. pcs_mood += 5 * pcs_traits['nerd_status']
  119. lern += 1
  120. gs 'willpower', 'chore', 'self', iif(grupTipe = 4, 'hard', iif(pcs_traits['nerd_status'] > 0, 'easy', 'medium'))
  121. if pcs_traits['nerd_status'] = 2: will_cost = will_cost / 2
  122. if pcs_traits['nerd_status'] < 3: gs 'willpower', 'pay', 'self'
  123. gs'stat'
  124. if mc_inventory['tech_computer'] = 1:
  125. gs 'grades', 'homework', 'school', 'yes', 1, 0, 0
  126. 'You spend an hour '+iif(lernHome = 0, 'completing', 'doing part of')+' your homework.'
  127. else
  128. gs 'grades', 'homework', 'school', 'no', 1, 0, 0
  129. 'You spend an hour '+iif(lernHome = 0, 'completing', 'doing part of')+' your homework. The part for computer class is not as good as it could be since you don''t have a computer. You could do your homework at the library at the community center in the future since there is a computer available to use there.'
  130. end
  131. act 'Continue':gt 'stol', 'start'
  132. end
  133. elseif lernHome > 0 and will_cost > pcs_willpwr:
  134. act 'Do some homework (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  135. end
  136. will_cost = will_cost * lernHome
  137. if lernHome > 1 and (will_cost <= pcs_willpwr or pcs_traits['nerd_status'] = 3):
  138. act 'Finish all of your homework (<<lernHome>>:00'+iif(pcs_traits['nerd_status'] = 3, '', ' and <<will_cost>> Willpower')+')':
  139. cla & *clr
  140. minut += 60 * lernHome
  141. pcs_mood += 5 * pcs_traits['nerd_status'] *lernHome
  142. lern += 1 + lernHome/2
  143. if pcs_traits['nerd_status'] < 3: gs 'willpower', 'pay', 'self'
  144. gs'stat'
  145. '<center><img <<$set_imgh>> src="images/locations/shared/apartment/homework.jpg"></center>'
  146. if mc_inventory['tech_computer'] = 1:
  147. gs 'grades', 'homework', 'school', 'yes', lernHome, 0, 0
  148. 'It took you <<lernHome>> hours to complete your homework.'
  149. else
  150. gs 'grades', 'homework', 'school', 'no', lernHome, 0, 0
  151. 'It took you <<lernHome>> hours to complete your homework. The part for computer class is not as good as it could be since you don''t have a computer. You could do your homework at the library at the community center in the future since there is a computer available to use there.'
  152. end
  153. act 'Continue':gt 'stol', 'start'
  154. end
  155. elseif lernHome > 1 and will_cost > pcs_willpwr:
  156. act 'Finish all of your homework (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  157. end
  158. end
  159. if $ARGS[0] = 'strapon':
  160. !! use gs 'boyStat', 'D<<strapnumber>>' to recall which dildo is attached
  161. *clr
  162. '<center><h1>Desk</h1></center>'
  163. '<center><img <<$set_imgh>> src="images/shared/home/bedroom/stol.jpg"></center>'
  164. *nl
  165. if strapnumber = 0: 'Your strapon harness doesn''t have a dildo attached to it.'
  166. *nl
  167. if mc_inventory['dildo_small'] = 1: iif(strapnumber = 1, 'Your 10cm dildo is attached to your strapon harness.', '<a href="exec:strapnumber = 1 & gt ''stol'', ''strapon''">Attach</a> your 10cm long dildo.')
  168. if mc_inventory['dildo_normal'] = 1: iif(strapnumber = 2, 'Your 15cm dildo is attached to your strapon harness.','<a href="exec:strapnumber = 2 & gt ''stol'', ''strapon''">Attach</a> your 15cm long dildo.')
  169. if mc_inventory['dildo_big'] = 1: iif(strapnumber = 3, 'Your 20cm dildo is attached to your strapon harness.','<a href="exec:strapnumber = 3 & gt ''stol'', ''strapon''">Attach</a> your 20cm long dildo.')
  170. if mc_inventory['dildo_large'] = 1: iif(strapnumber = 4, 'Your 25cm dildo is attached to your strapon harness.','<a href="exec:strapnumber = 4 & gt ''stol'', ''strapon''">Attach</a> your 25cm long dildo.')
  171. if mc_inventory['dildo_huge'] = 1: iif(strapnumber = 5, 'Your 30cm dildo is attached to your strapon harness.','<a href="exec:strapnumber = 5 & gt ''stol'', ''strapon''">Attach</a> your 30cm long dildo.')
  172. if mc_inventory['dildo_enormous'] = 1: iif(strapnumber = 6, 'Your 35cm dildo is attached to your strapon harness.','<a href="exec:strapnumber = 6 & gt ''stol'', ''strapon''">Attach</a> your 35cm long dildo.')
  173. if mc_inventory['dildo_gigantic'] = 1: iif(strapnumber = 7, 'Your 40cm dildo is attached to your strapon harness.','<a href="exec:strapnumber = 7 & gt ''stol'', ''strapon''">Attach</a> your 40cm long dildo.')
  174. act 'Back': gt 'stol', $stol_loc_temp
  175. end
  176. if $ARGS[0] = 'bc':
  177. *clr & cla
  178. '<center><h1>Desk</h1></center>'
  179. '<center><img <<$set_imgh>> src="images/shared/home/bedroom/stol.jpg"></center>'
  180. *nl
  181. gs 'stat'
  182. gs 'din_bad'
  183. 'In the drawer of your desk, you store your birth control.'
  184. act 'Close the drawer':gt $loc, $loc_arg
  185. act'Check your condoms':
  186. if mc_inventory['equipped_condoms'] + mc_inventory['normal_condoms'] + mc_inventory['sabotaged_condoms'] > 0:
  187. if $locclass = 'bedr':
  188. *clr
  189. '<center><img <<$set_imgh>> src="images/pc/items/accessories/birthcontrol/condoms.jpg"></center>'
  190. end
  191. if preziktype = 2 or mc_inventory['sabotaged_condoms'] > 0:
  192. 'You have <<iif(preziktype = 2, mc_inventory[''normal_condoms''], mc_inventory[''normal_condoms'']+mc_inventory[''equipped_condoms''])>> normal, and <<iif(preziktype = 2, mc_inventory[''equipped_condoms'']+mc_inventory[''sabotaged_condoms''], mc_inventory[''sabotaged_condoms''])>> sabotaged <a href="exec:dynamic $din_Table_Condom_Menu"><b>condoms.</b></a>'
  193. elseif preziktype < 2 and mc_inventory['sabotaged_condoms'] = 0:
  194. 'You have <<mc_inventory[''equipped_condoms'']+mc_inventory[''normal_condoms'']>> <a href="exec:dynamic $din_Table_Condom_Menu"><b>condoms.</b></a>'
  195. end
  196. *nl
  197. else
  198. if $locclass = 'bedr':
  199. *clr
  200. '<center><img <<$set_imgh>> src="images/shared/home/bedroom/drawer_empty.jpg"></center>'
  201. end
  202. 'You are out of condoms.'
  203. end
  204. end
  205. act'Check your birth control pills':
  206. if mc_inventory['contraceptive_pill'] > 0 or pillsleft[ptype] > 0:
  207. if $locclass = 'bedr':
  208. *clr
  209. '<center><img <<$set_imgh>> src="images/pc/items/accessories/birthcontrol/bc_pills.jpg"></center>'
  210. end
  211. if mc_inventory['contraceptive_pill'] > 0 and pillsleft[ptype] > 0:
  212. 'You have <<mc_inventory[''contraceptive_pill'']>> unopened packages of <a href="exec:dynamic $d_tabletkiedt">birth control pills</a> and <<pillsleft[ptype]>> pills left in your opened package.</b>'
  213. elseif mc_inventory['contraceptive_pill'] = 0 and pillsleft[ptype] > 0:
  214. 'You have <<pillsleft[ptype]>> <a href="exec:dynamic $d_tabletkiedt">birth control pills</a> left.</b>'
  215. elseif mc_inventory['contraceptive_pill'] > 0 and pillsleft[ptype] = 0:
  216. 'You have <<mc_inventory[''contraceptive_pill'']>> unopened packages of <a href="exec:dynamic $d_tabletkiedt">birth control pills</a>.'
  217. end
  218. else
  219. if $locclass = 'bedr':
  220. *clr
  221. '<center><img <<$set_imgh>> src="images/shared/home/bedroom/drawer_empty.jpg"></center>'
  222. end
  223. 'You are out of birth control pills.'
  224. end
  225. end
  226. act'Check your morning after pills':
  227. if mc_inventory['morning_after_pill'] > 0:
  228. if $locclass = 'bedr':
  229. *clr
  230. '<center><img <<$set_imgh>> src="images/pc/items/accessories/birthcontrol/morning_after_pill.jpg"></center>'
  231. end
  232. if mc_inventory['morning_after_pill'] = 1:
  233. 'You have a <a href="exec:gs''medical_din'',''morning_after_pill''">morning after pill</a> hidden in the back corner of the drawer.'
  234. else
  235. 'You have <b><<mc_inventory[''morning_after_pill'']>></b> <a href="exec:gs''medical_din'',''morning_after_pill''">morning after pills</a> stacked in the back corner of the drawer.'
  236. end
  237. else
  238. if $locclass = 'bedr':
  239. *clr
  240. '<center><img <<$set_imgh>> src="images/shared/home/bedroom/drawer_empty.jpg"></center>'
  241. end
  242. 'You have no morning after pills.'
  243. end
  244. end
  245. end
  246. if $args[0] = 'studying':
  247. cla & *clr
  248. '<center><img <<$set_imgh>> src="images/locations/shared/apartment/homework.jpg"></center>'
  249. minut += 30
  250. if mc_inventory['tech_computer'] = 1:
  251. gs 'grades', 'optional_activity_attribute', '<<$ARGS[1]>>', '<<$ARGS[2]>>', 'yes', pcs_intel
  252. else
  253. gs 'grades', 'optional_activity_attribute', '<<$ARGS[1]>>', '<<$ARGS[2]>>', 'no', pcs_intel
  254. end
  255. gs 'stat'
  256. if dyneval ('RESULT = class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain'']') < dyneval ('RESULT = class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_max'']'):
  257. 'You study for half an hour, and you can tell you will need to study more if you want to completly understand this weeks material'
  258. else
  259. 'You study for half an hour, and you think you understand everything that is covered this week'
  260. end
  261. act 'Get up from your desk': gt 'stol', '<<$ARGS[3]>>'
  262. end
  263. if $ARGS[0] = 'studying_exam':
  264. cla & *clr
  265. '<center><img <<$set_imgh>> src="images/locations/shared/apartment/homework.jpg"></center>'
  266. !!Nerds likes studying and so their mood improves a little. Everbody else get in a worse mood by studying.
  267. gs 'exp_gain', 'intel', max(0,rand(-1,1))
  268. pcs_mood += (pcs_traits['nerd_status']*5 -10)
  269. minut += 30
  270. if pcs_sleep < 5:
  271. no_study = 1
  272. 'You are so tired that you are constantly falling a sleep. You get no studying done in this condition.'
  273. elseif pcs_sleep < 30:
  274. study_mod -= 20
  275. 'You are very tired and have a hard time keeping you eyes open.'
  276. end
  277. if alko >= 6:
  278. no_study = 1
  279. 'You are so drunk that you eyes can''t make sense of the letters written in the books. Holding your pen is also a problem.'
  280. elseif alko >= 4:
  281. study_mod -= 40
  282. 'You are drunk and have trouble concentration on reading the books. When you look back on the notes you made a lot of them are incomprehensible.'
  283. elseif alko >= 2:
  284. study_mod -= 20
  285. 'You are feeling a little tipsy and the you think that the studying is going great. But when you afterwards look at it you notice that a lot of your notes you made makes no sense.'
  286. end
  287. if mentats_dose >= 1: study_mod += 30
  288. If pcs_mood < 50:
  289. study_mod -= 20
  290. 'you are in a bad mood and it clearly effects you studying.'
  291. end
  292. if StrongNarkota > 0 or jointhigh > 0:
  293. study_mod -= 40
  294. 'You are stoned, and it is not making it easier to concentrate on studying.'
  295. end
  296. if amphHigh > 0: study_mod += 20
  297. if pcs_energy < 5:
  298. study_mod -= 20
  299. 'You are extremely hungry and it it is hard thinking about anything else that food.'
  300. elseif pcs_energy < 10:
  301. study_mod -= 10
  302. 'You are very hungry and it affect your ability to concentrate.'
  303. elseif pcs_energy < 20:
  304. study_mod -=10
  305. 'You ar hungry and your thought often drift to food, affecting your performance negatively.'
  306. end
  307. if pcs_horny > 90:
  308. study_mod -= 10
  309. 'ou are so arouse that you thought often drifts to sex effecting you ability your study.'
  310. end
  311. if pain['total'] > 90:
  312. no_study = 1
  313. 'You are in so much pain that you can''t study.'
  314. elseif pain['total'] > 75:
  315. study_mod -= 40
  316. 'You are in so much pain that you have a very hard time concentrating on studying.'
  317. elseif pain['total'] > 60:
  318. study_mod -= 20
  319. 'Your pain a constantly bothering and it makes it harder to study.'
  320. end
  321. *nl
  322. study_mod = max(0,rand(30 + study_mod,pcs_intel + study_mod)/33)
  323. if no_study = 1:
  324. 'You try to study for half an hour, but gets nothing done.'
  325. else
  326. if study_mod = 0:
  327. 'You study for half an hour. But don''t think you are improving.'
  328. elseif study_mod = 1:
  329. 'You study for half an hour, and think you are improving a little.'
  330. elseif study_mod = 2:
  331. 'You study for half an hour, and think you are doing good progress in getting ready for the exam.'
  332. else
  333. 'You study for half an hour, and think you are improving a lot.'
  334. end
  335. gs 'grades', 'grade_award', '<<$ARGS[1]>>', '<<$ARGS[2]>>', study_mod
  336. end
  337. gs 'stat'
  338. killvar 'study_mod'
  339. killvar 'nod_study'
  340. act 'Get up from your desk': gt 'stol', '<<$ARGS[3]>>'
  341. end
  342. --- stol ---------------------------------