Health/Mana, speed, and experience have been added and are ready to be implemented into the game. I am considering using a wc3 type intelligence, agility or strength hero system but havent decided on it yet. Name of the game is still pending incase anyone has any thoughts. I havent decided what I will work on next, but im sure it wont take too long to complete it as i have most of the basics down and have a rough 'picture' of what im planning on doing to finish this.. so you will have to see and wait what happends next, not like it really matters to anyone since this game is nothing special, just another test of my abilities.
#include <iostream.h>
double health, mana, speed, experience;
int main()
{
int reset = 0;
int mStrength = 0;
int mIntelligence;
int mAgility;
int mPoints = 20;
char mName[15];
cout << "~=~Welcome to Monster fighter version 0.01!~=~\n\nThe basics of the game will be created in this portion of the text based game \ncalled 'Monster Fighter'. Although the name of the game may vary during the\nprocess, I would still appreciate you call it by the appropriate name.\n\nPress enter proceed to the character creation process...";
cin.get();
/* Skill points Skill points Skill points Skill points Skill points Skill points Skill points Skill points */
/* Skill points Skill points Skill points Skill points Skill points Skill points Skill points Skill points */
system("cls");
cout << "First of all, you must name your character: ";
cin >> mName;
do {
mPoints = 20;
system("cls");
cout << "You have " << mPoints << " left.\n";
cout << endl << "Enter strength: ";
do {
cin.clear ();
if (cin.sync ());
mStrength = 0;
cin >> mStrength;
system("cls");
if (!cin.good ()) cout << "You must enter an integer: ";
else if (mStrength >= mPoints - 2 || mStrength < 1) cout << "Enter a value between 1 and " << mPoints - 2 << ": ";
} while ( mStrength > mPoints - 2 || mStrength < 1 );
mPoints = mPoints - mStrength;
system("cls");
cout << "You have " << mPoints << " left.\n";
cout << endl << "Enter agility: ";
do {
cin.clear ();
if (cin.sync ());
cin >> mAgility;
system("cls");
if (!cin.good ()) cout << "You must enter an integer: ";
else if (mAgility > mPoints -1 || mAgility < 1) cout << "Enter a value between 1 and " << mPoints - 1 << ": ";
} while ( mAgility > mPoints - 1 || mAgility < 1 );
mPoints = mPoints - mAgility;
system("cls");
cout << "You have " << mPoints << " left.\n";
cout << endl << "Enter intelligence: ";
do {
cin.clear ();
if (cin.sync ());
cin >> mIntelligence;
system("cls");
if (!cin.good ()) cout << "You must enter an integer: ";
else if (mIntelligence >= mPoints || mIntelligence < 1) cout << "Enter a value between 1 and " << mPoints << ": ";
} while ( mIntelligence > mPoints || mIntelligence < 1 );
mPoints = mPoints - mIntelligence;
cout << "You have " << mPoints << " left.";
system ("cls");
/* Skill points Skill points Skill points Skill points Skill points Skill points Skill points Skill points */
/* Skill points Skill points Skill points Skill points Skill points Skill points Skill points Skill points */
health = mStrength * 12;;
mana = mIntelligence * 9;;
speed = mAgility * 18;;
cout << "Congratulations, you have created your character successfully!\n\nHere is your character:\n\nCharacter name: " << mName << "\nStrength: " << mStrength << "\nAgility: " << mAgility << "\nIntelligence: " << mIntelligence << "\n";
cout << "Health: " << health << "\nMana: " << mana << "\nAttack/Move speed:" << speed << "\n\n\n\n";
cout << "Enter either 1 to reselect hero skill points, or 0 to finish.";
do {
cin >> reset;
if ( reset > 1 || reset < 0 ) {
system ("CLS");
cout << "To reselect hero skill points enter\n1 = Yes, reselect skills.\n0 = No, they're fine.\n\n";
}
} while ( reset > 1 || reset < 0 );
system ("CLS");
}while ( reset == 1 );
cin.get();
}