1
0

TerminalOffice.qsrc 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  1. # TerminalOffice
  2. $location_type = 'public_indoors'
  3. minut += 1
  4. $menu_loc = 'TerminalOffice'
  5. $menu_arg = ''
  6. menu_off = 0
  7. gs 'stat'
  8. ! In the office if he knows we can buy a product or to perform a task boss of bystrousky.
  9. ! verakassir > 0 - you can buy the product
  10. ! BurgerQW['TerminalTask'] = 1 and BurgerQW['TerminalTaskDay'] = daystart - you can fulfill the order
  11. !
  12. ! In the office, several offices, one for the purchase of the goods, the second for documents from bystrousky, and the third for a bright future
  13. !
  14. ! Administration accounting and Director work in better conditions than managery :)))
  15. ! The conditions at the time require elaboration
  16. !
  17. TerminalOfficeDirWorkTime = 0
  18. TerminalOfficeBuhWorkTime = 0
  19. if ((hour >= 9 and hour <= 12) or (hour >= 14 and hour <= 17)) and week < 6: TerminalOfficeDirWorkTime = 1
  20. if ((hour >= 9 and hour <= 12) or (hour >= 14 and hour <= 19)) and week < 6: TerminalOfficeBuhWorkTime = 1
  21. if $ARGS[0] = 'TerminalOfficeScreen':
  22. !1 - title
  23. !2 - the name of the picture file
  24. *clr
  25. '<center><b><font color = maroon>'+$ARGS[1]+'</font></b></center>'
  26. '<center><img <<$set_imgh>> src="images/locations/city/industrial/terminal/'+$ARGS[2]+'.jpg"></center>'
  27. ''
  28. end
  29. !==================================================
  30. !Hall 00
  31. !==================================================
  32. if $ARGS[0] = '00':
  33. gs 'TerminalOffice', 'TerminalOfficeScreen', 'Hall office space', 'terminal4'
  34. 'You are standing in the lobby of the terminal office.'
  35. cla
  36. act 'Leave the office': minut += 5 & gt 'Terminal'
  37. act 'Go to the sales department': minut += 1 & gt 'TerminalOffice', '11'
  38. act 'Go to the accounting department': minut += 1 & gt 'TerminalOffice', '21'
  39. act 'Go and see the Manager': minut += 1 & gt 'TerminalOffice', '31'
  40. end
  41. !==================================================
  42. !Office a Manager = 1x
  43. !==================================================
  44. if $ARGS[0] = '11':
  45. !You can buy the item if you know that you can buy
  46. !Can try to give the documents from Anatoly Chubais
  47. !Can I ask when running accounting
  48. !Can I ask when works Director
  49. cla
  50. gs 'TerminalOffice', 'TerminalOfficeScreen', 'Sales', 'terminal2'
  51. '"What can I help you with?" the manager asks you.'
  52. act 'Leave the office': minut += 1 & gt 'TerminalOffice', '00'
  53. if verakassir > 0:
  54. !Buy goods
  55. !Flag zapolanski storage, reduction
  56. !this flag allows you to go shopping
  57. DoNotBuy = 2
  58. !Amount and Quantity that we can buy(store)
  59. MaxQuantityA = 0
  60. MaxQuantity1 = 0
  61. MaxQuantity2 = 0
  62. MaxCost = 0
  63. !Description size of storage
  64. TovarLimitRepository1 = 30
  65. TovarLimitRepository2 = 100
  66. 'You talk with the Manager about buying small trinkets...'
  67. !Get current balances
  68. TovarRepository1 = mc_inventory['trinkets_home']
  69. if TovarRepository1 => TovarLimitRepository1:
  70. 'There is no more free space at home.'
  71. else
  72. DoNotBuy -= 1
  73. 'You have '+ TovarRepository1 +' trinkets stored in your home. You''re only able to store <<TovarLimitRepository1>> trinkets.'
  74. MaxQuantity1 = TovarLimitRepository1 - TovarRepository1
  75. end
  76. if YouCanGar > 0:
  77. !Get the current balances in the garage
  78. TovarRepository2 = mc_inventory['trinkets_garage']
  79. if TovarRepository2 => TovarLimitRepository2:
  80. 'There is no space in the garage.'
  81. else
  82. DoNotBuy -= 1
  83. 'You have '+ TovarRepository2 +' trinkets stored in the garage. You''re only able to store <<TovarLimitRepository2>> trinkets.'
  84. MaxQuantity2 = TovarLimitRepository2 - TovarRepository2
  85. end
  86. end
  87. if DoNotBuy = 2:
  88. 'You think about it for a while, realize that you just have nowhere to store the goods and decide to turn down the purchase.'
  89. else
  90. !Produce purchase
  91. act 'The small trinkets cost 100 <b>₽</b>. Please put in how many trinkets you want to purchase.':
  92. minut += 13
  93. MaxQuantityA = input("How many trinkets do you want to buy for 100 <b>₽</b> apiece?")
  94. if MaxQuantityA > (MaxQuantity1 + MaxQuantity2):
  95. '<b><font color=red>You have nowhere to store the surplus <<MaxQuantityA-(MaxQuantity1 + MaxQuantity2)>> ' + iif(MaxQuantityA - (MaxQuantity1 + MaxQuantity2) = 1, 'trinket', 'trinkets') + '.</front></b>'
  96. cla
  97. act 'Leave': gt 'TerminalOffice', '11'
  98. end
  99. MaxCost = MaxQuantityA * 100
  100. if money < MaxCost:
  101. !If not enough money
  102. 'You don''t have enough money on you. You will have to withdraw money before proceeding with the purchase.'
  103. if money + karta >= MaxCost:
  104. !The player can be plastic money
  105. 'You have enough money on your credit card, and you offer them to pay with that.'
  106. '"I''m sorry, we don''t own a card terminal," the Manager replies, "We accept only cash."'
  107. end
  108. cla
  109. act 'Leave': gt 'TerminalOffice', '11'
  110. else
  111. !If the money is written off money to fill warehouses
  112. money -= MaxCost
  113. 'You''ve purchased <<MaxQuantityA>> trinkets, worth <<MaxCost>>.'
  114. !First populate channelise 1
  115. if MaxQuantityA => MaxQuantity1:
  116. mc_inventory['trinkets_home'] = TovarRepository1 + MaxQuantity1
  117. MaxQuantityA -= MaxQuantity1
  118. if YouCanGar > 0 : *P ', in t.h. <<MaxQuantity1>> PCs. storage room, garage <<MaxQuantityA>> PCs.'
  119. else
  120. if YouCanGar > 0 : *P ', in t.h. <<MaxQuantityA>> PCs. storage room, garage 0 PCs.'
  121. mc_inventory['trinkets_home'] = TovarRepository1 + MaxQuantityA
  122. MaxQuantityA = 0
  123. end
  124. !Now fill channelise 2
  125. if MaxQuantityA > 0:
  126. mc_inventory['trinkets_garage'] = TovarRepository2 + MaxQuantityA
  127. end
  128. if YouCanGar = 0 and money > 100:
  129. 'You''ve purchased plenty of trinkets, but you''ve been thinking about expanding your business. But where could you store them all? Maybe you should ask your stepfather if you could use some free space in his garage...'
  130. end
  131. cla
  132. act 'Complete your purchase': gt 'TerminalOffice', '11'
  133. end
  134. end
  135. act 'Buy small trinkets for 100 <b>₽</b> called "Eyeballs".':
  136. !Purchase spend time
  137. minut += 13
  138. MaxQuantityA = MaxQuantity1 + MaxQuantity2
  139. MaxCost = MaxQuantityA * 100
  140. !Hammered warehouses
  141. if money < MaxCost:
  142. !If not enough money
  143. 'You don''t have enough money on you. You will have to withdraw money before proceeding with the purchase.'
  144. if money + karta >= MaxCost:
  145. !The player can be plastic money
  146. 'You have enough money on your credit card, and you offer them to pay with that.'
  147. '"I''m sorry, we don''t own a card terminal," the Manager replies, "We accept only cash."'
  148. end
  149. cla
  150. act 'Leave': gt 'TerminalOffice', '11'
  151. else
  152. !If the money is written off money to fill warehouses
  153. money -= MaxCost
  154. 'You''ve purchased <<MaxQuantityA>> trinkets, worth <<MaxCost>>.'
  155. !First populate channelise 1
  156. if MaxQuantityA => MaxQuantity1:
  157. mc_inventory['trinkets_home'] = TovarRepository1 + MaxQuantity1
  158. MaxQuantityA -= MaxQuantity1
  159. if YouCanGar > 0 : *P ', in t.h. <<MaxQuantity1>> PCs. storage room, garage <<MaxQuantityA>> PCs.'
  160. else
  161. if YouCanGar > 0 : *P ', in t.h. <<MaxQuantityA>> PCs. storage room, garage 0 PCs.'
  162. mc_inventory['trinkets_home'] = TovarRepository1 + MaxQuantityA
  163. MaxQuantityA = 0
  164. end
  165. !Now fill channelise 2
  166. if MaxQuantityA > 0:
  167. mc_inventory['trinkets_garage'] = TovarRepository2 + MaxQuantityA
  168. end
  169. if YouCanGar = 0 and money > 100:
  170. 'You''ve purchased plenty of trinkets, but you''ve been thinking about expanding your business. But where could you store them all? Maybe you should ask your stepfather if you could use some free space in his garage...'
  171. end
  172. cla
  173. act 'Complete your purchase': gt 'TerminalOffice', '11'
  174. end
  175. end
  176. end
  177. end
  178. if YouNotOpenDoorDir = 1:
  179. !Where the Director, the Door was closed dir
  180. act 'Ask about the Director':
  181. '"Excuse me, I wonder if I could meet your supervisor?" you ask.'
  182. 'The Manager grins, "Yuri is usually here every Monday through Friday, between 9:00 and 18:00 except lunch between 13:00 and 14:00."'
  183. cla
  184. act 'Leave': YouNotOpenDoorDir = 0 & gt 'TerminalOffice', '11'
  185. end
  186. end
  187. !Where is the accountant? Buch the door was closed
  188. if YouNotOpenDoorBuh = 1:
  189. act 'Ask about the accountant':
  190. '"Excuse me, I wonder if I could meet your accountant?" you ask.'
  191. 'The Manager grins, "Elizabeth is usually here Monday through Friday, between 9:00 and 20:00 except lunch between 13:00 and 14:00."'
  192. cla
  193. act 'Leave': YouNotOpenDoorBuh = 0 & gt 'TerminalOffice', '11'
  194. end
  195. end
  196. !He Has papers, but a Manager should say to go to the accounting Department.
  197. if AboutDocsManager=0 and BurgerQW['TerminalTask'] = 1 and BurgerQW['TerminalTaskDay'] = daystart:
  198. '"I''m Anatoly Chubais from the company "OOO Bystroushka limited". Do you have the required documents with you?"'
  199. act 'Give him the documents':
  200. '"Looks good. Go and see Elizabeth in the account department. She needs to register you. You can find her next door."'
  201. cla
  202. act 'Leave': AboutDocsManager=1 & gt 'TerminalOffice', '11'
  203. end
  204. end
  205. !The GG yet topics of conversation.
  206. if verakassir = 0 and YouNotOpenDoorDir = 0 and YouNotOpenDoorBuh = 0 and BurgerQW['TerminalTask'] = 0:
  207. 'You have nothing to say or left to do. You can leave the office.'
  208. end
  209. end
  210. !==================================================
  211. !The office of the accountant = 2x
  212. !==================================================
  213. if $ARGS[0] = '21':
  214. ! Time control of the work of Buch disconnect until the issue is resolved temporal compatibility of obtaining a job in bystroushka
  215. if TerminalOfficeBuhWorkTime = 1:
  216. !You can give the documents
  217. cla
  218. gs 'TerminalOffice', 'TerminalOfficeScreen', 'The accountant''s office', 'terminal3'
  219. act 'Leave the office': minut += 1 & gt 'TerminalOffice', '00'
  220. !GG not a complete idiot, so will limit communication with only Buch documents, then that thread again
  221. 'A cute girl looks up from her monitor, turns to you and asks, "What can I help you with?"'
  222. if BurgerQW['TerminalTask'] = 1 and BurgerQW['TerminalTaskDay'] = daystart:
  223. '"I was talking with Anatoly Chubais from the company ''OOO Bystroushka limited''. I was instructed to deliver these documents."'
  224. '"Yes, I''ve been expecting these, may I?" She holds out her hand.'
  225. act 'Give her the documents':
  226. cla
  227. minut += 1
  228. BurgerQW['TerminalTask'] = 2
  229. gs 'stat'
  230. 'You hand the girl the folder. She opens it and quickly checks the contents.'
  231. '"Tell Anatoly Borisovich that Elizabeth said thank you."'
  232. 'The girl smiles and then turns her attention to her monitor and starts rapidly typing away on her keyboard.'
  233. act 'Leave the office': minut += 1 & gt 'TerminalOffice', '00'
  234. end
  235. else
  236. 'You have nothing to say or left to do. You can leave the office.'
  237. end
  238. else
  239. !Accountant is not in place
  240. cla
  241. gs 'TerminalOffice', 'TerminalOfficeScreen', 'A door with a sign', 'terminal6'
  242. act 'Move away from the door': minut += 1 & gt 'TerminalOffice', '00'
  243. 'You knock, but there is only silence. You try pushing down the handle, but realize that the door is locked. You''ll have to come back at a different time.'
  244. YouNotOpenDoorBuh = 1
  245. end
  246. end
  247. !==================================================
  248. !The Director`s office = 3x
  249. !==================================================
  250. if $ARGS[0] = '31':
  251. if TerminalOfficeDirWorkTime = 1:
  252. !You can try to give the documents
  253. !You can try to talk
  254. cla
  255. gs 'TerminalOffice', 'TerminalOfficeScreen', 'The Director''s office', 'terminal1'
  256. act 'Leave the office': minut += 1 & gt 'TerminalOffice', '00'
  257. !Before the development of the plot 'Talk' the Director will constantly be on the phone and send he tries out of the office
  258. 'You knock and open the door. Behind a massive desk, you see a man. He''s talking on the phone and apparently not in the mood. He''s a bit surprised as you aren''t the person he was expecting, so he dismissively waves his hand, clearly indicating that you need to leave the office.'
  259. if AboutBussines = 0:
  260. act 'Talk':
  261. gs 'TerminalOffice', 'TerminalOfficeScreen', 'The Director''s office', 'terminal1'
  262. '"I was told to come and see you about a business proposal..." you start.'
  263. '"I heard there was a possibility of a good, legitimate and profitable trade business going on..." you continue.'
  264. 'The man puts the phone to his side and irritably answers, "Can''t you see I''m in middle of a phone call? Leave!"'
  265. AboutBussines = 1
  266. delact 'Talk'
  267. end
  268. end
  269. if AboutDocs = 0 and BurgerQW['TerminalTask'] = 1 and BurgerQW['TerminalTaskDay'] = daystart:
  270. act 'Give him the documents':
  271. gs 'TerminalOffice', 'TerminalOfficeScreen', 'The Director''s office', 'terminal1'
  272. 'You walk up to the desk. You''re ignored by the man, but you refuse to turn back, you have an important assignment from the boss.'
  273. '"I was told by Anatoly Chubais from the company "OOO Bystroushka limited" to hand over these documents to you."'
  274. 'The man stops talking on the phone, frowns, and, pointing towards the door, asserts, "You need to head over to the accountant''s office."'
  275. AboutDocs = 1
  276. delact 'Give him the documents'
  277. end
  278. end
  279. if AboutBussines = 1 or AboutDocs = 1: 'You have nothing to say or left to do. You can leave the office.'
  280. else
  281. !The Director is not in place
  282. cla
  283. gs 'TerminalOffice', 'TerminalOfficeScreen', 'A door with a sign', 'terminal5'
  284. act 'Move away from the door': minut += 1 & gt 'TerminalOffice', '00'
  285. 'You knock, but there is only silence. You try pushing down the handle, but realize that the door is locked. You''ll have to come back at a different time.'
  286. YouNotOpenDoorDir = 1
  287. end
  288. end
  289. --- TerminalOffice ---------------------------------