pav_train_market.qsrc 37 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024
  1. # pav_train_market
  2. !2021/04/29
  3. $location_type = 'public_outdoors'
  4. if $ARGS[0] = 'start':
  5. killvar 'clothingfilter'
  6. $loc_arg = 'start'
  7. $loc = 'pav_train_market'
  8. $menu_loc = 'pav_train_market'
  9. $menu_arg = 'start'
  10. menu_off = 0
  11. CLOSE ALL
  12. if sound = 0:
  13. if month >=11 and month <= 12 or month >=1 and month <=3:
  14. if hour >= 8 and hour <= 23: PLAY 'sound/rynok.mp3',30 & PLAY 'sound/zima.mp3',30
  15. if hour >= 0 and hour <= 7: PLAY 'sound/street_night.mp3',30 & PLAY 'sound/zima.mp3',30
  16. else
  17. if hour >= 8 and hour <= 23: PLAY 'sound/rynok.mp3',30 & PLAY 'sound/street_leto.mp3',30
  18. if hour >= 0 and hour <= 7:PLAY 'sound/street_night.mp3',30
  19. end
  20. end
  21. clr
  22. gs 'stat'
  23. '<center><h2>Market</h2></center>'
  24. if month >= 11 or month <= 3:
  25. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/grinokw.jpg"></center>'
  26. else
  27. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/grinok.jpg"></center>'
  28. end
  29. *nl
  30. 'This small open-air market is located near the train station.'
  31. *nl
  32. 'A sign on one of the stalls says, "Cash paid for secondhand clothes"; you can sell <a href="exec:gs ''portnoi''">all your unwanted clothes here</a>.'
  33. if arturQW = 1 and (week = 6 or week = 7) and hour < 12: act 'Wait for Arthur to arrive':hour = 12 & gt 'pav_train_market', 'start'
  34. *nl
  35. if hour >= 8 and hour <= 18:
  36. 'The market stalls are buzzing with shoppers. Everyone seems to be in a good mood, and you can hear back-and-forth bargaining as you pass by.'
  37. if fame['pav_slut'] >= 100 and rand(0,9) = 0:
  38. menu_off = 1
  39. gs 'stat'
  40. 'An Armenian man comes up to you and, in broken Russian, says, "You girl who like men, no? Come meet real men, have good time."'
  41. act 'Reject him':
  42. *clr & cla
  43. 'You pretend not to understand what he is saying, smiling and shaking your head as you move away from him.'
  44. act 'Return':gt 'pav_train_market', 'start'
  45. end
  46. act 'Go with him':gt 'gevent', '3'
  47. exit
  48. end
  49. act 'Go back to the market entrance': minut += 3 & gt 'pav_market'
  50. act 'Wander through the market': gt 'pav_train_market','events'
  51. if pavtrain_book = 1: act 'Go to the book stall': minut += 5 & gt 'pav_train_market', 3
  52. if pavmarket_porn = 1: act 'Go to the porn stall': minut += 5 & gt 'pav_train_market', 4
  53. if arturKnow = 1 and arturQW = 0:
  54. act 'Look for Arthur':gt 'arturRinok', 'start'
  55. elseif arturQW = 1 and (week = 6 or week = 7):
  56. if hour = 12 or hour = 13:
  57. act 'Look for Arthur':gt 'arturRinok', 'work_1'
  58. end
  59. elseif arturQW = 2:
  60. if hour = 16 and minut <= 30:
  61. act 'Look for Arthur':gt 'arturRinok', 'work_2'
  62. elseif hour < 16:
  63. act 'Wait for Arthur to arrive':hour = 16 & minut = 0 & gt 'pav_train_market', 'start'
  64. end
  65. end
  66. if gobelen > 0 and gobQW = 0:
  67. act'Sell ​​tapestry':
  68. menu_off = 1
  69. *clr & cla
  70. gobQW = 1
  71. minut += 15
  72. gs'stat'
  73. 'You stand quietly by the entrance to the market, waiting for customers and displaying your tapestries. Shortly buyers start to gather, but a large, muscular man approaches you and says, "It is illegal to trade in the market without a trader''s license, but I may be interested in buying your tapestries, 1000<b>₽</b> apiece. So come and see me at my stall."'
  74. 'Not wanting to get into trouble, you pack your stuff away. The man was already gone, but you saw which direction he went, and he should be easy to find.'
  75. act 'Leave':gt 'pav_train_market', 'start'
  76. end
  77. elseif gobelen > 0 and gobQW >= 1:
  78. act'Sell ​​tapestry':
  79. menu_off = 1
  80. *clr & cla
  81. minut += 15
  82. gs'stat'
  83. 'You go to the man who offered to buy your tapestries for 1000<b>₽</b>. You find him by his stall, smiling.'
  84. if gobQW = 2:
  85. 'Roman welcomes you. He is interested and businesslike as he asks what you have for sale.'
  86. elseif gobQW = 1:
  87. gobQW = 2
  88. minut += 5
  89. 'The man greets you and introduces himself as Roman. You tell him that your name is <<$pcs_nickname>>. After a brief chat, Roman says he wants to see what you have for sale.'
  90. end
  91. act 'Leave':gt 'pav_train_market', 'start'
  92. act'Show your tapestry':
  93. *clr & cla
  94. gobelen -= 1
  95. money += 1000
  96. gs'stat'
  97. 'You show your tapestry to Roman, and he gives you five hundred. You take the money and give him the tapestry.'
  98. act 'Leave':gt 'pav_train_market', 'start'
  99. end
  100. if gobelen > 1:
  101. act'Sell all of your tapestries':
  102. *clr & cla
  103. 'You show Roman your tapestries, and he gives you <<gobelen * 1000>> <b>₽</b> for them. You take the money and give him the tapestries.'
  104. money += gobelen * 1000
  105. gobelen = 0
  106. gs'stat'
  107. act 'Leave':gt 'pav_train_market', 'start'
  108. end
  109. end
  110. end
  111. end
  112. if ShowerIvan = 5 and porndeal = 0 and rand(1,10) <= 4 and ricewine ! 1 and lookwine ! daystart:
  113. *clr & cla
  114. gs 'stat'
  115. minut += 20
  116. menu_off = 1
  117. lookwine = daystart
  118. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/chinese_stall01.jpg"></center>'
  119. 'You were looking through the market when you found a stall selling Chinese foods. There are several bottles on a shelf behind the old woman minding the stall.'
  120. act 'Ask about wang-goo':
  121. cla
  122. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/chinese_stall01.jpg"></center>'
  123. 'You asked the old woman if she has any rice wine to sell. She smiles at you and points to a basket filled with rice.'
  124. '"Onry 2 <b>₽</b>, hundred glam." she said in badly accented Russian, "You buy?"'
  125. '"No," you reply, "I need rice wine, rice wine."'
  126. 'She looks at you in confusion for a moment, then suddenly brightens, "Ah!" she exclaims, "Come, come!"'
  127. 'The old woman hurries to the other side of the stall as you follow her to where several smoked piglets are hung in a row.'
  128. '"Here," the old woman crowed, handing you one of the pigs, "Nice swine, vely nice swine."'
  129. '"No, not nice swine," you sigh in despair, "Rice! Wine."'
  130. '"Yes, yes," the woman counters, "Nice swine, only 5 <b>₽</b>."'
  131. *nl
  132. 'Just as you are about to give up, a young Chinese boy about your brother''s age arrives.'
  133. '"My grandmother asks why you don''t like the piglets?" he translates as the old woman stops.'
  134. '"I don''t want a pig," you reply in relief as his Russian is quite good, "I am looking for rice wine, wang-goo."'
  135. '"Ah, huangjiu!" he exclaims as he turns to his grandmother and starts speaking in Chinese.'
  136. 'The old woman glares at you, hangs back the smoked pig and shuffles over to the shelf with the bottles. She finally picks up one of them and brings it over to you.'
  137. '"Why you not say wanted rice wine." she asked in aggrieved tones, "500<b>₽</b>."'
  138. if money >= 500:
  139. act 'Buy the wine':
  140. *clr & cla
  141. money -= 500
  142. ricewine = 1
  143. 'You hand the woman the money, and she gives you the wine.'
  144. act 'Leave': gt 'pav_train_market', 'start'
  145. end
  146. else
  147. 'You are shocked by the high price and realize you cannot afford the wine. You apologize and turn away.'
  148. act 'Leave the market': gt 'pav_train_market', 'start'
  149. act 'Continue browsing the market':
  150. *clr & cla
  151. gs 'stat'
  152. minut += 15
  153. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/market_boy01.jpg"></center>'
  154. 'You continue to wander through the market for another 15 minutes when the boy from the Chinese stall comes up to you.'
  155. '"Hey, you really want that rice wine?" he asks after checking to ensure no one is watching.'
  156. '"Yes," you answer him, "But it''s too expensive. I can''t afford it."'
  157. '"How about we make a deal." he says, "Go to the porn dealer and buy me a porn magazine and I''ll get you the wine."'
  158. if pornmarkonce = 0: pornmarkonce = 1 & '"Where can I find the porn dealer?" you ask, and he happily gives you directions.'
  159. act 'Refuse':
  160. 'You decline his offer as he upsettingly walks away.'
  161. act 'Leave': gt 'pav_train_market', 'start'
  162. end
  163. act 'Agree': porndeal = 1 & gt 'pav_train_market', 4
  164. end
  165. end
  166. end
  167. elseif ShowerIvan = 5 and ricewine ! 1 and lookwine ! daystart:
  168. *clr & cla
  169. menu_off = 1
  170. gs 'stat'
  171. lookwine = daystart
  172. if month >= 11 or month <= 3:
  173. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/grinokw.jpg"></center>'
  174. else
  175. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/grinok.jpg"></center>'
  176. end
  177. 'You look around the market, but the Chinese vendors don''t seem to be here today.'
  178. act 'Leave': gt 'pav_train_market', 'start'
  179. end
  180. if porndeal = 1 and ricewine ! 1 and porndealday ! daystart:
  181. *clr & cla
  182. menu_off = 1
  183. gs 'stat'
  184. porndealday = daystart
  185. lookboy = 0
  186. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/market_boy01.jpg"></center>'
  187. 'The boy from the Chinese stall comes up to you as you enter the market.'
  188. '"Do you have it?" he asks eagerly.'
  189. if haveporn = 1:
  190. porndeal = 2 & ! to close the ricewine event
  191. ricewine = 1
  192. '"Do you have the wine?" you counter.'
  193. 'He pulls the bottle out of his backpack, and you trade items.'
  194. act 'Leave': gt 'pav_train_market', 'start'
  195. else
  196. 'You tell him you haven''t had time to pick up the magazine yet, but you were working on it.'
  197. act 'Leave': gt 'pav_train_market', 'start'
  198. end
  199. elseif porndeal = 1 and ricewine ! 1 and porndealday = daystart and lookboy = 0:
  200. *clr & cla
  201. menu_off = 1
  202. gs 'stat'
  203. lookboy = 1
  204. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/chinese_stall01.jpg"></center>'
  205. 'You look around the market for the boy from the Chinese stall, but you can''t find him. So you decide to look for him another day.'
  206. act 'Leave': gt 'pav_train_market', 'start'
  207. end
  208. act 'View clothing':
  209. cla
  210. minut += 5
  211. gt 'pav_train_market', 'clo'
  212. end
  213. else
  214. 'The market stalls are empty. The market is only open between 08:00 and 19:00.'
  215. act 'Leave the market': minut += 3 & gt 'pav_market'
  216. end
  217. end
  218. if $ARGS[0] = 'clo':
  219. $loc_arg = 'clo'
  220. $loc = 'pav_train_market'
  221. cls
  222. gs'stat'
  223. gs 'themes', 'indoors'
  224. '<center><b><font color="maroon">Clothes.</font></b></center>'
  225. 'Cheap clothing on the market stall.'
  226. gs 'clothing_QV', 'shop_filter_header'
  227. act 'Return':
  228. cla
  229. minut += 5
  230. gt 'pav_train_market', 'start'
  231. end
  232. !!To filter just this set
  233. clo_i = 0
  234. :loopmarket_outfits_filter
  235. i = 1
  236. :loopmarket_outfits
  237. if market_outfits[i] = 0:
  238. gs 'clothing_attributes', 'market_outfits', i
  239. gs 'clothing_QV', 'shop_filter'
  240. !!sort by filter
  241. if (clothingfilter['quality'] = 0 and CloQuality = clo_i) or (clothingfilter['inhibition'] = 0 and CloInhibit = clo_i) or clothingfilter['number'] = 0:
  242. if clothingfilter['inc'] = 1 and clothingfilter['only'] = 1:*p '<a href="exec: i = <<i>> & gt ''pav_train_market'', ''marketclo''"><img <<$set_imgh>> src="images/pc/items/market/clothes/<<i>>.jpg" height="250" /></a>'
  243. end
  244. end
  245. i += 1
  246. if i <= 40:jump 'loopmarket_outfits'
  247. clo_i += 1
  248. if clothingfilter['quality'] = 0 and clo_i <= 7:
  249. jump 'loopmarket_outfits_filter'
  250. elseif clothingfilter['inhibition'] = 0 and clo_i <= 50:
  251. jump 'loopmarket_outfits_filter'
  252. end
  253. end
  254. if $ARGS[0] = 'marketclo':
  255. cla
  256. if market_outfits[i] ! 0:
  257. msg 'You already own these clothes.'
  258. gt 'pav_train_market', 'clo'
  259. end
  260. gt 'clothing', 'view_clothing_item', 'market_outfits',i, 750, 'shop'
  261. end
  262. if $ARGS[0] = 'events':
  263. *clr & cla
  264. minut += 10
  265. menu_off = 1
  266. gs 'stat'
  267. '<center><h2>Market</h2></center>'
  268. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/brodit'+rand(1,16)+'.jpg"></center>'
  269. 'You wander around the market, taking in the sounds and colours, but nothing catches your eye.'
  270. act 'Stop wandering': gt 'pav_train_market', 'start'
  271. if hour >= 8 and hour <= 18:
  272. act 'Wander around the market': gt 'pav_train_market','events'
  273. end
  274. if rand(0,3) = 0: gt 'pav_train_market', rand(1,19)
  275. end
  276. if ARGS[0] = 1:
  277. *clr & cla
  278. menu_off = 1
  279. gs 'stat'
  280. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/poproshaika1.jpg"></center>'
  281. 'You are strolling through the market when a beggar asks you for some change.'
  282. act 'Don''t give money':
  283. *clr & cla
  284. gs 'stat'
  285. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/poproshaika2.jpg"></center>'
  286. 'You ignore the beggar and pretend not to hear him.'
  287. act 'Stop wandering': gt 'pav_train_market', 'start'
  288. if hour >= 8 and hour <= 18:
  289. act 'Wander around the market': gt 'pav_train_market','events'
  290. end
  291. end
  292. act 'Give some money':
  293. *clr & cla
  294. money -= rand(3,20)
  295. pcs_mood += 5
  296. gs 'stat'
  297. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/podaet.jpg"></center>'
  298. 'You give the beggar a few rubles, which he kindly thanks you for.'
  299. act 'Stop wandering': gt 'pav_train_market', 'start'
  300. if hour >= 8 and hour <= 18:
  301. act 'Wander around the market': gt 'pav_train_market','events'
  302. end
  303. end
  304. end
  305. if ARGS[0] = 2:
  306. *clr & cla
  307. menu_off = 1
  308. minut += 5
  309. gs 'stat'
  310. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/dedgitara.jpg"></center>'
  311. 'You see an old man playing the guitar. He''s trying to avert as much attention as he can to himself.'
  312. act 'Stop wandering': gt 'pav_train_market', 'start'
  313. if hour >= 8 and hour <= 18:
  314. act 'Wander around the market': gt 'pav_train_market','events'
  315. end
  316. end
  317. if ARGS[0] = 3:
  318. *clr & cla
  319. menu_off = 1
  320. pavtrain_book = 1
  321. gs 'stat'
  322. if month >= 11 or month <= 3:
  323. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/bookw.jpg"></center>'
  324. else
  325. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/book.jpg"></center>'
  326. end
  327. 'You find a stall selling various books. There are fantasy, science fiction and romance novels, all of which cost only 350<b>₽</b> each.'
  328. act 'Stop wandering': gt 'pav_train_market', 'start'
  329. if hour >= 8 and hour <= 18:
  330. act 'Wander around the market': gt 'pav_train_market','events'
  331. end
  332. if money >= 350:
  333. act 'Buy a fantasy book (350<b>₽</b>)':
  334. *clr & cla
  335. minut += 15
  336. money -= 350
  337. f_book += 1
  338. gs 'stat'
  339. '<center><img <<$set_imgh>> src="images/pc/items/accessories/books/fantasy' + rand(1,9) + '.jpg"></center>'
  340. 'You bought a fantasy book for 350<b>₽</b>.'
  341. act 'Leave':gt 'pav_train_market', 'start'
  342. end
  343. end
  344. if money >= 350:
  345. act 'Buy a science fiction book (350<b>₽</b>)':
  346. *clr & cla
  347. minut += 15
  348. money -= 350
  349. f_book += 1
  350. gs 'stat'
  351. '<center><img <<$set_imgh>> src="images/pc/items/accessories/books/scifi' + rand(1,6) + '.jpg"></center>'
  352. 'You bought a science ficiton book for 350<b>₽</b>.'
  353. act 'Leave':gt 'pav_train_market', 'start'
  354. end
  355. end
  356. if money >= 350:
  357. act 'Buy a romance novel (350<b>₽</b>)':
  358. *clr & cla
  359. minut += 15
  360. money -= 350
  361. w_book += 1
  362. gs 'stat'
  363. '<center><img <<$set_imgh>> src="images/pc/items/accessories/books/romance' + rand(1,20) + '.jpg"></center>'
  364. 'You bought a romance novel for 350 <b>₽</b>.'
  365. act 'Leave':gt 'pav_train_market', 'start'
  366. end
  367. end
  368. end
  369. if ARGS[0] = 4:
  370. *clr & cla
  371. menu_off = 1
  372. pavmarket_porn = 1
  373. gs 'stat'
  374. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/pornmag.jpg"></center>'
  375. 'You find a small stall with many shelves, a large variety of porn magazines, and a pack of brand-new porn playing cards. In addition, you can see several sex toys just behind the counter. The salesman watches over his stall with shifty eyes.'
  376. act 'Stop wandering': gt 'pav_train_market', 'start'
  377. if hour >= 8 and hour <= 18:
  378. act 'Wander around the market': gt 'pav_train_market','events'
  379. end
  380. if money >= 699 and card < 2:
  381. act 'Buy cards (699 <b>₽</b>)':
  382. *clr & cla
  383. minut += 5
  384. money -= 699
  385. card = 2
  386. TimesBuyPorno += 1
  387. gs 'stat'
  388. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/pornmag.jpg"></center>'
  389. 'You try not to look into the eyes of the porn dealer as you count the money. You quickly grab the cards and shove them in your purse.'
  390. act 'Leave':gt 'pav_train_market', 'start'
  391. act 'Buy something else':gt 'pav_train_market', 4
  392. end
  393. end
  394. if porndeal = 1:
  395. if money >= 400:
  396. act 'Buy a porn magazine for the Chinese boy (400<b>₽</b>)':
  397. *clr & cla
  398. minut += 5
  399. money -= 400
  400. haveporn = 1
  401. gs 'stat'
  402. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/pornmag.jpg"></center>'
  403. 'You try your best not to look into the eyes of the porn dealer as you count the money. You take the magazine and quickly hide it.'
  404. act 'Leave':gt 'pav_train_market', 'start'
  405. act 'Buy something else':gt 'pav_train_market', 4
  406. end
  407. end
  408. else
  409. act 'Browse the porn magazines':
  410. *clr & cla
  411. gs 'arousal', 'erotic', 5
  412. gs 'arousal', 'end'
  413. gs 'stat'
  414. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/pornmag.jpg"></center>'
  415. act 'Leave':gt 'pav_train_market', 'start'
  416. act 'Look for something else':gt 'pav_train_market', 4
  417. if TimesBuyPorno = 0:
  418. 'You look over the magazine covers, covered in images of half-naked girls on them. Many of them appear to be near your own age. The porn dealer notices your interest and looks at you expectantly.'
  419. act 'Look through a magazine':
  420. cla
  421. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/pornmag.jpg"></center>'
  422. 'You pick up one of the magazines and flip through the pages. Inside the magazines, you see men with sizeable erect penis engaging in sexual acts with either half-naked or fully naked women. Most of them look close to your own age. You feel yourself getting aroused looking at the images.'
  423. act 'Leave':gt 'pav_train_market', 'start'
  424. act 'Look for something else':gt 'pav_train_market', 4
  425. act 'Ask for the price':
  426. *clr & cla
  427. minut += 5
  428. gs 'stat'
  429. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/pornmag.jpg"></center>'
  430. 'Blushing profusely down to your roots, you approach the porn dealer and stammeringly ask him the price of the magazines. The porn dealer smiles at you and says, "All magazines are <b>400₽</b> each."'
  431. act 'Leave':gt 'pav_train_market', 'start'
  432. act 'Look for something else':gt 'pav_train_market', 4
  433. if money >= 400:
  434. act 'Buy magazine (400 <b>₽</b>)':
  435. *clr & cla
  436. minut += 5
  437. money -= 400
  438. pornMagazine = 40
  439. TimesBuyPorno += 1
  440. gs 'stat'
  441. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/pornmag.jpg"></center>'
  442. 'You try not to look into the porn dealer''s eyes as you hand him the money. You take the magazine and quickly hide it under your shirt.'
  443. act 'Leave':gt 'pav_train_market', 'start'
  444. act 'Buy something else':gt 'pav_train_market', 4
  445. end
  446. end
  447. end
  448. end
  449. elseif TimesBuyPorno > 0 and TimesBuyPorno < 5:
  450. 'The porn dealer notices you coming over and asks, "Looking to buy a magazine? They''re only 400 <b>₽</b> each."'
  451. act 'Look through a magazine':
  452. cla
  453. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/pornmag.jpg"></center>'
  454. 'You pick up one of the magazines and flip through the pages. Inside the magazines, you see men with sizeable erect penis engaging in sexual acts with either half-naked or fully naked women. Most of them look close to your own age. You feel yourself getting aroused looking at the images.'
  455. act 'Leave':gt 'pav_train_market', 'start'
  456. act 'Look for something else':gt 'pav_train_market', 4
  457. if money >= 400:
  458. act 'Buy magazine (400 <b>₽</b>)':
  459. *clr & cla
  460. minut += 5
  461. money -= 400
  462. pornMagazine = 40
  463. TimesBuyPorno += 1
  464. gs 'stat'
  465. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/pornmag.jpg"></center>'
  466. 'You try not to look into the porn dealer''s eyes as you hand him the money. You take the magazine and quickly hide it under your shirt.'
  467. act 'Leave':gt 'pav_train_market', 'start'
  468. act 'Buy something else':gt 'pav_train_market', 4
  469. end
  470. end
  471. end
  472. elseif TimesBuyPorno >= 5:
  473. 'The porn dealer sees you approaching the stall, "Ah, my best customer! Welcome back!"'
  474. act 'Look through a magazine':
  475. cla
  476. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/pornmag.jpg"></center>'
  477. 'You pick up one of the magazines and flip through the pages. Inside the magazines, you see men with sizeable erect penis engaging in sexual acts with either half-naked or fully naked women. Most of them look close to your own age. You feel yourself getting aroused looking at the images.'
  478. act 'Leave':gt 'pav_train_market', 'start'
  479. act 'Look for something else':gt 'pav_train_market', 4
  480. if money >= 400:
  481. act 'Buy magazine (400 <b>₽</b>)':
  482. *clr & cla
  483. minut += 5
  484. money -= 400
  485. pornMagazine = 40
  486. TimesBuyPorno += 1
  487. gs 'stat'
  488. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/pornmag.jpg"></center>'
  489. 'You try not to look into the porn dealer''s eyes as you hand him the money. You take the magazine and quickly hide it under your shirt.'
  490. act 'Leave':gt 'pav_train_market', 'start'
  491. act 'Buy something else':gt 'pav_train_market', 4
  492. end
  493. end
  494. end
  495. end
  496. end
  497. end
  498. act 'Ask to see the sex toys':
  499. *clr & cla
  500. gs 'stat'
  501. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/sextoys.jpg"></center>'
  502. 'He lets you step behind the counter to get a better look. As you do, he says. "Take a look and let me know what you would like." You see several 15cm dildos. Each with a tag, "Only 700<b>₽</b> each." You also see a small selection of vibrators in various colours, mostly pink. "Only 700<b>₽</b> each." To one side, you see many butt plugs, rubber and metal. "Only 700<b>₽</b> each." Near the bottom are several strap-on harnesses without a dildo. "Only 500<b>₽</b> each."'
  503. act 'Leave':gt 'pav_train_market', 'start'
  504. act 'Look for something else':gt 'pav_train_market', 4
  505. if money >= 700 and middildo = 0:
  506. act 'Buy a 15cm dildo (700 <b>₽</b>)':
  507. cla
  508. minut += 5
  509. middildo = 1
  510. money -= 700
  511. pcs_horny += 10
  512. TimesBuyPorno += 1
  513. '<center><img <<$set_imgh>> src="images/pc/items/sextoys/15cm.jpg"></center>'
  514. if pcs_inhib < 35:
  515. 'You buy a dildo and hastily hide it while your face blushes with embarrassment.'
  516. else
  517. 'You buy a dildo and calmly hide it.'
  518. end
  519. act 'Leave':gt 'pav_train_market', 'start'
  520. act 'Buy something else':gt 'pav_train_market', 4
  521. end
  522. end
  523. if money >= 1000 and suction_dildo = 0:
  524. act 'Buy a 15cm suction dildo (1000 <b>₽</b>)':
  525. cla
  526. minut += 5
  527. suction_dildo += 1
  528. money -= 1000
  529. pcs_horny += 10
  530. TimesBuyPorno += 1
  531. '<center><img <<$set_imgh>> src="images/pc/items/sextoys/15cm.jpg"></center>'
  532. if pcs_inhib < 35:
  533. 'You buy the dildo and hastily hide it while your face blushes with embarrassment.'
  534. else
  535. 'You buy the dildo and calmly hide it.'
  536. end
  537. act 'Leave':gt 'pav_train_market', 'start'
  538. act 'Buy something else':gt 'pav_train_market', 4
  539. end
  540. elseif money >= 1000 and suction_dildo > 0:
  541. act 'Buy another 15cm suction dildo (1000<b>₽</b>)':
  542. cla
  543. minut += 5
  544. suction_dildo += 1
  545. money -= 1000
  546. pcs_horny += 10
  547. TimesBuyPorno += 1
  548. '<center><img <<$set_imgh>> src="images/pc/items/sextoys/15cm.jpg"></center>'
  549. if pcs_inhib < 35:
  550. 'You buy the dildo and hastily hide it while your face blushes with embarrassment.'
  551. else
  552. 'You buy the dildo and calmly hide it.'
  553. end
  554. act 'Leave':gt 'pav_train_market', 'start'
  555. act 'Buy something else':gt 'pav_train_market', 4
  556. end
  557. end
  558. if money >= 700 and vibrator = 0:
  559. act 'Buy vibrator (700<b>₽</b>)':
  560. cla
  561. minut += 5
  562. vibrator = 1
  563. money -= 700
  564. pcs_horny += 10
  565. TimesBuyPorno += 1
  566. if pcs_horny >= 50 and fame['pav_slut'] < 150:
  567. 'You buy a vibrator and hastily hide it while your face blushes with embarrassment.'
  568. else
  569. 'You buy a vibrator and calmly hide it.'
  570. end
  571. act 'Leave':gt 'pav_train_market', 'start'
  572. act 'Buy something else':gt 'pav_train_market', 4
  573. end
  574. end
  575. if money >= 700 and analplug = 0:
  576. act 'Buy butt plug (700<b>₽</b>)':
  577. cla
  578. minut += 5
  579. money -= 700
  580. analplug = 1
  581. !!this needs to be changed from analplug bought to smallbp for the smallone
  582. pcs_horny += 10
  583. TimesBuyPorno += 1
  584. '<center><img <<$set_imgh>> src="images/pc/items/sextoys/bp_small.jpg"></center>'
  585. if pcs_horny >= 50 and fame['pav_slut'] < 150:
  586. 'You buy a butt plug and hastily hide it while your face blushes with embarrassment.'
  587. else
  588. 'You buy a butt plug and calmly hide it.'
  589. end
  590. act 'Leave':gt 'pav_train_market', 'start'
  591. act 'Buy something else':gt 'pav_train_market', 4
  592. end
  593. end
  594. if middildo > 0:
  595. if money >= 500 and strapon = 0:
  596. act 'Buy strap-on harness (500<b>₽</b>)':
  597. cla
  598. minut += 5
  599. strapon = 1
  600. strapnumber = 2
  601. money -= 500
  602. pcs_horny += 10
  603. TimesBuyPorno += 1
  604. '<center><img <<$set_imgh>> src="images/pc/items/sextoys/harness.jpg"></center>'
  605. if pcs_horny >= 50 and fame['pav_slut'] < 150:
  606. 'You buy a strap-on harness and hastily hide it while your face blushes with embarrassment.'
  607. else
  608. 'You buy a strap-on harness and calmly hide it.'
  609. end
  610. act 'Leave':gt 'pav_train_market', 'start'
  611. act 'Buy something else':gt 'pav_train_market', 4
  612. end
  613. end
  614. else
  615. if money >= 1200 and strapon = 0 and middildo = 0:
  616. act 'Buy strap-on harness with a 15cm dildo (1200<b>₽</b>)':
  617. cla
  618. minut += 5
  619. strapon = 1
  620. middildo = 1
  621. strapnumber = 2
  622. money -= 1200
  623. pcs_horny += 10
  624. TimesBuyPorno += 1
  625. '<center><img <<$set_imgh>> src="images/pc/items/sextoys/harness.jpg"></center>'
  626. if pcs_horny >= 50 and fame['pav_slut'] < 150:
  627. 'You buy a strap-on harness and hastily hide it while your face blushes with embarrassment.'
  628. else
  629. 'You buy a strap-on harness and calmly hide it.'
  630. end
  631. act 'Leave':gt 'pav_train_market', 'start'
  632. act 'Buy something else':gt 'pav_train_market', 4
  633. end
  634. end
  635. end
  636. end
  637. end
  638. if ARGS[0] = 5:
  639. *clr & cla
  640. menu_off = 1
  641. minut += 5
  642. gs 'stat'
  643. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/dedgitara.jpg"></center>'
  644. 'You see an old man playing the guitar. He''s trying to avert as much attention as he can to himself.'
  645. act 'Stop wandering': gt 'pav_train_market', 'start'
  646. if hour >= 8 and hour <= 18:
  647. act 'Wander around the market': gt 'pav_train_market','events'
  648. end
  649. end
  650. if ARGS[0] = 6:
  651. *clr & cla
  652. menu_off = 1
  653. minut += 5
  654. gs 'stat'
  655. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/nenavizublyadcigan.jpg"></center>'
  656. 'You meet a Gypsy woman. She offers to tell your fortune.'
  657. act 'Decline': gt 'pav_train_market', 'start'
  658. act 'Accept':
  659. *clr & cla
  660. minut += 5
  661. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/gadaet'+rand(1,2)+'.jpg"></center>'
  662. 'You agree, and Gypsy takes your hand before she predicts you will have great happiness and lots of money. Afterwards, she promptly walks away.'
  663. act 'Something''s wrong':
  664. *clr & cla
  665. money = 0
  666. pcs_mood -= 50
  667. gs 'stat'
  668. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/pusto.jpg"></center>'
  669. 'With a sneaking suspicion, you start looking through your stuff. Unfortunately, your wallet is nowhere to be found!'
  670. act 'Find the Gypsy':
  671. *clr & cla
  672. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/okliknut.jpg"></center>'
  673. 'You search the area hoping to find the thief, but she has already disappeared into the crowd.'
  674. act 'Back': gt 'pav_train_market', 'start'
  675. end
  676. end
  677. end
  678. end
  679. if ARGS[0] = 7:
  680. *clr & cla
  681. menu_off = 1
  682. minut += 5
  683. gs 'stat'
  684. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/kosmetic.jpg"></center>'
  685. tovpay = 800
  686. 'You see some cosmetics on sale for <<tovpay>> <b>₽</b>.'
  687. act 'Stop wandering': gt 'pav_train_market', 'start'
  688. if hour >= 8 and hour <= 18:
  689. act 'Wander around the market': gt 'pav_train_market','events'
  690. end
  691. if money >= tovpay:
  692. act 'Buy the cosmetics (800<b>₽</b>)':
  693. minut += 15
  694. money -= tovpay
  695. mc_inventory['cosmetics'] += 50
  696. gt 'pav_train_market', 'start'
  697. end
  698. end
  699. end
  700. if ARGS[0] = 8:
  701. *clr & cla
  702. menu_off = 1
  703. minut += 5
  704. gs 'stat'
  705. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/vitaminki.jpg"></center>'
  706. tovpay = 105
  707. 'You see some vitamins on sale for <<tovpay>> <b>₽</b>.'
  708. act 'Stop wandering': gt 'pav_train_market', 'start'
  709. if hour >= 8 and hour <= 18:
  710. act 'Wander around the market': gt 'pav_train_market','events'
  711. end
  712. if money >= tovpay:
  713. act 'Buy vitamins (105<b>₽</b>)':
  714. minut += 15
  715. vitamin += 20
  716. money -= tovpay
  717. gt 'pav_train_market', 'start'
  718. end
  719. end
  720. end
  721. if ARGS[0] = 9:
  722. *clr & cla
  723. menu_off = 1
  724. minut += 5
  725. gs 'stat'
  726. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/condoms.jpg"></center>'
  727. tovpay = 80
  728. 'You see a booth selling condoms for <<tovpay>> <b>₽</b>.'
  729. act 'Stop wandering': gt 'pav_train_market', 'start'
  730. if hour >= 8 and hour <= 18:
  731. act 'Wander around the market': gt 'pav_train_market','events'
  732. end
  733. if money >= tovpay:
  734. act 'Buy condoms (80<b>₽</b>)':
  735. minut += 15
  736. prezik += 5
  737. i = 5
  738. :cndmlp
  739. if rand(0,49)-6*(8-tovpay/10) <= 0:badprezik += 1
  740. if i > 0: i-= 1 & jump 'cndmlp'
  741. killvar 'i'
  742. money -= tovpay
  743. gt 'pav_train_market', 'start'
  744. end
  745. end
  746. end
  747. if ARGS[0] = 10:
  748. *clr & cla
  749. menu_off = 1
  750. minut += 5
  751. gs 'stat'
  752. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/balzam.jpg"></center>'
  753. tovpay = 100
  754. 'There is lip balm on sale for <<tovpay>> <b>₽</b>.'
  755. act 'Stop wandering': gt 'pav_train_market', 'start'
  756. if hour >= 8 and hour <= 18:
  757. act 'Wander around the market': gt 'pav_train_market','events'
  758. end
  759. if money >= tovpay:
  760. act 'Buy lip balm (100<b>₽</b>)':
  761. *clr & cla
  762. minut += 15
  763. mc_inventory['lipbalm'] += 30
  764. money -= tovpay
  765. gt 'pav_train_market', 'start'
  766. end
  767. end
  768. end
  769. if ARGS[0] = 11:
  770. *clr & cla
  771. menu_off = 1
  772. minut += 5
  773. gs 'stat'
  774. '<center><img <<$set_imgh>> src="images/characters/pavlovsk/resident/arthur/artur.jpg"></center>'
  775. if arturKnow = 0:
  776. 'Someone suddenly calls out, "Hey, pretty girl, do you want a fresh, juicy tangerine?"'
  777. act 'Look': gt 'arturRinok','start'
  778. else
  779. 'Someone suddenly calls out, "Hey, <<$pcs_nickname>>, do you want a fresh, juicy tangerine?"'
  780. act 'Go and see Arthur': gt 'arturRinok','start'
  781. end
  782. end
  783. if ARGS[0] = 12:
  784. *clr & cla
  785. menu_off = 1
  786. minut += 5
  787. gs 'stat'
  788. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/cheburek.jpg"></center>'
  789. 'Walking through the market, you came across an old woman selling pies.'
  790. act 'Stop wandering': gt 'pav_train_market', 'start'
  791. if hour >= 8 and hour <= 18:
  792. act 'Wander around the market': gt 'pav_train_market','events'
  793. end
  794. if pcs_energy <= 80:
  795. act 'Buy a pie for 20 <b>₽</b>':
  796. *clr & cla
  797. fat+=3
  798. frost = 0
  799. pcs_health += 5
  800. pcs_mood += 5
  801. pcs_hydra -= 5
  802. pcs_energy+=5
  803. money-=20
  804. minut+=10
  805. gs 'stat'
  806. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/eat.jpg"></center>'
  807. 'The pie is still warm as the woman hands it over to you. Then, barely able to keep yourself away from it, you find a place to sit and enjoy the pie.'
  808. act 'Continue walking through the market': gt 'pav_train_market','events'
  809. end
  810. else
  811. *p ', But you are not hungry right now.'
  812. end
  813. end
  814. if ARGS[0] = 13:
  815. *clr & cla
  816. menu_off = 1
  817. minut += 5
  818. gs 'stat'
  819. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/dropwallet.jpg"></center>'
  820. 'You see a wallet fall out of a woman''s purse.'
  821. act 'Tell her':
  822. *clr & cla
  823. minut += 2
  824. gs 'stat'
  825. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/vernutwallet.jpg"></center>'
  826. 'You call the woman and hold out her wallet. She looks at you and, realising, gratefully takes her wallet back and walks away.'
  827. act 'Continue walking through the market': gt 'pav_train_market','events'
  828. end
  829. act 'Look through the purse':
  830. *clr & cla
  831. minut += 5
  832. gs 'stat'
  833. i = rand(40,200)
  834. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/zaglanut.jpg"></center>'
  835. 'You open the wallet and you see that there''s <<i>><b>₽</b>'
  836. gs 'willpower', 'misc', 'self', 'easy'
  837. if will_cost <= pcs_willpwr:
  838. act 'Take the money and throw away the wallet (<<will_cost>> Willpower)':
  839. *clr & cla
  840. money += i
  841. pcs_mood += 10
  842. killvar 'i'
  843. gs 'willpower', 'pay', 'resist'
  844. gs 'stat'
  845. 'You just need the money.'
  846. act 'Continue': gt 'pav_train_market','start'
  847. end
  848. else
  849. act 'Take the money and throw away the wallet (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  850. end
  851. act 'Catch up with the woman and return her purse':
  852. *clr & cla
  853. pcs_mood += 5
  854. gs 'stat'
  855. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/proverka.jpg"></center>'
  856. 'You catch up with the woman, and telling her she dropped something, you hand her the purse. The woman checks that her money is still there, and seeing everything in place, she thanks you and walks away.'
  857. act 'Stop wandering': gt 'pav_train_market', 'start'
  858. if hour >= 8 and hour <= 18:
  859. act 'Wander around the market': gt 'pav_train_market','events'
  860. end
  861. end
  862. end
  863. end
  864. if ARGS[0] = 14:
  865. *clr & cla
  866. menu_off = 1
  867. minut += 5
  868. gs 'stat'
  869. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/rebenok.jpg"></center>'
  870. 'You see a young mother and her crying baby.'
  871. act 'Stop wandering': gt 'pav_train_market', 'start'
  872. if hour >= 8 and hour <= 18:
  873. act 'Wander around the market': gt 'pav_train_market','events'
  874. end
  875. end
  876. if ARGS[0] = 15:
  877. *clr & cla
  878. menu_off = 1
  879. minut += 5
  880. gs 'stat'
  881. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/rezba.jpg"></center>'
  882. 'You find a stall with beautiful things carved out of wood and metal.'
  883. act 'Stop wandering': gt 'pav_train_market', 'start'
  884. if hour >= 8 and hour <= 18:
  885. act 'Wander around the market': gt 'pav_train_market','events'
  886. end
  887. end
  888. if ARGS[0] = 16:
  889. *clr & cla
  890. menu_off = 1
  891. minut += 5
  892. gs 'stat'
  893. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/gruzchik.jpg"></center>'
  894. 'Looking around, you almost collide with a man pulling a small cart.'
  895. act 'Stop wandering': gt 'pav_train_market', 'start'
  896. if hour >= 8 and hour <= 18:
  897. act 'Wander around the market': gt 'pav_train_market','events'
  898. end
  899. end
  900. if ARGS[0] = 17:
  901. *clr & cla
  902. menu_off = 1
  903. minut += 5
  904. gs 'stat'
  905. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/meatlavka.jpg"></center>'
  906. 'You wander past the meat seller and see a butcher working with an axe.'
  907. act 'Stop wandering': gt 'pav_train_market', 'start'
  908. if hour >= 8 and hour <= 18:
  909. act 'Wander around the market': gt 'pav_train_market','events'
  910. end
  911. end
  912. if ARGS[0] = 18:
  913. *clr & cla
  914. menu_off = 1
  915. minut += 5
  916. gs 'stat'
  917. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/dirka.jpg"></center>'
  918. 'As you walk past a stall, you notice a small hole torn in the canvas.'
  919. act 'Stop wandering': gt 'pav_train_market', 'start'
  920. if hour >= 8 and hour <= 18:
  921. act 'Wander around the market': gt 'pav_train_market','events'
  922. end
  923. gs 'willpower', 'voyeur', 'self', 'easy'
  924. if will_cost <= pcs_willpwr:
  925. act 'Look through the hole (<<will_cost>> Willpower)':
  926. *clr & cla
  927. gs 'arousal', 'voyeur', 2
  928. gs 'willpower', 'pay', 'resist'
  929. gs 'stat'
  930. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/pereodev'+rand(1,15)+'.jpg"></center>'
  931. 'You look inside the tent and see ' + $pavtrain_marketrandtext[rand(3,7)]
  932. act 'Leave': gt 'pav_train_market', 'start'
  933. end
  934. else
  935. act 'Look through the hole (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  936. end
  937. end
  938. if ARGS[0] = 19:
  939. *clr & cla
  940. menu_off = 1
  941. minut += 5
  942. gs 'stat'
  943. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/market/birthcontrolpills.jpg"></center>'
  944. tovpay = 1500
  945. 'You see a booth selling birth control pills for <<tovpay>> <b>₽</b>.'
  946. act 'Stop wandering': gt 'pav_train_market', 'start'
  947. if hour >= 8 and hour <= 18:
  948. act 'Wander around the market': gt 'pav_train_market','events'
  949. end
  950. if money >= tovpay and therapistFuckedPussyStage < 2:
  951. act 'Buy birth control pills (1500 <b>₽</b>)':
  952. *clr & cla
  953. minut += 15
  954. tabletki += 1
  955. temp = rand(0,3)
  956. if temp = 0:
  957. tabletkiold += 1 & !Pills are expired and less effective
  958. elseif temp = 1:
  959. tabletkifert += 1 & ! pills were replaced with fertility hormones
  960. elseif temp = 2:
  961. tabletkirej += 1 & !Pills are factory rejects with variable strength
  962. else
  963. !Pills were tampered with
  964. if rand(0,1) = 1:
  965. tabletkifake += 1 & !Pills are counterfeit and useless
  966. else
  967. tabletkisug += 1 & ! pills were all replaced with sugar pills
  968. end
  969. end
  970. money -= tovpay
  971. gt 'pav_train_market', 'start'
  972. end
  973. end
  974. end
  975. --- pav_train_market ---------------------------------