Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<iomanip>
- #include<fstream>
- #include<windows.h>
- using namespace std;
- int hp, maxhp, potions, adh, adl, optionmenu;
- void Status() {
- cout << "|=============| " << "HP: " << hp << "/" << maxhp << " |==| ";
- cout << "Potions: " << potions << " |==| ";
- cout << "Max Hit: " << adh;
- cout << " |============|" << endl << endl;
- }
- int main() {
- system("TITLE Kingdom");
- int level;
- string name, weapon;
- char spec;
- level = 1;
- Status();
- cout << "Enter your name: ";
- cin >> name;
- system("CLS");
- Status();
- cout << "Select your class: \n";
- cout << "(A) Warrior [110HP, Ability to Block]\n";
- cout << "(B) Ranger [100HP, Ability to Increase AD]\n";
- cout << "(C) Cleric [95HP, Ability to Heal]\n";
- cin >> spec;
- system("CLS");
- switch(spec)
- {
- case 'A':
- case 'a':
- maxhp = 110;
- hp = 110;
- adh= 11;
- adl= 7;
- weapon = "Sword";
- break;
- case 'B':
- case 'b':
- maxhp = 110;
- hp = 100;
- adh = 10;
- adl = 6;
- weapon = "Bow";
- break;
- case 'C':
- case 'c':
- maxhp = 95;
- hp = 95;
- adh = 9;
- adl = 5;
- weapon = "Staff";
- break;
- default:
- maxhp = 110;
- hp = 110;
- adh= 11;
- adl= 7;
- }
- Status();
- cout << "Stat Review:" << endl;
- cout << "HP: " << hp << endl;
- cout << "AD: " << adl << " to " << adh << "." << endl;
- system("PAUSE");
- system("CLS");
- Status();
- cout << "You wake up in an unfamiliar grotto, but you quickly find your " << weapon << " " << endl;
- cout << "laying nearby. You immediately grab it with no further thought. " << endl;
- cout << "Type 'C' for your options" << endl;
- cin >> optionmenu;
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment