1
0

library_functions.qsrc 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828
  1. # library_functions
  2. if $ARGS[0] = 'read_book':
  3. if blizoruk = 500 or glassqw = 1:
  4. glassqw = 1
  5. msg ' The text blurs across the page. It seems you have poor eyesight. Maybe you should visit an ophthalmologist?'
  6. gt $loc, $loc_arg
  7. end
  8. blizoruk += 1
  9. minut += 60
  10. if $ARGS[1] ! 'porn':
  11. if pcs_nerd > 0:
  12. lastread = totminut
  13. lastreadday = daystart
  14. pcs_nerd += 1
  15. end
  16. if $ARGS[1] ! '':
  17. dynamic "
  18. if pcs_<<$ARGS[1]>> >= 50:
  19. <<$ARGS[1]>>_exp += rand(0, 1)
  20. elseif pcs_<<$ARGS[1]>> >= 25:
  21. <<$ARGS[1]>>_exp += rand(1, 2)
  22. else
  23. <<$ARGS[1]>>_exp += rand(1, 3)
  24. end"
  25. end
  26. end
  27. elseif $ARGS[0] = 'read_magazine':
  28. if blizoruk = 500 or glassqw = 1:
  29. glassqw = 1
  30. msg ' The text blurs across the page. It seems you have poor eyesight. Maybe you should visit an ophthalmologist?'
  31. gt $loc, $loc_arg
  32. end
  33. pcs_mood += 5
  34. minut += 30
  35. end
  36. !!=================================================!!
  37. !! !!
  38. !! READ ACTS !!
  39. !! !!
  40. !!=================================================!!
  41. if $ARGS[0] = 'set_library_read_acts':
  42. act 'Read a book on science (1:00)':
  43. *clr & cla
  44. menu_off = 1
  45. gs 'library_functions', 'read_book'
  46. gs 'exp_gain', 'intel', rand(3,6) + rand(0, drugVars['mentats_dose'])
  47. grupvalue[3] += 1
  48. gs 'stat'
  49. '<center><img <<$set_imgh>> src="images/pc/items/accessories/books/science1.jpg"></center>'
  50. 'You spend an hour reading, trying to make sense of all the clever propositions written inside and understand the subject it describes.'
  51. act 'Put the book back': gt $loc, $loc_arg
  52. end
  53. act 'Read an adventure novel (1:00)':
  54. *clr & cla
  55. menu_off = 1
  56. gs 'library_functions', 'read_book'
  57. pcs_mood = 100
  58. grupvalue[3] += 1
  59. gs 'stat'
  60. '<center><img <<$set_imgh>> src="images/pc/items/accessories/books/fiction' + rand(1,2) + '.jpg"></center>'
  61. 'You spend an hour reading an adventure novel, immersing yourself in daring deeds and awesome twists.'
  62. act 'Put the book back': gt $loc, $loc_arg
  63. end
  64. act 'Read a fantasy novel (1:00)':
  65. *clr & cla
  66. menu_off = 1
  67. gs 'library_functions', 'read_book'
  68. pcs_mood = 100
  69. grupvalue[3] += 1
  70. gs 'stat'
  71. '<center><img <<$set_imgh>> src="images/pc/items/accessories/books/fantasy' + rand(1,9) + '.jpg"></center>'
  72. 'You spend an hour reading a fantasy novel, rescuing damsels from dragons, digging for jewels with dwarves and performing word changing magic alongside elves and druids.'
  73. act 'Put the book back': gt $loc, $loc_arg
  74. end
  75. act 'Read a science fiction novel (1:00)':
  76. *clr & cla
  77. menu_off = 1
  78. gs 'library_functions', 'read_book'
  79. pcs_mood = 100
  80. grupvalue[3] += 1
  81. gs 'stat'
  82. '<center><img <<$set_imgh>> src="images/pc/items/accessories/books/scifi' + rand(1,6) + '.jpg"></center>'
  83. 'You spend an hour reading a science fiction novel - flying off into space, travelling though time, running from rogue AI and creating monsters with your hunchbacked assistant.'
  84. act 'Put the book back': gt $loc, $loc_arg
  85. end
  86. act 'Read a romance novel (1:00)':
  87. *clr & cla
  88. menu_off = 1
  89. gs 'library_functions', 'read_book'
  90. pcs_mood = 100
  91. pcs_horny += 20
  92. gs 'stat'
  93. '<center><img <<$set_imgh>> src="images/pc/items/accessories/books/romance' + rand(1,20) + '.jpg"></center>'
  94. 'You spend a very short hour reading a romance novel - choosing between a vampire or a werewolf, falling in love with an obscenely wealthy Grey... Several of the scenes are very steamy and you find yourself getting quite aroused.'
  95. act 'Put the book back': gt $loc, $loc_arg
  96. end
  97. temp = pcs_intel * 2 + pcs_sprt
  98. if temp < 100:
  99. $diff = 'hard'
  100. elseif temp < 150:
  101. $diff = 'medium'
  102. else
  103. $diff = 'easy'
  104. end
  105. gs 'willpower', 'misc', 'self', $diff
  106. if will_cost <= pcs_willpwr:
  107. act 'Read from the collected works of Leo Tolstoy (1:00) (<<will_cost>> Willpower)':
  108. *clr & cla
  109. menu_off = 1
  110. gs 'willpower', 'pay', 'self'
  111. killvar 'will_cost'
  112. gs 'library_functions', 'read_book'
  113. gs 'exp_gain', 'sprt', rand(3,6)
  114. grupvalue[3] += 2
  115. gs 'stat'
  116. '<center><img <<$set_imgh>> src="images/pc/items/accessories/books/tolstoy.jpg"></center>'
  117. 'You read the book for an hour. Tolstoy is certainly a classic writer, but he used a <i>lot</i> of words.'
  118. act 'Put the book back': gt $loc, $loc_arg
  119. end
  120. else
  121. act 'Read from the collected works of Leo Tolstoy (1:00) (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  122. end
  123. end
  124. if $ARGS[0] = 'set_home_read_acts':
  125. act 'Read a book':
  126. *clr & cla
  127. gs 'stat'
  128. if $clothingworntype = 'nude' and $braworntype = 'none' and $pantyworntype = 'none':
  129. '<center><img <<$set_imgh>> src="images/pc/activities/reading/bed_book_nude.jpg"></center>'
  130. elseif $clothingworntype = 'nude' and $braworntype ! 'none' and $pantyworntype ! 'none':
  131. '<center><img <<$set_imgh>> src="images/pc/activities/reading/bed_book_underwear.jpg"></center>'
  132. else
  133. '<center><img <<$set_imgh>> src="images/pc/activities/reading/bed_book_dressed.jpg"></center>'
  134. end
  135. if mc_inventory['fantasy_books'] <= 0 and BookVars['fantasy_pages'] <= 0 and mc_inventory['romance_books'] = 0 and BookVars['romance_pages'] = 0 and artem_borrowed_book = 0 and BookVars['artem_pages'] <= 0:'You scratch your head looking at the book you already read, thinking. "Damn, nothing to read, maybe I''ll take a walk or search the market for a new book?"'
  136. if mc_inventory['science_books'] > 0:
  137. if BookVars['science_pages'] <= 0:
  138. if $lib_book_loaned = 'a science book' and lib_book_read = 0:
  139. lib_book_read = 1
  140. end
  141. BookVars['science_pages'] = rand(400, 600)
  142. mc_inventory['science_books'] -= 1
  143. end
  144. if mc_inventory['science_books'] > 0: $book_text[] = '<<mc_inventory[''science_books'']>> science book' + iif(mc_inventory['science_books']=1, '', 's')
  145. end
  146. if mc_inventory['adventure_books'] > 0:
  147. if BookVars['adventure_pages'] <= 0:
  148. if $lib_book_loaned = 'an adventure novel' and lib_book_read = 0:
  149. lib_book_read = 1
  150. end
  151. BookVars['adventure_pages'] = rand(400, 600)
  152. mc_inventory['adventure_books'] -= 1
  153. end
  154. if mc_inventory['adventure_books'] > 0: $book_text[] = '<<mc_inventory[''adventure_books'']>> adventure novel' + iif(mc_inventory['adventure_books']=1, '', 's')
  155. end
  156. if mc_inventory['fantasy_books'] > 0:
  157. if BookVars['fantasy_pages'] <= 0:
  158. if $lib_book_loaned = 'a fantasy novel' and lib_book_read = 0:
  159. lib_book_read = 1
  160. end
  161. BookVars['fantasy_pages'] = rand(400, 600)
  162. mc_inventory['fantasy_books'] -= 1
  163. end
  164. if mc_inventory['fantasy_books'] > 0: $book_text[] = '<<mc_inventory[''fantasy_books'']>> fantasy novel' + iif(mc_inventory['fantasy_books']=1, '', 's')
  165. end
  166. if mc_inventory['scifi_books'] > 0:
  167. if BookVars['scifi_pages'] <= 0:
  168. if $lib_book_loaned = 'a science fiction novel' and lib_book_read = 0:
  169. lib_book_read = 1
  170. end
  171. BookVars['scifi_pages'] = rand(400, 600)
  172. mc_inventory['scifi_books'] -= 1
  173. end
  174. if mc_inventory['scifi_books'] > 0: $book_text[] = '<<mc_inventory[''scifi_books'']>> science fiction novel' + iif(mc_inventory['scifi_books']=1, '', 's')
  175. end
  176. if mc_inventory['romance_books'] > 0:
  177. if BookVars['romance_pages'] <= 0:
  178. if $lib_book_loaned = 'a romance novel' and lib_book_read = 0:
  179. lib_book_read = 1
  180. end
  181. BookVars['romance_pages'] = rand(400, 600)
  182. mc_inventory['romance_books'] -= 1
  183. end
  184. if mc_inventory['romance_books'] > 0: $book_text[] = '<<mc_inventory[''romance_books'']>> romance novel' + iif(mc_inventory['romance_books']=1, '', 's')
  185. end
  186. if arrsize('$book_text') > 0:
  187. 'You still have <<func(''shortgs'', ''enumerate_list'', ''$book_text'')>> you haven''t started on.'
  188. end
  189. killvar '$book_text'
  190. if BookVars['science_pages'] > 0:
  191. act 'Read Science Book. There are <<BookVars[''science_pages'']>> pages left (1:00)':
  192. *clr & cla
  193. menu_off = 1
  194. temp_pages_read = (70 + rand(0, 40) + pcs_traits['nerd_status'] * 10)
  195. BookVars['science_pages'] -= temp_pages_read
  196. if BookVars['science_pages'] = 0: totalbook += 1
  197. gs 'exp_gain', 'intel', rand(3,6) + rand(0, drugVars['mentats_dose'])
  198. gs 'library_functions', 'read_book'
  199. gs 'stat'
  200. if $clothingworntype = 'nude' and $braworntype = 'none' and $pantyworntype = 'none':
  201. '<center><img <<$set_imgh>> src="images/pc/activities/reading/bed_book_nude.jpg"></center>'
  202. elseif $clothingworntype = 'nude' and $braworntype ! 'none' and $pantyworntype ! 'none':
  203. '<center><img <<$set_imgh>> src="images/pc/activities/reading/bed_book_underwear.jpg"></center>'
  204. else
  205. '<center><img <<$set_imgh>> src="images/pc/activities/reading/bed_book_dressed.jpg"></center>'
  206. end
  207. if pcs_nerd > 0:
  208. pcs_mood = 100
  209. pcs_horny += 10
  210. if pcs_stren > 1:stren_deg -= 1
  211. if pcs_vital > 5:vital_deg -= 1
  212. if BookVars['science_pages'] = 0:
  213. 'You read the final chapters of the science book, completely immersed in the conclusions the authors make.'
  214. else
  215. 'For an hour you enthusiastically read the book, completely immersed in absorbing the knowledge within. By the end you''ve read <<temp_pages_read>> pages.'
  216. end
  217. else
  218. pcs_mood += 10
  219. pcs_horny += 3
  220. if BookVars['science_pages'] = 0:
  221. 'You read the final chapters of the adventure novel.'
  222. else
  223. 'Over the course of an hour you read <<temp_pages_read>> pages.'
  224. end
  225. end
  226. act 'Close the book': gt $loc, $loc_arg
  227. end
  228. end
  229. if BookVars['adventure_pages'] > 0:
  230. act 'Read Adventure Novel. There are <<BookVars[''adventure_pages'']>> pages left (1:00)':
  231. *clr & cla
  232. menu_off = 1
  233. temp_pages_read = (80 + rand(0, 40) + pcs_traits['nerd_status'] * 5)
  234. BookVars['adventure_pages'] -= temp_pages_read
  235. if BookVars['adventure_pages'] = 0: totalbook += 1
  236. gs 'library_functions', 'read_book'
  237. gs 'stat'
  238. if $clothingworntype = 'nude' and $braworntype = 'none' and $pantyworntype = 'none':
  239. '<center><img <<$set_imgh>> src="images/pc/activities/reading/bed_book_nude.jpg"></center>'
  240. elseif $clothingworntype = 'nude' and $braworntype ! 'none' and $pantyworntype ! 'none':
  241. '<center><img <<$set_imgh>> src="images/pc/activities/reading/bed_book_underwear.jpg"></center>'
  242. else
  243. '<center><img <<$set_imgh>> src="images/pc/activities/reading/bed_book_dressed.jpg"></center>'
  244. end
  245. if pcs_nerd > 0:
  246. pcs_mood = 100
  247. pcs_horny += 10
  248. if pcs_stren > 1:stren_deg -= 1
  249. if pcs_vital > 5:vital_deg -= 1
  250. if BookVars['adventure_pages'] = 0:
  251. 'You read the final chapters of the adventure novel, completely immersed in the climactic ending to the authors entralling story.'
  252. else
  253. 'For an hour you enthusiastically read the novel, completely immersed in the authors world. By the end you''ve read <<temp_pages_read>> pages.'
  254. end
  255. else
  256. pcs_mood += 10
  257. pcs_horny += 3
  258. if BookVars['adventure_pages'] = 0:
  259. 'You read the final chapters of the adventure novel.'
  260. else
  261. 'Over the course of an hour you read <<temp_pages_read>> pages.'
  262. end
  263. end
  264. act 'Close the book': gt $loc, $loc_arg
  265. end
  266. end
  267. if BookVars['fantasy_pages'] > 0:
  268. act 'Read fantasy book. There are <<BookVars[''fantasy_pages'']>> pages left (1:00)':
  269. *clr & cla
  270. menu_off = 1
  271. temp_pages_read = (80 + rand(0, 40) + pcs_traits['nerd_status'] * 5)
  272. BookVars['fantasy_pages'] -= temp_pages_read
  273. if BookVars['fantasy_pages'] <= 0:
  274. totalbook += 1
  275. if lib_book_read = 1 and $lib_book_loaned = 'a fantasy novel': lib_book_read = 2
  276. end
  277. gs 'library_functions', 'read_book'
  278. gs 'stat'
  279. if $clothingworntype = 'nude' and $braworntype = 'none' and $pantyworntype = 'none':
  280. '<center><img <<$set_imgh>> src="images/pc/activities/reading/bed_book_nude.jpg"></center>'
  281. elseif $clothingworntype = 'nude' and $braworntype ! 'none' and $pantyworntype ! 'none':
  282. '<center><img <<$set_imgh>> src="images/pc/activities/reading/bed_book_underwear.jpg"></center>'
  283. else
  284. '<center><img <<$set_imgh>> src="images/pc/activities/reading/bed_book_dressed.jpg"></center>'
  285. end
  286. if pcs_nerd > 0:
  287. pcs_mood = 100
  288. if pcs_stren > 1: stren_deg -= 1
  289. if pcs_vital > 5: vital_deg -= 1
  290. if BookVars['fantasy_pages'] = 0:
  291. 'You read the final chapters of the fantasy novel, completely immersed in the climactic ending to the authors entralling story.'
  292. else
  293. 'For an hour you enthusiastically read the novel, completely immersed in the authors world. By the end you''ve read <<temp_pages_read>> pages.'
  294. end
  295. else
  296. pcs_mood += 10
  297. if BookVars['fantasy_pages'] = 0:
  298. 'You read the final chapters of the fantasy novel.'
  299. else
  300. 'Over the course of an hour you read <<temp_pages_read>> pages.'
  301. end
  302. end
  303. act 'Close the book':gt $loc, $loc_arg
  304. end
  305. end
  306. if BookVars['scifi_pages'] > 0:
  307. act 'Read Science Fiction Novel. There are <<BookVars[''scifi_pages'']>> pages left (1:00)':
  308. *clr & cla
  309. menu_off = 1
  310. temp_pages_read = (80 + rand(0, 40) + pcs_traits['nerd_status'] * 5)
  311. BookVars['scifi_pages'] -= temp_pages_read
  312. if BookVars['scifi_pages'] = 0: totalbook += 1
  313. gs 'library_functions', 'read_book'
  314. gs 'stat'
  315. if $clothingworntype = 'nude' and $braworntype = 'none' and $pantyworntype = 'none':
  316. '<center><img <<$set_imgh>> src="images/pc/activities/reading/bed_book_nude.jpg"></center>'
  317. elseif $clothingworntype = 'nude' and $braworntype ! 'none' and $pantyworntype ! 'none':
  318. '<center><img <<$set_imgh>> src="images/pc/activities/reading/bed_book_underwear.jpg"></center>'
  319. else
  320. '<center><img <<$set_imgh>> src="images/pc/activities/reading/bed_book_dressed.jpg"></center>'
  321. end
  322. if pcs_nerd > 0:
  323. pcs_mood = 100
  324. pcs_horny += 10
  325. if pcs_stren > 1:stren_deg -= 1
  326. if pcs_vital > 5:vital_deg -= 1
  327. if BookVars['scifi_pages'] = 0:
  328. 'You read the final chapters of the science fiction novel, completely immersed in the climactic ending to the authors entralling story.'
  329. else
  330. 'For an hour you enthusiastically read the novel, completely immersed in the authors world. By the end you''ve read <<temp_pages_read>> pages.'
  331. end
  332. else
  333. pcs_mood += 10
  334. pcs_horny += 3
  335. if BookVars['scifi_pages'] = 0:
  336. 'You read the final chapters of the science fiction novel.'
  337. else
  338. 'Over the course of an hour you read <<temp_pages_read>> pages.'
  339. end
  340. end
  341. act 'Close the book': gt $loc, $loc_arg
  342. end
  343. end
  344. if BookVars['romance_pages'] > 0:
  345. act 'Read Romance Novel. There are <<BookVars[''romance_pages'']>> pages left (1:00)':
  346. *clr & cla
  347. menu_off = 1
  348. temp_pages_read = (80 + rand(0, 40) + pcs_traits['nerd_status'] * 5)
  349. BookVars['romance_pages'] -= temp_pages_read
  350. if BookVars['romance_pages'] = 0: totalbook += 1
  351. gs 'library_functions', 'read_book'
  352. gs 'stat'
  353. if $clothingworntype = 'nude' and $braworntype = 'none' and $pantyworntype = 'none':
  354. '<center><img <<$set_imgh>> src="images/pc/activities/reading/bed_book_nude.jpg"></center>'
  355. elseif $clothingworntype = 'nude' and $braworntype ! 'none' and $pantyworntype ! 'none':
  356. '<center><img <<$set_imgh>> src="images/pc/activities/reading/bed_book_underwear.jpg"></center>'
  357. else
  358. '<center><img <<$set_imgh>> src="images/pc/activities/reading/bed_book_dressed.jpg"></center>'
  359. end
  360. if pcs_nerd > 0:
  361. pcs_mood = 100
  362. pcs_horny += 20
  363. if pcs_stren > 1:stren_deg -= 1
  364. if pcs_vital > 5:vital_deg -= 1
  365. if BookVars['romance_pages'] = 0:
  366. 'You read the final chapters of the romance novel, completely immersed in the climactic ending to the authors entralling story.'
  367. else
  368. 'For an hour you enthusiastically read the novel, completely immersed in the authors world. By the end you''ve read <<temp_pages_read>> pages.'
  369. end
  370. else
  371. pcs_mood += 10
  372. pcs_horny += 10
  373. if BookVars['romance_pages'] = 0:
  374. 'You read the final chapters of the romance novel.'
  375. else
  376. 'Over the course of an hour you read <<temp_pages_read>> pages.'
  377. end
  378. end
  379. act 'Close the book': gt $loc, $loc_arg
  380. end
  381. end
  382. if BookVars['artem_pages'] > 0:
  383. act 'Read the book your borrowed from Artem. There are <<BookVars[''artem_pages'']>> pages left (1:00) ':
  384. *clr & cla
  385. menu_off = 1
  386. temp_pages_read = (80 + rand(0, 40) + pcs_traits['nerd_status'] * 5)
  387. BookVars['artem_pages'] -= temp_pages_read
  388. if BookVars['artem_pages'] = 0: totalbook += 1
  389. gs 'library_functions', 'read_book'
  390. gs 'stat'
  391. if $clothingworntype = 'nude' and $braworntype = 'none' and $pantyworntype = 'none':
  392. '<center><img <<$set_imgh>> src="images/pc/activities/reading/bed_book_nude.jpg"></center>'
  393. elseif $clothingworntype = 'nude' and $braworntype ! 'none' and $pantyworntype ! 'none':
  394. '<center><img <<$set_imgh>> src="images/pc/activities/reading/bed_book_underwear.jpg"></center>'
  395. else
  396. '<center><img <<$set_imgh>> src="images/pc/activities/reading/bed_book_dressed.jpg"></center>'
  397. end
  398. if pcs_nerd > 0:
  399. pcs_mood = 100
  400. if pcs_stren > 1:stren_deg -= 1
  401. if pcs_vital > 5:vital_deg -= 1
  402. if BookVars['artem_pages'] = 0:
  403. 'You read the final chapters of the book, completely immersed in the climactic ending to the authors entralling story'
  404. else
  405. 'For an hour you enthusiastically read the book, completely immersed in the authors world. By the end you''ve read <<temp_pages_read>> pages.'
  406. end
  407. else
  408. pcs_mood += 10
  409. if BookVars['romance_pages'] = 0:
  410. 'You read the final chapters of the book.'
  411. else
  412. 'Over the course of an hour you read <<temp_pages_read>> pages.'
  413. end
  414. end
  415. act 'Close the book': gt $loc, $loc_arg
  416. end
  417. end
  418. if tractatus > 0:
  419. act 'Study Aleksei''s magical discourse on unarmed combat. You feel that there are <<tractatus>> uses left (0:15) ':
  420. if pcs_mana <= 400:
  421. msg ' The text makes no sense! You don''t have enough mana to trigger it''s magic, so is better if you rest to recover.'
  422. gt $loc, $loc_arg
  423. exit
  424. end
  425. *clr & cla
  426. minut += 15
  427. tractatus -= 1
  428. if tractatus = 0: totalbook += 1
  429. pcs_mood += 10
  430. pcs_mana -= 400
  431. gs 'exp_gain', 'def', rand(7,10)
  432. gs 'exp_gain', 'jab', rand(7,10)
  433. gs 'exp_gain', 'kick', rand(7,10)
  434. gs 'exp_gain', 'punch', rand(7,10)
  435. gs 'stat'
  436. if $clothingworntype = 'nude' and $braworntype = 'none' and $pantyworntype = 'none':
  437. '<center><img <<$set_imgh>> src="images/pc/activities/reading/bed_book_nude.jpg"></center>'
  438. elseif $clothingworntype = 'nude' and $braworntype ! 'none' and $pantyworntype ! 'none':
  439. '<center><img <<$set_imgh>> src="images/pc/activities/reading/bed_book_underwear.jpg"></center>'
  440. else
  441. '<center><img <<$set_imgh>> src="images/pc/activities/reading/bed_book_dressed.jpg"></center>'
  442. end
  443. 'As you read the strange text, the words blur and suddenly you are <i>inspired</i>. Your mind fill with new ideas and revelations, the defects in your combat form polished and the knows at how inflict the maximum level of pain at the minimal cost... sharpened.'
  444. act 'Close the book': gt $loc, $loc_arg
  445. end
  446. end
  447. act ' Close the book': gt $loc, $loc_arg
  448. end
  449. if mc_inventory['mag_cooking'] = 0 and mc_inventory['mag_fashion'] = 0 and mc_inventory['mag_computer'] = 0 and mc_inventory['mag_biography'] = 0 and mc_inventory['mag_knitting'] = 0 and mc_inventory['mag_fitness'] = 0:
  450. 'You have no magazines to read.'
  451. else
  452. act 'Read a magazine':
  453. *clr & cla
  454. gs 'stat'
  455. if $clothingworntype = 'nude' and $braworntype = 'none' and $pantyworntype = 'none':
  456. '<center><img <<$set_imgh>> src="images/pc/activities/reading/bed_magazine_nude.jpg"></center>'
  457. elseif $clothingworntype = 'nude' and $braworntype = 'none' and $pantyworntype ! 'none':
  458. '<center><img <<$set_imgh>> src="images/pc/activities/reading/bed_magazine_topless.jpg"></center>'
  459. elseif $clothingworntype = 'nude' and $braworntype ! 'none' and $pantyworntype ! 'none':
  460. '<center><img <<$set_imgh>> src="images/pc/activities/reading/bed_magazine_underwear.jpg"></center>'
  461. else
  462. '<center><img <<$set_imgh>> src="images/pc/activities/reading/bed_magazine_dressed.jpg"></center>'
  463. end
  464. gs 'library_functions', 'set_magazine_acts'
  465. act 'Return': gt $loc, $loc_arg
  466. end
  467. end
  468. end
  469. if $ARGS[0] = 'set_magazine_acts':
  470. if mc_inventory['mag_cooking'] > 0:
  471. act 'Read your cooking magazine':
  472. cla & *nl
  473. gs 'library_functions', 'read_magazine'
  474. mc_inventory['mag_cooking'] -= 1
  475. 'You relax for half an hour reading your cooking magazine.'
  476. act 'Return':gt $loc, $loc_arg
  477. end
  478. end
  479. if mc_inventory['mag_fashion'] > 0:
  480. act 'Read your fashion magazine':
  481. cla & *nl
  482. gs 'library_functions', 'read_magazine'
  483. mc_inventory['mag_fashion'] -= 1
  484. gs 'exp_gain', 'makupskl', 1
  485. 'You relax for half an hour reading your fashion magazine.'
  486. act 'Return':gt $loc, $loc_arg
  487. end
  488. end
  489. if mc_inventory['mag_computer'] > 0:
  490. act 'Read your computing magazine':
  491. cla & *nl
  492. gs 'library_functions', 'read_magazine'
  493. mc_inventory['mag_computer'] -= 1
  494. gs 'exp_gain', 'compskl', 1
  495. 'You relax for half an hour reading your computing magazine.'
  496. act 'Return':gt $loc, $loc_arg
  497. end
  498. end
  499. if mc_inventory['mag_biography'] > 0:
  500. act 'Read your biographical magazine':
  501. cla & *nl
  502. gs 'library_functions', 'read_magazine'
  503. mc_inventory['mag_biography'] -= 1
  504. 'You relax for half an hour reading your biographical magazine.'
  505. act 'Return':gt $loc, $loc_arg
  506. end
  507. end
  508. if mc_inventory['mag_knitting'] > 0:
  509. act 'Read your knitting magazine':
  510. cla & *nl
  511. gs 'library_functions', 'read_magazine'
  512. mc_inventory['mag_knitting'] -= 1
  513. if pcs_sewng <= 100: gs 'exp_gain', 'sewng', rand(1,3)
  514. 'You relax for half an hour reading your knitting magazine.'
  515. act 'Return':gt $loc, $loc_arg
  516. end
  517. end
  518. if mc_inventory['mag_fitness'] > 0:
  519. act 'Read your fitness magazine':
  520. cla & *nl
  521. gs 'library_functions', 'read_magazine'
  522. mc_inventory['mag_fitness'] -= 1
  523. 'You relax for half an hour reading your fitness magazine.'
  524. act 'Return':gt $loc, $loc_arg
  525. end
  526. end
  527. end
  528. if $ARGS[0] = 'set_read_porn_act':
  529. if mc_inventory['mag_porn'] > 0:
  530. act 'Read the porn magazine':
  531. if blizoruk = 500 or glassqw = 1:
  532. glassqw = 1
  533. msg ' The text blurs across the page, it seems you have poor eyesight. Probably from all the porn. Maybe you should visit an ophthalmologist?'
  534. gt $loc, $loc_arg
  535. end
  536. *clr & cla
  537. '<center><img <<$set_imgh>> src="images/pc/items/accessories/magazines/porn.jpg"></center>'
  538. if mc_inventory['mag_porn'] = 1:
  539. '<font color="magenta">Boring</font>, you''ve memorized this magazine by heart, you think that is time to buy a new one.'
  540. else
  541. mc_inventory['mag_porn'] -= 1
  542. pcs_horny += 10
  543. minut += 5
  544. 'You flip through the porno magazine, reading the stories and looking at the pictures. A small excitement begins to cover your body.'
  545. end
  546. gs 'stat'
  547. act 'Put away': gt $loc, $loc_arg
  548. end
  549. end
  550. end
  551. !!=================================================!!
  552. !! !!
  553. !! BUY ACTS !!
  554. !! !!
  555. !!=================================================!!
  556. if $ARGS[0] = 'set_book_buy_acts':
  557. if money >= 350:
  558. gs 'library_functions', 'set_single_book_buy_act', 'a science book', 'science', 350
  559. gs 'library_functions', 'set_single_book_buy_act', 'an adventure novel', 'adventure', 350
  560. gs 'library_functions', 'set_single_book_buy_act', 'a fantasy novel', 'fantasy', 350
  561. gs 'library_functions', 'set_single_book_buy_act', 'a science fiction novel', 'scifi', 350
  562. gs 'library_functions', 'set_single_book_buy_act', 'a romance novel', 'romance', 350
  563. end
  564. end
  565. ! $ARGS[1]: Name of the book
  566. ! $ARGS[2]: Type of book to add to the mc_inventory
  567. ! ARGS[3]: Cost of the book
  568. if $ARGS[0] = 'set_single_book_buy_act':
  569. if ARGS[2] <= 0: ARGS[3] = 350
  570. $result = '
  571. act ''Buy <<$ARGS[1]>> (<<ARGS[3]>> <b>₽</b>)'':
  572. *clr & cla
  573. minut += 15
  574. money -= <<ARGS[3]>>
  575. mc_inventory[''<<$ARGS[2]>>_books''] += 1
  576. gs ''stat''
  577. ''You buy <<$ARGS[1]>> for <<ARGS[3]>> <b>₽</b>.''
  578. act ''Leave'': gt $loc, $loc_arg
  579. end
  580. '
  581. dynamic $result
  582. end
  583. !!=================================================!!
  584. !! !!
  585. !! LOAN ACTS !!
  586. !! !!
  587. !!=================================================!!
  588. if $ARGS[0] = 'set_loan_acts':
  589. gs 'library_functions', 'return_book_act'
  590. gs 'library_functions', 'pay_debt_act'
  591. gs 'library_functions', 'loan_book_act'
  592. end
  593. if $ARGS[0] = 'return_book_act':
  594. if $lib_book_loaned ! '':
  595. 'You''ve currently borrowed <<$lib_book_loaned>>.'
  596. if lib_debt <= 0:
  597. temp_loan_days_left = lib_debt / -50
  598. 'You have <<temp_loan_days_left>> days left before you need to return it.'
  599. else
  600. '<font color="red">Your book is overdue!</font>'
  601. end
  602. act 'Return your loaned book':
  603. if lib_book_read = 0:
  604. if $lib_book_loaned = 'a fantasy novel':
  605. mc_inventory['fantasy_books'] -= 1
  606. end
  607. elseif lib_book_read = 1:
  608. if $lib_book_loaned = 'a fantasy novel':
  609. BookVars['fantasy_pages'] = 0
  610. end
  611. end
  612. $lib_book_loaned = ''
  613. if lib_debt <= 0: lib_debt = 0
  614. gt $loc, $loc_arg
  615. end
  616. end
  617. end
  618. if $ARGS[0] = 'pay_debt_act':
  619. if lib_debt > 0:
  620. 'You owe an outstanding debt of <<lib_debt>> <b>₽</b> to the library.'
  621. if money < lib_debt and karta < lib_debt:
  622. 'You don''t have enough money to pay your debt!'
  623. else
  624. if money >= lib_debt:
  625. act 'Pay your debt (cash)':
  626. money -= lib_debt
  627. lib_debt = 0
  628. gt $loc, $loc_arg
  629. end
  630. end
  631. if karta >= lib_debt:
  632. act 'Pay your debt (card)':
  633. karta -= lib_debt
  634. lib_debt = 0
  635. gt $loc, $loc_arg
  636. end
  637. end
  638. end
  639. end
  640. end
  641. if $ARGS[0] = 'loan_book_act':
  642. if $lib_book_loaned = '' and lib_debt = 0:
  643. !!There''s currently only code for fantasy novels (Is this still true? I''ve left everything but the fantasy novel out until confirmed)
  644. act 'Borrow a science book':
  645. *clr & cla
  646. menu_off = 1
  647. mc_inventory['science_books'] += 1
  648. $lib_book_loaned = 'a science book'
  649. lib_debt = -700
  650. !!Picture here
  651. 'You find a science book that catches your interest and bring it to the librarian, who notes your name and the title of the book down before handing it to you.'
  652. '"You need to return it within 2 weeks. Every day that you''re late incurs a 50 <b>₽</b> fine."'
  653. act 'Continue': gt $loc, $loc_arg
  654. end
  655. act 'Borrow an adventure novel':
  656. *clr & cla
  657. menu_off = 1
  658. mc_inventory['adventure_books'] += 1
  659. $lib_book_loaned = 'an adventure novel'
  660. lib_debt = -700
  661. !!Picture here
  662. 'You find an adventure novel that catches your interest and bring it to the librarian, who notes your name and the title of the book down before handing it to you.'
  663. '"You need to return it within 2 weeks. Every day that you''re late incurs a 50 <b>₽</b> fine."'
  664. act 'Continue': gt $loc, $loc_arg
  665. end
  666. act 'Borrow a fantasy novel':
  667. *clr & cla
  668. menu_off = 1
  669. mc_inventory['fantasy_books'] += 1
  670. $lib_book_loaned = 'a fantasy novel'
  671. lib_debt = -700
  672. !!Picture here
  673. 'You find a fantasy novel that catches your interest and bring it to the librarian, who notes your name and the title of the book down before handing it to you.'
  674. '"You need to return it within 2 weeks. Every day that you''re late incurs a 50 <b>₽</b> fine."'
  675. act 'Continue': gt $loc, $loc_arg
  676. end
  677. act 'Borrow a science fiction novel':
  678. *clr & cla
  679. menu_off = 1
  680. mc_inventory['scifi_books'] += 1
  681. $lib_book_loaned = 'a science fiction novel'
  682. lib_debt = -700
  683. !!Picture here
  684. 'You find a science fiction novel that catches your interest and bring it to the librarian, who notes your name and the title of the book down before handing it to you.'
  685. '"You need to return it within 2 weeks. Every day that you''re late incurs a 50 <b>₽</b> fine."'
  686. act 'Continue': gt $loc, $loc_arg
  687. end
  688. act 'Borrow a romance novel':
  689. *clr & cla
  690. menu_off = 1
  691. mc_inventory['romance_books'] += 1
  692. $lib_book_loaned = 'a romance novel'
  693. lib_debt = -700
  694. !!Picture here
  695. 'You find a fantasy novel that catches your interest and bring it to the librarian, who notes your name and the title of the book down before handing it to you.'
  696. '"You need to return it within 2 weeks. Every day that you''re late incurs a 50 <b>₽</b> fine."'
  697. act 'Continue': gt $loc, $loc_arg
  698. end
  699. end
  700. end
  701. --- library_functions ---------------------------------