Advertisement
Guest User

Untitled

a guest
Jul 31st, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. #include <cmath>
  2. #include <cstdio>
  3. #include <vector>
  4. #include <iostream>
  5. #include <algorithm>
  6. using namespace std;
  7.  
  8. char gone;
  9. int main() {
  10. int moves = 0;
  11. int answer;
  12. int level = 1;
  13. int attPts = 5;
  14. int strength = 0;
  15. int vitality = 0;
  16. int dexterity = 0;
  17. cout << "Welcome to Hell" << endl;
  18. do{
  19. cout << "Character[1] Fight[2] Options[3] Exit[4]" << endl;
  20. cin >> answer;
  21. if (answer == 1){
  22. cout << endl;
  23. cout << "Character!" << endl;
  24. cout << "You are level " << level << endl;
  25. cout << "Damage: " << strength * 2 << endl;
  26. cout << "Health: " << vitality * 10 << endl;
  27. cout << "Crit Chance: " << dexterity * .5 << endl;
  28. cout << "Strength: " << strength << endl;
  29. cout << "Vitality: " << vitality << endl;
  30. cout << "Dexterity: " << dexterity << endl;
  31. cout << "You have " << attPts << " attribute points!" << endl;
  32. cout << "Allocate Attribute points[1] Back[2]" << endl;
  33. cin >> answer;
  34. if (answer == 1){
  35. do {
  36. cout << "Strength: " << strength << endl;
  37. cout << "Vitality: " << vitality << endl;
  38. cout << "Dexterity: " << dexterity << endl;
  39. cout << "Allocate one point to which skill? Str[1] Vit[2] Dex[3] Back[4]" << endl;
  40. cin >> answer;
  41. if (answer == 1){
  42. strength++;
  43. attPts--;
  44. }
  45. else if (answer == 2){
  46. vitality++;
  47. attPts--;
  48. }
  49. else if (answer == 3){
  50. dexterity++;
  51. attPts--;
  52. }
  53. } while (answer != 4 && attPts != 0);
  54. }
  55. }
  56. else if (answer == 2){
  57. cout << endl;
  58. cout << "Fight!" << endl;
  59. cout << "Which monster would you like to fight? 1 2 3 4 5" << endl;
  60. if (answer == 1){
  61. cout << "Monster 1 appeared"
  62. }
  63. }
  64. else if (answer == 3){
  65. cout << "Options!" << endl;
  66. }
  67. else if (answer == 4){
  68. cout << "Bye :(" << endl;
  69. system("PAUSE");
  70. return 0;
  71. }
  72. else
  73. cout << "Please enter a valid response!" << endl;
  74. } while (moves != 500);
  75. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement