bratva_home.qsrc 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. # bratva_home
  2. $loc = $curloc
  3. if $ARGS[0] = 'bcorridor':
  4. $loc = 'bratva_home'
  5. $loc_arg = 'bcorridor'
  6. $locM_arg = 'bcorridor'
  7. $location_type = 'private'
  8. $menu_loc = 'bratva_home'
  9. $menu_arg = 'bcorridor'
  10. menu_off = 0
  11. killvar '$locclass'
  12. *clr & cla
  13. frost = 0
  14. minut += 1
  15. gs 'stat'
  16. gs 'themes', 'indoors'
  17. gs 'bratva_events','bratva_check'
  18. gs 'bratva_home', 'Bratva_tip_tip'
  19. '<center><b><font color="maroon">Entrance hall</font></b></center>'
  20. '<center><img <<$set_imgh>> src="mod/Bratva/locations/city/north/bratva/home/korr.jpg"></center>'
  21. 'Large wall hanging <a href="exec:GT ''mirror'',''start''">mirror</a>'
  22. act 'To the room': gt 'bratva_home','room'
  23. act 'To the kitchen': gt 'bratva_home','kitchen'
  24. act 'Go to bathroom': gt 'bratva_home','bathroom'
  25. !! Conditions for starting an event when the thief''s first event fails
  26. if bratva['thieffail'] = 1 : gt 'bratva_thief','eventthief2'
  27. !---
  28. if bratva['location'] = 1 and bratva['stage'] < 20:
  29. ! Sveta finds documents of one of the bandits
  30. if bratva['documents'] = 0: gt 'bratva_home_events','eventmini1'
  31. ! escape sveta slave
  32. if bratva['escape_day'] ! daystart and bratva['stage'] >= 6 and bratva['stage'] <= 8: gt 'bratva_home_events','event13'
  33. end
  34. ! Self care from the apartment
  35. if bratva['stage'] >= 20: act '<b>Leave</b>': gt 'city_industrial'
  36. end
  37. if $args[0] = '' or $args[0] = 'room':
  38. $menu_loc = 'bratva_home'
  39. $menu_arg = 'room'
  40. menu_off = 0
  41. $loc = 'bratva_home'
  42. $loc_arg = 'room'
  43. minut += 1
  44. *clr & cla
  45. gs 'stat'
  46. gs 'bratva_events','bratva_check'
  47. gs 'bratva_home', 'Bratva_tip'
  48. '<center><b><font color="maroon">Room</font></b></center>'
  49. '<center><img <<$set_imgh>> src="mod/Bratva/locations/city/north/bratva/home/bedr.jpg"></center>'
  50. 'In the room there is a <a href="exec: gt ''bed'',''start''">bed</a>, a sofa and a <a href="exec: gt ''bratva_home'',''Bratva_telly''">television</a> opposite that. On the shelf near the TV there is a few <a href="exec: gt ''bratva_home'',''Bratva_journal''">pornographic magazines</a> and a <a href="exec: gt ''bratva_home'',''Bratva_book_marquise''">book.</a>'
  51. !!* might use rest in stead of wait
  52. act 'Wait':gs 'obj_din', 'wait'
  53. if bratva['location'] = 0: 'Sit on the couch <a href="exec: gt ''mod_bratva_start''">bandits</a>'
  54. if bratva['location'] ! 0:
  55. if bratva['counter'] < 2 and bratva['stage'] <= 10:
  56. if (hour = 8 or hour = 9) and bratva['stage'] = 1: gt 'bratva_home_events','event1'
  57. if (hour = 14 or hour = 15) and bratva['stage'] = 2: gt 'bratva_home_events','event2'
  58. if (hour >= 17 and hour <= 19) and bratva['stage'] = 3: gt 'bratva_home_events','event3'
  59. if hour = 21 or hour = 22:
  60. if bratva['stage'] = 4: gt 'bratva_home_events','event4'
  61. if bratva['stage'] = 5: gt 'bratva_home_events','event5'
  62. if bratva['stage'] = 10: gt 'bratva_home_events','event10'
  63. end
  64. end
  65. end
  66. ! choice of profession
  67. if bratva['stage'] = 20 and bratva['day'] ! daystart and bratva['location'] = 0 and ((bratva['sniper'] = 0 and bratva['thieffail'] = 0 and bratva['madam'] = 0) or (bratva['thieffail'] = 2 and pcs_agil >= 65)):
  68. gt 'bratva_home_events','event14'
  69. end
  70. !The condition of the start of a recurring event
  71. if hour >= 21 and hour < 23 and bratva['happyend'] > 10 and rand(1,5) = 1 and bratva['bratva_event13'] ! daystart: gt 'bratva_events','bratva_event13'
  72. !----------------------
  73. !The condition of the start of the second event with Samantha
  74. if ((hour >= 8 and hour < 10) or hour = 14 or (hour >= 17 and hour < 20) or (hour >= 21 and hour < 23)) and bratva['madam'] = 3: gt 'bratva_madam','eventmadam4'
  75. !The condition of the start of the third event with Samantha
  76. if ((hour >= 10 and hour < 14) or (hour >= 15 and hour < 17)) and bratva['madam'] = 4: act'Have fun with Samantha': gt 'bratva_madam','eventmadam5'
  77. !Conditions for the start of the event Svetka punishment
  78. if ((hour >= 8 and hour < 10) or hour = 14 or (hour >= 17 and hour < 20) or (hour >= 21 and hour < 23)) and bratva['madam'] = 5: gt 'bratva_madam','eventmadam6'
  79. !Conditions for starting a recurring event with Samantha
  80. if ((hour >= 8 and hour < 10) or hour = 14 or (hour >= 17 and hour < 20) or (hour >= 21 and hour < 23)) and bratva['madam'] = 6 and bratva['eventmadam7'] ! daystart: gt 'bratva_madam','eventmadam7'
  81. !----------------------
  82. act 'To hallway': gt 'bratva_home','bcorridor'
  83. end
  84. if $ARGS[0] = 'kitchen':
  85. $menu_loc = 'bratva_home'
  86. $menu_arg = 'kitchen'
  87. $loc = 'bratva_home'
  88. $loc_arg = 'kitchen'
  89. $locclass = 'kitr'
  90. menu_off = 0
  91. minut += 2
  92. *clr & cla
  93. gs 'stat'
  94. gs 'kit_din'
  95. gs 'bratva_events','bratva_check'
  96. gs 'bratva_home', 'Bratva_tip'
  97. '<center><b><font color="maroon">Kitchen</font></b></center>'
  98. '<center><img <<$set_imgh>> src="mod/Bratva/locations/city/north/bratva/home/kuhr.jpg"></center>'
  99. *nl
  100. 'It''s a modest kitchen, but has all that is required.'
  101. !!* So when first brought here there is food and such
  102. if bkitchen_first ! 1:
  103. bkitchen_first = 1
  104. cltarelka = 6
  105. fairy = 21
  106. eda = 21
  107. end
  108. ! dishes
  109. if cltarelka > 0:
  110. 'Above the sink are <b><<cltarelka>></b> the clean plates'
  111. else
  112. '<b><font color = red>You have no clean dishes left.</font></b>'
  113. end
  114. if dirttarelka > 0:'The sink has <b><<dirttarelka>></b> dirty dishes. <a href="exec: dynamic $dirtarm">that need to be washed</a>.'
  115. if fairy > 0:
  116. 'Above the sink is some detergent to wash the dishes with. There is enough for <b><<fairy>></b> uses.'
  117. else
  118. '<b><font color = red>You do not have enough detergent, you should buy some from the supermarket.</font></b>'
  119. end
  120. ! food
  121. if eda > 0:
  122. if cltarelka = 0 or edahot > 0:$edagot = ''
  123. if cltarelka > 0 and edahot = 0:
  124. $edagot = '<a href="exec:dynamic $edagotd">Cook a meal for yourself (0:30)</a>'
  125. end
  126. 'In the refrigerator there''s enough (your own) food for <b><<eda>></b> servings. <<$edagot>>'
  127. end
  128. if edahot > 0:'<a href="exec: dynamic $edahotd ">On the table is ready meal (0:30).</a>'
  129. if edaD = 0 and eda = 0:'<b><font color="red">You have nothing to eat, the refrigerator is empty!</font></b>'
  130. dynamic $edasnack
  131. dynamic $driwater
  132. dynamic $dritea
  133. dynamic $edaD
  134. dynamic $pranik
  135. dynamic $fatdel
  136. dynamic $lekarstvo
  137. dynamic $vitamin
  138. if bratva['location'] = 1:
  139. 'Sitting at the table <a href="exec: gt ''mod_bratva_start''">Cossacks-robbers</a>'
  140. if bratva['counter'] < 2 and bratva['stage'] = 9:
  141. gt 'bratva_home_events','event9'
  142. end
  143. ! the end of the stay in the apartment is either discarded or a conversation about joining
  144. if bratva['stage'] = 11:
  145. if bratva['fail'] > 3:
  146. bratva['stage'] = 255
  147. gt 'bratva_home_events','event11'
  148. else
  149. bratva['stage'] = 20
  150. bratva['day'] = daystart
  151. bratva['agent_zeropussy'] = 1
  152. gt 'bratva_home_events','event12'
  153. end
  154. end
  155. end
  156. act 'Return to hallway':gt 'bratva_home','bcorridor'
  157. end
  158. if $args[0] = 'bathroom':
  159. *clr & cla
  160. $menu_loc = 'bratva_home'
  161. $menu_arg = 'bathroom'
  162. menu_off = 0
  163. minut += 1
  164. $location_type = 'bathroom'
  165. $loc = 'bratva_home'
  166. $loc_arg = 'bathroom'
  167. $locM_arg = 'bathroom'
  168. $locM = 'bratva_home'
  169. gs 'bratva_events','bratva_check'
  170. gs 'bratva_home', 'Bratva_tip'
  171. '<center><h3>Bathroom</h3></center>'
  172. '<center><img <<$set_imgh>> src="mod/Bratva/locations/city/north/bratva/home/bath.jpg"></center>'
  173. *nl
  174. 'Modest bathroom, containing all that young people need for their daily life, such as:'
  175. 'A Shower, toilet, <a href="exec:gt ''mirror'',''start''">mirror</a>, where you can ' +iif(pcs_hairbsh = 0,'<a href="exec:gt ''mirror'',''brush''">brush</a>','brush') + ' your hair, a sink and even a bath tub.'
  176. *nl
  177. if bbath_first ! 1:
  178. bbath_first = 1
  179. shampoo += 14
  180. stanok += 1
  181. end
  182. gs 'din_van', 'private'
  183. gs 'stat'
  184. if bratva['counter'] < 2 and bratva['location'] = 1:
  185. if bratva['stage'] = 6: gt 'bratva_home_events','event6'
  186. if bratva['stage'] = 7: gt 'bratva_home_events','event7'
  187. if bratva['stage'] = 8: gt 'bratva_home_events','event8'
  188. !!* if bratva['stage'] >= 6 and bratva['stage'] <= 8: gt 'bratva_home_events','event<<bratva['stage']>>'
  189. end
  190. act 'Leave':gt 'bratva_home','bcorridor'
  191. end
  192. !
  193. !
  194. !------- Мелкие занятия ------
  195. if $args[0] = 'Bratva_telly':
  196. '<center><img <<$set_imgh>> src="mod/Bratva/locations/city/north/bratva/mini/04.jpg"></center>'
  197. 'In the TV there is only an informational news, sports channels and porn.'
  198. act 'Watch sport channel':
  199. *clr
  200. minut += 30
  201. pcs_mood += 10
  202. gs 'stat'
  203. '<center><img <<$set_imgh>> src="mod/Bratva/locations/city/north/bratva/mini/04.jpg"></center>'
  204. 'There is an American football broadcast on TV. ** You are watching this match for about half an hour.'
  205. gs 'bratva_home', 'Bratva_tip'
  206. end
  207. act 'Switch to porn':
  208. *clr
  209. minut += 30
  210. pcs_horny += 15
  211. pcs_mood += 5
  212. gs 'stat'
  213. '<center><video autoplay loop src="mod/Bratva/locations/city/north/bratva/mini/'+rand(5,6)+'.mp4"></video></center>'
  214. 'You watch with excitement, as on the screen a group of men having fun with a girl.'
  215. gs 'bratva_home', 'Bratva_tip'
  216. end
  217. act 'Turn off': gt $loc,$loc_arg
  218. End
  219. !---
  220. if $args[0] = 'Bratva_journal':
  221. act 'Browse magazines':
  222. *clr
  223. minut += 30
  224. pcs_horny += 25
  225. gs 'stat'
  226. 'You are looking at pictures with the most severe pornography. The pictures are mostly rough anal sex..'
  227. gs 'bratva_home', 'Bratva_tip'
  228. end
  229. act 'Quit looking': gt $loc,$loc_arg
  230. End
  231. !---
  232. if $args[0] = 'Bratva_book_marquise':
  233. '<center><img <<$set_imgh>> src="mod/Bratva/locations/city/north/bratva/mini/03.jpg"></center>'
  234. act 'Read a book':
  235. *clr
  236. minut += 60
  237. pcs_horny += 30
  238. pcs_dom -= 2
  239. gs 'stat'
  240. '<center><img <<$set_imgh>> src="mod/Bratva/locations/city/north/bratva/mini/03.jpg"></center>'
  241. 'You, without stopping, read the work of the Marquis de Sade for an hour with burning ears. And very excited.'
  242. gs 'bratva_home', 'Bratva_tip'
  243. end
  244. act 'Put': gt $loc,$loc_arg
  245. End
  246. !--- The end of the small classes ---
  247. !--- Tip about someone coming home ---
  248. if $args[0] = 'Bratva_tip':
  249. if Bratva_single_day2 ! daystart and bratva['counter'] = 1:
  250. Bratva_single_day2 = daystart
  251. killvar 'Bratva_single_day'
  252. elseif Bratva_single_day ! daystart and bratva['counter'] ! 2 and ((hour >= 8 and hour <= 9 and bratva['stage'] = 1) or ((hour = 14 or hour = 15) and bratva['stage'] = 2) or ((hour = 17 or hour = 19) and bratva['stage'] = 3) or ((hour = 21 or hour = 22) and (bratva['stage'] = 4 or bratva['stage'] = 5 or bratva['stage'] = 10)) or (hour = 20 and ((bratva['stage'] >= 6 and bratva['stage'] <= 9) or bratva['stage'] = 11))):
  253. !!* gs 'zz_funcs','message','', '<center><green>You hear the front door slam the apartment, it seems someone came.</green></center>'
  254. '<center><green>You hear the front door slam the apartment, it seems someone came.</green></center>'
  255. Bratva_single_day = daystart
  256. end
  257. End
  258. !------------------------------------------
  259. --- bratva_home ---------------------------------