stol.qsrc 17 KB

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