My PokeCode

Bracelets
Kinship Dies in Darkness
21 min readSep 18, 2017

#include “stdafx.h”
# include <iostream>
# include <ctime>
# include <string>
using namespace std;

int main()
{
srand((unsigned)time(0));
int pokeType; // Pokemon Type
int pokeMon; // varibale for choosing the actual Pokemon
int pokeEvolution; // variable for choosing Level of Evolution
int hitPoints; // Health
int newHp; // New Health after damge taken
int attackPoints; // Attack Points
double multipler; // multiplier of damage depending on Pokemon Type and Satge of Evolution
cout << “Choose a type of Pokemon. Type 1 for Fire, Type 2 for Water, Type 3 for Pyschic “;

cin >> pokeType; // user chooses number to choice type

switch (pokeType) {
case 1:
cout << “You chose Fire! “;

cout << “ Choose your Pokemon! Type 1 for Chimcar, Type 2 for Fennekin, Type Three for Litten “ << endl;
pokeType = 1;

cin >> pokeMon; // player choose number to choose

switch (pokeMon) {
case 1:
cout << “ You chose Chimcar! “ << endl; // Nested switch to so user can choose Pokemon from type they chose.
cout << “ Choose what evolution level you would like!” << endl;
cout << “Type 1 for Chimcar(Level 1), Type 2 for Monferno(Level 2), Type 3 for Infernape(Level 3) “ << endl;

cin >> pokeEvolution;

switch (pokeEvolution) {

case 1: // Another nest switch for Choosing evolution of Pokemon.

cout << “ You chose Chimcar! “ << endl;

cout << “ POKEDEX “ << endl;

cout << “ Chimcar” << endl;
cout << “ Level: 1 “ << endl;
pokeEvolution = 1;
cout << “ HP : 44 “ << endl;
hitPoints = 44;
cout << “ Attack Points : 58 “ << endl;
attackPoints = 58;
cout << “ Attack Type : Fire “ << endl;

cout << “ Weakness: Water “ << endl;

break;

case 2:

cout << “ You chose Monferno! “ << endl;

cout << “ POKEDEX “ << endl;

cout << “ Monferno” << endl;
cout << “ Level: 2 “ << endl;
pokeEvolution = 2;
cout << “ HP : 64 “ << endl;
hitPoints = 64;
cout << “ Attack Points : 78” << endl;
attackPoints = 78;
cout << “ Attack Type : Fire “ << endl;

cout << “ Weakness: Water “ << endl;
break;

case 3:
cout << “ You chose Infernape! “ << endl;

cout << “ POKEDEX “ << endl;

cout << “ Infernape” << endl;
cout << “ Level: 3 “ << endl;
pokeEvolution = 3;
cout << “ HP : 76 “ << endl;
hitPoints =76;
cout << “ Attack Points : 104 “ << endl;
attackPoints = 104;
cout << “ Attack Type : Fire “ << endl;

cout << “ Weakness: Water “ << endl;

break;

default:
cout << “ The evolution you chose is not avalible. “ << endl;
system(“pause”);
return 0;

}

break;

case 2:

cout << “ You chose Fennekin! “ << endl;
cout << “ Choose what evolution level you would like!” << endl;

cout << “Type 1 for Fennekin(Level 1), Type 2 for Braixen(Level 2), Type 3 for Delphox(Level 3) “ << endl;

cin >> pokeEvolution;

switch (pokeEvolution) {

case 1: // Another nest switch for Choosing evolution of Pokemon.

cout << “ You chose Fennekin! “ << endl;

cout << “ POKEDEX “ << endl;

cout << “ Fennekin” << endl;
cout << “ Level: 1 “ << endl;
pokeEvolution = 1;
cout << “ HP : 40 “ << endl;
hitPoints = 40;
cout << “ Attack Points : 45 “ << endl;
attackPoints = 45;
cout << “ Attack Type : Fire “ << endl;

cout << “ Weakness: Water “ << endl;

break;

case 2:

cout << “ You chose Braixen! “ << endl;

cout << “ POKEDEX “ << endl;

cout << “ Braixen” << endl;
cout << “ Level: 2 “ << endl;
pokeEvolution = 2;
cout << “ HP : 59 “ << endl;
hitPoints = 59;
cout << “ Attack Points : 59” << endl;
attackPoints = 59;
cout << “ Attack Type : Fire “ << endl;

cout << “ Weakness: Water “ << endl;
break;

case 3:
cout << “ You chose Delphox! “ << endl;

cout << “ POKEDEX “ << endl;

cout << “ Delphox “ << endl;
cout << “ Level: 3 “ << endl;
pokeEvolution = 3;
cout << “ HP : 75 “ << endl;
hitPoints = 75;
cout << “ Attack Points : 69 “ << endl;
attackPoints = 69;
cout << “ Attack Type : Fire “ << endl;

cout << “ Weakness: Water “ << endl;

break;

default:
cout << “ The evolution you chose is not avalible. “ << endl;
system(“pause”);
return 0;

}

break;

case 3:
cout << “ You chose Litten! “ << endl;
cout << “ Choose what evolution level you would like!” << endl;

cout << “Type 1 for Litten (Level 1), Type 2 for Torracat (Level 2), Type 3 for Incineroar(Level 3) “ << endl;

cin >> pokeEvolution;

switch (pokeEvolution) {

case 1: // Another nest switch for Choosing evolution of Pokemon.

cout << “ You chose Litten! “ << endl;

cout << “ POKEDEX “ << endl;

cout << “ Litten” << endl;
cout << “ Level: 1 “ << endl;
pokeEvolution = 1;
cout << “ HP : 45” << endl;
hitPoints = 45;
cout << “ Attack Points : 65 “ << endl;
attackPoints = 65;
cout << “ Attack Type : Fire “ << endl;

cout << “ Weakness: Water “ << endl;

break;

case 2:

cout << “ You chose Torracat! “ << endl;

cout << “ POKEDEX “ << endl;

cout << “ Torracat” << endl;
cout << “ Level: 2 “ << endl;
pokeEvolution = 2;
cout << “ HP : 65 “ << endl;
hitPoints = 65;
cout << “ Attack Points : 85” << endl;
attackPoints = 85;
cout << “ Attack Type : Fire “ << endl;

cout << “ Weakness: Water “ << endl;
break;

case 3:
cout << “ You chose Incineroar! “ << endl;

cout << “ POKEDEX “ << endl;

cout << “ Incineroar “ << endl;
cout << “ Level: 3 “ << endl;
pokeEvolution = 3;
cout << “ HP : 95” << endl;
hitPoints = 95;
cout << “ Attack Points : 115 “ << endl;
attackPoints = 115;
cout << “ Attack Type : Fire “ << endl;

cout << “ Weakness: Water “ << endl;

break;

default:
cout << “ The evolution you chose is not avalible. “ << endl;
system(“pause”);
return 0;

}

break;

default:
cout << “ Sorry the Pokemon you chose is not avalible. “;
system(“pause”);
return 0;
}

break;

case 2:
cout << “ You chose Water! “;
pokeType = 2;
cout << “ Choose your Pokemon! Type 1 for Piplup, Type 2 for Spheal, Type Three for Squirtle “ << endl;

cin >> pokeMon; // player choose number to choose

switch (pokeMon) {
case 1:
cout << “ You chose Piplup! “ << endl; // Nested switch to so user can choose Pokemon from type they chose.
cout << “ Choose what evolution level you would like!” << endl;
cout << “Type 1 for Piplup(Level 1), Type 2 for Prinplup(Level 2), Type 3 for Empoleon (Level 3) “ << endl;

cin >> pokeEvolution;

switch (pokeEvolution) {

case 1: // Another nest switch for Choosing evolution of Pokemon.

cout << “ You chose Piplup! “ << endl;

cout << “ POKEDEX “ << endl;

cout << “ Piplup” << endl;
cout << “ Level: 1 “ << endl;
pokeEvolution = 1;
cout << “ HP : 53” << endl;
hitPoints = 53;
cout << “ Attack Points : 51” << endl;
attackPoints = 51;
cout << “ Attack Type : Water “ << endl;

cout << “ Weakness: Grass “ << endl;

break;

case 2:

cout << “ You chose Prinplup! “ << endl;

cout << “ POKEDEX “ << endl;

cout << “ Prinplup” << endl;
cout << “ Level: 2 “ << endl;
pokeEvolution = 2;
cout << “ HP : 64 “ << endl;
hitPoints = 64;
cout << “ Attack Points : 66” << endl;
attackPoints = 66;
cout << “ Attack Type : Water “ << endl;

cout << “ Weakness: Grass “ << endl;
break;

case 3:
cout << “ You chose Empoleon ! “ << endl;

cout << “ POKEDEX “ << endl;

cout << “ Empoleon” << endl;
cout << “ Level: 3 “ << endl;
pokeEvolution = 3;
cout << “ HP : 84 “ << endl;
hitPoints = 84;
cout << “ Attack Points : 86” << endl;
attackPoints = 86;
cout << “ Attack Type : Water “ << endl;

cout << “ Weakness: Grass “ << endl;

break;

default:
cout << “ The evolution you chose is not avalible. “ << endl;
system(“pause”);
return 0;

}

break;

case 2:

cout << “ You chose Spheal! “ << endl;
cout << “ Choose what evolution level you would like!” << endl;

cout << “Type 1 for Spheal(Level 1), Type 2 for Sealeo(Level 2), Type 3 for Walrein(Level 3) “ << endl;

cin >> pokeEvolution;

switch (pokeEvolution) {

case 1: // Another nest switch for Choosing evolution of Pokemon.

cout << “ You chose Spheal! “ << endl;

cout << “ POKEDEX “ << endl;

cout << “ Spheal” << endl;
cout << “ Level: 1 “ << endl;
pokeEvolution = 1;
cout << “ HP : 70 “ << endl;
hitPoints = 70;
cout << “ Attack Points : 40” << endl;
attackPoints = 40;
cout << “ Attack Type : Water “ << endl;

cout << “ Weakness: Grass “ << endl;

break;

case 2:

cout << “ You chose Sealeo “ << endl;

cout << “ POKEDEX “ << endl;

cout << “ Sealeo” << endl;
cout << “ Level: 2 “ << endl;
pokeEvolution = 2;
cout << “ HP : 90 “ << endl;
hitPoints = 90;
cout << “ Attack Points : 60 “ << endl;
attackPoints = 60;
cout << “ Attack Type : Water “ << endl;

cout << “ Weakness: Grass “ << endl;
break;

case 3:
cout << “ You chose Walrein! “ << endl;

cout << “ POKEDEX “ << endl;

cout << “ Walrein “ << endl;
cout << “ Level: 3 “ << endl;
pokeEvolution = 3;
cout << “ HP : 110 “ << endl;
hitPoints = 110;
cout << “ Attack Points : 80 “ << endl;
attackPoints = 80;
cout << “ Attack Type : Water “ << endl;

cout << “ Weakness: Grass “ << endl;

break;

default:
cout << “ The evolution you chose is not avalible. “ << endl;
system(“pause”);
return 0;

}

break;

case 3:
cout << “ You chose Squirtle! “ << endl;
cout << “ Choose what evolution level you would like!” << endl;

cout << “Type 1 for Squirtle (Level 1), Type 2 for Wartortle (Level 2), Type 3 for Blastoise (Level 3) “ << endl;

cin >> pokeEvolution;

switch (pokeEvolution) {

case 1: // Another nest switch for Choosing evolution of Pokemon.

cout << “ You chose Squirtle! “ << endl;

cout << “ POKEDEX “ << endl;

cout << “ Squirtle” << endl;
cout << “ Level: 1 “ << endl;
pokeEvolution = 1;
cout << “ HP : 44” << endl;
hitPoints = 44;
cout << “ Attack Points : 48” << endl;
attackPoints = 48;
cout << “ Attack Type : Water “ << endl;

cout << “ Weakness: Grass “ << endl;

break;

case 2:

cout << “ You chose Wartortle! “ << endl;

cout << “ POKEDEX “ << endl;

cout << “ Wartortle” << endl;
cout << “ Level: 2 “ << endl;
pokeEvolution = 2;
cout << “ HP : 59 “ << endl;
hitPoints = 59;
cout << “ Attack Points : 63” << endl;
attackPoints = 63;
cout << “ Attack Type : Water “ << endl;

cout << “ Weakness: Grass “ << endl;
break;

case 3:
cout << “ You chose Blastoise! “ << endl;

cout << “ POKEDEX “ << endl;

cout << “ Blastoise “ << endl;
cout << “ Level: 3 “ << endl;
pokeEvolution = 3;
cout << “ HP : 79” << endl;
hitPoints = 79;
cout << “ Attack Points : 83 “ << endl;
attackPoints = 83;
cout << “ Attack Type : Water “ << endl;

cout << “ Weakness: Grass “ << endl;

break;

default:
cout << “ The evolution you chose is not avalible. “ << endl;
system(“pause”);
return 0;

}

break;

default:
cout << “ Sorry the Pokemon you chose is not avalible. “;
system(“pause”);
return 0;
}
break;
case 3:
cout << “ You chose Pyschic! “;
pokeType = 3;

cout << “ Choose your Pokemon! Type 1 for Abra, Type 2 for Gothita, Type Three for Solosis “ << endl;

cin >> pokeMon; // player choose number to choose

switch (pokeMon) {
case 1:
cout << “ You chose Abra “ << endl; // Nested switch to so user can choose Pokemon from type they chose.
cout << “ Choose what evolution level you would like!” << endl;
cout << “Type 1 for Abra(Level 1), Type 2 for Kadabra (Level 2), Type 3 for Alakazam (Level 3) “ << endl;

cin >> pokeEvolution;

switch (pokeEvolution) {

case 1: // Another nest switch for Choosing evolution of Pokemon.

cout << “ You chose Abra! “ << endl;

cout << “ POKEDEX “ << endl;

cout << “ Abra” << endl;
cout << “ Level: 1 “ << endl;
pokeEvolution = 1;
cout << “ HP : 25” << endl;
hitPoints = 25;
cout << “ Attack Points : 20” << endl;
attackPoints = 20;
cout << “ Attack Type : Psychic “ << endl;

cout << “ Weakness: Fighting “ << endl;

break;

case 2:

cout << “ You chose Kadabra! “ << endl;

cout << “ POKEDEX “ << endl;

cout << “ Kadabra” << endl;
cout << “ Level: 2 “ << endl;
pokeEvolution = 2;
cout << “ HP : 40 “ << endl;
hitPoints = 40;
cout << “ Attack Points : 35” << endl;
attackPoints = 35;
cout << “ Attack Type : Psychic “ << endl;

cout << “ Weakness: Fighting “ << endl;
break;

case 3:
cout << “ You chose Alakazam ! “ << endl;

cout << “ POKEDEX “ << endl;

cout << “ Alakazam” << endl;
cout << “ Level: 3 “ << endl;
pokeEvolution = 3;
cout << “ HP : 55 “ << endl;
hitPoints = 55;
cout << “ Attack Points : 50” << endl;
attackPoints = 50;
cout << “ Attack Type : Psychic “ << endl;

cout << “ Weakness: Fighting “ << endl;

break;

default:
cout << “ The evolution you chose is not avalible. “ << endl;
system(“pause”);
return 0;

}

break;

case 2:

cout << “ You chose Gothita! “ << endl;
cout << “ Choose what evolution level you would like!” << endl;

cout << “Type 1 for Gothita(Level 1), Type 2 for Gothorita (Level 2), Type 3 for Gothitelle(Level 3) “ << endl;

cin >> pokeEvolution;

switch (pokeEvolution) {

case 1: // Another nest switch for Choosing evolution of Pokemon.

cout << “ You chose Gothita! “ << endl;

cout << “ POKEDEX “ << endl;

cout << “ Gothita” << endl;
cout << “ Level: 1 “ << endl;
pokeEvolution = 1;
cout << “ HP : 45 “ << endl;
hitPoints = 45;
cout << “ Attack Points : 30” << endl;
attackPoints = 30;
cout << “ Attack Type : Psychic “ << endl;

cout << “ Weakness: Fighter “ << endl;

break;

case 2:

cout << “ You chose Gothorita “ << endl;

cout << “ POKEDEX “ << endl;

cout << “ Gothorita” << endl;
cout << “ Level: 2 “ << endl;
pokeEvolution = 2;
cout << “ HP : 60 “ << endl;
hitPoints = 60;
cout << “ Attack Points : 45 “ << endl;
attackPoints = 45;
cout << “ Attack Type : Psychic “ << endl;

cout << “ Weakness: Fighter “ << endl;
break;

case 3:
cout << “ You chose Gothitelle! “ << endl;

cout << “ POKEDEX “ << endl;

cout << “ Gothitelle “ << endl;
cout << “ Level: 3 “ << endl;
pokeEvolution = 3;
cout << “ HP : 70 “ << endl;
hitPoints = 70;
cout << “ Attack Points : 55 “ << endl;
attackPoints = 55;
cout << “ Attack Type : Psychic” << endl;

cout << “ Weakness: Fighter” << endl;

break;

default:
cout << “ The evolution you chose is not avalible. “ << endl;
system(“pause”);
return 0;

}

break;

case 3:
cout << “ You chose Solosis! “ << endl;
cout << “ Choose what evolution level you would like!” << endl;

cout << “Type 1 for Solosis (Level 1), Type 2 for Duosio (Level 2), Type 3 for Reuniclus (Level 3) “ << endl;

cin >> pokeEvolution;

switch (pokeEvolution) {

case 1: // Another nest switch for Choosing evolution of Pokemon.

cout << “ Solosis “ << endl;

cout << “ POKEDEX “ << endl;

cout << “ Solosis” << endl;
cout << “ Level: 1 “ << endl;
pokeEvolution = 1;
cout << “ HP : 45” << endl;
hitPoints = 45;
cout << “ Attack Points : 30” << endl;
attackPoints = 30;
cout << “ Attack Type : Psychic “ << endl;

cout << “ Weakness: Fighter “ << endl;

break;

case 2:

cout << “ You chose Duosion! “ << endl;

cout << “ POKEDEX “ << endl;

cout << “ Duosion” << endl;
cout << “ Level: 2 “ << endl;
pokeEvolution = 2;
cout << “ HP : 65 “ << endl;
hitPoints = 65;
cout << “ Attack Points : 40” << endl;
attackPoints = 40;
cout << “ Attack Type : Psychic “ << endl;

cout << “ Weakness: Fighetr “ << endl;
break;

case 3:
cout << “ You chose Reuniclus! “ << endl;

cout << “ POKEDEX “ << endl;

cout << “ Reuinclus “ << endl;
cout << “ Level: 3 “ << endl;
pokeEvolution = 3;
cout << “ HP : 110” << endl;
hitPoints = 110;
cout << “ Attack Points : 65 “ << endl;
attackPoints = 65;
cout << “ Attack Type : Psychic “ << endl;

cout << “ Weakness: Fighter “ << endl;

break;

default:
cout << “ The evolution you chose is not avalible. “ << endl;
system(“pause”);
return 0;

}

break;

default:
cout << “ Sorry the Pokemon you chose is not avalible. “;
system(“pause”);
return 0;
}

break;
default:
cout << “ Sorry, the type you chose is not avalible. :( “;
system(“pause”);
return 0;
}

system(“pause”);

cout << “ Now that you chose your Pokemon, lets try and catch a Pokemon in the wild!” << endl;

system(“pause”);

cout << “ I see one right now. Try and get it!” << endl;

system(“pause”);

cout << “ Here…”;

cout << “We…. “;

cout << “ Goooooo! “ << endl;

system(“pause”);

int chanceOfcatch;

chanceOfcatch = rand() % 3;

if (chanceOfcatch >= 1) {

cout << “ Congrats! You caught the Pokemon! Now lets go to the gym and battle! “ << endl;
}

else {

cout << “ Aw shucks! You didnt catch it. Looks like we’ll have to try again later. “ << endl;

system(“pause”);
return 0;
}

cout << “ In the gym you battle different Pokemon to test your skills.” << endl;

system(“pause”);
cout << “ Lets try and find you an opponent.” << endl;
system(“pause”);
int opponent;
int opponentHitPints;
int opponentType;
int opponentAttackPoints;
int opponentEvolutionLevel;
double opponentMultiplier;

opponent = rand() % 4;

if (opponent == 0) {

cout << “ Your opponent is Abra! “ << endl;
cout << “ POKEDEX “ << endl;

cout << “ Abra” << endl;
cout << “ Level: 1 “ << endl;
opponentEvolutionLevel = 1;
cout << “ HP : 25” << endl;
opponentHitPints = 25;
cout << “ Attack Points : 20” << endl;
opponentAttackPoints = 20;
cout << “ Attack Type : Psychic “ << endl;
opponentType = 3;
cout << “ Weakness: Fighting “ << endl;

}

else if (opponent == 1) {
cout << “ Your opponent is Empoleon! “ << endl;
system(“pause”);

cout << “ POKEDEX “ << endl;

cout << “ Empoleon” << endl;
cout << “ Level: 3 “ << endl;
opponentEvolutionLevel = 3;
cout << “ HP : 84 “ << endl;
opponentHitPints = 84;
cout << “ Attack Points : 86” << endl;
opponentAttackPoints = 86;
cout << “ Attack Type : Water “ << endl;
opponentType = 2;
cout << “ Weakness: Grass “ << endl;

}
else if (opponent == 2) {
cout << “ Your opponent is Wartortle! “ << endl;
system(“pause”);
cout << “ POKEDEX “ << endl;

cout << “ Wartortle” << endl;
cout << “ Level: 2 “ << endl;
opponentEvolutionLevel = 2;
cout << “ HP : 59 “ << endl;
opponentHitPints = 59;
cout << “ Attack Points : 63” << endl;
opponentAttackPoints = 63;
cout << “ Attack Type : Water “ << endl;
opponentType = 2;
cout << “ Weakness: Grass “ << endl;

}
else if (opponent == 3) {
cout << “ Your opponent is Incineroar! “ << endl;

cout << “ Incineroar “ << endl;
cout << “ Level: 3 “ << endl;
opponentEvolutionLevel = 3;
cout << “ HP : 95” << endl;
opponentHitPints = 95;
cout << “ Attack Points : 115 “ << endl;
opponentAttackPoints = 115;
cout << “ Attack Type : Fire “ << endl;
opponentType = 1;
cout << “ Weakness: Water “ << endl;

}

if (opponentType == 1 && pokeType == 2 && pokeEvolution == opponentEvolutionLevel ) { // conditions for Pokemon when facing Pokemon with a differnt type and Evolutuon Stage

multipler = 2;
opponentMultiplier = 0.5;

}

else if (opponentType == 1 && pokeType == 3 && pokeEvolution == opponentEvolutionLevel ) {

multipler = 1;
opponentMultiplier = 1;
}

else if (opponentType == 1 && pokeType ==1 && pokeEvolution == opponentEvolutionLevel ) {

multipler = 1;
opponentMultiplier = 1;
}
else if (opponentType == 2 && pokeType == 1 && pokeEvolution == opponentEvolutionLevel) {

multipler = 0.5;
opponentMultiplier = 2;
}
else if (opponentType == 2 && pokeType == 2 && pokeEvolution == opponentEvolutionLevel ) {

multipler = 1;
opponentMultiplier = 1;
}
else if (opponentType == 2 && pokeType == 3 && pokeEvolution == opponentEvolutionLevel ) {

multipler = 1;
opponentMultiplier = 1;
}

else if (opponentType == 3 && pokeType == 1 && pokeEvolution == opponentEvolutionLevel ) {

multipler = 1;
opponentMultiplier = 1;
}
else if (opponentType == 3 && pokeType == 2 && pokeEvolution == opponentEvolutionLevel ) {

multipler = 1;
opponentMultiplier = 1;
}

else if (opponentType == 3 && pokeType == 2 && pokeEvolution == opponentEvolutionLevel ) {

multipler = 1;
opponentMultiplier = 1;
}

else if (opponentType == 1 && pokeType == 2 && pokeEvolution == 1 && opponentEvolutionLevel == 1) {
multipler = 3;
opponentMultiplier = 0.2;

}

else if (opponentType == 1 && pokeType == 3 && pokeEvolution == 2 && opponentEvolutionLevel == 1) {

multipler = 2;
opponentMultiplier = 0.5;
}

else if (opponentType == 1 && pokeType == 1 && pokeEvolution == 2 && opponentEvolutionLevel == 1) {

multipler = 2;
opponentMultiplier = 0.5;
}
else if (opponentType == 2 && pokeType == 1 && pokeEvolution == 2 && opponentEvolutionLevel == 1) {

multipler = 1;
opponentMultiplier = 1;
}
else if (opponentType == 2 && pokeType == 2 && pokeEvolution == 2 && opponentEvolutionLevel == 1) {

multipler = 2;
opponentMultiplier = 0.5;
}
else if (opponentType == 2 && pokeType == 3 && pokeEvolution == 2 && opponentEvolutionLevel == 1) {

multipler = 2;
opponentMultiplier = 0.5;
}

else if (opponentType == 3 && pokeType == 1 && pokeEvolution == 2 && opponentEvolutionLevel == 1) {

multipler = 2;
opponentMultiplier = 0.5;
}
else if (opponentType == 3 && pokeType == 2 && pokeEvolution == 2 && opponentEvolutionLevel == 1) {

multipler = 2;
opponentMultiplier = 0.5;
}

else if (opponentType == 3 && pokeType == 2 && pokeEvolution == 2 && opponentEvolutionLevel == 1) {

multipler = 2;
opponentMultiplier = 0.5;
}

else if (opponentType == 1 && pokeType == 2 && pokeEvolution == 3 && opponentEvolutionLevel == 1) {
multipler = 4;
opponentMultiplier = 0.1;

}

else if (opponentType == 1 && pokeType == 3 && pokeEvolution == 3 && opponentEvolutionLevel == 1) {

multipler = 3;
opponentMultiplier = 0.2;
}

else if (opponentType == 1 && pokeType == 1 && pokeEvolution == 3 && opponentEvolutionLevel == 1) {

multipler = 3;
opponentMultiplier = 0.2;
}
else if (opponentType == 2 && pokeType == 1 && pokeEvolution == 3 && opponentEvolutionLevel == 1) {

multipler = 2;
opponentMultiplier = 0.5;
}
else if (opponentType == 2 && pokeType == 2 && pokeEvolution == 3 && opponentEvolutionLevel == 1) {

multipler = 3;
opponentMultiplier = 0.2;
}
else if (opponentType == 2 && pokeType == 3 && pokeEvolution == 3 && opponentEvolutionLevel == 1) {

multipler = 3;
opponentMultiplier = 0.2;
}

else if (opponentType == 3 && pokeType == 1 && pokeEvolution == 3 && opponentEvolutionLevel == 1) {

multipler = 3;
opponentMultiplier = 0.2;
}
else if (opponentType == 3 && pokeType == 2 && pokeEvolution == 3 && opponentEvolutionLevel == 1) {

multipler = 3;
opponentMultiplier = 0.2;
}

else if (opponentType == 3 && pokeType == 2 && pokeEvolution == 3 && opponentEvolutionLevel == 1) {

multipler = 3;
opponentMultiplier = 0.2;
}

else if (opponentType == 1 && pokeType == 2 && pokeEvolution == 3 && opponentEvolutionLevel == 2) {
multipler = 3;
opponentMultiplier = 0.2;

}

else if (opponentType == 1 && pokeType == 3 && pokeEvolution == 3 && opponentEvolutionLevel == 2) {

multipler =2 ;
opponentMultiplier = 0.5;
}

else if (opponentType == 1 && pokeType == 1 && pokeEvolution == 3 && opponentEvolutionLevel == 2) {

multipler = 2;
opponentMultiplier = 0.5;
}
else if (opponentType == 2 && pokeType == 1 && pokeEvolution == 3 && opponentEvolutionLevel == 2) {

multipler = 1;
opponentMultiplier = 1;
}
else if (opponentType == 2 && pokeType == 2 && pokeEvolution == 3 && opponentEvolutionLevel == 2) {

multipler = 2;
opponentMultiplier = 0.5;
}
else if (opponentType == 2 && pokeType == 3 && pokeEvolution == 3 && opponentEvolutionLevel == 2) {

multipler = 2;
opponentMultiplier = 0.5;
}

else if (opponentType == 3 && pokeType == 1 && pokeEvolution == 3 && opponentEvolutionLevel == 2) {

multipler = 2;
opponentMultiplier = 0.5;
}
else if (opponentType == 3 && pokeType == 2 && pokeEvolution == 3 && opponentEvolutionLevel == 2) {

multipler = 2;
opponentMultiplier = 0.5;
}

else if (opponentType == 3 && pokeType == 2 && pokeEvolution == 3 && opponentEvolutionLevel == 2) {

multipler = 2;
opponentMultiplier = 0.5;
}

else if (opponentType == 1 && pokeType == 2 && pokeEvolution == 2 && opponentEvolutionLevel == 3) {
multipler = 2;
opponentMultiplier = 0.5;

}

else if (opponentType == 1 && pokeType == 3 && pokeEvolution == 2 && opponentEvolutionLevel == 3) {

multipler = 1;
opponentMultiplier = 1;
}

else if (opponentType == 1 && pokeType == 1 && pokeEvolution == 2 && opponentEvolutionLevel == 3) {

multipler = 0.5;
opponentMultiplier = 2;
}
else if (opponentType == 2 && pokeType == 1 && pokeEvolution == 2 && opponentEvolutionLevel == 3) {

multipler = 0.2;
opponentMultiplier = 3;
}
else if (opponentType == 2 && pokeType == 2 && pokeEvolution == 2 && opponentEvolutionLevel == 3) {

multipler = 0.5;
opponentMultiplier = 2;
}
else if (opponentType == 2 && pokeType == 3 && pokeEvolution == 2 && opponentEvolutionLevel == 3) {

multipler = 0.5;
opponentMultiplier = 2;
}

else if (opponentType == 3 && pokeType == 1 && pokeEvolution == 2 && opponentEvolutionLevel == 3) {

multipler = 0.5;
opponentMultiplier = 2;
}
else if (opponentType == 3 && pokeType == 2 && pokeEvolution == 2 && opponentEvolutionLevel == 3 ) {

multipler = 0.5;
opponentMultiplier = 2;
}

else if (opponentType == 3 && pokeType == 2 && pokeEvolution == 2 && opponentEvolutionLevel == 3) {

multipler = 0.5;
opponentMultiplier = 2;
}

else if(opponentType == 1 && pokeType == 2 && pokeEvolution == 1 && opponentEvolutionLevel == 2) {
multipler = 3;
opponentMultiplier = 0.2;

}

else if (opponentType == 1 && pokeType == 3 && pokeEvolution == 1 && opponentEvolutionLevel == 2) {

multipler = 0.5;
opponentMultiplier = 2;
}

else if (opponentType == 1 && pokeType == 1 && pokeEvolution == 1 && opponentEvolutionLevel == 2) {

multipler = 0.5;
opponentMultiplier = 2;
}
else if (opponentType == 2 && pokeType == 1 && pokeEvolution == 1 && opponentEvolutionLevel == 2) {

multipler = 0.2;
opponentMultiplier = 3;
}
else if (opponentType == 2 && pokeType == 2 && pokeEvolution == 1 && opponentEvolutionLevel == 2) {

multipler = 0.5;
opponentMultiplier = 2;
}
else if (opponentType == 2 && pokeType == 3 && pokeEvolution == 1 && opponentEvolutionLevel == 2) {

multipler = 0.5;
opponentMultiplier = 2;
}

else if (opponentType == 3 && pokeType == 1 && pokeEvolution == 1 && opponentEvolutionLevel == 2) {

multipler = 0.5;
opponentMultiplier = 2;
}
else if (opponentType == 3 && pokeType == 2 && pokeEvolution == 1 && opponentEvolutionLevel == 2) {

multipler = 0.5;
opponentMultiplier = 2;
}

else if (opponentType == 3 && pokeType == 2 && pokeEvolution == 1 && opponentEvolutionLevel == 2) {

multipler = 0.5;
opponentMultiplier = 2;
}

else if (opponentType == 1 && pokeType == 2 && pokeEvolution == 1 && opponentEvolutionLevel == 3) {
multipler = 0.5;
opponentMultiplier = 2;

}

else if (opponentType == 1 && pokeType == 3 && pokeEvolution == 1 && opponentEvolutionLevel == 3) {

multipler = 0.2;
opponentMultiplier = 3;
}

else if (opponentType == 1 && pokeType == 1 && pokeEvolution == 1 && opponentEvolutionLevel == 3) {

multipler = 0.2;
opponentMultiplier = 3;
}
else if (opponentType == 2 && pokeType == 1 && pokeEvolution == 1 && opponentEvolutionLevel == 3) {

multipler = 0.1;
opponentMultiplier = 4;
}
else if (opponentType == 2 && pokeType == 2 && pokeEvolution == 1 && opponentEvolutionLevel == 3) {

multipler = 0.2;
opponentMultiplier = 3;
}
else if (opponentType == 2 && pokeType == 3 && pokeEvolution == 1 && opponentEvolutionLevel == 1) {

multipler = 0.2;
opponentMultiplier = 3;
}

else if (opponentType == 3 && pokeType == 1 && pokeEvolution == 1 && opponentEvolutionLevel == 3) {

multipler = 0.2;
opponentMultiplier = 3;
}
else if (opponentType == 3 && pokeType == 2 && pokeEvolution == 1 && opponentEvolutionLevel == 3) {

multipler = 0.2;
opponentMultiplier = 3;
}

else if (opponentType == 3 && pokeType == 2 && pokeEvolution == 1 && opponentEvolutionLevel == 3) {

multipler = 0.2;
opponentMultiplier = 3;
}
attackPoints = attackPoints *multipler; // equation for calcutlating attack of the user unto opponent
opponentAttackPoints = opponentAttackPoints * opponentMultiplier; // equation for calculating oppenents attacks

cout << “ Alright its time to battle! This Pokemon looks tough. Dont hold back!” << endl;

cout << “ Press the ‘A’ key to attack!” << endl;

char attackKey;
cin >> attackKey;

if (attackKey != ‘a’) {

cout << “Thats not the attack button. The enemy Pokemon wins as the judge thought you forfeited the match.” << endl;
system(“pause”);
return 0;
}

int opponentNewHp;

opponentNewHp = opponentHitPints — attackPoints; // equation for opponents HP after being attacked

cout << “ Enemy HP is now “ << opponentNewHp << endl;
system(“pause”);

cout << “ Ah oh. Now the enemy is attacking! “ << endl;
system(“pause”);

newHp = hitPoints — opponentAttackPoints; // equation for users HP after being attakced

cout << “ Blam!” << endl;
cout << “ Your HP is now at “ << newHp << endl;

system(“pause”);

if (newHp > opponentNewHp) { // if / else if staments for what happens if user or opponent win or loses.

cout << “ Your opponent got scared of how much damage you were doing and forfeited the match! Congrats, you win the game!” << endl;
system(“pause”);
return 0;
}

else if (newHp < opponentNewHp) {

cout << “ Your pokemon has passed out due to the attack. You can not fight anymore. Sorry, you lose. Better luck next time.” << endl;
system(“pause”);
return 0;
}

else {

cout << “ Looks like you guys tied. Train harder next time so you can win.” << endl;

}
system(“pause”);
return 0;
}

--

--