#include <iostream>
#include <cmath>
using namespace std;
int main ()
{
cout << "What is your name?" << endl;
char name;
cin >> name;
cout << "I will call you " << name << endl;
cout << name << ": what is this all about?" << endl;
cout << "This is about whatever you want it to be about, you are the creator" << endl << name << ": what???" << endl;
system ("pause");
cout << "New mission Enter 1 to continue" << endl;
int answer;
cin >> answer;
if (answer == 1)
{
cout << "What is the password?" << endl;
cout << "Hint : what do I call you?" << endl;
char answera ;
cin >> answera;
if (answera == name)
{
cout << "Good..." << endl;
}
else
{
cout << "You are not the creator, my mistake." << endl;
system ("pause");
return 0;
}
cout << "When you, the creator created this program, you wanted it to be like a RPG, so you are level one, I will now display your stats." << endl;
int level;
int hp;
int mp;
int dam;
level =+ 1;
hp =+ 100;
mp =+ 100;
dam =+ 5;
cout << "HP: " << hp << endl;
cout << "MP: " << mp << endl;
cout << "Level: " << level << endl;
cout << " You are a newb to this world." << endl;
system ("pause") ;
cout << name << ": Great, so how do I start?" << endl;
cout << "Start by making a monster, what will its name be?" << endl;
char monstername;
cin >> monstername;
cout << "We only use one letter names, so his/her name will be:" << monstername << endl;
cout << "What will " << monstername << "'s stats be?" << endl;
cout << "follow this order, HP " << endl << "MP" << endl << "Damage" << endl;
int mhp;
int mmp;
int mdmg;
cin >> mhp;
cin >> mmp;
cin >> mdmg;
cout << "Okay so the monsters stats are:" << endl << mhp << endl << mmp << endl << mdmg << endl;
cout << "Now fight him." << endl;
cout << name << ": ...(Want to be allies? Sometimes I like to pretend I am a princess riding a pony..)" << endl;
cout << "Attack? (1=yes 2=no)" << endl;
char attack;
cin >> attack;
if (attack == 1)
{
while (attack == 1)
{
cout << "You attack!" << endl;
hp -= mdmg;
mhp -= dam;
cout << "Hp:" << endl << hp << endl << mhp << endl;
cout << "Attack?" << endl;
cin >> attack;
if (hp == 0)
{
answer =+ 5;
cout << "You died

" << endl;
system ("pause");
return 0;
}
}
}
}
system ("pause");
return 0;
}