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 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
|
#include <iostream>
#include <string>
#include <random>
#include <stdio.h>
#include <time.h>
using namespace std;
//Generates Trainer ID
void GenerateID();
//Generates Original Stats
void GenerateOrigin();
//Generate Monster Gender
//Describes, by printing out, the Monsters origin stats.
//Function for each, will then create one that assimilates them all.
void DescribeMonOrigin1();
void DescribeMonOrigin2();
void DescribeMonOrigin3();
void DescribeMonOrigin4();
void DescribeMonOrigin5();
//Full Describe Function ( Made up of 1-5)
void FullOriginDescribe();
//For when random numbers are needed.
int RandomNum = 0;
//For the switch
int Switchnum = 0;
//Players Catch Level and XP
int PlayerCLevel = 1;
//Player Catch Level
int PlayerXP2 = 0;
//XP TO Next Level
int PlayerXP = 0;
//XP (In Total)
const int XPNeeded1k = 1000;
// XP needed to level will always be Levelnumber x 1000.
//Players Name
string Playername;
//Monsters Name
string Monstername;
//For creation of their first stats.
int MonstersBase[5]{0, 0, 0, 0, 0};
//Refers to
//Eyes
//Body Build
//Arms
//Legs
//Temperment
//Monster Stats
int MonMAXHP = 100;
int MonCHP = 0;
int MonAtk = 50;
int MonDef = 50;
int MonSpeed = 50;
//Monster Gender
int MonGender = 0;
bool MonF = 0;
bool MonM = 0;
//Full Genetic List
int MonsterGene[32];
//To detect players Gender.
int Gendernumber = 0;
bool Ismale = 0;
bool Isfem = 0;
//Players ID Code.
int PlayerID[5]{0, 0, 0, 0, 0}; // 4 Digits, last one is for Gender.
//EVEN is Male, ODD if female.
int main()
{
//Seeding random from time.
srand(time(NULL));
cout << "Welcome player to Genemonsters, where random monsters are created," << endl;
cout << "and their heritage tracked!" << endl;
cout << ""<< endl;
cout << ""<< endl;
cout << " Firstly, we need to know some details about you!" << endl;
cout << " Are you a Boy, Or A Girl?" << endl;
cout << " 1 For Boy, 2 For Girl" << endl;
cin >> Gendernumber;
//Currently 1 is Male, else is Fem, easy to change, just cba.
if (Gendernumber == 1)//If statement to choose player gender.
{
cout << " A Boy! Welcome!" << endl;
Ismale = 1;
Isfem = 0;
}
if (Gendernumber == 2)
{
cout << " A Girl! Welcome!" << endl;
Isfem = 1;
Ismale = 0;
}
if (Gendernumber ==! 1 || 2)
{
cout << "Incorrect input, please try again!" << endl;
}
cout << "Now that is out of the way, we need a name!" << endl;
cout << "What is your name player?" << endl;
cin >> Playername;
GenerateID();
cout << " Great! You are " << Playername << "!" << "Welcome" << endl;
cout << " The final step is to name your Monster, choose wisely, it CANNOT be changed " << endl;
cin >> Monstername;
|