Advertisement
Guest User

Untitled

a guest
Nov 26th, 2015
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.33 KB | None | 0 0
  1. while(!(attributesp<1))
  2. {
  3. cout << "Please manage your attribute points" << endl;
  4. cout << endl;
  5. cout << "Remaining attribute points: " << attributesp;
  6. cout << endl;
  7. cout << "Attributes: " << endl;
  8. cout << "1. (101) Strength: " << strength << endl;
  9. cout << "2. (202) Constitution: " << constitution << endl;
  10. cout << "3. (303) Charisma: " << charisma << endl;
  11. cout << "4. (404) Dextrity: " << dextrity << endl;
  12. cout << "5. (505) Intelligence: " << intelligence << endl;
  13. cout << endl;
  14. cout << "If you want to know anything about any attribute type" << endl; cout << endl; cout << "( 101 / 202 / 303 / 404 / 505 ) " << endl;
  15. cout << endl;
  16. cout << "If you want to upgrade attribute select numer" << endl; cout << endl; cout << "( 1 / 2 / 3 / 4 / 5 )" << endl;
  17. cout << endl;
  18. cout << "Choose: ";
  19. cin >> attributes;
  20. cout << endl;
  21.  
  22.  
  23.  
  24.  
  25. /////////////////////////////////////////////////////////////////////////
  26. //
  27. switch(attributes) //
  28. { //
  29. case 1: //
  30. strength=strength+2;
  31. attributesp=attributesp-2; //
  32. break; //
  33. //
  34. case 2: //
  35. constitution=constitution+2;
  36. attributesp=attributesp-2; //
  37. break; //
  38. //
  39. case 3: //
  40. charisma=charisma+2;
  41. attributesp=attributesp-2; //
  42. break; //
  43. //
  44. case 4: //
  45. dextrity=dextrity+2;
  46. attributesp=attributesp-2;
  47. //
  48. break; //
  49. //
  50. case 5: //
  51. intelligence=intelligence+2;
  52. attributesp=attributesp-2; //
  53. break;
  54.  
  55. case 101:
  56. cout << "Strength makes your character hit harder," << endl;
  57. cout << "dealing more damage to enemies." << endl;
  58. cout << " "<< endl;
  59. system ("pause"); cout << endl;
  60. break;
  61.  
  62. case 202:
  63. cout << "Constitution makes your character healther," << endl;
  64. cout << "increasing amount of damage he can take." << endl;
  65. cout << " "<< endl;
  66. system ("pause"); cout << endl;
  67. break;
  68.  
  69. case 303:
  70. cout << "Charisma makes your character move convincing," << endl;
  71. cout << "increasing his speech and allowing him to buy items for less gold." << endl;
  72. cout << " "<< endl;
  73. system ("pause"); cout << endl;
  74. break;
  75.  
  76. case 404:
  77. cout << "Dextrity makes your character more agile," << endl;
  78. cout << "increasing amount of damage dealt with bows." << endl;
  79. cout << " "<< endl;
  80. system ("pause"); cout << endl;
  81. break;
  82.  
  83. case 505:
  84. cout << "Intelligence makes your character more intelligent," << endl;
  85. cout << "increaces amount of damage dealt with magic." << endl;
  86. cout << " "<< endl;
  87. system ("pause"); cout << endl;
  88. break;
  89.  
  90. default:
  91. cout << endl;
  92. break;
  93. }
  94. cout << endl;
  95.  
  96. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement