EndFight.qsrc 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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. !!elseif resultFight = 1:
  13. !! wipo[1] += 1
  14. !! rating[1] += 1
  15. !! rating[i] -= 3
  16. !!you won
  17. !!elseif resultFight = 2:
  18. !! rating[1] -= 1
  19. !! rating[i] -= 1
  20. !!draw
  21. !!elseif resultFight = 3:
  22. !! wipo[i] += 1
  23. !! rating[1] -= 3
  24. !! rating[i] += 1
  25. !!you lost
  26. !!elseif resultFight = 4:
  27. !! wipo[i] += 2
  28. !! wipo[1] -= 1
  29. !! rating[1] -= 5
  30. !! rating[i] += 2
  31. !!you lost surrender
  32. !!end
  33. !!act '...':gt $loc
  34. !!if Ku > Kb:
  35. !! if Ku > Kz:Uteh[1] += 10
  36. !!elseif Kb > Ku:
  37. !! if Kb > Kz:Bteh[1] += 10
  38. !!elseif Kz > Kb:
  39. !! if Kz > Ku:Zteh[1] += 10
  40. !!end
  41. '<<$nameA>> <<win[a]>>-<<loss[a]>>-<<draw[a]>> <<SubWin[a]>>/<<SubLoss[a]>>'
  42. '<<$nameE>> <<win[i]>>-<<loss[i]>>-<<draw[i]>> <<SubWin[i]>>/<<SubLoss[i]>>'
  43. '<<point>> points for <<$nameA>> <<Ku>> uses a gripping attack, <<Kb>> uses a throwing attack, <<Kz>> successful defends.'
  44. '<<pointE>> points for <<$nameE>> <<KuE>> uses a gripping attack, <<KbE>> uses a throwing attack, <<KzE>> successfully defended.'
  45. if resultFight = 0:
  46. wipo[a] += 2
  47. wipo[i] -= 1
  48. rating[a] += 2
  49. rating[i] -= 5
  50. strand = rand(0, 2)
  51. !!if strand = 0:musle[a] += 10
  52. !!if strand = 1:flex[a] += 10
  53. !!if strand = 2:stamina[a] += 10
  54. tehrand = rand(0, 2)
  55. if tehrand = 0:Bteh[a] += 10
  56. if tehrand = 1:Uteh[a] += 10
  57. if tehrand = 2:Zteh[a] += 10
  58. '<b><<$nameA>> wins by submission</b>'
  59. $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>'
  60. $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">is defeated by submission</font>'
  61. win[a] += 1
  62. SubWin[a] += 1
  63. loss[i] += 1
  64. SubLoss[i] += 1
  65. elseif resultFight = 1:
  66. wipo[a] += 1
  67. rating[a] += 1
  68. rating[i] -= 3
  69. strand = rand(0, 2)
  70. !!if strand = 0:musle[a] += 10
  71. !!if strand = 1:flex[a] += 10
  72. !!if strand = 2:stamina[a] += 10
  73. tehrand = rand(0, 2)
  74. if tehrand = 0:Bteh[a] += 10
  75. if tehrand = 1:Uteh[a] += 10
  76. if tehrand = 2:Zteh[a] += 10
  77. '<b><<$nameA>> wins</b>'
  78. $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">win</font>'
  79. $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>'
  80. win[a] += 1
  81. loss[i] += 1
  82. elseif resultFight = 2:
  83. rating[a] -= 1
  84. rating[i] -= 1
  85. '<b>The fight ends in a draw</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="black">draw</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="black">draw</font>'
  88. draw[a] += 1
  89. draw[i] += 1
  90. elseif resultFight = 3:
  91. wipo[i] += 1
  92. rating[a] -= 3
  93. rating[i] += 1
  94. strand = rand(0, 2)
  95. if strand = 0:musle[i] += 10
  96. if strand = 1:flex[i] += 10
  97. if strand = 2:stamina[i] += 10
  98. tehrand = rand(0, 2)
  99. if tehrand = 0:Bteh[i] += 10
  100. if tehrand = 1:Uteh[i] += 10
  101. if tehrand = 2:Zteh[i] += 10
  102. '<b><<$nameE>> wins</b>'
  103. $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>'
  104. $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">win</font>'
  105. win[i] += 1
  106. loss[a] += 1
  107. elseif resultFight = 4:
  108. wipo[i] += 2
  109. wipo[a] -= 1
  110. rating[a] -= 5
  111. rating[i] += 2
  112. strand = rand(0, 2)
  113. if strand = 0:musle[i] += 10
  114. if strand = 1:flex[i] += 10
  115. if strand = 2:stamina[i] += 10
  116. tehrand = rand(0, 2)
  117. if tehrand = 0:Bteh[i] += 10
  118. if tehrand = 1:Uteh[i] += 10
  119. if tehrand = 2:Zteh[i] += 10
  120. '<b><<$nameE>> wins by submission</b>'
  121. $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">is defeated by submission</font>'
  122. $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>'
  123. win[i] += 1
  124. SubWin[i] += 1
  125. loss[a] += 1
  126. SubLoss[a] += 1
  127. end
  128. act '...':gt $loc
  129. --- EndFight ---------------------------------