Advertisement
AndreiBorissenko

Rhyan and Andrei fight Bronson and Samson COMPLETE

Dec 28th, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.24 KB | None | 0 0
  1. var slaying = true;
  2. var andreiAttackLands = Math.floor(Math.random() * 2);
  3. var rhyanAttackLands = Math.floor(Math.random() * 2);
  4. var damageThisRound = Math.floor((Math.random() * 8) + 1);
  5. var bronsonHealth = 10;
  6. var samsonHealth = 10;
  7. var andreiHealth = 3;
  8. var rhyanHealth = 3;
  9.  
  10. while (slaying){
  11. if(andreiAttackLands){
  12. console.log("-Andrei hit buttered-up Bronson for " + damageThisRound + " damage!");
  13. bronsonHealth -= damageThisRound;
  14. if (bronsonHealth > 0){
  15. console.log("-Bronson, glistening with butter, has " + bronsonHealth + " health left.");
  16.  
  17. var rhyanAttackLands = Math.floor(Math.random() * 2);
  18. var andreiAttackLands = Math.floor(Math.random() * 2);
  19. var damageThisRound = Math.floor((Math.random() * 8) + 1);
  20. }
  21. if (bronsonHealth <= 0){
  22. slaying = false;
  23. console.log("-Andrei managed to subdue Bronson before Rhyan could match Samson. Andrei wins!");
  24. if (samsonHealth > 9){
  25. console.log("-Samson still has all his health left. I thought you played Dark Souls, Rhyan!");
  26. }else{
  27. console.log("-Samson still has " + samsonHealth + " health left. Better luck next time, Rhyan.");
  28. }
  29. }else if(rhyanAttackLands){
  30. console.log("-Rhyan hit godly Samson for " + damageThisRound + " damage!");
  31. samsonHealth -= damageThisRound;
  32. if (samsonHealth > 0){
  33. console.log("-Samson, blessed by God, has " + samsonHealth + " health left.");
  34.  
  35. var andreiAttackLands = Math.floor(Math.random() * 2);
  36. var rhyanAttackLands = Math.floor(Math.random() * 2);
  37. var damageThisRound = Math.floor((Math.random() * 8) + 1);
  38. }else{
  39. slaying = false;
  40. console.log("-Rhyan managed to cut off Samson's hair and shrivel the demigod into an old man before Andrei could finish Bronson. Rhyan wins!");
  41. if (bronsonHealth > 9){
  42. console.log("-Bronson still has all his health left. You really do have terrible luck, Andrei!");
  43. }else{
  44. console.log("-Bronson still has " + bronsonHealth + " health left. Better luck next time, Andrei.");
  45. }
  46. }
  47. }else{
  48. console.log("-Samson hits Rhyan, damn!");
  49. rhyanHealth--;
  50. var andreiAttackLands = Math.floor(Math.random() * 2);
  51. var rhyanAttackLands = Math.floor(Math.random() * 2);
  52. var damageThisRound = Math.floor((Math.random() * 8) + 1);
  53. if(rhyanHealth <= 0){
  54. slaying = false;
  55. console.log("-Samson has beaten Rhyan! Andrei wins!");
  56. }
  57. }
  58.  
  59. }else{
  60. console.log("-Bronson hits Andrei, ouch!");
  61. andreiHealth--;
  62. if(andreiHealth > 0){
  63. console.log("-Andrei has " + andreiHealth + " tries left!");
  64. }
  65. var andreiAttackLands = Math.floor(Math.random() * 2);
  66. var rhyanAttackLands = Math.floor(Math.random() * 2);
  67. var damageThisRound = Math.floor((Math.random() * 8) + 1);
  68. if(andreiHealth <= 0){
  69. slaying = false;
  70. console.log("-Bronson has kicked Andrei's ass! Rhyan wins!");
  71. }else if(rhyanAttackLands){
  72. console.log("-Rhyan hit godly Samson for " + damageThisRound + " damage!");
  73. samsonHealth -= damageThisRound;
  74. if (samsonHealth > 0){
  75. console.log("-Samson, blessed by God, has " + samsonHealth + " health left.");
  76. var andreiAttackLands = Math.floor(Math.random() * 2);
  77. var rhyanAttackLands = Math.floor(Math.random() * 2);
  78. var damageThisRound = Math.floor((Math.random() * 8) + 1);
  79. }else{
  80. slaying = false;
  81. console.log("-Rhyan manages to cut off Samson's hair and shrivel the demigod into a frail man before Andrei can finish Bronson. Rhyan wins!");
  82. if (bronsonHealth > 9){
  83. console.log("-Bronson still has all his health left. You really do have terrible luck, Andrei!");
  84. }else{
  85. console.log("-Bronson still has " + bronsonHealth + " health left. Better luck next time, Andrei.");
  86. }
  87. }
  88. }else{
  89. console.log("-Samson hits Rhyan, damn!");
  90. rhyanHealth--;
  91. if(rhyanHealth > 0){
  92. console.log("-Rhyan has " + rhyanHealth + " tries left!");
  93. }
  94. var andreiAttackLands = Math.floor(Math.random() * 2);
  95. var rhyanAttackLands = Math.floor(Math.random() * 2);
  96. var damageThisRound = Math.floor((Math.random() * 8) + 1);
  97. if(rhyanHealth <= 0){
  98. slaying = false;
  99. console.log("-Samson has beaten Rhyan! Andrei wins!");
  100. }
  101. }
  102. }
  103. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement