Terminal 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. # Terminal
  2. minut += 5
  3. clr
  4. gs 'stat'
  5. !'
  6. fcolor = rgb(0, 0, 0)
  7. bcolor = rgb(255, 255, 255)
  8. lcolor = rgb(106, 90, 205)
  9. '!
  10. '<center><b><font color="maroon">Storage terminal</font></b></center>'
  11. '<center><img src="images/etogame/terminal.jpg"></center>'
  12. 'A plurality of storage buildings to which drive up truck for loading and unloading.'
  13. act 'Leave':
  14. cla
  15. minut += 5
  16. gt 'nord'
  17. end
  18. if TerminalPapper = 1 and DayTerminalPapper = day:
  19. act 'Classified documents':
  20. cls
  21. minut += 15
  22. TerminalPapper = 2
  23. gs 'stat'
  24. fcolor = rgb(0, 0, 0)
  25. bcolor = rgb(255, 255, 255)
  26. lcolor = rgb(106, 90, 205)
  27. 'You went to the office and gave the documents to the manager.'
  28. act 'Leave':minut += 5 & gt 'nord'
  29. end
  30. end
  31. if money >= 100:
  32. act 'Buy small items (100 rubles)':
  33. cls
  34. minut += 15
  35. gs 'stat'
  36. 'You went to the office and spoke with the manager about buying small things.'
  37. if tovarskladlevel = 0:
  38. if tovarL >= 30:
  39. 'Thinking a bit you realize, you just have nowhere to store the goods and decide to unsubscribe from the purchase.'
  40. elseif tovarL < 30:
  41. maxtov = 30 - tovarL
  42. 'Do you have a place for storage <<maxtov>> One unit of product.'
  43. act 'Buy':
  44. cls
  45. gs 'stat'
  46. 'Do you have a place for storage <<maxtov>> One unit of product.'
  47. tovarpokup = input("How much product you want to buy at a price 100 rubles apiece?")
  48. if tovarpokup > maxtov or tovarpokup * 100 > money:
  49. 'Manager shakes his head "No, so it will not work"'
  50. else
  51. tovarL += tovarpokup
  52. money -= tovarpokup * 100
  53. gs 'stat'
  54. 'You bought <<tovarpokup>> One unit of small goods and now you have stored <<tovarL>> One unit of product.'
  55. end
  56. act 'Leave':minut+=5&gt $curloc
  57. end
  58. end
  59. end
  60. act 'Leave':minut += 5 & gt 'nord'
  61. end
  62. if YouCanGar > 0:
  63. act 'Buy small items for the car storage (100 rubles)':
  64. cls
  65. minut += 15
  66. gs 'stat'
  67. 'You went to the office and spoke with the manager about buying small things.'
  68. if tovarskladlevel = 0:
  69. if GarTorgItem >= 100:
  70. 'Thinking a bit you realize, you just have nowhere to store the goods and decide to unsubscribe from the purchase.'
  71. elseif GarTorgItem < 100:
  72. maxtov = 100 - GarTorgItem
  73. 'Do you have a place for storage <<maxtov>> One unit of product.'
  74. act 'Buy':
  75. cls
  76. gs 'stat'
  77. 'Do you have a place for storage <<maxtov>> One unit of product.'
  78. tovarpokup = input("How much product you want to buy at a price 100 rubles apiece?")
  79. if tovarpokup > maxtov or tovarpokup * 100 > money:
  80. 'Manager shakes his head "No, so it will not work"'
  81. else
  82. GarTorgItem += tovarpokup
  83. money -= tovarpokup * 100
  84. gs 'stat'
  85. 'You bought <<tovarpokup>> One unit of small goods in the garage and now you have stored <<GarTorgItem>> One unit of product.'
  86. end
  87. act 'Leave':minut += 5 & gt $curloc
  88. end
  89. end
  90. end
  91. act 'Leave':minut += 5 & gt 'nord'
  92. end
  93. end
  94. end
  95. --- Terminal ---------------------------------