Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while(!(attributesp<1))
- {
- cout << "Please manage your attribute points" << endl;
- cout << endl;
- cout << "Remaining attribute points: " << attributesp;
- cout << endl;
- cout << "Attributes: " << endl;
- cout << "1. (101) Strength: " << strength << endl;
- cout << "2. (202) Constitution: " << constitution << endl;
- cout << "3. (303) Charisma: " << charisma << endl;
- cout << "4. (404) Dextrity: " << dextrity << endl;
- cout << "5. (505) Intelligence: " << intelligence << endl;
- cout << endl;
- cout << "If you want to know anything about any attribute type" << endl; cout << endl; cout << "( 101 / 202 / 303 / 404 / 505 ) " << endl;
- cout << endl;
- cout << "If you want to upgrade attribute select numer" << endl; cout << endl; cout << "( 1 / 2 / 3 / 4 / 5 )" << endl;
- cout << endl;
- cout << "Choose: ";
- cin >> attributes;
- cout << endl;
- /////////////////////////////////////////////////////////////////////////
- //
- switch(attributes) //
- { //
- case 1: //
- strength=strength+2;
- attributesp=attributesp-2; //
- break; //
- //
- case 2: //
- constitution=constitution+2;
- attributesp=attributesp-2; //
- break; //
- //
- case 3: //
- charisma=charisma+2;
- attributesp=attributesp-2; //
- break; //
- //
- case 4: //
- dextrity=dextrity+2;
- attributesp=attributesp-2;
- //
- break; //
- //
- case 5: //
- intelligence=intelligence+2;
- attributesp=attributesp-2; //
- break;
- case 101:
- cout << "Strength makes your character hit harder," << endl;
- cout << "dealing more damage to enemies." << endl;
- cout << " "<< endl;
- system ("pause"); cout << endl;
- break;
- case 202:
- cout << "Constitution makes your character healther," << endl;
- cout << "increasing amount of damage he can take." << endl;
- cout << " "<< endl;
- system ("pause"); cout << endl;
- break;
- case 303:
- cout << "Charisma makes your character move convincing," << endl;
- cout << "increasing his speech and allowing him to buy items for less gold." << endl;
- cout << " "<< endl;
- system ("pause"); cout << endl;
- break;
- case 404:
- cout << "Dextrity makes your character more agile," << endl;
- cout << "increasing amount of damage dealt with bows." << endl;
- cout << " "<< endl;
- system ("pause"); cout << endl;
- break;
- case 505:
- cout << "Intelligence makes your character more intelligent," << endl;
- cout << "increaces amount of damage dealt with magic." << endl;
- cout << " "<< endl;
- system ("pause"); cout << endl;
- break;
- default:
- cout << endl;
- break;
- }
- cout << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement