1
0

EndFight 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. # EndFight
  2. !'
  3. !!Here the conditions of the match
  4. !!honors, punishment
  5. 'you have <<Ku>> Activism in the attacks retention, <<Kb>> Activism in the attacks throws, <<Kz>> successful defenses.'
  6. 'At rival <<KuE>> Activism in the attacks retention, <<KbE>> Activism in the attacks throws, <<KzE>> successful defenses.'
  7. if resultFight = 0:
  8. wipo[1] += 2
  9. wipo[i] -= 1
  10. rating[1] += 2
  11. rating[i] -= 5
  12. !!You won the surrender
  13. elseif resultFight = 1:
  14. wipo[1] += 1
  15. rating[1] += 1
  16. rating[i] -= 3
  17. !!you won
  18. elseif resultFight = 2:
  19. rating[1] -= 1
  20. rating[i] -= 1
  21. !!draw
  22. elseif resultFight = 3:
  23. wipo[i] += 1
  24. rating[1] -= 3
  25. rating[i] += 1
  26. !!you lost
  27. elseif resultFight = 4:
  28. wipo[i] += 2
  29. wipo[1] -= 1
  30. rating[1] -= 5
  31. rating[i] += 2
  32. !!you lost surrender
  33. end
  34. act '...':gt $loc
  35. if Ku > Kb:
  36. if Ku > Kz:Uteh[1] += 10
  37. elseif Kb > Ku:
  38. if Kb > Kz:Bteh[1] += 10
  39. elseif Kz > Kb:
  40. if Kz > Ku:Zteh[1] += 10
  41. end
  42. '!
  43. '<<$nameA>> <<win[a]>>-<<loss[a]>>-<<draw[a]>> <<SubWin[a]>>/<<SubLoss[a]>>'
  44. '<<$nameE>> <<win[i]>>-<<loss[i]>>-<<draw[i]>> <<SubWin[i]>>/<<SubLoss[i]>>'
  45. '<<point>> points <<$nameA>> <<Ku>> Activism in the attacks retention, <<Kb>> Activism in the attacks throws, <<Kz>> successful defenses.'
  46. '<<pointE>> points <<$nameE>> <<KuE>> Activism in the attacks retention, <<KbE>> Activism in the attacks throws, <<KzE>> successful defenses.'
  47. if resultFight = 0:
  48. wipo[a] += 2
  49. wipo[i] -= 1
  50. rating[a] += 2
  51. rating[i] -= 5
  52. strand = rand(0, 2)
  53. !!if strand = 0:musle[a] += 10
  54. !!if strand = 1:flex[a] += 10
  55. !!if strand = 2:stamina[a] += 10
  56. tehrand = rand(0, 2)
  57. if tehrand = 0:Bteh[a] += 10
  58. if tehrand = 1:Uteh[a] += 10
  59. if tehrand = 2:Zteh[a] += 10
  60. '<b><<$nameA>> won surrender</b>'
  61. $spisok[a] += '<<$nameA>> <<win[a]>>-<<loss[a]>>-<<draw[a]>> <<SubWin[a]>>/<<SubLoss[a]>> vs <<$nameE>> <<win[i]>>-<<loss[i]>>-<<draw[i]>> <<SubWin[i]>>/<<SubLoss[i]>> <font color="green">wins by submission</font>'
  62. $spisok[i] += '<<$nameA>> <<win[a]>>-<<loss[a]>>-<<draw[a]>> <<SubWin[a]>>/<<SubLoss[a]>> vs <<$nameE>> <<win[i]>>-<<loss[i]>>-<<draw[i]>> <<SubWin[i]>>/<<SubLoss[i]>> <font color="red">defeat surrender</font>'
  63. win[a] += 1
  64. SubWin[a] += 1
  65. loss[i] += 1
  66. SubLoss[i] += 1
  67. elseif resultFight = 1:
  68. wipo[a] += 1
  69. rating[a] += 1
  70. rating[i] -= 3
  71. strand = rand(0, 2)
  72. !!if strand = 0:musle[a] += 10
  73. !!if strand = 1:flex[a] += 10
  74. !!if strand = 2:stamina[a] += 10
  75. tehrand = rand(0, 2)
  76. if tehrand = 0:Bteh[a] += 10
  77. if tehrand = 1:Uteh[a] += 10
  78. if tehrand = 2:Zteh[a] += 10
  79. '<b><<$nameA>> won</b>'
  80. $spisok[a] += '<<$nameA>> <<win[a]>>-<<loss[a]>>-<<draw[a]>> <<SubWin[a]>>/<<SubLoss[a]>> vs <<$nameE>> <<win[i]>>-<<loss[i]>>-<<draw[i]>> <<SubWin[i]>>/<<SubLoss[i]>> <font color="green">victory</font>'
  81. $spisok[i] += '<<$nameA>> <<win[a]>>-<<loss[a]>>-<<draw[a]>> <<SubWin[a]>>/<<SubLoss[a]>> vs <<$nameE>> <<win[i]>>-<<loss[i]>>-<<draw[i]>> <<SubWin[i]>>/<<SubLoss[i]>> <font color="red">defeat</font>'
  82. win[a] += 1
  83. loss[i] += 1
  84. elseif resultFight = 2:
  85. rating[a] -= 1
  86. rating[i] -= 1
  87. '<b>The result of the fight a draw</b>'
  88. $spisok[a] += '<<$nameA>> <<win[a]>>-<<loss[a]>>-<<draw[a]>> <<SubWin[a]>>/<<SubLoss[a]>> vs <<$nameE>> <<win[i]>>-<<loss[i]>>-<<draw[i]>> <<SubWin[i]>>/<<SubLoss[i]>> <font color="black">draw</font>'
  89. $spisok[i] += '<<$nameA>> <<win[a]>>-<<loss[a]>>-<<draw[a]>> <<SubWin[a]>>/<<SubLoss[a]>> vs <<$nameE>> <<win[i]>>-<<loss[i]>>-<<draw[i]>> <<SubWin[i]>>/<<SubLoss[i]>> <font color="black">draw</font>'
  90. draw[a] += 1
  91. draw[i] += 1
  92. elseif resultFight = 3:
  93. wipo[i] += 1
  94. rating[a] -= 3
  95. rating[i] += 1
  96. strand = rand(0, 2)
  97. if strand = 0:musle[i] += 10
  98. if strand = 1:flex[i] += 10
  99. if strand = 2:stamina[i] += 10
  100. tehrand = rand(0, 2)
  101. if tehrand = 0:Bteh[i] += 10
  102. if tehrand = 1:Uteh[i] += 10
  103. if tehrand = 2:Zteh[i] += 10
  104. '<b><<$nameE>> won</b>'
  105. $spisok[a] += '<<$nameA>> <<win[a]>>-<<loss[a]>>-<<draw[a]>> <<SubWin[a]>>/<<SubLoss[a]>> vs <<$nameE>> <<win[i]>>-<<loss[i]>>-<<draw[i]>> <<SubWin[i]>>/<<SubLoss[i]>> <font color="red">defeat</font>'
  106. $spisok[i] += '<<$nameA>> <<win[a]>>-<<loss[a]>>-<<draw[a]>> <<SubWin[a]>>/<<SubLoss[a]>> vs <<$nameE>> <<win[i]>>-<<loss[i]>>-<<draw[i]>> <<SubWin[i]>>/<<SubLoss[i]>> <font color="green">victory</font>'
  107. win[i] += 1
  108. loss[a] += 1
  109. elseif resultFight = 4:
  110. wipo[i] += 2
  111. wipo[a] -= 1
  112. rating[a] -= 5
  113. rating[i] += 2
  114. strand = rand(0, 2)
  115. if strand = 0:musle[i] += 10
  116. if strand = 1:flex[i] += 10
  117. if strand = 2:stamina[i] += 10
  118. tehrand = rand(0, 2)
  119. if tehrand = 0:Bteh[i] += 10
  120. if tehrand = 1:Uteh[i] += 10
  121. if tehrand = 2:Zteh[i] += 10
  122. '<b><<$nameE>> won surrender</b>'
  123. $spisok[a] += '<<$nameA>> <<win[a]>>-<<loss[a]>>-<<draw[a]>> <<SubWin[a]>>/<<SubLoss[a]>> vs <<$nameE>> <<win[i]>>-<<loss[i]>>-<<draw[i]>> <<SubWin[i]>>/<<SubLoss[i]>> <font color="red">defeat surrender</font>'
  124. $spisok[i] += '<<$nameA>> <<win[a]>>-<<loss[a]>>-<<draw[a]>> <<SubWin[a]>>/<<SubLoss[a]>> vs <<$nameE>> <<win[i]>>-<<loss[i]>>-<<draw[i]>> <<SubWin[i]>>/<<SubLoss[i]>> <font color="green">wins by submission</font>'
  125. win[i] += 1
  126. SubWin[i] += 1
  127. loss[a] += 1
  128. SubLoss[a] += 1
  129. end
  130. act '...':gt $loc
  131. --- EndFight ---------------------------------