portnoi2 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. # portnoi2
  2. poshvalldrop = 0
  3. i = 1
  4. :cheapmet
  5. if cheap[i] = 1 and cheapB[i]!bedra: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: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: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: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: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:poshvalldrop += 1
  31. i += 1
  32. if i <= 14:jump 'schoolmet'
  33. i = 1
  34. :exercisemet
  35. if exercise[i] = 1 and exerciseB[i]!bedra:poshvalldrop += 1
  36. i += 1
  37. if i <= 26:jump 'exercisemet'
  38. i = 1
  39. :naughtymet
  40. if naughty[i] = 1 and naughtyB[i]!bedra:poshvalldrop += 1
  41. i += 1
  42. if i <= 67:jump 'naughtymet'
  43. i = 1
  44. :exhibitmet
  45. if exhibit[i] = 1 and exhibitB[i]!bedra:poshvalldrop += 1
  46. i += 1
  47. if i <= 30:jump 'exhibitmet'
  48. i = 1
  49. :uniformmet
  50. if uniform[i] = 1 and uniformB[i]!bedra:poshvalldrop += 1
  51. i += 1
  52. if i <= 24:jump 'uniformmet'
  53. i = 1
  54. :coatmet
  55. if coat[i] = 1 and coatB[i]!bedra:poshvalldrop += 1
  56. i += 1
  57. if i <= 12:jump 'coatmet'
  58. i = 1
  59. :swimwearmet
  60. if swimwear[i] = 1 and swimwearB[i]!bedra:poshvalldrop += 1
  61. i += 1
  62. if i <= 30:jump 'swimwearmet'
  63. if money < poshvalldrop * 500:
  64. 'You do not have enough money to resize all of your clothing. The total cost would be <<poshvalldrop * 500>> <b>₽</b>.'
  65. if $loc = 'Gshveyfab':
  66. act 'Leave':gt 'Gshveyfab', 'start'
  67. else
  68. act 'Leave':gt 'rinok', 'tailor'
  69. end
  70. exit
  71. elseif money >= poshvalldrop * 500:
  72. money -= poshvalldrop * 500
  73. i = 1
  74. :cheapmet
  75. if cheap[i] = 1 and cheapB[i]!bedra:cheapB[i] = bedra
  76. i += 1
  77. if i <= 85:jump 'cheapmet'
  78. i = 1
  79. :averagemet
  80. if average[i] = 1 and averageB[i]!bedra:averageB[i] = bedra
  81. i += 1
  82. if i <= 125:jump 'averagemet'
  83. i = 1
  84. :expensivemet
  85. if expensive[i] = 1 and expensiveB[i]!bedra:expensiveB[i] = bedra
  86. i += 1
  87. if i <= 147:jump 'expensivemet'
  88. i = 1
  89. :formalmet
  90. if formal[i] = 1 and formalB[i]!bedra:formalB[i] = bedra
  91. i += 1
  92. if i <= 14:jump 'formalmet'
  93. i = 1
  94. :officemet
  95. if office[i] = 1 and officeB[i]!bedra:officeB[i] = bedra
  96. i += 1
  97. if i <= 30:jump 'officemet'
  98. i = 1
  99. :schoolmet
  100. if school[i] = 1 and schoolB[i]!bedra:schoolB[i] = bedra
  101. i += 1
  102. if i <= 14:jump 'schoolmet'
  103. i = 1
  104. :exercisemet
  105. if exercise[i] = 1 and exerciseB[i]!bedra:exerciseB[i] = bedra
  106. i += 1
  107. if i <= 26:jump 'exercisemet'
  108. i = 1
  109. :naughtymet
  110. if naughty[i] = 1 and naughtyB[i]!bedra:naughtyB[i] = bedra
  111. i += 1
  112. if i <= 67:jump 'naughtymet'
  113. i = 1
  114. :exhibitmet
  115. if exhibit[i] = 1 and exhibitB[i]!bedra:exhibitB[i] = bedra
  116. i += 1
  117. if i <= 30:jump 'exhibitmet'
  118. i = 1
  119. :uniformmet
  120. if uniform[i] = 1 and uniformB[i]!bedra:uniformB[i] = bedra
  121. i += 1
  122. if i <= 24:jump 'uniformmet'
  123. i = 1
  124. :coatmet
  125. if coat[i] = 1 and coatB[i]!bedra:coatB[i] = bedra
  126. i += 1
  127. if i <= 12:jump 'coatmet'
  128. i = 1
  129. :swimwearmet
  130. if swimwear[i] = 1 and swimwearB[i]!bedra:swimwearB[i] = bedra
  131. i += 1
  132. if i <= 30:jump 'swimwearmet'
  133. 'You resize all clothing for <<poshvalldrop*500>> <b>₽</b>.'
  134. if $loc = 'Gshveyfab':
  135. act 'Leave':gt 'Gshveyfab', 'start'
  136. else
  137. act 'Leave':gt 'rinok', 'tailor'
  138. end
  139. exit
  140. end
  141. --- portnoi2 ---------------------------------