1
0

EndFight 5.0 KB

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