stol.qsrc 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498
  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, $loc_arg
  24. act 'Check birth control': gt 'stol', 'bc'
  25. killvar '$stol_loc_temp'
  26. if strapon = 1:
  27. if dildo + middildo + largedildo + bigdildo + extradildo + superdildo + maddildo > 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 siga > 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 <<siga>> cigarettes.)")
  37. if cigIN <= 0 or cigIN > siga:
  38. 'You can''t put this amount into the drawer.'
  39. else
  40. stolcigarettes += cigIN
  41. siga -= 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. siga += cigOUT
  55. end
  56. gt 'stol', 'start'
  57. end
  58. end
  59. if money > 0:
  60. act 'Put some money in the drawer':
  61. cla
  62. stolIN = input ("How much money you want to put in the desk drawer? (Your purse contains <<money>> <b>₽</b>.)")
  63. if stolIN <= 0 or stolIN > money:
  64. !!'Not correct operation.'
  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.':
  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. !!'Not correct operation.'
  78. else
  79. stolmoney -= stolOUT
  80. money += stolOUT
  81. !!'You debited <<kartaOUT>> <b>₽</b>, now on your account <<karta>> <b>₽</b>.'
  82. end
  83. gt 'stol', 'start'
  84. end
  85. end
  86. if university['semester_week'] > 0:
  87. i = 0
  88. :study_loop
  89. if $class_list_institution[i] = 'uni_<<$university[''enrolled_in'']>>_semester_<<university[''enrolled_in_semester'']>>':
  90. 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'']'):
  91. dynamic ' act ''Study for your <<$class_list_name[i]>> class (30 minuts)'': gt ''stol'', ''studying'', ''<<$class_list_institution[i]>>'', ''<<$class_list_name[i]>>'', ''start'' '
  92. else
  93. *nl
  94. 'You don''t need to study more this week for you <<$class_list_name[i]>> class'
  95. end
  96. end
  97. i += 1
  98. if ARRSIZE('class_list_institution') >= i: jump 'study_loop'
  99. killvar 'i'
  100. elseif university['exam_week'] > 0:
  101. i = 0
  102. :exam_loop
  103. 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:
  104. dynamic ' act ''Study intensely for your <<$class_list_name[i]>> exam (30 minuts)'': gt ''stol'', ''studying_exam'', ''<<$class_list_institution[i]>>'', ''<<$class_list_name[i]>>'', ''start'' '
  105. end
  106. i += 1
  107. if ARRSIZE('class_list_institution') >= i: jump 'exam_loop'
  108. killvar 'i'
  109. end
  110. end
  111. if $ARGS[0] = 'stolPar':
  112. *clr & cla
  113. menu_off = 1
  114. gs'stat'
  115. '<center><h1>Desk</h1></center>'
  116. '<center><img <<$set_imgh>> src="images/shared/home/bedroom/stol.jpg"></center>'
  117. *nl
  118. 'You sit down at your desk.'
  119. act 'Get up':gt $loc, $loc_arg
  120. act 'Check your birth control': gt 'stol', 'bc'
  121. if mentats_have > 0: '<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.'
  122. if steroid_have > 0: '<a href="exec:dynamic $use_steroids & gt ''stol'', ''stolPar''"><b>Take steroids.</b></a> Uses left: <<steroid_have>>.'
  123. if aphrodisiac_have > 0: '<a href="exec:dynamic $use_aphrodisiac & gt ''stol'', ''stolPar''"><b>Chew aphrodisiac gum.</b></a> Uses left: <<aphrodisiac_have>>.'
  124. gs 'willpower', 'misc', 'self', iif(grupTipe = 4 and traits['nerd_status'] = 0, 'hard', iif(traits['nerd_status'] > 0, 'easy', 'medium'))
  125. if traits['nerd_status'] = 2: will_cost = will_cost / 2
  126. if lernHome > 0 and (will_cost <= pcs_willpwr or traits['nerd_status'] = 3):
  127. '<br>You have to your homework. Finishing everything will take <<lernHome>> '+iif(lernHome = 1, 'hour.', 'hours.')
  128. act 'Do your homework (1:00'+iif(traits['nerd_status'] = 3, '', ' and <<will_cost>> Willpower')+')':
  129. cla & *clr
  130. '<center><img <<$set_imgh>> src="images/locations/shared/apartment/homework.jpg"></center>'
  131. minut += 60
  132. pcs_mood += 5 * traits['nerd_status']
  133. lern += 1
  134. gs 'willpower', 'misc', 'self', iif(grupTipe = 4, 'hard', iif(traits['nerd_status'] > 0, 'easy', 'medium'))
  135. if traits['nerd_status'] = 2: will_cost = will_cost / 2
  136. if traits['nerd_status'] < 3: gs 'willpower', 'pay', 'self'
  137. gs'stat'
  138. if komp = 1:
  139. gs 'grades', 'homework', 'school', 'yes', 1, 0, 0
  140. 'It took you one hour to '+iif(lernHome = 0, 'complete', 'do a part of')+' your homework.'
  141. else
  142. gs 'grades', 'homework', 'school', 'no', 1, 0, 0
  143. 'It took you one hour to '+iif(lernHome = 0, 'complete', 'do a 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.'
  144. end
  145. act 'Continue':gt 'stol', 'stolPar'
  146. end
  147. elseif lernHome > 0 and will_cost > pcs_willpwr:
  148. act 'Do your homework (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  149. end
  150. will_cost = will_cost * lernHome
  151. if lernHome > 1 and (will_cost <= pcs_willpwr or traits['nerd_status'] = 3):
  152. act 'Finish all of your homework (<<lernHome>>:00'+iif(traits['nerd_status'] = 3, '', ' and <<will_cost>> Willpower')+')':
  153. cla & *clr
  154. '<center><img <<$set_imgh>> src="images/locations/shared/apartment/homework.jpg"></center>'
  155. 'It took you <<temp>> hours to complete your homework.'
  156. minut += 60 * lernHome
  157. pcs_mood += 5 * traits['nerd_status'] *lernHome
  158. lern += 1 + lernHome/2
  159. temp = lernHome
  160. if traits['nerd_status'] < 3: gs 'willpower', 'pay', 'self'
  161. gs'stat'
  162. if komp = 1:
  163. gs 'grades', 'homework', 'school', 'yes', lernHome, 0, 0
  164. 'It took you <<temp>> hours to complete your homework.'
  165. else
  166. gs 'grades', 'homework', 'school', 'no', lernHome, 0, 0
  167. 'It took you <<temp>> 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.'
  168. end
  169. killvar 'temp'
  170. act 'Continue':gt 'stol', 'stolPar'
  171. end
  172. elseif lernHome > 1 and will_cost > pcs_willpwr:
  173. 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>'
  174. end
  175. if university['semester_week'] > 0:
  176. i = 0
  177. :study_loop
  178. if $class_list_institution[i] = 'uni_<<$university[''enrolled_in'']>>_semester_<<university[''enrolled_in_semester'']>>':
  179. 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'']'):
  180. dynamic ' act ''Study for your <<$class_list_name[i]>> class (30 minuts)'': gt ''stol'', ''studying'', ''<<$class_list_institution[i]>>'', ''<<$class_list_name[i]>>'', ''stolPar'' '
  181. else
  182. *nl
  183. 'You don''t need to study more this week for you <<$class_list_name[i]>> class'
  184. end
  185. end
  186. i += 1
  187. if ARRSIZE('class_list_institution') >= i: jump 'study_loop'
  188. killvar 'i'
  189. elseif university['exam_week'] > 0:
  190. i = 0
  191. :exam_loop
  192. 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:
  193. dynamic ' act ''Study intensely for your <<$class_list_name[i]>> exam (30 minuts)'': gt ''stol'', ''studying_exam'', ''<<$class_list_institution[i]>>'', ''<<$class_list_name[i]>>'', ''stolPar'' '
  194. end
  195. i += 1
  196. if ARRSIZE('class_list_institution') >= i: jump 'exam_loop'
  197. killvar 'i'
  198. end
  199. killvar '$stol_loc_temp'
  200. if strapon = 1:
  201. if dildo + middildo + largedildo + bigdildo + extradildo + superdildo + maddildo > 0:
  202. act 'Check out your strapon harness': $stol_loc_temp = 'stolPar' & gt 'stol', 'strapon'
  203. else
  204. act 'Check out your strapon harness': '<br>You don''t have any dildos to attach to your strapon harness'
  205. end
  206. end
  207. if siga > 0:
  208. act 'Hide some cigarettes in your drawer':
  209. cla
  210. cigIN = input ("How many cigarettes do you want to hide in your drawer? (Your purse contains <<siga>> cigarettes.)")
  211. if cigIN <= 0 or cigIN > siga:
  212. 'You can''t put this amount into the drawer.'
  213. else
  214. stolcigarettes += cigIN
  215. siga -= cigIN
  216. end
  217. gt 'stol', 'stolPar'
  218. end
  219. end
  220. if stolcigarettes > 0:
  221. act 'Take some cigarettes from your drawer':
  222. cla
  223. cigOUT = input ("How many cigarettes do you want to put in your purse? (There are <<stolcigarettes>> cigarettes here.)")
  224. if cigOUT <= 0 or cigOUT > stolcigarettes:
  225. 'You can''t take this amount from your drawer.'
  226. else
  227. stolcigarettes -= cigOUT
  228. siga += cigOUT
  229. end
  230. gt 'stol', 'stolPar'
  231. end
  232. end
  233. if money > 0:
  234. act 'Hide some money in your drawer':
  235. cla
  236. stolIN = input ("How much money you want to hide in your drawer? (Your purse contains <<money>> <b>₽</b>.)")
  237. if stolIN <= 0 or stolIN > money:
  238. 'You can''t put this amount into the drawer.'
  239. else
  240. stolmoney += stolIN
  241. money -= stolIN
  242. end
  243. gt 'stol', 'stolPar'
  244. end
  245. end
  246. if stolmoney > 0:
  247. act 'Take some money from your drawer':
  248. cla
  249. stolOUT = input ("How much money do you want to put in your purse? (There is <<stolmoney>> <b>₽</b> here.)")
  250. if stolOUT <= 0 or stolOUT > stolmoney:
  251. 'You can''t take this amount from your drawer.'
  252. else
  253. stolmoney -= stolOUT
  254. money += stolOUT
  255. if stolmoney > 0: 'You have <<stolmoney>> <b>₽</b> hiden in your drawer.'
  256. end
  257. gt 'stol', 'stolPar'
  258. end
  259. end
  260. end
  261. if $ARGS[0] = 'strapon':
  262. !! use gs 'boyStat', 'D<<strapnumber>>' to recall which dildo is attached
  263. *clr
  264. '<center><h1>Desk</h1></center>'
  265. '<center><img <<$set_imgh>> src="images/shared/home/bedroom/stol.jpg"></center>'
  266. *nl
  267. if strapnumber = 0: 'Your strapon harness doesn''t have a dildo attached to it.'
  268. *nl
  269. if dildo = 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.')
  270. if middildo = 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.')
  271. if largedildo = 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.')
  272. if bigdildo = 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.')
  273. if extradildo = 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.')
  274. if superdildo = 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.')
  275. if maddildo = 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.')
  276. act 'Back': gt 'stol', $stol_loc_temp
  277. end
  278. if $ARGS[0] = 'bc':
  279. *clr & cla
  280. '<center><h1>Desk</h1></center>'
  281. '<center><img <<$set_imgh>> src="images/shared/home/bedroom/stol.jpg"></center>'
  282. *nl
  283. gs 'stat'
  284. gs 'din_bad'
  285. 'In the drawer of your desk, you store your birth control.'
  286. act 'Close the drawer':gt $loc, $loc_arg
  287. act'Check your condoms':
  288. if prezik + prezikcount + preziksabo > 0:
  289. if $locclass = 'bedr':
  290. *clr
  291. '<center><img <<$set_imgh>> src="images/pc/items/accessories/birthcontrol/condoms.jpg"></center>'
  292. end
  293. if preziktype = 2 or preziksabo > 0:
  294. '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>'
  295. elseif preziktype < 2 and preziksabo = 0:
  296. 'You have <<prezik+prezikcount>> <a href="exec:dynamic $din_Table_Condom_Menu"><b>condoms.</b></a>'
  297. end
  298. *nl
  299. else
  300. if $locclass = 'bedr':
  301. *clr
  302. '<center><img <<$set_imgh>> src="images/shared/home/bedroom/drawer_empty.jpg"></center>'
  303. end
  304. 'You are out of condoms.'
  305. end
  306. end
  307. act'Check your birth control pills':
  308. if tabletki > 0 or pillsleft[ptype] > 0:
  309. if $locclass = 'bedr':
  310. *clr
  311. '<center><img <<$set_imgh>> src="images/pc/items/accessories/birthcontrol/bc_pills.jpg"></center>'
  312. end
  313. if tabletki > 0 and pillsleft[ptype] > 0:
  314. '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>'
  315. elseif tabletki = 0 and pillsleft[ptype] > 0:
  316. 'You have <<pillsleft[ptype]>> <a href="exec:dynamic $d_tabletkiedt">birth control pills</a> left.</b>'
  317. elseif tabletki > 0 and pillsleft[ptype] = 0:
  318. 'You have <<tabletki>> unopened packages of <a href="exec:dynamic $d_tabletkiedt">birth control pills</a>.'
  319. end
  320. else
  321. if $locclass = 'bedr':
  322. *clr
  323. '<center><img <<$set_imgh>> src="images/shared/home/bedroom/drawer_empty.jpg"></center>'
  324. end
  325. 'You are out of birth control pills.'
  326. end
  327. end
  328. act'Check your morning after pills':
  329. if morning_after_pill > 0:
  330. if $locclass = 'bedr':
  331. *clr
  332. '<center><img <<$set_imgh>> src="images/pc/items/accessories/birthcontrol/morning_after_pill.jpg"></center>'
  333. end
  334. if morning_after_pill = 1:
  335. 'You have a <a href="exec:gs''medical_din'',''morning_after_pill''">morning after pill</a> hidden in the back corner of the drawer.'
  336. else
  337. 'You have <b><<birth_control[''morning_after'']>></b> <a href="exec:gs''medical_din'',''morning_after_pill''">morning after pills</a> stacked in the back corner of the drawer.'
  338. end
  339. else
  340. if $locclass = 'bedr':
  341. *clr
  342. '<center><img <<$set_imgh>> src="images/shared/home/bedroom/drawer_empty.jpg"></center>'
  343. end
  344. 'You have no morning after pills.'
  345. end
  346. end
  347. end
  348. if $args[0] = 'studying':
  349. cla & *clr
  350. '<center><img <<$set_imgh>> src="images/locations/shared/apartment/homework.jpg"></center>'
  351. minut += 30
  352. if komp = 1:
  353. gs 'grades', 'optional_activity_attribute', '<<$ARGS[1]>>', '<<$ARGS[2]>>', 'yes', pcs_intel
  354. else
  355. gs 'grades', 'optional_activity_attribute', '<<$ARGS[1]>>', '<<$ARGS[2]>>', 'no', pcs_intel
  356. end
  357. gs 'stat'
  358. if dyneval ('RESULT = class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain'']') < dyneval ('RESULT = class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_max'']'):
  359. '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'
  360. else
  361. 'You study for half an hour, and you think you understand everything that is covered this week'
  362. end
  363. act 'Get up from your desk': gt 'stol', '<<$ARGS[3]>>'
  364. end
  365. if $ARGS[0] = 'studying_exam':
  366. cla & *clr
  367. '<center><img <<$set_imgh>> src="images/locations/shared/apartment/homework.jpg"></center>'
  368. !!Nerds likes studying and so their mood improves a little. Everbody else get in a worse mood by studying.
  369. intel_exp += max(0,rand(-1,1))
  370. pcs_mood += (traits['nerd_status']*5 -10)
  371. minut += 30
  372. if pcs_sleep < 5:
  373. no_study = 1
  374. 'You are so tired that you are constantly falling a sleep. You get no studying done in this condition.'
  375. elseif pcs_sleep < 30:
  376. study_mod -= 20
  377. 'You are very tired and have a hard time keeping you eyes open.'
  378. end
  379. if alko >= 6:
  380. no_study = 1
  381. '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.'
  382. elseif alko >= 4:
  383. study_mod -= 40
  384. '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.'
  385. elseif alko >= 2:
  386. study_mod -= 20
  387. '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.'
  388. end
  389. if mentats_dose >= 1: study_mod += 30
  390. If pcs_mood < 50:
  391. study_mod -= 20
  392. 'you are in a bad mood and it clearly effects you studying.'
  393. end
  394. if StrongNarkota > 0 or jointhigh > 0:
  395. study_mod -= 40
  396. 'You are stoned, and it is not making it easier to concentrate on studying.'
  397. end
  398. if amphHigh > 0: study_mod += 20
  399. if pcs_energy < 5:
  400. study_mod -= 20
  401. 'You are extremely hungry and it it is hard thinking about anything else that food.'
  402. elseif pcs_energy < 10:
  403. study_mod -= 10
  404. 'You are very hungry and it affect your ability to concentrate.'
  405. elseif pcs_energy < 20:
  406. study_mod -=10
  407. 'You ar hungry and your thought often drift to food, affecting your performance negatively.'
  408. end
  409. if pcs_horny > 90:
  410. study_mod -= 10
  411. 'ou are so arouse that you thought often drifts to sex effecting you ability your study.'
  412. end
  413. if pain['total'] > 90:
  414. no_study = 1
  415. 'You are in so much pain that you can''t study.'
  416. elseif pain['total'] > 75:
  417. study_mod -= 40
  418. 'You are in so much pain that you have a very hard time concentrating on studying.'
  419. elseif pain['total'] > 60:
  420. study_mod -= 20
  421. 'Your pain a constantly bothering and it makes it harder to study.'
  422. end
  423. *nl
  424. study_mod = max(0,rand(30 + study_mod,pcs_intel + study_mod)/33)
  425. if no_study = 1:
  426. 'You try to study for half an hour, but gets nothing done.'
  427. else
  428. if study_mod = 0:
  429. 'You study for half an hour. But don''t think you are improving.'
  430. elseif study_mod = 1:
  431. 'You study for half an hour, and think you are improving a little.'
  432. elseif study_mod = 2:
  433. 'You study for half an hour, and think you are doing good progress in getting ready for the exam.'
  434. else
  435. 'You study for half an hour, and think you are improving a lot.'
  436. end
  437. gs 'grades', 'grade_award', '<<$ARGS[1]>>', '<<$ARGS[2]>>', 'yes', study_mod
  438. end
  439. gs 'stat'
  440. killvar 'study_mod'
  441. killvar 'nod_study'
  442. act 'Get up from your desk': gt 'stol', '<<$ARGS[3]>>'
  443. end
  444. --- stol ---------------------------------