city_marketwork.qsrc 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718
  1. # city_marketwork
  2. $location_type = 'event_outdoors'
  3. ! Variables used
  4. ! rinvesh = sold Items of clothing
  5. ! rinmon = Total cash taken
  6. ! arturplan = Amount Arthur expects min
  7. ! arturnoo, arturyes = Times failed, reached sales
  8. ! workrin working in the market
  9. ! repa ???????????
  10. ! pokupatel = customer interested
  11. ! prodpayum = average price
  12. ! pokpay = amount customer is willing to pay
  13. ! pcs_apprnc = Attractiveness
  14. ! rinslut Arthur only keeps quiet if you do what he says
  15. ! palevorin = 0:Never had Sex w Arthur
  16. ! 1:Had Sex w Arthur
  17. ! 2:Declined GB
  18. ! 3:Declined GB talked Arthur
  19. ! 4:Agreed GB
  20. ! 5:Agreed GB talked Arthur
  21. !tetaKataQW ?
  22. !annaQW ?
  23. !NadiaQW ?
  24. !
  25. if $ARGS[0] = 'start':
  26. $loc_arg = 'start'
  27. $loc = 'city_marketwork'
  28. cla & *clr
  29. $menu_loc = 'city_marketwork'
  30. $menu_arg = 'start'
  31. menu_off = 0
  32. gs 'stat'
  33. '<center><b><font color="maroon">Marketplace</font></b></center>'
  34. '<center><img <<$set_imgh>> src="images/locations/city/residential/market/rinok.jpg"></center>'
  35. 'You stand at your clothes stall waiting for customers.'
  36. 'You have sold <<rinvesh>> items and taken <<rinmon>> <b>₽</b> in cash.'
  37. 'The average price on the market is <<prodpayum>>.'
  38. if hour = 14:
  39. 'Arthur comes up to you and you start to calculate how much you should give him.'
  40. act 'Give money to Arthur':
  41. cla
  42. *clr
  43. rinart = rinvesh * 1000
  44. rinmon -= rinart
  45. money += rinmon
  46. gs 'stat'
  47. 'You give Arthur <<rinart>> per sold <<rinvesh>> items.'
  48. 'You have earned <<rinmon>> <b>₽</b> today.'
  49. rinmon = 0
  50. rinvesh = 0
  51. if rinart < arturplan:
  52. arturnoo += 1
  53. 'This is bad, <<$pcs_nickname>>. You haven''t made enough money. You''ll completely ruin me!'
  54. else
  55. arturyes += 1
  56. 'Well done <<$pcs_nickname>>, good job today.'
  57. end
  58. if arturnoo > arturyes:arturnoo = arturnoo - arturyes & arturyes = 0
  59. if arturyes > arturnoo:arturyes = arturyes - arturnoo & arturnoo = 0
  60. if arturnoo = arturyes:arturnoo = 0 & arturyes = 0
  61. if arturnoo > 10:
  62. arturnoo = 0
  63. work = 0
  64. workrin = 0
  65. 'You''re fucking useless! Here''s your papers. I don''t want to see you again!'
  66. act 'Leave':gt 'city_residential'
  67. exit
  68. end
  69. rinrand = rand(1, 400)
  70. if rinrand < pcs_apprnc:
  71. if palevorin <= 1 or palevorin = 3:
  72. if palevorin = 0:
  73. '"Hey <<$pcs_nickname>>, you and I have not met properly. Come into the warehouse. We can have a drink and a bite to eat while we get acquainted."'
  74. elseif palevorin = 1:
  75. '"Hey <<$pcs_nickname>>, want to come to the warehouse again?"'
  76. else
  77. '"Hey <<$pcs_nickname>>. Come into the warehouse and have a drink with me." He walks right up to you and slaps you on the ass.'
  78. end
  79. act 'Refuse':
  80. cla
  81. 'You start making excuses and Arthur frowns. "Hey, don''t insult me! Your stall is filthy, just look at all this dust and dirt! I should fine you, but if you''re nice, I''ll let you off.'
  82. act 'Go to the warehouse':gt 'city_marketsex', 'the_beginning'
  83. act 'No':
  84. cla
  85. arturplan += 1000
  86. if money >= 1000:
  87. money -= 1000
  88. '"Your stall is filthy! I''m fining you 1000 <b>₽</b>." You hand over the money and Arthur quickly snatches it.'
  89. else
  90. 'Go with him before it gets worse.'
  91. end
  92. act 'Leave':gt 'city_residential'
  93. end
  94. end
  95. act 'Go with him':gt 'city_marketsex', 'the_beginning'
  96. elseif palevorin = 2:
  97. 'Arthur walks into the stall behind you carrying some boxes. He places them down and walks up behind you, giving your ass a slap and squeeze. "I''m glad you turned Abdul and Hassan down. I like having you all to myself."'
  98. 'You turn your head to look at him and smile. "I like that too, but maybe you can lock the door first from now on?"'
  99. 'He laughs and nods. "Of course of course, anything for you my sweet. If you wish for the door to be locked, the door will be locked. Why don''t we go and make sure it works first..."'
  100. act 'Go with Arthur':palevorin = 3 & gt 'city_marketsex', 'the_beginning'
  101. elseif palevorin = 4:
  102. 'Arthur walks into the stall behind you carrying some boxes. He places them down and walks up behind you, giving your ass a slap and squeeze with one hand while the other snakes around and roughly grabs your breast as he whispers in your ear. "So, you like cock? I didn''t think you were a little slut but that''s okay, I like dirty sluts."'
  103. 'He cuts you off before you can protest. "No it''s good, I can use this. Now let''s go to the warehouse so I can fuck you."'
  104. act 'Go with him ':palevorin = 5 & gt 'city_marketsex', 'sex'
  105. gs 'willpower', 'sex', 'resist', 'hard'
  106. if will_cost <= pcs_willpwr:
  107. act 'Refuse (<<will_cost>> Willpower)':
  108. cla
  109. gs 'willpower', 'pay', 'resist'
  110. gs 'stat'
  111. 'You shake your head and pull out of his grasp. "I''m not a slut and I''m sure as hell not going with you!"'
  112. 'You see the anger flare up in his eyes. "So you think you''re too good for me whore? I gave you a job and treated you well. Then you fucked those two and now I''m not good enough?" He shakes his head. "Get your ass in the warehouse <i>now</i> or you''re fired and I''ll tell Abdul and Hassan they are free to tell everyone about how you greedily took their cocks like the little slut you are."'
  113. 'You''re shocked at this level of anger and the ultimatum. You are unsure of what to do...'
  114. act 'Go to warehouse':palevorin = 5 & gt 'city_marketsex', 'sex'
  115. gs 'willpower', 'sex', 'resist', 'hard'
  116. if will_cost <= pcs_willpwr:
  117. act 'Get fired (<<will_cost>> Willpower)':
  118. cla
  119. gs 'pain', 5, 'cheeks', 'slap'
  120. gs 'willpower', 'pay', 'resist'
  121. gs 'stat'
  122. 'You shake your head. "No, I won''t go with you."'
  123. 'Before you notice him raising his hand, you feel the burning sensation on your cheek as he slaps you. "Then get out of here whore! You''re fired and I don''t want to see you back here!" He pushes you out from behind his stall, loud enough that many people are looking in your direction to what''s going on.'
  124. 'You walk away in shame while rubbing your stinging cheek.'
  125. if rinslut = 0:rinslut = 1
  126. act 'Leave':gt 'city_residential'
  127. end
  128. else
  129. act 'Get fired (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  130. end
  131. end
  132. else
  133. act 'Refuse (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  134. end
  135. elseif palevorin = 5:
  136. sexgrouprand = rand(0,1)
  137. if sexgrouprand = 1:
  138. 'Arthur walks up and slaps your ass hard before grabbing you roughly by the arm. "Hey bitch, how would you like to make some extra money? My friends need company."'
  139. act 'Go with him':gt 'city_marketsex', 'group'
  140. else
  141. 'Arthur walks up and slaps your ass hard before grabbing you roughly by the arm. "Get your fucking ass in the warehouse, bitch."'
  142. act 'Go with him':gt 'city_marketsex', 'sex'
  143. end
  144. gs 'willpower', 'sex', 'resist', 'hard'
  145. if will_cost <= pcs_willpwr:
  146. act 'Refuse (<<will_cost>> Willpower)':
  147. cla
  148. gs 'willpower', 'pay', 'resist'
  149. gs 'stat'
  150. 'You start making excuses and Arthur frowns. "Don''t insult me you little fucking slut! I was there. I know what a cock loving whore you are. Now get your fucking ass in the warehouse or the whole town will know about you!"'
  151. if sexgrouprand = 1:
  152. act 'Go to warehouse':gt 'city_marketsex', 'group'
  153. else
  154. act 'Go to warehouse':gt 'city_marketsex', 'sex'
  155. end
  156. gs 'willpower', 'sex', 'resist', 'hard'
  157. if will_cost <= pcs_willpwr:
  158. act 'No (<<will_cost>> Willpower)':
  159. cla
  160. arturnoo = 0
  161. work = 0
  162. workrin = 0
  163. gs 'willpower', 'pay', 'resist'
  164. gs 'stat'
  165. if rinslut = 0:rinslut = 1
  166. if repa < 6:repa = 6
  167. '"Then fuck you, you little fucking whore! You''re fired and by tomorrow the whole town will know what a cock loving whore you are!"'
  168. act 'Leave':gt 'city_residential'
  169. end
  170. else
  171. act 'No (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  172. end
  173. end
  174. else
  175. act 'Refuse (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  176. end
  177. else
  178. act 'Leave work':gt 'city_residential'
  179. end
  180. else
  181. act 'Leave work':gt 'city_residential'
  182. end
  183. end
  184. exit
  185. elseif hour < 14:
  186. act 'Laze around (0:15)':
  187. minut += 15
  188. gt 'city_marketwork', 'start'
  189. end
  190. if money >= 200:
  191. act 'Buy a snack (200 <b>₽</b>) (0:15)':
  192. tetaKataQW += 1
  193. money -= 200
  194. gs 'kit_din'
  195. gs 'food', 'snack'
  196. end
  197. end
  198. rintakrand = rand(0, 5)
  199. talkrand = rand(0, 2)
  200. if hour = 9:
  201. if rintakrand = 0:
  202. $rintak = 'Hassan unloads clothes in front of Nadia''s stall.'
  203. act 'Watch Hassan and Nadia':
  204. cla
  205. minut += 15
  206. if talkrand = 0:'"You will sell more today, and to the rich ladies. I need the money, Nadia."'
  207. if talkrand = 1:'Hassan opens trunks and puts clothes on the counter.'
  208. if talkrand >= 2:'Hassan drags trunks to his stall.'
  209. act 'Go back to work':gt 'city_marketwork', 'start'
  210. end
  211. elseif rintakrand = 1:
  212. $rintak = 'Abdul is talking loudly and giving clothes to Anna at the next stall over.'
  213. act 'Watch Abdul and Anna':
  214. cla
  215. minut += 15
  216. if talkrand = 0:'"We''re fucked, you can''t sell anything!" Abdul shouts at Anna. "No wonder! You give me this rotten shit to sell! Nobody wants it!" she retorts.'
  217. if talkrand = 1:'Abdul slaps Anna''s ass, but she pretends that nothing happened.'
  218. if talkrand >= 2:'Abdul drags trunks to his stall.'
  219. act 'Go back to work':gt 'city_marketwork', 'start'
  220. end
  221. elseif rintakrand = 2:
  222. $rintak = 'Abdul and Hassan stand beside your stall speaking to each other in their native language.'
  223. act 'Watch them':
  224. cla
  225. minut += 15
  226. if talkrand = 0:'They continue to talk, but you don''t know the language and can''t understand what they''re saying.'
  227. if talkrand = 1:'They ignore you and discuss what sounds like clothes prices.'
  228. if talkrand >= 2:'Abdul looks at you. "Look at that girl. She looks like a good fuck." Hassan looks you over and nods in agreement.'
  229. act 'Go back to work':gt 'city_marketwork', 'start'
  230. end
  231. elseif rintakrand = 3:
  232. $rintak = 'Anna hangs clothes on her stall while shouting at Nadia.'
  233. act 'Chat with the girls':
  234. cla
  235. annaQW += 1
  236. NadiaQW += 1
  237. minut += 15
  238. if talkrand = 0:
  239. 'Anna tells you that her skirt needed altering and that there is a great tailor''s shop nearby.'
  240. else
  241. 'Nadia tells you how some pervert molested her on the subway by rubbing his dick on her ass.'
  242. end
  243. act 'Go back to work':gt 'city_marketwork', 'start'
  244. end
  245. elseif rintakrand = 4:
  246. $rintak = 'Arthur is talking about something with Abdul.'
  247. act 'Watch them':
  248. cla
  249. minut += 15
  250. if talkrand = 0:'They continue to talk, but you don''t know the language and can''t understand what they''re saying.'
  251. if talkrand = 1:'They ignore you and discuss what sounds like clothes prices.'
  252. if talkrand >= 2:'Abdul looks at you. "Nice looking girl you got there. You fucking her?"'
  253. act 'Go back to work':gt 'city_marketwork', 'start'
  254. end
  255. elseif rintakrand >= 5:
  256. $rintak = 'Arthur, Abdul and Hassan are talking loudly to each other in their native language.'
  257. act 'View the Armenians':
  258. cla
  259. minut += 15
  260. if talkrand = 0:'They continue to talk, but you don''t know the language and can''t understand what they''re saying.'
  261. if talkrand = 1:'They ignore you and discuss what sounds like clothes prices.'
  262. if talkrand >= 2:'Abdul looks at you. "Pretty little girl you have there. Can I have her?"'
  263. act 'Go back to work':gt 'city_marketwork', 'start'
  264. end
  265. end
  266. '<<$rintak>>'
  267. elseif hour = 10:
  268. if rintakrand = 0:
  269. $rintak = 'Hassan sits on a chair dejectedly chewing food and talking with his mouth full to his saleswoman Nadia.'
  270. act 'Watch':
  271. cla
  272. minut += 15
  273. '"Nadia, why do you refuse? Come and have some wine."'
  274. act 'Go back to work':gt 'city_marketwork', 'start'
  275. end
  276. elseif rintakrand = 1:
  277. $rintak = 'Nadia sits in her stall doing crossword puzzles.'
  278. act 'Chat with Nadia':
  279. cla
  280. NadiaQW += 1
  281. minut += 15
  282. 'Nadia sits her crossword down and willingly gossips with you.'
  283. act 'Go back to work':gt 'city_marketwork', 'start'
  284. end
  285. elseif rintakrand = 2:
  286. $rintak = 'Customers are crowded around Nadia''s stall. She fusses around before them laying out her goods.'
  287. act 'Chat with Nadia':
  288. cla
  289. NadiaQW -= 1
  290. minut += 15
  291. 'Nadia frowns at you. "Shoo, no distractions! I have customers."'
  292. act 'Go back to work':gt 'city_marketwork', 'start'
  293. end
  294. elseif rintakrand = 3:
  295. $rintak = 'Anna is drinking coffee in her stall.'
  296. act 'Chat with Anna':
  297. cla
  298. annaQW += 1
  299. minut += 15
  300. 'Anna is happy to chat with you about pretty much anything.'
  301. act 'Go back to work':gt 'city_marketwork', 'start'
  302. end
  303. elseif rintakrand = 4:
  304. $rintak = 'Anna is in her stall, trying to interest customers in her goods.'
  305. act 'Chat with Anna':
  306. cla
  307. annaQW -= 1
  308. minut += 15
  309. 'Anna frowns at you. "Shoo, no distractions! I have customers."'
  310. act 'Go back to work':gt 'city_marketwork', 'start'
  311. end
  312. elseif rintakrand >= 5:
  313. $rintak = 'Anna is gossiping with Aunt Katya.'
  314. act 'Chat with Anna and Aunt Katya':
  315. cla
  316. annaQW += 1
  317. tetaKataQW += 1
  318. minut += 15
  319. 'Aunt Katya is talking about her pies and Anna complains that it''s because of her pies that her ass is twice as big as it was.'
  320. act 'Go back to work':gt 'city_marketwork', 'start'
  321. end
  322. end
  323. '<<$rintak>>'
  324. elseif hour = 11:
  325. if rintakrand = 0:
  326. $rintak = 'Nadia is approached by three Armenians who begin to molest her. She swears at them and tries to dodge their groping hands.'
  327. act 'Look at Nadia and Armenians':
  328. cla
  329. minut += 15
  330. 'The Armenians seem to be trying to persuade Nadia to have sex with them.'
  331. act 'Go back to work':gt 'city_marketwork', 'start'
  332. end
  333. elseif rintakrand = 1:
  334. $rintak = 'Nadia is eating cake in her stall.'
  335. act 'Chat with Nadia':
  336. cla
  337. NadiaQW += 1
  338. minut += 15
  339. 'Nadia finishes her cake and chats with you.'
  340. if clener = 0:
  341. clener = 1
  342. 'Nadia tells you about an office building not too far away that is looking for a cleaner.'
  343. end
  344. act 'Go back to work':gt 'city_marketwork', 'start'
  345. end
  346. elseif rintakrand = 2:
  347. $rintak = 'Customers are crowded around Nadia''s stall. She fusses around before them laying out her goods.'
  348. act 'Chat with Nadia':
  349. cla
  350. NadiaQW -= 1
  351. minut += 15
  352. 'Nadia frowns at you. "Shoo, no distractions! I have customers."'
  353. act 'Go back to work':gt 'city_marketwork', 'start'
  354. end
  355. elseif rintakrand = 3:
  356. $rintak = 'Anna is reading a newspaper in her stall.'
  357. act 'Chat with Anna':
  358. cla
  359. annaQW += 1
  360. minut += 15
  361. 'Anna is happy to chat with you about pretty much anything.'
  362. act 'Go back to work':gt 'city_marketwork', 'start'
  363. end
  364. elseif rintakrand = 4:
  365. $rintak = 'Anna is in her stall, trying to interest customers in her goods.'
  366. act 'Chat with Anna':
  367. cla
  368. annaQW -= 1
  369. minut += 15
  370. 'Anya frowns at you. "Shoo, no distractions! I have customers."'
  371. act 'Go back to work':gt 'city_marketwork', 'start'
  372. end
  373. elseif rintakrand >= 5:
  374. $rintak = 'Nadia is approached by three Armenians who begin to molest her. She swears at them and tries to dodge their groping hands.'
  375. act 'Look at Nadia and Armenians':
  376. cla
  377. minut += 15
  378. 'The Armenians seem to be trying to persuade Nadia to have sex with them.'
  379. act 'Go back to work':gt 'city_marketwork', 'start'
  380. end
  381. end
  382. '<<$rintak>>'
  383. elseif hour = 12:
  384. if rintakrand = 0:
  385. $rintak = 'Hassan has bought chebureki and is eating it while sitting behind Nadia in the stall.'
  386. act 'Chat with Nadia':
  387. cla
  388. NadiaQW -= 1
  389. minut += 15
  390. 'Nadia shies away from talking in front of Hassan.'
  391. act 'Go back to work':gt 'city_marketwork', 'start'
  392. end
  393. elseif rintakrand = 1:
  394. $rintak = 'Nadia is surrounded by customers.'
  395. act 'Chat with Nadia':
  396. cla
  397. NadiaQW -= 1
  398. minut += 15
  399. 'Nadia frowns at you. "Shoo, no distractions! I have customers."'
  400. act 'Go back to work':gt 'city_marketwork', 'start'
  401. end
  402. elseif rintakrand = 2:
  403. $rintak = 'Nadia is talking with Anna.'
  404. act 'Chat with the girls':
  405. cla
  406. annaQW += 1
  407. NadiaQW += 1
  408. minut += 15
  409. if talkrand = 0:
  410. 'Anna tells you that her friend used to clean an office building not far from here and that they are looking for a new cleaner if you need to make some extra cash.'
  411. if clener = 0:clener = 1
  412. elseif talkrand = 1:
  413. 'Nadia tells you how some pervert molested her on the subway by rubbing his dick on her ass.'
  414. end
  415. act 'Go back to work':gt 'city_marketwork', 'start'
  416. end
  417. elseif rintakrand = 3:
  418. $rintak = 'Anna is selling clothing to customers.'
  419. act 'Chat with Anna':
  420. cla
  421. annaQW -= 1
  422. minut += 15
  423. 'Anna frowns at you. "Shoo, no distractions! I have customers."'
  424. act 'Go back to work':gt 'city_marketwork', 'start'
  425. end
  426. elseif rintakrand = 4:
  427. $rintak = 'Anna is drinking coffee while sitting at her stall.'
  428. act 'Chat with Anna':
  429. cla
  430. annaQW += 1
  431. minut += 15
  432. 'Anna happily chats with you about pretty much anything.'
  433. act 'Go back to work':gt 'city_marketwork', 'start'
  434. end
  435. elseif rintakrand >= 5:
  436. $rintak = 'A bored looking Nadia is idly sitting in her stall looking for something to do.'
  437. act 'Chat with Nadia':
  438. cla
  439. NadiaQW += 2
  440. minut += 15
  441. 'Nadia is glad for the distraction and has fun chatting with you.'
  442. act 'Go back to work':gt 'city_marketwork', 'start'
  443. end
  444. end
  445. '<<$rintak>>'
  446. elseif hour = 13:
  447. if rintakrand = 0:
  448. $rintak = 'Hassan begins to slowly collect goods from Nadia.'
  449. elseif rintakrand = 1:
  450. $rintak = 'Anya sits and calculates her profit for the day.'
  451. elseif rintakrand = 2:
  452. $rintak = 'Nadia calculates her days profit.'
  453. elseif rintakrand = 3:
  454. $rintak = 'Abdul begins collecting goods from Anna.'
  455. elseif rintakrand = 4:
  456. $rintak = 'Arthur walks past your stall.'
  457. else
  458. $rintak = 'Aunt Katya stops trading pies and leaves.'
  459. end
  460. '<<$rintak>>'
  461. end
  462. pokrand = rand(0, 1)
  463. if pokrand = 0:
  464. $pokup = 'You have no customers.'
  465. pokupatel = 0
  466. ''
  467. 'Aunt Katya pushes her trolley through the market carrying cakes and coffee.'
  468. else
  469. pokupatel = 1
  470. poktiprand = rand(0, 7)
  471. if poktiprand = 0:$pokup = 'A middle-aged man approaches your stall.' & $poktip = 'The man' & pokti = 1
  472. if poktiprand = 1:$pokup = 'A young man approaches your stall.' & $poktip = 'The guy' & pokti = 2
  473. if poktiprand = 2:$pokup = 'A teenage boy approaches your stall.' & $poktip = 'The boy' & pokti = 3
  474. if poktiprand = 3:$pokup = 'A woman approaches your stall.' & $poktip = 'The woman' & pokti = 1
  475. if poktiprand = 4:$pokup = 'A girl approaches your stall.' & $poktip = 'The girl' & pokti = 2
  476. if poktiprand = 5:$pokup = 'A teenage girl approaches your stall.' & $poktip = 'The teenager' & pokti = 3
  477. if poktiprand = 6:$pokup = 'An old man approaches your stall.' & $poktip = 'The old man' & pokti = 0
  478. if poktiprand = 7:$pokup = 'An old woman approaches your stall.' & $poktip = 'The old woman' & pokti = 0
  479. end
  480. '<b><<$pokup>></b>'
  481. if pokupatel = 1:
  482. act 'How can I help you?':
  483. cla
  484. minut += 15
  485. pokvnirand = rand(0, 2)
  486. if pokvnirand = 0:
  487. '<<$poktip>> examines your wares with little interest.'
  488. elseif pokvnirand = 1:
  489. '<<$poktip>> looks through your wares with interest.'
  490. elseif pokvnirand = 2:
  491. '<<$poktip>> picks up an item.'
  492. end
  493. act 'Now this is very fashionable':
  494. cla
  495. tipred = 3
  496. gs 'city_marketwork', 'answerrin'
  497. end
  498. act 'This item is very high quality and reliable':
  499. cla
  500. tipred = 1
  501. gs 'city_marketwork', 'answerrin'
  502. end
  503. act 'You''ll find this very reasonable':
  504. cla
  505. tipred = 0
  506. gs 'city_marketwork', 'answerrin'
  507. end
  508. act 'That is so you':
  509. cla
  510. tipred = 2
  511. gs 'city_marketwork', 'answerrin'
  512. end
  513. end
  514. end
  515. end
  516. end
  517. if $ARGS[0] = 'answerrin':
  518. if tipred = pokti:
  519. ''
  520. if pokvnirand = 0:
  521. pokpay = rand(1000, 1200)
  522. elseif pokvnirand = 1:
  523. pokpay = rand(1100, 1300)
  524. elseif pokvnirand = 2:
  525. pokpay = rand(1300, 1500)
  526. end
  527. '<<$poktip>> asks you for a price.'
  528. gs 'city_marketwork', 'tellprice'
  529. else
  530. '<<$poktip>> puts the item back and leaves.'
  531. act 'Further':gt 'city_marketwork', 'start'
  532. end
  533. end
  534. if $ARGS[0] = 'tellprice':
  535. act 'Name the price':
  536. cla
  537. prodpay = input ("Enter the selling price")
  538. if prodpay < 1000:prodpay = prodpayum
  539. poknorand = rand(1, 100 + pcs_apprnc/4)
  540. '"<<prodpay>> <b>₽</b>." you tell them.'
  541. if prodpay <= pokpay:
  542. if poknorand >= 10:
  543. rinmon += prodpay
  544. rinvesh += 1
  545. 'The customer takes the item and pays <<prodpay>> <b>₽</b>.'
  546. act 'Sell it':gt 'city_marketwork', 'start'
  547. else
  548. 'The customer twirls the clothing in their hands. "<<prodpay>> <b>₽</b> is too expensive."'
  549. gs 'city_marketwork', 'haggling'
  550. end
  551. elseif prodpay > pokpay and prodpay <= pokpay + 100:
  552. if poknorand >= 10:
  553. 'The customer twirls clothing in their hands. "<<prodpay>> <b>₽</b> is too expensive."'
  554. gs 'city_marketwork', 'haggling'
  555. else
  556. 'They put the item back and leaves'
  557. act 'Return':gt 'city_marketwork', 'start'
  558. end
  559. elseif prodpay > pokpay + 100:
  560. 'The customer puts the item back and leaves.'
  561. act 'Return':gt 'city_marketwork', 'start'
  562. end
  563. end
  564. end
  565. if $ARGS[0] = 'haggling':
  566. if prodpay >= 1100:
  567. act 'Reduce the price by 100 <b>₽</b>':
  568. cla
  569. 'You have reduced the price by 100 <b>₽</b>.'
  570. poknorand = rand(1, 100 + pcs_apprnc/4)
  571. if poknorand >= 10:
  572. rinmon += prodpay - 100
  573. rinvesh += 1
  574. 'The customer takes the item and pays <<prodpay - 100>> <b>₽</b>'
  575. else
  576. 'The customer puts the item back and leaves.'
  577. end
  578. act 'Haggle':gt 'city_marketwork', 'start'
  579. end
  580. elseif prodpay >= 1050:
  581. act 'Reduce the price by 50 <b>₽</b>':
  582. cla
  583. 'You have reduced the price by 50 <b>₽</b>.'
  584. poknorand = rand(1, 100 + pcs_apprnc/4)
  585. if poknorand >= 30:
  586. rinmon += prodpay - 50
  587. rinvesh += 1
  588. 'The customer takes the item and pays <<prodpay - 50>> <b>₽</b>'
  589. else
  590. 'The customer puts the item back and leaves.'
  591. end
  592. act 'Haggle':gt 'city_marketwork', 'start'
  593. end
  594. end
  595. act 'Take the item back':gt 'city_marketwork', 'start'
  596. end
  597. --- city_marketwork ---------------------------------