-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathText RPG.cpp
More file actions
93 lines (84 loc) · 3.53 KB
/
Copy pathText RPG.cpp
File metadata and controls
93 lines (84 loc) · 3.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#include <iostream>
#include <string>
#include <unordered_map>
#include <vector>
#include "hero_class.h"
#include "enemy_class.h"
#include "battlesystems.h"
using namespace std;
int main() {
string yes_no;
string name;
hero_class player;// you can make more objects for more functions later
battle();
battle_actions();
enemy_sneck();
player.get_hero_stats();//use this for when the player wants to get the stats
cout << "Welcome To My RPG. You will explore many wonderous lands and fight terrifying monsters. Are you ready?\n";
cout << "Yes or No (Be careful of spaces)\n";
getline(cin, yes_no);
if (yes_no == "Yes" || yes_no == "yes" || yes_no == "Y" || yes_no == "y") {
cout << "Lets Go \n";
}
else if (yes_no == "No" || yes_no == "no" || yes_no == "N" || yes_no == "n") {
cout << "Well get ready then\n";
}
else {
cout << "What are you doing pick something correct\n";
}
yes_no.clear();
cout << "Enter your name: ";
getline(cin, name);
cout << "Welcome " << name << ", lets now pick who you want to be" << endl;
// that comes way to fast find a way to slow it down
cout << "There are FOUR Classes you can pick" << endl;
cout << "THE SCIENTIST: With their incredible knowledge be able to get a health potion every battle. Hoping to expand the knowledge of this world he will explore and discover." << endl;
cout << "Scientist Stats:\n"
"(health placeholder)\n"
"(attack Placeholder)\n"
"(defense placeholder)\n"
"(agility placeholder)\n";
cout << "THE WARRIOR: With their legendary axe slice throw enemies with more attack. Wanting to gain honor and glory in conquering this land he will venture deep." << endl;//make their weapon a giant axe
cout << "Warrior Stats:\n"
"(health placeholder)\n"
"(attack Placeholder)\n"
"(defense placeholder)\n"
"(agility placeholder)\n";
cout << "THE NINJA: After years of martial arts training they have mastered their agility. Wanting to get revenge for his fallen master he follows clues here." << endl;//katana
cout << "Ninja Stats:\n"
"(health placeholder)\n"
"(attack Placeholder)\n"
"(defense placeholder)\n"
"(agility placeholder)\n";
cout << "JUST LARRY: This man who just got fired from his 9-5 plans on finding who he is with his newfound freedom. His pot belly provides some protection increasing his defense." << endl;//give him something stupid
cout << "Larry's Stats:\n"
"(health placeholder)\n"
"(attack Placeholder)\n"
"(defense placeholder)\n"
"(agility placeholder)\n";
cout << "Pick one of the characters" << endl;
string character;
getline(cin, character);
if (character == "Scientist" || character == "scientist") {
cout << "Knowledge is Power" << endl;//give them scientist
player.set_stats(1, 3, 15, 22);//change stats to needed
}
else if (character == "Warrior" || character == "warrior") {
cout << "FOR GLORY!!!" << endl;// give them warrior
player.set_stats(1, 3, 15, 22);//change stats to needed
}
else if (character == "Larry" || character == "larry") {
cout << "Hey got any burgers? " << endl;//give them larry
player.set_stats(1, 3, 15, 22);//change stats to needed
}
else if (character == "ninja" || character == "Ninja") {
cout << "SHHH!!!" << endl;
player.set_stats(1, 3, 15, 22);//change stats to needed
}
else {
cout << "YOU KNOW WHAT YOU GET NOTHING";
cout << "YOUR CHARACTER GETS 1 DEFENSE, 1 ATTACK, 1 DAMAGE, 1 AGILITY, AND 1 HEALTH!" << endl;//give him a slice of cheese
player.set_stats(1, 1, 1, 1);
}
player.get_hero_stats();
}