1
0

portnoi2 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. # portnoi2
  2. poshvalldrop = 0
  3. i = 1
  4. :cheapmet
  5. if cheap[i] = 1 and ((cheapB[i] > bedra + 8) or (cheapB[i] < bedra - 8)):poshvalldrop += 1
  6. i += 1
  7. if i <= 85:jump 'cheapmet'
  8. i = 1
  9. :averagemet
  10. if average[i] = 1 and ((averageB[i] > bedra + 8) or (averageB[i] < bedra - 8)):poshvalldrop += 1
  11. i += 1
  12. if i <= 125:jump 'averagemet'
  13. i = 1
  14. :expensivemet
  15. if expensive[i] = 1 and ((expensiveB[i] > bedra + 8) or (expensiveB[i] < bedra - 8)):poshvalldrop += 1
  16. i += 1
  17. if i <= 147:jump 'expensivemet'
  18. i = 1
  19. :formalmet
  20. if formal[i] = 1 and ((formalB[i] > bedra + 8) or (formalB[i] < bedra - 8)):poshvalldrop += 1
  21. i += 1
  22. if i <= 14:jump 'formalmet'
  23. i = 1
  24. :officemet
  25. if office[i] = 1 and ((officeB[i] > bedra + 8) or (officeB[i] < bedra - 8)):poshvalldrop += 1
  26. i += 1
  27. if i <= 30:jump 'officemet'
  28. i = 1
  29. :schoolmet
  30. if school[i] = 1 and ((schoolB[i] > bedra + 8) or (schoolB[i] < bedra - 8)):poshvalldrop += 1
  31. i += 1
  32. if i = 6: i = 7
  33. if i <= 14:jump 'schoolmet'
  34. i = 1
  35. :naughtymet
  36. if naughty[i] = 1 and ((naughtyB[i] > bedra + 8) or (naughtyB[i] < bedra - 8)):poshvalldrop += 1
  37. i += 1
  38. if i <= 67:jump 'naughtymet'
  39. i = 1
  40. :exhibitmet
  41. if exhibit[i] = 1 and ((exhibitB[i] > bedra + 8) or (exhibitB[i] < bedra - 8)):poshvalldrop += 1
  42. i += 1
  43. if i <= 30:jump 'exhibitmet'
  44. i = 1
  45. :uniformmet
  46. if uniform[i] = 1 and ((uniformB[i] > bedra + 8) or (uniformB[i] < bedra - 8)):poshvalldrop += 1
  47. i += 1
  48. if i <= 24:jump 'uniformmet'
  49. i = 1
  50. :swimwearmet
  51. if swimwear[i] = 1 and ((swimwearB[i] > bedra + 8) or (swimwearB[i] < bedra - 8)):poshvalldrop += 1
  52. i += 1
  53. if i <= 30:jump 'swimwearmet'
  54. poshvalldrop *= 500
  55. if money < poshvalldrop:
  56. 'You do not have enough money to resize all of your clothing. The total cost would be <<poshvalldrop>> <b>₽</b>.'
  57. if $loc = 'Gshveyfab':
  58. act 'Leave':gt 'Gshveyfab', 'start'
  59. else
  60. act 'Leave':gt 'rinok', 'tailor'
  61. end
  62. exit
  63. elseif money >= poshvalldrop:
  64. money -= poshvalldrop
  65. i = 1
  66. :xcheapmet
  67. if cheap[i] = 1 and ((cheapB[i] > bedra + 8) or (cheapB[i] < bedra - 8)):cheapB[i] = bedra
  68. i += 1
  69. if i <= 85:jump 'xcheapmet'
  70. i = 1
  71. :xaveragemet
  72. if average[i] = 1 and ((averageB[i] > bedra + 8) or (averageB[i] < bedra - 8)):averageB[i] = bedra
  73. i += 1
  74. if i <= 125:jump 'xaveragemet'
  75. i = 1
  76. :xexpensivemet
  77. if expensive[i] = 1 and ((expensiveB[i] > bedra + 8) or (expensiveB[i] < bedra - 8)):expensiveB[i] = bedra
  78. i += 1
  79. if i <= 147:jump 'xexpensivemet'
  80. i = 1
  81. :xformalmet
  82. if formal[i] = 1 and ((formalB[i] > bedra + 8) or (formalB[i] < bedra - 8)):formalB[i] = bedra
  83. i += 1
  84. if i <= 14:jump 'xformalmet'
  85. i = 1
  86. :xofficemet
  87. if office[i] = 1 and ((officeB[i] > bedra + 8) or (officeB[i] < bedra - 8)):officeB[i] = bedra
  88. i += 1
  89. if i <= 30:jump 'xofficemet'
  90. i = 1
  91. :xschoolmet
  92. if school[i] = 1 and ((schoolB[i] > bedra + 8) or (schoolB[i] < bedra - 8)):schoolB[i] = bedra
  93. i += 1
  94. if i = 6: i = 7
  95. if i <= 14:jump 'xschoolmet'
  96. i = 1
  97. :xnaughtymet
  98. if naughty[i] = 1 and ((naughtyB[i] > bedra + 8) or (naughtyB[i] < bedra - 8)):naughtyB[i] = bedra
  99. i += 1
  100. if i <= 67:jump 'xnaughtymet'
  101. i = 1
  102. :xexhibitmet
  103. if exhibit[i] = 1 and ((exhibitB[i] > bedra + 8) or (exhibitB[i] < bedra - 8)):exhibitB[i] = bedra
  104. i += 1
  105. if i <= 30:jump 'xexhibitmet'
  106. i = 1
  107. :xuniformmet
  108. if uniform[i] = 1 and ((uniformB[i] > bedra + 8) or (uniformB[i] < bedra - 8)):uniformB[i] = bedra
  109. i += 1
  110. if i <= 24:jump 'xuniformmet'
  111. i = 1
  112. :xswimwearmet
  113. if swimwear[i] = 1 and ((swimwearB[i] > bedra + 8) or (swimwearB[i] < bedra - 8)):swimwearB[i] = bedra
  114. i += 1
  115. if i <= 30:jump 'xswimwearmet'
  116. 'You resize all clothing for <<poshvalldrop>> <b>₽</b>.'
  117. if $loc = 'Gshveyfab':
  118. act 'Leave':gt 'Gshveyfab', 'start'
  119. else
  120. act 'Leave':gt 'rinok', 'tailor'
  121. end
  122. exit
  123. end
  124. --- portnoi2 ---------------------------------