mod_wlife_hotelroom.qsrc 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  1. # mod_wlife_hotelroom
  2. CLOSE ALL
  3. if $ARGS[0] = 'start':
  4. *clr & cla
  5. $location_type = 'privatee'
  6. $locM_arg = 'start'
  7. $locM = 'mod_wlife_hotelroom'
  8. $loc_arg = 'start'
  9. $loc = 'mod_wlife_hotelroom'
  10. $prevloc = 'HotelRoom'
  11. $menu_loc = 'mod_wlife_hotelroom'
  12. $menu_arg = 'start'
  13. menu_off = 0
  14. gs 'themes', 'indoors'
  15. gs 'stat'
  16. gs 'internet_mobile', 'get_access'
  17. '<center><b><font color = maroon>Your hotel room</font></b></center>'
  18. '<center><img <<$set_imgh>> src="mod/wlife/images/locations/hotelroom/room.jpg"></center>'
  19. 'Your hotel room is not very large, but it has everything you need and is quite stylish. The large <a href="exec:gt ''bed2''">double bed</a> takes up most of the room. Your <a href="exec:gt ''budilnik'', ''start''">alarm clock</a> stands on the bedside table. A <a href="exec:gt ''mod_wlife_hotelroom'',''safe''">safe</a> is at the bottom of a modern <a href="exec:gt ''wardrobe'', ''start''">wardrobe</a> which stands near the entrance of the room where you can <a href="exec: $wloc = iif($wloc!'''',$wloc,''default1'') & gt ''wardrobe'',$wloc ">choose outfits</a> and organize your clothes.'
  20. *nl
  21. 'Next to the wardrobe is a small <a href="exec:gt ''mod_wlife_hotelroom'', ''desk''">desk</a> and a huge <a href="exec:gt ''mirror'',''start''">mirror</a> mirror hangs in the small hallway. The door to the <a href="exec: minut += 1 & gt ''mod_wlife_hotelroom'',''bathroom''">bathroom</a> is to the right.'
  22. *nl
  23. 'Your hotel room also has <a href="exec:gt ''mod_wlife_hotelroom'',''beverage_tray''">tray</a> with beverages and a <a href="exec:gt ''mod_wlife_hotelroom'',''tv''">TV</a> is mounted on the wall.'+iif(komp = 1, ' Your <a href="exec: gt ''Komp'',''start''">laptop</a> is on the desk. The hotel offers all guests free Wi-Fi.', '')
  24. if wl_status['hotel_bill'] > 0:
  25. *nl
  26. 'This week your bill amounts to <<wl_status[''hotel_bill'']>> <b>₽</b>. It will be debited from your bank account on Monday. If you don''t have enough money in your account it will be added to your debt.'
  27. end
  28. act 'Leave the hotel':
  29. if $clothingworntype ! 'nude':
  30. minut += 2
  31. gt 'pav_market'
  32. else
  33. msg '<b><font color = red>You need to get dressed before leaving your hotel room.</font></b>'
  34. gt 'mod_wlife_hotelroom', 'start'
  35. end
  36. end
  37. act'Go to the hotel lobby':
  38. if $clothingworntype ! 'nude':
  39. gt 'pav_hotel'
  40. else
  41. msg '<b><font color = red>You need to get dressed before leaving your hotel room.</font></b>'
  42. gt 'mod_wlife_hotelroom', 'start'
  43. end
  44. end
  45. act 'Order room service':
  46. *clr & cla
  47. killvar '$_drink'
  48. killvar '$_eat'
  49. menu_off = 1
  50. gs 'stat'
  51. '<center><img <<$set_imgh>> src="mod/wlife/images/locations/hotelroom/roomservice.jpg"></center>'
  52. gs 'mod_wlife_hotelroom', 'roomservice_items'
  53. gs 'food_menu', 'mod'
  54. end
  55. gs 'mod_wlife_functions', 'cocaine'
  56. if joint > 0 and wl_drugs['timer_hotelroom'] ! daystart:
  57. act 'Smoke a joint (0:15)':
  58. *clr & cla
  59. menu_off = 1
  60. minut += 15
  61. wl_drugs['timer_hotelroom'] = daystart
  62. '<center><img <<$set_imgh>> src="mod/wlife/images/player/joint_smoking_inside.jpg"></center>'
  63. 'You lie down on your bed, prepare a joint and light it up. Not before long you''re starting to feel the relaxing effects'+iif(wl_stats['acceptance'] < 20, ' wash away the anxiety about your job.', ' as you''re getting high.')
  64. gs 'mod_wlife_functions', 'weed_check'
  65. gs 'stat'
  66. act 'Continue': gt 'mod_wlife_hotelroom', 'start'
  67. end
  68. end
  69. *nl
  70. gs 'exercise', 'start'
  71. gs 'mod_wlife_hotelroom', 'music'
  72. end
  73. if $ARGS[0] = 'roomservice_items':
  74. $_eat['0,name'] = 'Vegetarian Piroshki'
  75. $_eat['0,type'] = 'pirosh'
  76. $_eat['0,price'] = 100
  77. $_eat['1,name'] = 'Herring Blini'
  78. $_eat['1,type'] = 'bliny'
  79. $_eat['1,price'] = 190
  80. $_eat['2,name'] = 'Golubtsy'
  81. $_eat['2,type'] = 'golub'
  82. $_eat['2,price'] = 210
  83. $_eat['3,name'] = 'Pozharsky Cutlets'
  84. $_eat['3,type'] = 'pozhar'
  85. $_eat['3,price'] = 290
  86. $_eat['4,name'] = 'Rueben Sandwich'
  87. $_eat['4,type'] = 'reuben'
  88. $_eat['4,price'] = 340
  89. $_drink['0,name'] = 'Beer on tap'
  90. $_drink['0,type'] = 'bev_bee'
  91. $_drink['0,price'] = 60
  92. $_drink['1,name'] = 'Vodka'
  93. $_drink['1,type'] = 'bev_vod'
  94. $_drink['1,price'] = 120
  95. $_drink['2,name'] = 'Scotch'
  96. $_drink['2,type'] = 'bev_sco'
  97. $_drink['2,price'] = 140
  98. $_drink['3,name'] = 'Glass of Wine'
  99. $_drink['3,type'] = 'bev_win'
  100. $_drink['3,price'] = 160
  101. $_drink['4,name'] = 'Black Russian'
  102. $_drink['4,type'] = 'bev_bla'
  103. $_drink['4,price'] = 250
  104. end
  105. if $ARGS[0] = 'safe':
  106. *clr & cla
  107. $loc_arg = 'safe'
  108. $menu_arg = 'safe'
  109. menu_off = 0
  110. gs 'stat'
  111. '<center><img <<$set_imgh>> src="mod/wlife/images/locations/hotelroom/safe.jpg"></center>'
  112. 'You can store money in the hotel safe.'+iif(wl_status['money_safe'] > 0, ' There are <<wl_status[''money_safe'']>> <b>₽</b> inside the safe.', '')
  113. act 'Close the safe': gt 'mod_wlife_hotelroom', 'start'
  114. if money > 0:
  115. act 'Put some money in the safe':
  116. cla
  117. minut += 1
  118. menu_off = 1
  119. gs 'stat'
  120. wl_temp = input ("How much money do you want to put into the safe? (Your purse contains <<money>> <b>₽</b>.)")
  121. if wl_temp <= 0 or wl_temp > money:
  122. 'You can''t put this amount into the drawer.'
  123. else
  124. wl_status['money_safe'] += wl_temp
  125. money -= wl_temp
  126. end
  127. killvar 'wl_temp'
  128. gt 'mod_wlife_hotelroom', 'safe'
  129. end
  130. end
  131. if wl_status['money_safe']> 0:
  132. act 'Take some money from the safe':
  133. cla
  134. minut += 1
  135. menu_off = 1
  136. gs 'stat'
  137. wl_temp = input ("How much money do you want to take from the safe? (There is <<wl_status['money_safe']>> <b>₽</b> in the safe.)")
  138. if wl_temp <= 0 or wl_temp > wl_status['money_safe']:
  139. 'You can''t take this amount from your drawer.'
  140. else
  141. wl_status['money_safe'] -= wl_temp
  142. money += wl_temp
  143. end
  144. killvar 'wl_temp'
  145. gt 'mod_wlife_hotelroom', 'safe'
  146. end
  147. end
  148. end
  149. if $ARGS[0] = 'desk':
  150. *clr & cla
  151. $loc_arg = 'desk'
  152. $menu_arg = 'desk'
  153. menu_off = 0
  154. gs'stat'
  155. '<center><h1>Desk</h1></center>'
  156. '<center><img <<$set_imgh>> src="mod/wlife/images/locations/hotelroom/room.jpg"></center>'
  157. 'You sit down at the desk.'
  158. if mentats_have > 0: '<a href="exec:dynamic $use_mentats & gt ''mod_wlife_hotelroom'', ''desk''"><b>Take neurobooster pill.</b></a> Uses left: <<mentats_have>>. Warning on the box says not to take more than one per day.'
  159. if steroid_have > 0: '<a href="exec:dynamic $use_steroids & gt ''mod_wlife_hotelroom'', ''desk''"><b>Take steroids.</b></a> Uses left: <<steroid_have>>.'
  160. if aphrodisiac_have > 0: '<a href="exec:dynamic $use_aphrodisiac & gt ''mod_wlife_hotelroom'', ''desk''"><b>Chew aphrodisiac gum.</b></a> Uses left: <<aphrodisiac_have>>.'
  161. act 'Get up': gt 'mod_wlife_hotelroom', 'start'
  162. act 'Check your birth control': gt 'mod_wlife_hotelroom', 'birth_control'
  163. if strapon = 1:
  164. if dildo + middildo + largedildo + bigdildo + extradildo + superdildo + maddildo > 0:
  165. act 'Check out your strapon harness': gt 'mod_wlife_hotelroom', 'strapon'
  166. else
  167. act 'Check out your strapon harness': '<br>You don''t have any dildos to attach to your strapon harness'
  168. end
  169. end
  170. if SchoolAtestat = 0 and SchoolBlock = 0:
  171. gs 'willpower', 'misc', 'self', iif(grupTipe = 4 and traits['nerd_status'] = 0, 'hard', iif(traits['nerd_status'] > 0, 'easy', 'medium'))
  172. if traits['nerd_status'] = 2: will_cost = will_cost / 2
  173. if lernHome > 0 and (will_cost <= pcs_willpwr or traits['nerd_status'] = 3):
  174. '<br>You have to your homework. Finishing everything will take <<lernHome>> hours.'
  175. act 'Do your homework (1:00'+iif(traits['nerd_status'] = 3, '', ' and <<will_cost>> Willpower')+')':
  176. cla & *clr
  177. '<center><img <<$set_imgh>> src="images/locations/shared/apartment/homework.jpg"></center>'
  178. minut += 60
  179. pcs_mood += 5 * traits['nerd_status']
  180. lernHome -= 1
  181. lern += 1
  182. gs 'willpower', 'misc', 'self', iif(grupTipe = 4, 'hard', iif(traits['nerd_status'] > 0, 'easy', 'medium'))
  183. if traits['nerd_status'] = 2: will_cost = will_cost / 2
  184. if traits['nerd_status'] < 3: gs 'willpower', 'pay', 'self'
  185. gs'stat'
  186. 'It took you one hour to '+iif(lernHome = 0, 'complete', 'do a part of')+' your homework.'
  187. act 'Continue': gt 'mod_wlife_hotelroom', 'desk'
  188. end
  189. elseif lernHome > 0 and will_cost > pcs_willpwr:
  190. 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>'
  191. end
  192. will_cost = will_cost * lernHome
  193. if lernHome > 1 and (will_cost <= pcs_willpwr or traits['nerd_status'] = 3):
  194. act 'Finish all of your homework (<<lernHome>>:00'+iif(traits['nerd_status'] = 3, '', ' and <<will_cost>> Willpower')+')':
  195. cla & *clr
  196. '<center><img <<$set_imgh>> src="images/locations/shared/apartment/homework.jpg"></center>'
  197. 'It took you <<lernHome>> hours to complete your homework.'
  198. minut += 60 * lernHome
  199. pcs_mood += 5 * traits['nerd_status'] *lernHome
  200. lern += 1 + lernHome/2
  201. lernHome = 0
  202. if traits['nerd_status'] < 3: gs 'willpower', 'pay', 'self'
  203. gs'stat'
  204. act 'Continue': gt 'mod_wlife_hotelroom', 'desk'
  205. end
  206. elseif lernHome > 1 and will_cost > pcs_willpwr:
  207. 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>'
  208. end
  209. end
  210. end
  211. if $ARGS[0] = 'strapon':
  212. *clr & cla
  213. $loc_arg = 'strapon'
  214. $menu_arg = 'strapon'
  215. menu_off = 0
  216. gs'stat'
  217. '<center><h1>Desk</h1></center>'
  218. '<center><img <<$set_imgh>> src="mod/wlife/images/locations/hotelroom/room.jpg"></center>'
  219. if strapnumber = 0: 'Your strapon harness doesn''t have a dildo attached to it.'
  220. *nl
  221. if dildo = 1: iif(strapnumber = 1, 'Your 10cm dildo is attached to your strapon harness.', '<a href="exec:strapnumber = 1 & gt ''mod_wlife_hotelroom'', ''strapon''">Attach</a> your 10cm long dildo.')
  222. if middildo = 1: iif(strapnumber = 2, 'Your 15cm dildo is attached to your strapon harness.','<a href="exec:strapnumber = 2 & gt ''mod_wlife_hotelroom'', ''strapon''">Attach</a> your 15cm long dildo.')
  223. if largedildo = 1: iif(strapnumber = 3, 'Your 20cm dildo is attached to your strapon harness.','<a href="exec:strapnumber = 3 & gt ''mod_wlife_hotelroom'', ''strapon''">Attach</a> your 20cm long dildo.')
  224. if bigdildo = 1: iif(strapnumber = 4, 'Your 25cm dildo is attached to your strapon harness.','<a href="exec:strapnumber = 4 & gt ''mod_wlife_hotelroom'', ''strapon''">Attach</a> your 25cm long dildo.')
  225. if extradildo = 1: iif(strapnumber = 5, 'Your 30cm dildo is attached to your strapon harness.','<a href="exec:strapnumber = 5 & gt ''mod_wlife_hotelroom'', ''strapon''">Attach</a> your 30cm long dildo.')
  226. if superdildo = 1: iif(strapnumber = 6, 'Your 35cm dildo is attached to your strapon harness.','<a href="exec:strapnumber = 6 & gt ''mod_wlife_hotelroom'', ''strapon''">Attach</a> your 35cm long dildo.')
  227. if maddildo = 1: iif(strapnumber = 7, 'Your 40cm dildo is attached to your strapon harness.','<a href="exec:strapnumber = 7 & gt ''mod_wlife_hotelroom'', ''strapon''">Attach</a> your 40cm long dildo.')
  228. act 'Put your strapon harness away': gt 'mod_wlife_hotelroom', 'desk'
  229. end
  230. if $ARGS[0] = 'birth_control':
  231. *clr & cla
  232. $loc_arg = 'birth_control'
  233. $menu_arg = 'birth_control'
  234. menu_off = 0
  235. gs'stat'
  236. gs 'din_bad'
  237. '<center><h1>Desk</h1></center>'
  238. '<center><img <<$set_imgh>> src="mod/wlife/images/locations/hotelroom/room.jpg"></center>'
  239. 'You store your birth control in one of the drawers of your desk.'
  240. act 'Close the drawer':gt 'mod_wlife_hotelroom', 'desk'
  241. if mc_inventory['equipped_condoms'] + mc_inventory['normal_condoms'] + mc_inventory['sabotaged_condoms'] > 0:
  242. if preziktype = 2 or mc_inventory['sabotaged_condoms'] > 0:
  243. '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>'
  244. elseif preziktype < 2 and mc_inventory['sabotaged_condoms'] = 0:
  245. 'You have <<mc_inventory["equipped_condoms"] + mc_inventory["normal_condoms"]>> <a href="exec:dynamic $din_Table_Condom_Menu"><b>condoms.</b></a>'
  246. end
  247. *nl
  248. else
  249. 'You are out of condoms.'
  250. end
  251. if mc_inventory['contraceptive_pill'] > 0 and pillsleft[ptype] > 0:
  252. '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>'
  253. elseif mc_inventory['contraceptive_pill'] = 0 and pillsleft[ptype] > 0:
  254. 'You have <<pillsleft[ptype]>> <a href="exec:dynamic $d_tabletkiedt">birth control pills</a> left.</b>'
  255. elseif mc_inventory['contraceptive_pill'] > 0 and pillsleft[ptype] = 0:
  256. 'You have <<mc_inventory["contraceptive_pill"]>> unopened packages of <a href="exec:dynamic $d_tabletkiedt">birth control pills</a>.'
  257. else
  258. 'You are out of birth control pills.'
  259. end
  260. end
  261. if $ARGS[0] = 'beverage_tray':
  262. *clr & cla
  263. $loc_arg = 'beverage_tray'
  264. $menu_arg = 'beverage_tray'
  265. menu_off = 0
  266. gs'stat'
  267. '<center><img <<$set_imgh>> src="mod/wlife/images/locations/hotelroom/beverage_tray_'+iif(wl_status['coffee_maker'] < 2, 0, 1)+'.jpg"></center>'
  268. 'On the tray is is a small selection of different types of tea and an electric kettle to boil water.'+iif(wl_status['coffee_maker'] < 2, '', ' Your coffee maker stands next to it. You have '+iif(wl_status['coffee'] = 0, 'no pods left.', 'pods for <<wl_status[''coffee'']>> cups of coffee.'))
  269. if wl_status['coffee_maker'] = 0:
  270. wl_status['coffee_maker'] = 1
  271. msg 'There is enough space next to the tray for a coffee maker. The shop sells coffee makers and pods if you like coffee.'
  272. end
  273. act 'Step back from the tray': gt 'mod_wlife_hotelroom', 'start'
  274. dynamic $driwater
  275. if wl_status['coffee'] > 0: act 'Have a coffee (0:10)': gt 'mod_wlife_hotelroom', 'coffee'
  276. dynamic $dritea
  277. dynamic $fill_bottle
  278. dynamic $fatdel
  279. dynamic $lekarstvo
  280. dynamic $vitamin
  281. end
  282. if $ARGS[0] = 'coffee':
  283. *clr & cla
  284. frost = 0
  285. if alko > 0: alko -= 1
  286. minut += 10
  287. wl_status['coffee'] -= 1
  288. pcs_health += 5
  289. pcs_mood += 20
  290. pcs_energy += 20
  291. if pcs_hydra >= 100:
  292. pcs_hydra += 20
  293. else
  294. pcs_hydra += 40
  295. end
  296. cumspclnt = 2
  297. gs 'cum_cleanup'
  298. pcs_breath = 0
  299. gs 'beverage', 'afterdrink'
  300. '<center><img <<$set_imgh>> src="mod/wlife/images/locations/hotelroom/coffee.jpg"></center>'
  301. 'You enjoy a hot coffee, and<<$mtxt>>'
  302. gs 'stat'
  303. killvar '$_drink'
  304. act 'Finish': gt 'mod_wlife_hotelroom', 'beverage_tray'
  305. end
  306. if $ARGS[0] = 'bathroom':
  307. *clr & cla
  308. $locM_arg = 'bathroom'
  309. $locM = 'mod_wlife_hotelroom'
  310. $loc_arg = 'bathroom'
  311. $loc = 'mod_wlife_hotelroom'
  312. $menu_arg = 'bathroom'
  313. $location_type = 'bathroom'
  314. hotelShampoo = 10
  315. gs 'themes', 'indoors'
  316. gs'stat'
  317. '<center><b><font color = maroon>Bathroom</font></b></center>'
  318. '<center><img <<$set_imgh>> src="mod/wlife/images/locations/hotelroom/bathroom.jpg"></center>'
  319. 'A small and unpretentious bathroom, that is nevertheless quite stylish and has everything you need.'
  320. act 'Leave the bathroom': hotelShampoo = 0 & gt 'mod_wlife_hotelroom', 'start'
  321. gs 'din_van', 'private', 'hotelroom', 'bath'
  322. end
  323. if $ARGS[0] = 'tv':
  324. *clr & cla
  325. menu_off = 1
  326. gs'stat'
  327. '<center><img <<$set_imgh>> src="mod/wlife/images/player/watch_tv.jpg"></center>'
  328. 'You turn on the TV and make yourself comfortable on the bed.'
  329. act 'Get up from the bed': gt 'mod_wlife_hotelroom', 'start'
  330. act 'Watch TV (1:00)': gt 'mod_wlife_hotelroom', 'watch_tv'
  331. end
  332. if $ARGS[0] = 'watch_tv':
  333. *clr & cla
  334. minut += 60
  335. pcs_mood += rand(10,20)
  336. gs'stat'
  337. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/hotel/tv0,'+rand(0,4)+'.jpg"></center>'
  338. 'You are watching the country''s main television channel. None of their programs are really worth watching, but the distraction is welcome anyway.'
  339. act 'Get up from the bed': gt 'mod_wlife_hotelroom', 'start'
  340. act 'Watch TV (1:00)': gt 'mod_wlife_hotelroom', 'watch_tv'
  341. end
  342. gs 'music_actions', 'icon'
  343. --- mod_wlife_hotelroom ---------------------------------