Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cmath>
- #include <cstdio>
- #include <vector>
- #include <iostream>
- #include <algorithm>
- using namespace std;
- char gone;
- int main() {
- int moves = 0;
- int answer;
- int level = 1;
- int attPts = 5;
- int strength = 0;
- int vitality = 0;
- int dexterity = 0;
- cout << "Welcome to Hell" << endl;
- do{
- cout << "Character[1] Fight[2] Options[3] Exit[4]" << endl;
- cin >> answer;
- if (answer == 1){
- cout << endl;
- cout << "Character!" << endl;
- cout << "You are level " << level << endl;
- cout << "Damage: " << strength * 2 << endl;
- cout << "Health: " << vitality * 10 << endl;
- cout << "Crit Chance: " << dexterity * .5 << endl;
- cout << "Strength: " << strength << endl;
- cout << "Vitality: " << vitality << endl;
- cout << "Dexterity: " << dexterity << endl;
- cout << "You have " << attPts << " attribute points!" << endl;
- cout << "Allocate Attribute points[1] Back[2]" << endl;
- cin >> answer;
- if (answer == 1){
- do {
- cout << "Strength: " << strength << endl;
- cout << "Vitality: " << vitality << endl;
- cout << "Dexterity: " << dexterity << endl;
- cout << "Allocate one point to which skill? Str[1] Vit[2] Dex[3] Back[4]" << endl;
- cin >> answer;
- if (answer == 1){
- strength++;
- attPts--;
- }
- else if (answer == 2){
- vitality++;
- attPts--;
- }
- else if (answer == 3){
- dexterity++;
- attPts--;
- }
- } while (answer != 4 && attPts != 0);
- }
- }
- else if (answer == 2){
- cout << endl;
- cout << "Fight!" << endl;
- cout << "Which monster would you like to fight? 1 2 3 4 5" << endl;
- if (answer == 1){
- cout << "Monster 1 appeared"
- }
- }
- else if (answer == 3){
- cout << "Options!" << endl;
- }
- else if (answer == 4){
- cout << "Bye :(" << endl;
- system("PAUSE");
- return 0;
- }
- else
- cout << "Please enter a valid response!" << endl;
- } while (moves != 500);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement