This is something that I made a while back during thanksgiving 2007. If you want to add on to it you can, it's not very well made as in the organization sucks. But it is pretty cool in the fact that you can navigate your acii environ with color and fight people on the road. It contains 1 random battle, 6 weapons, 2 towns, 1 quest that doesn't work, a cool map, a 5x5 map navigation system, and a battle system that is kinda cool, a level up sequence that happens only once, and some other unfinished stuff. It's pretty cool overall.

#include <cstdlib>
#include <cstdio>
#include <iostream>
#include <stdlib.h>
#include <ctime>
#include <conio.h>
#include <fstream>
using namespace std;
int main(int argc, char *argv[])
{
string line;
ofstream dragtxt;
HANDLE  hConsole;	int k;   hConsole = GetStdHandle(STD_OUTPUT_HANDLE);   
// you can loop k higher to see more color choices  
string MAP[34][34] = {
{"|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|" },
{"|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|F|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|T|", "|R|", "|F|", "|F|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|G|", "|R|", "|R|", "|F|", "|F|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|B|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|F|", "|F|", "|R|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|B|", "|P|", "|B|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|B|", "|W|", "|F|", "|R|", "|B|", "|B|", "|B|", "|B|", "|W|", "|W|", "|B|", "|B|", "|G|", "|B|", "|B|", "|W|", "|W|", "|W|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|B|", "|B|", "|B|", "|R|", "|R|", "|R|", "|G|", "|B|", "|B|", "|B|", "|B|", "|G|", "|G|", "|G|", "|B|", "|B|", "|W|", "|W|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|B|", "|B|", "|G|", "|G|", "|R|", "|P|", "|R|", "|R|", "|R|", "|R|", "|R|", "|R|", "|R|", "|G|", "|G|", "|R|", "|R|", "|T|", "|W|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|B|", "|B|", "|G|", "|G|", "|R|", "|R|", "|F|", "|F|", "|F|", "|F|", "|G|", "|F|", "|G|", "|R|", "|R|", "|R|", "|R|", "|B|", "|B|", "|B|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|G|", "|G|", "|R|", "|R|", "|R|", "|G|", "|R|", "|G|", "|F|", "|F|", "|F|", "|G|", "|G|", "|G|", "|G|", "|G|", "|F|", "|F|", "|R|", "|B|", "|W|", "|W|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|M|", "|G|", "|G|", "|R|", "|F|", "|F|", "|R|", "|R|", "|G|", "|G|", "|G|", "|G|", "|G|", "|W|", "|W|", "|G|", "|G|", "|G|", "|F|", "|R|", "|R|", "|W|", "|W|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|M|", "|M|", "|M|", "|G|", "|R|", "|F|", "|M|", "|R|", "|P|", "|G|", "|G|", "|G|", "|G|", "|W|", "|W|", "|W|", "|W|", "|F|", "|F|", "|F|", "|F|", "|R|", "|T|", "|W|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|R|", "|R|", "|R|", "|R|", "|R|", "|G|", "|G|", "|W|", "|W|", "|F|", "|F|", "|F|", "|F|", "|F|", "|R|", "|W|", "|W|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|M|", "|M|", "|P|", "|M|", "|M|", "|M|", "|M|", "|M|", "|B|", "|B|", "|B|", "|P|", "|F|", "|F|", "|W|", "|W|", "|W|", "|F|", "|P|", "|F|", "|F|", "|R|", "|W|", "|W|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|B|", "|B|", "|W|", "|B|", "|B|", "|F|", "|F|", "|G|", "|W|", "|F|", "|F|", "|F|", "|F|", "|F|", "|R|", "|G|", "|G|", "|G|", "|G|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|F|", "|F|", "|F|", "|F|", "|M|", "|F|", "|F|", "|M|", "|M|", "|M|", "|W|", "|B|", "|W|", "|W|", "|B|", "|G|", "|G|", "|R|", "|T|", "|F|", "|F|", "|F|", "|F|", "|R|", "|R|", "|G|", "|G|", "|G|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|F|", "|F|", "|F|", "|F|", "|R|", "|R|", "|R|", "|T|", "|M|", "|M|", "|W|", "|W|", "|W|", "|W|", "|W|", "|G|", "|G|", "|R|", "|F|", "|F|", "|F|", "|F|", "|F|", "|R|", "|G|", "|G|", "|G|", "|P|", "|G|", "|I|", "|I|" },
{"|I|", "|I|", "|G|", "|F|", "|F|", "|P|", "|F|", "|R|", "|G|", "|G|", "|W|", "|M|", "|W|", "|W|", "|W|", "|W|", "|B|", "|G|", "|G|", "|R|", "|R|", "|F|", "|F|", "|F|", "|F|", "|R|", "|R|", "|G|", "|G|", "|G|", "|G|", "|G|", "|I|", "|I|" },
{"|I|", "|I|", "|G|", "|G|", "|T|", "|R|", "|R|", "|R|", "|G|", "|B|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|G|", "|R|", "|R|", "|F|", "|F|", "|F|", "|F|", "|F|", "|R|", "|T|", "|G|", "|W|", "|G|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|G|", "|G|", "|G|", "|G|", "|B|", "|B|", "|B|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|G|", "|R|", "|F|", "|F|", "|F|", "|F|", "|F|", "|P|", "|R|", "|R|", "|G|", "|W|", "|W|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|G|", "|G|", "|G|", "|B|", "|B|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|B|", "|B|", "|G|", "|R|", "|F|", "|F|", "|F|", "|F|", "|F|", "|F|", "|F|", "|R|", "|G|", "|G|", "|W|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|G|", "|B|", "|B|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|G|", "|R|", "|F|", "|F|", "|F|", "|F|", "|F|", "|F|", "|F|", "|R|", "|G|", "|W|", "|W|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|P|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|B|", "|T|", "|R|", "|R|", "|R|", "|F|", "|F|", "|F|", "|F|", "|R|", "|R|", "|F|", "|F|", "|F|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|B|", "|G|", "|R|", "|R|", "|R|", "|R|", "|R|", "|R|", "|F|", "|F|", "|F|", "|F|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|B|", "|B|", "|G|", "|G|", "|G|", "|G|", "|G|", "|G|", "|R|", "|F|", "|F|", "|F|", "|W|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|B|", "|B|", "|B|", "|B|", "|F|", "|F|", "|F|", "|P|", "|G|", "|G|", "|G|", "|R|", "|F|", "|F|", "|M|", "|M|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|B|", "|B|", "|B|", "|F|", "|F|", "|F|", "|F|", "|F|", "|F|", "|R|", "|R|", "|R|", "|F|", "|F|", "|M|", "|M|", "|M|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|B|", "|F|", "|F|", "|M|", "|M|", "|F|", "|F|", "|M|", "|F|", "|R|", "|F|", "|F|", "|F|", "|M|", "|M|", "|M|", "|M|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|B|", "|B|", "|B|", "|B|", "|B|", "|F|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|R|", "|F|", "|M|", "|P|", "|M|", "|M|", "|P|", "|M|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|P|", "|W|", "|W|", "|W|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|T|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|W|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|" },
{"|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|" }
};
//NEW MAP TOWN PAWS//
string TerraCityLevel1[15][20] = {
{"   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   "},
{"   ","|~|","|W|","|W|","|W|","|W|","|W|","|W|","|W|","|W|","|W|","|W|","|W|","|W|","|W|","|W|","|W|","|W|","|~|","   "},
{"   ","|W|","|H|","   ","   ","   ","|H|","|P|","|T|","|H|","|H|","|W|","   ","   ","   ","   ","   ","   ","|W|","   "},
{"   ","|W|","|H|","   ","|H|","   ","|H|","   ","   ","   ","   ","|X|","   ","|W|","|W|","|W|","|W|","   ","|W|","   "},
{"   ","|W|","|H|","   ","|M|","   ","|H|","   ","   ","|H|","   ","|W|","   ","|W|","|P|","|P|","|W|","   ","|W|","   "},
{"   ","|W|","   ","   ","|H|","   ","|H|","   ","   ","|H|","   ","|W|","   ","|W|","|P|","|P|","|W|","   ","|W|","   "},
{"   ","|W|","|B|","   ","|A|","   ","|C|","   ","   ","|H|","   ","|W|","   ","|W|","|G|","|P|","|W|","   ","|W|","   "},
{"   ","|E|","   ","   ","   ","   ","|H|","   ","   ","|F|","   ","|W|","   ","   ","   ","|P|","|W|","   ","|W|","   "},
{"   ","|W|","   ","   ","|H|","   ","|H|","   ","   ","|H|","   ","|W|","   ","|W|","|G|","|P|","|W|","   ","|W|","   "},
{"   ","|W|","|M|","   ","|V|","   ","|H|","|H|","   ","|H|","|H|","|W|","   ","|W|","|P|","|P|","|W|","   ","|W|","   "},
{"   ","|W|","|H|","   ","|H|","   ","|H|","|H|","   ","|H|","|H|","|W|","   ","|W|","|P|","|P|","|W|","   ","|W|","   "},
{"   ","|W|","|H|","   ","|H|","   ","|H|","|H|","   ","|H|","|H|","|W|","   ","|W|","|W|","|W|","|W|","   ","|W|","   "},
{"   ","|W|","|H|","   ","   ","   ","   ","   ","   ","|H|","|H|","|W|","   ","   ","   ","   ","   ","   ","|W|","   "},
{"   ","|~|","|W|","|W|","|W|","|W|","|W|","|W|","|W|","|W|","|W|","|W|","|W|","|W|","|W|","|W|","|W|","|W|","|~|","   "},
{"   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   "}
};
string Graveyardlvl1[12][9]= {
{"   ","   ","   ","   ","   ","   ","   ","   ","   "},
{"   ","|~|","|=|","|=|","|E|","|=|","|=|","|~|","   "},
{"   ","|-|","|G|","   ","   ","|G|","  |","|-|","   "},
{"   ","|-|","|  ","|G|","   ","|G|","  |","|-|","   "},
{"   ","|-|","|  ","   ","   ","   ","  |","|-|","   "},
{"   ","|-|","|  ","|G|","|G|","   ","|G|","|-|","   "},
{"   ","|-|","|  ","   ","   ","   ","  |","|-|","   "},
{"   ","|-|","|G|","|G|","   ","|G|","  |","|-|","   "},
{"   ","|-|","|  ","   ","   ","   ","  |","|-|","   "},
{"   ","|-|","|L|","   ","|G|","   ","|G|","|-|","   "},
{"   ","|~|","|=|","|=|","|=|","|=|","|=|","|~|","   "},
{"   ","   ","   ","   ","   ","   ","   ","   ","   "}
};
int q;
q = 7;
int u;
u = 2;
int z;
z = 7;
int w;
w = 4;
string commandpaws;


//Inaccessable parts of PAWS//
//   0  1  2  3  4  5  6 //
//0 |~||=||=||=||=||=||~|//
//1 | ||B|      |P|   | |//
//2 | |      |G|      | |//
//3 | ||A|         |M|| |//
//4 | ||H|  |F| |H|   | |//
//5 | ||H|            | |//
//6 |~||=||=||E||=||=||~|//
string tpaws[10][10]= {
{"   ","   ","   ","   ","   ","   ","   ","   ","   "},
{"   ","|~|","|=|","|=|","|=|","|=|","|=|","|~|","   "},
{"   ","| |","|B|","   ","   ","|P|","  |","| |","   "},
{"   ","| |","   ","|H|","|H|","   ","|H|","| |","   "},
{"   ","| |","   ","   ","   ","   ","  |","| |","   "},
{"   ","| |","|H|","|G|","   ","|M|","  |","| |","   "},
{"   ","| |","|H|","|F|","   ","   ","  |","| |","   "},
{"   ","| |","|H|","   ","   ","   ","|H|","| |","   "},
{"   ","|~|","|=|","|=|","|E|","|=|","|=|","|~|","   "},
{"   ","   ","   ","   ","   ","   ","   ","   ","   "}
};

int x;
x = 22;
int y;
y = 20;
string commandmpdir;
srand(time(0));                         
string name;
int potionleft;
potionleft = 0;
cout<<"Welcome..."<<endl;
system("PAUSE");
system("cls");
cout<<"Mighty Adventurer..."<<endl;
system("PAUSE");
system("cls");
cout<<"                             ______________        "<<endl;
cout<<"        ________            |I am Memnon.  |       "<<endl;
cout<<"       /                    |Surely You    |       "<<endl;
cout<<"      | <o>  <o> |          |Have Heard Of |       "<<endl;
cout<<"      |    ||    |          |Me...         |       "<<endl;
cout<<"      |    ~~    |          |I am a master |       "<<endl;
cout<<"      |   ____   |          |spirt guide.  |       "<<endl;
cout<<"                /           |I shall guide |       "<<endl;
cout<<"        --------            |you...        |       "<<endl;
cout<<"                            ----------------       "<<endl;
system("PAUSE");
system("cls");
cout<<"You find a scroll on the ground... You pick it up and read it..."<<endl;
system("pause");
system("cls");
{    
// pick the colorattribute k you want    
SetConsoleTextAttribute(hConsole, 12);    
  }
cout<<"     /-------/"<<endl;
cout<<"    / Death / "<<endl;
cout<<"   / Is In /  "<<endl;
cout<<"  / Your  /   "<<endl;
cout<<" / Blood /    "<<endl;
cout<<"/-------/     "<<endl;
system("pause");
system("cls");
{
SetConsoleTextAttribute(hConsole, 2);
}
cout<<"You: Memnon... What is this?"<<endl;
cout<<"Memnon: That is a Scroll of Signs... I though that that i had seen the last of \nthose..."<<endl;
cout<<"Memnon: The Scroll of Signs is now bound to you because you picked it up... The\nlast user must have died..."<<endl;
cout<<"You: So what does it do Memnon?"<<endl;
cout<<"Memnon: It switches worlds... Now you are in Kamada... Which is not a \nplace you want to be in..."<<endl;
cout<<"You: So what do i do... and why is is not a good place?"<<endl;
cout<<"Memnon: You will soon find out..."<<endl;
system("PAUSE");
system("CLS");
cout<<"Memnon: You are now in the character creation screen."<<endl;
//Item LooT: Class//
int bndtcape;
bndtcape = 0;
int ogreshld;
ogreshld = 0;
int bndtswrd;
bndtswrd = 0;
int centaleg;
centaleg = 0;
int goldpeic;
goldpeic = 0;
int ogrebelt;
ogrebelt = 0;
int leathert;
leathert = 0;
int pixedust;
pixedust = 0;
int ogremuck;
ogremuck = 0;
int evilesse;
evilesse = 0;
int centanec;
centanec = 0;
{
SetConsoleTextAttribute(hConsole, 10);
}
int level;
level = 0;
//Non-Usable Character Screen//
cout<<"________________________________________________________________________________"<<endl;
cout<<"|Name:       |Number     |Bonus  |Saves  |Equipment           |Sell Price      |"<<endl;
cout<<"|------------|-----------|-------|-------|--------------------|----------------|"<<endl;
cout<<"|Srength     |10         |0      |none   |Scroll of Signs     |Souldbound      |"<<endl;
cout<<"|------------|-----------|-------|-------|--------------------|----------------|"<<endl;
cout<<"|Dexterity   |10         |0      |0 RFLX |Cotton Shirt   +1AC |5 gold          |"<<endl;
cout<<"|------------|-----------|-------|-------|--------------------|----------------|"<<endl;
cout<<"|Constitution|10         |0      |0 FORT |Woven Legs     +1AC |7 gold          |"<<endl;
cout<<"|------------|-----------|-------|-------|--------------------|----------------|"<<endl;
cout<<"|Wisdom      |10         |0      |0 WILL |Leather Shoes  +1AC |6 gold          |"<<endl;
cout<<"|------------|-----------|-------|-------|--------------------|----------------|"<<endl;
cout<<"|Intellect   |10         |0      |0      |Watch               |25 gold         |"<<endl;
cout<<"|------------|-----------|-------|-------|--------------------|----------------|"<<endl;
cout<<"|Charisma    |10         |0      |0      |                    |                |"<<endl;
cout<<"|------------|-----------|-------|-------|--------------------|----------------|"<<endl;
cout<<" Health                            Mana                           "<<endl;
cout<<" ----------------------- 100/100   ----------------------- 100/100"<<endl;
cout<<" |/////////////////////|           |/////////////////////|        "<<endl;
cout<<" ~~~~~~~~~~~~~~~~~~~~~~~           ~~~~~~~~~~~~~~~~~~~~~~~        "<<endl;
cout<<" Experience                                                       "<<endl;
cout<<" --------------------------------------------------------- 0/100 "<<endl;
cout<<" |                                                       |        "<<endl;
cout<<" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~        "<<endl;
cout<<"Armour Class"<<endl;
cout<<"|----------|"<<endl;
cout<<"|//////////|"<<endl;
cout<<"|////10////|"<<endl;
cout<<"|//////////|"<<endl;
cout<<"|----------|"<<endl;
system("PAUSE");
{
SetConsoleTextAttribute(hConsole, 2);
}
cout<<"Memnon: By the way, What is your name?"<<endl;
cin.ignore();
cin>>name;
system("cls");
int str;
str = 10;
int dex;
dex = 10;
int con;
con = 10;
int wis;
wis = 10;
int intel;
intel = 10;
int charis;
charis = 10;
int math400;
int math401;
int math402;
int maxhp;
maxhp = 100 + ((con - 10)/2)*10;
int rflx;
int fort;
int will;
math400 = dex/2;
rflx = math400;
math401 = con/2;
fort = math401;
math402 = wis/2;
will = math402;
int ac;
ac = (dex - 10)/2 + 10;
int atkbonus;
atkbonus = (str - 10)/2;
int dmgbonusgg;
dmgbonusgg = 0;
{
SetConsoleTextAttribute(hConsole, 10);
}

//Non-Usable Character Screen//
cout<<"________________________________________________________________________________"<<endl;
cout<<"|Name:";cout<<name;cout<<"  |Number     |Bonus  |Saves  |Equipment           |Sell Price      |"<<endl;
cout<<"|------------|-----------|-------|-------|--------------------|----------------|"<<endl;
cout<<"|Srength     |10         |0      |none   |Scroll of Signs     |souldbound      |"<<endl;
cout<<"|------------|-----------|-------|-------|--------------------|----------------|"<<endl;
cout<<"|Dexterity   |10         |0      |0 RFLX |Cotton Shirt   +1AC |5 gold          |"<<endl;
cout<<"|------------|-----------|-------|-------|--------------------|----------------|"<<endl;
cout<<"|Constitution|10         |0      |0 FORT |Woven Legs     +1AC |7 gold          |"<<endl;
cout<<"|------------|-----------|-------|-------|--------------------|----------------|"<<endl;
cout<<"|Wisdom      |10         |0      |0 WILL |Leather Shoes  +1AC |6 gold          |"<<endl;
cout<<"|------------|-----------|-------|-------|--------------------|----------------|"<<endl;
cout<<"|Intellect   |10         |0      |0      |Watch               |25 gold         |"<<endl;
cout<<"|------------|-----------|-------|-------|--------------------|----------------|"<<endl;
cout<<"|Charisma    |10         |0      |0      |                    |                |"<<endl;
cout<<"|------------|-----------|-------|-------|--------------------|----------------|"<<endl;
cout<<" Health                            Mana                           "<<endl;
cout<<" ----------------------- 100/100   ----------------------- 100/100"<<endl;
cout<<" |/////////////////////|           |/////////////////////|        "<<endl;
cout<<" ~~~~~~~~~~~~~~~~~~~~~~~           ~~~~~~~~~~~~~~~~~~~~~~~        "<<endl;
cout<<" Experience                                                       "<<endl;
cout<<" ---------------------------------------------------------    0/100"<<endl;
cout<<" |                                                       |        "<<endl;
cout<<" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~        "<<endl;
cout<<"Armour Class"<<endl;
cout<<"|----------|"<<endl;
cout<<"|//////////|"<<endl;
cout<<"|////10////|"<<endl;
cout<<"|//////////|"<<endl;
cout<<"|----------|"<<endl;
system("PAUSE");
system("cls");
string command;
int Rand_Num;
int math1;
int math2;
int math3;
int math4;
int math5;
int math6;
int math7;
int math8;
int math9;
int math10;
int Health;
Health = 100;
int EnDamage;
EnDamage = 0;
int Mana;
int HealthPotion;
HealthPotion = 0;
string buything;
int h;
h = 0;
int a;
int b;
int c;
int item;
int xgp;
xgp = 0;
int dgp;
dgp = 15;
int quest1active;
quest1active = 0;
int sgp;
sgp = 30;
string itemquip;
int lgp;
lgp = 50;
int mgp;
mgp = 60;
int bgp;
bgp = 115;
int ManaPotion;
ManaPotion = 0;
Mana = 100;
int magicor;
magicor = 0;
int exp1;
exp1 = 100;
string attackcommand;
int monhp;
monhp = 0;
int monac;
monac = 0;
int mondmg;
mondmg = 0;
string mon;
int atkac;
int equip;
int dmg1;
dmg1 = 0;
int monhp1;
int monac1;
int bluntforceimpact;
bluntforceimpact = 0;
int reputation;
reputation = 0;
string mon1;
int daysleft1;
daysleft1 = 25;
int exp;
exp = 0;
string response;
int detstart;
detstart = 1;
//blacksmith-partially implemented for time being
int wepequip;
int dagst;
dagst = 0;
int swordst;
swordst = 0;
int lngswst;
lngswst = 0;
int macest;
macest = 0;
int bastst;
bastst = 0;
int axest;
axest = 0;
//2hd
int gretst;
gretst = 0;
int halbst;
halbst = 0;
int grtaxest;
grtaxest = 0;
//armoursmith-paritally implemented for time being
int helmst;
helmst = 0;

goto start;
{
HPSTASIS:
	math10 = Health - EnDamage;
	Health = math10;
	if (Health <= 0) {cout<<"You have died.";system("PAUSE");goto jumpto;}
	else if (Health > 0){
	goto CHECKPOINT;
	}
}
{
//Palace Paws Quest//
PQUEST:
z = 2;
w = 4;
cout<<"You are in the Palace of Paws."<<endl;
cin.get();
if (quest1active >= 0){
PQUESTOVERDO:
cout<<"You are approached by a man dressed in robes."<<endl;
cin.get();
cout<<"Strange Man: I need your help!"<<endl;
cout<<"What do you say?"<<endl;
cout<<"1. What do you need help with?"<<endl;
cout<<"2. Who are you?"<<endl;
cout<<"3. Why are you so scared?"<<endl;
cout<<"4. Get lost."<<endl;
cin>>response;
cin.ignore();
if (response == "1" or "2" or "3"){reputation = reputation +5;
goto talk1v1;}
else if (response == "4"){reputation = reputation - 5;
goto endq1erly;}
else if (response != "1" or "2" or "3" or "4")
{cout<<"This is not a correct response item."<<endl;
cin.get();
system("CLS");
goto PQUESTOVERDO;}
talk1v1:
cout<<"I am Sharideth, a mage of the west sector. I came to Paws looking for an ammulet of power.But all I found was an old cursed almulet. The dead are now rising from their gaves to kill me. You look strong, If you would go to the graveyards not far from here, kill the banshee lord, and retreive the the stone of divinity, I would be able to break free of this curse. I might, be able to teach you a trick or two from my spell book, and maybe give you some gold in return."<<endl;
cout<<"I need you to do this right away. Please help me!"<<endl<<endl;
cout<<"What should you do?"<<endl;
cout<<"1. I will help you Sharideth, I will try my hardest."<<endl;
cout<<"2. I fear I am not worthy of this quest Sharideth."<<endl;
cout<<"3. Nuh, uh. No Graveyards or Banshee Lords for me."<<endl;
cout<<"4. I don't really care about this. You have no use to me."<<endl;
cin>>response;
if (response == "1"){reputation = reputation + 5;
goto talk1v2;}
else if (response == "2"){goto talk1v2;}
else if (response == "3"){goto endq1erly;}
else if (response == "4"){reputation = reputation - 5;goto endq1erly;}
else if (response != "1" or "2" or "3" or "4")
{cout<<"This is not a correct response item."<<endl;
cin.get();
system("CLS");
goto talk1v1;}
talk1v2:
cout<<"You have 25 days to complete this quest."<<endl;
cin.get();
quest1active = 1;
goto tpawsmp;
endq1erly:
cout<<"You see the old man. Then in an instant he is attacked by a pack of ghoul lords."<<endl;
cout<<"You have lost 25 reputation points."<<endl;
reputation = reputation - 25;
cout<<"Quest Failed!"<<endl;
quest1active = 2;
cin.get();
goto tpawsmp;
}
goto tpawsmp;
}











{
//For the beginning fight//
COMBATSTASIS:
CHECKPOINT:
{
SetConsoleTextAttribute(hConsole, 14);
}
	cout<<"Here are you options ==>"<<endl;
	cout<<"1. Attack"<<endl;
	cout<<"2. Magic"<<endl;
	cout<<"3. Item"<<endl;
	cout<<"Health Points"<<endl;
	cout<<Health<<endl<<endl;
	cout<<"Magic Points"<<endl;
	cout<<Mana<<endl<<endl;
	cout<<"Type the number of what you want to use and press enter!"<<endl;
	cin.ignore();
	cin >>command;
	system("CLS");
	if (command == "1"){goto attack;}
	else if (command == "2"){goto magic;}
	else if (command == "3"){goto inventory;}
	else if (command != "1" or "2" or "3"){goto CHECKPOINT;}
	
}
//For the Beginning fight//
{
attack:

cout<<"You are attacking, Which type of attack will you use?"<<endl<<endl;
cout<<"1. Attack"<<endl;
cout<<"2. Defend"<<endl;
cout<<"Choose the number you wish to select"<<endl;
cin.ignore();
cin>>attackcommand;
if (attackcommand == "1"){
Rand_Num = (rand() % 50) + atkbonus;
if (Rand_Num > monac){goto Hit;}
else if (Rand_Num < monac) {cout<<"You missed the ";cout<<mon1;cout<<"."<<endl;system("PAUSE"); goto EmAttack;}}
else if (attackcommand == "2"){
ac = ac + 5;cout<<"You are defending agianst ";cout<<mon1;cout<<"."<<endl;system("PAUSE");system("CLS"); goto EmAttack;}
else if (attackcommand != "1" or "2"){system("CLS");goto attack;}
Hit:
system("CLS");
Rand_Num = (rand() % 50) + 1;
if (Rand_Num <= 4){dmg1 = Rand_Num + atkbonus + dmgbonusgg;cout<<"You hit the ";cout<<mon1;cout<<" for ";cout<<dmg1;cout<<" Damage!"<<endl;
monhp = monhp - dmg1;
cout<<"The ";cout<<mon1;cout<<" has ";cout<<monhp;cout<<" health left"<<endl;
if (monhp <= 0){
if (detstart == 1){goto Endfight;}
else if (detstart == 0){goto cong;}}
else if (monhp > 0){
system("Pause");
system("cls");
goto EmAttack;
}
}
else if (Rand_Num > 4) {goto Hit;}
}
{
inventory:
cout<<"Here are your items."<<endl;
cout<<"Heath Potions:";cout<<HealthPotion<<endl;
cout<<"Mana Potions:";cout<<ManaPotion<<endl;
system("PAUSE");
if (HealthPotion or ManaPotion > 0){goto chow;}
else if (HealthPotion,ManaPotion == 0){cout<<"You have nothing, Returing to battle menu."<<endl;system("PAUSE");system("CLS");goto CHECKPOINT;
chow:
cout<<"Would you like to use a Health Potion?"<<endl;
cout<<"1. Yes"<<endl;
cout<<"2. No"<<endl;
cin>>command;
if (command == "1"){Health = Health + 25;if (Health > maxhp){Health = maxhp;}cout<<"You have ";cout<<Health;cout<<" now!"<<endl;
HealthPotion = HealthPotion - 1;goto EmAttack;}
else if (command != "1"){
if(ManaPotion >= 0){goto chow1;}
else if (ManaPotion ==0){cout<<"You don't have any Mana Potions."<<endl;goto CHECKPOINT;}}
chow1:
cout<<"Would you like to use a Mana Potion?"<<endl;
cout<<"1. Yes"<<endl;
cout<<"2. No"<<endl;
cin>>command;
if (command == "1"){Mana = Mana + 25;ManaPotion = ManaPotion - 1;goto EmAttack;}
else if (command != "1"){goto CHECKPOINT;}
}
}
{
magic:
cout<<"Here is the list of magic that is available to you:"<<endl;
if (magicor == 0){cout<<"You have no magic. Returing to battle menu."<<endl;system("PAUSE");system("CLS");goto CHECKPOINT;}
}

{
EmAttack:
{
SetConsoleTextAttribute(hConsole, 12);
}
cout<<"The ";cout<<mon1;cout<<" is attacking you"<<endl;
system("PAUSE");
Rand_Num = (rand() % 50) + 0;
if (Rand_Num < ac){cout<<"The ";cout<<mon1;cout<<" missed you."<<endl;system("PAUSE");system("CLS"); goto CHECKPOINT;}
else if (Rand_Num >= ac){goto monhit;}
monhit:
Rand_Num = (rand() % 50) + 1;
if (Rand_Num <= mondmg){EnDamage = Rand_Num;math5=Health - Rand_Num;cout<<"The ";cout<<mon1;cout<<" Hit you for ";cout<<Rand_Num;cout<<" damage!"<<endl;
cout<<"You have ";cout<<math5;cout<<" Health Left!"<<endl;
cout<<"It is now your time to attack."<<endl;system("PAUSE");system("CLS");
if (attackcommand == "2"){
ac = ac -5;}
goto HPSTASIS;}
else if (Rand_Num > mondmg){goto monhit;}
}

start:
{
SetConsoleTextAttribute(hConsole, 12);
}
cout<<"Wait! Here comes a goblin! Ready your fists. Battle is calling!"<<endl;
system("PAUSE");
{
ifstream myfile ("gobling.txt");
if (myfile.is_open())
  {
    while (! myfile.eof() )
    {
      getline (myfile,line);
      cout << line << endl;
    }
    system("PAUSE");
    system("CLS");
    myfile.close();
  }
}

cout<<"You see a little goblin in front of you. It looks mad. But why? It has a knife! It starts to charge!"<<endl;
mondmg = mondmg + 5;
monhp = monhp + 8;
monac1 = monac + 10;
mon1 = "goblin";
goto COMBATSTASIS;
Endfight:
{
SetConsoleTextAttribute(hConsole, 14);
}
cout<<"You have defeated the evil goblin, congradulations."<<endl;
cout<<"You have gained 5 experience points."<<endl;
cout<<"You have found a Health Potion on the goblin"<<endl;
cout<<"You have taken the dagger you found on the goblin, and equip it"<<endl;
{
ifstream myfile ("daggerfind.txt");
if (myfile.is_open())
  {
    while (! myfile.eof() )
    {
      getline (myfile,line);
      cout << line << endl;
    }
    system("PAUSE");
    system("CLS");
    myfile.close();
  }
}
HealthPotion = HealthPotion + 1;
exp = exp + 5;
int goblindag;
goblindag = 1;
dmgbonusgg = dmgbonusgg + 2;
wepequip = 1;
system("PAUSE");
system("CLS");
detstart = 0;
cout<<"Memnon: I don't have a clue where you are. Judging by the trees, You must be in a forest. But where?"<<endl;
cout<<"Memnon: I don't remember any forests in Kamada. Maybe you should look around"<<endl;
cout<<name;cout<<": I'll scout around for a bit."<<endl;
system("PAUSE");
system("CLS");
goto maptest;

{

Blacksmith:
cout<<"You are at the blacksmith's shop."<<endl;
cout<<"Blacksmith: Hey what can I get for you today?"<<endl;
cout<<"Here is the list of available things that you can buy:"<<endl;
cout<<"1. Dagger (+1Atkbonus,+2Dmgbonus)            15gp"<<endl;
cout<<"2. Sword  (+2Atkbonus,+4Dmgbonus)            30gp"<<endl;
cout<<"3. Long Sword(+6Dmgbonus)                    50gp"<<endl;
cout<<"4. Mace   (+2Atkbonus,+3Dmgbonus,+5Impact)   60gp"<<endl;
cout<<"5. Bastard Sword (+3Atkbonus,+8Dmgbonus)     115gp"<<endl;
cin>>buything;
if (buything == "1")
{xgp = 15; h = 2; a = 1; b = 0, c = 2;
if (goldpeic >=  xgp)
{;itemquip == "Dagger"; goto equipthing;}
else if (goldpeic < xgp)
{cout<<"You can't afford that."<<endl;goto tpawsmp;}
}
if (buything == "2")
{xgp = 30; h = 3; a = 2; b = 0, c = 4;
if (goldpeic >=  xgp)
{;itemquip == "Sword"; goto equipthing;}
else if (goldpeic < xgp)
{cout<<"You can't afford that."<<endl;goto tpawsmp;}
}
if (buything == "3")
{xgp = 50; h = 5; a = 0; b = 0, c = 6;
if (goldpeic >=  xgp)
{;itemquip == "Long_Sword"; goto equipthing;}
else if (goldpeic < xgp)
{cout<<"You can't afford that."<<endl;goto tpawsmp;}
}
if (buything == "4")
{xgp = 60; h = 6; a = 2; b = 5, c = 3;
if (goldpeic >=  xgp)
{;itemquip == "Mace"; goto equipthing;}
else if (goldpeic < xgp)
{cout<<"You can't afford that."<<endl;goto tpawsmp;}
}
if (buything == "5")
{xgp = 115; h = 7; a = 3; b = 0, c = 8;
if (goldpeic >=  xgp)
{;itemquip == "Bastard_Sword"; goto equipthing;}
else if (goldpeic < xgp)
{cout<<"You can't afford that."<<endl;goto tpawsmp;}
}
else if (buything != "1" or "2" or "3" or "4" or "5"){
cout<<"There is nothing that you can buy that is that."<<endl;
system("PAUSE");
system("CLS");
goto Blacksmith;
}

{
equipthing:
cout<<"Would you like to equip ";cout<<itemquip;cout<<"?"<<endl;
cout<<"1. Yes"<<endl;
cout<<"2. No"<<endl;
cin>>equip;
if (equip == 1){
    if (wepequip == h)
    {
        cout<<"You already have a ";cout<<itemquip;cout<<" Equiped"<<endl;
        system("PAUSE");
        system("CLS");
        goto tpawsmp;
        }
    else if (wepequip == 2)
    {   
    dmgbonusgg = dmgbonusgg - 2;
    goto bgs;
    }
    else if (wepequip == 4)
    {
    dmgbonusgg = dmgbonusgg - 5;
    atkbonus = atkbonus - 2;
    goto bgs;
    }
    else if (wepequip == 1)
    {
    dmgbonusgg = dmgbonusgg - 2;
    atkbonus = atkbonus - 1;
    goto bgs;
    }
    else if (wepequip == 3)
    {
    dmgbonusgg = dmgbonusgg - 4;
    atkbonus = atkbonus - 2;
    goto bgs;
    }
    else if (wepequip == 5)
    {
    dmgbonusgg = dmgbonusgg - 6;
    goto bgs;
    }
    else if (wepequip == 6)
        {
        dmgbonusgg = dmgbonusgg - 3;
        bluntforceimpact = bluntforceimpact - 5;
        atkbonus = atkbonus - 2;
        goto bgs;
        }
    else if (wepequip == 7)
        {
        dmgbonusgg = dmgbonusgg - 8;
        atkbonus = atkbonus - 3;
        goto bgs;
        }
   {
    bgs:
    wepequip = h;
    dmgbonusgg = dmgbonusgg +c;
    atkbonus = atkbonus + a;
    bluntforceimpact = bluntforceimpact + b;
    h = item;
    }
    }
else if (equip >= 2){
goto tpawsmp;
}
}







{
cong:

if (monhp = 32){
Rand_Num = (rand() % 50) + 0;
if (Rand_Num <= 100){goto branditems;}
else if (Rand_Num > 100){goto cong;}
branditems:
{
SetConsoleTextAttribute(hConsole, 13);
}
if (Rand_Num == 23 or 45 or 87){goldpeic = goldpeic + 15;bndtswrd = bndtswrd + 1;exp = exp + 25; HealthPotion = HealthPotion + 1;
cout<<"Congradulations! You have defeated the bandit. You have earned 25 exp. You have looted one bandit sword, 15 gold peices, and one Health Potion"<<endl;

{
ifstream myfile ("bswordfind.txt");
if (myfile.is_open())
  {
    while (! myfile.eof() )
    {
      getline (myfile,line);
      cout << line << endl;
    }
    system("PAUSE");
    system("CLS");
    myfile.close();
  }
}
int equip;
cout<<"Would you like to equip bandit sword?"<<endl;
cout<<"Stats are: +2Atkbonus,+5dmgbonus"<<endl;
cout<<"1. Yes"<<endl;
cout<<"2. No"<<endl;
cin>>equip;
if (equip == 1){
    if (wepequip == 4)
    {
        cout<<"You already have a Bandit Sword Equiped"<<endl;
        system("PAUSE");
        system("CLS");
        goto Levelup;
        }
    else if (wepequip == 2)
    {   
    dmgbonusgg = dmgbonusgg - 2;
    goto bndtsorequip;
    }
    else if (wepequip == 1)
    {
    dmgbonusgg = dmgbonusgg - 2;
    atkbonus = atkbonus - 1;
    goto bndtsorequip;
    }
    else if (wepequip == 3)
    {
    dmgbonusgg = dmgbonusgg - 4;
    atkbonus = atkbonus - 2;
    goto bndtsorequip;
    }
    else if (wepequip == 5)
    {
    dmgbonusgg = dmgbonusgg - 6;
    goto bndtsorequip;
    }
    else if (wepequip == 6)
        {
        dmgbonusgg = dmgbonusgg - 3;
        bluntforceimpact = bluntforceimpact - 5;
        atkbonus = atkbonus - 2;
        goto bndtsorequip;
        }
    else if (wepequip == 7)
        {
        dmgbonusgg = dmgbonusgg - 8;
        atkbonus = atkbonus - 3;
        goto bndtsorequip;
        }
   {
    bndtsorequip:
    wepequip = 4;
    dmgbonusgg = dmgbonusgg +5;
    atkbonus = atkbonus + 2;
    }
    }
else if (equip >= 2)
{
goto Levelup;
}

goto Levelup;}
else if (Rand_Num == 64 or 20 or 52 or 79 or 92 or 01 or 06 or 31){goldpeic = goldpeic + 50;bndtcape = bndtcape + 1;exp = exp + 25;
cout<<"Congradulations! You have defeated the bandit. You have earned 25 exp. You have looted one bandit cape, and 50 gold peices!"<<endl;
goto Levelup;}
else if (Rand_Num != 23 or 45 or 87 or 64 or 20 or 52 or 79 or 92 or 01 or 06 or 31){exp = exp + 25;
cout<<"Congradulations! You have defeated the bandit. You have earned 25exp. There was no loot."<<endl;
goto Levelup;}
}


Bandit:
{
SetConsoleTextAttribute(hConsole, 12);
}

mondmg = 11;
monhp = 32;
monac1 = 15;
mon1 = "bandit";
goto COMBATSTASIS;
}
{
Ogre:
mondmg = 36;
monhp = 166;
monac1 = 24;
mon1 = "ogre";
goto COMBATSTASIS;
}
{
FCentaur:
mondmg = 7;
monhp = 18;
monac1 = 13;
mon1 = "forest centaur";
goto COMBATSTASIS;
}
{
Nymph:
mondmg = 2;
monhp = 4;
monac1 = 7;
mon1 = "forest nymph";
goto COMBATSTASIS;
}
//Level up sequence;//
{
Levelup:
int levelcom;
if (level == 0)
{
    if (exp >= exp1)
    {
        level = level + 1;
	exp1 = exp1 * 1.5;-
        statchoose:
        cout<<"You have just Leveled up! You are now level ";cout<<level;cout<<"!"<<endl;
        cout<<"You can choose between these options to improve,"<<endl;
        cout<<"1. Improve Strength by one"<<endl;
        cout<<"2. Improve Dexterity by one"<<endl;
        cout<<"3. Improve Constitution by one"<<endl;
        cout<<"4. Improve Intellegence by one"<<endl;
        cout<<"5. Improve Wisdom by one"<<endl;
        cout<<"6. Improve Charisma by one"<<endl;
        cin>>levelcom;
                if (levelcom == 1)
                                {str == str + 1;
                                cout<<"You have increased strength."<<endl;
                                system("PAUSE");
                                system("CLS");
                                goto endingfight;
                                }
                else if (levelcom == 2)
                                {dex == dex + 1;
                                cout<<"You have increased dexterity."<<endl;
                                system("PAUSE");
                                system("CLS");
                                goto endingfight;
                                }                
                else if (levelcom == 3)
                                {con == con + 1;
                                cout<<"You have increased constitution."<<endl;
                                system("PAUSE");
                                system("CLS");
                                goto endingfight;
                                }
                else if (levelcom == 4)
                                {intel == intel + 1;
                                cout<<"You have increased intellegence."<<endl;
                                system("PAUSE");
                                system("CLS");
                                goto endingfight;
                                }
                else if (levelcom == 5)
                                {wis == wis + 1;
                                cout<<"You have increased wisdom."<<endl;
                                system("PAUSE");
                                system("CLS");
                                goto endingfight;
                                }
                else if (levelcom == 6)
                                {charis == charis + 1;
                                cout<<"You have increased charisma."<<endl;
                                system("PAUSE");
                                system("CLS");
                                goto endingfight;
                                }
                else if (levelcom > 6)
                                {
                                goto statchoose;
                                }
        }
        else if (exp < exp1)
                {
                goto endingfight;
                }
                


goto endingfight;
}
}
//
int commands;
goto maptest;
{
maptest:
if (quest1active <= 1){
daysleft1 = daysleft1 - 1;
cout<<"You have ";cout<<daysleft1;cout<<" days left to finish the quest."<<endl;
if (daysleft1 >= 0){
quest1active = 3;}
}


if (MAP[y][x]=="|F|"){
ifstream myfile ("trees.txt");
if (myfile.is_open())
  {
    while (! myfile.eof() )
    {
      getline (myfile,line);
      cout << line << endl;
    }
    cout<<"You are walking through the forest."<<endl;
    myfile.close();
  }
}
else if (y != 16 or x != 20){goto endingfight;}
else if (y == 18, x == 22)
{
ifstream myfile ("example.txt");
if (myfile.is_open())
  {
    while (! myfile.eof() )
    {
      getline (myfile,line);
      cout << line << endl;
    }
    system("PAUSE");
    system("CLS");
    myfile.close();
  }
}
//
if (MAP[y-1][x-1]=="|F|"){
SetConsoleTextAttribute(hConsole, 2);
}
else if (MAP[y-1][x-1]=="|W|"){
SetConsoleTextAttribute(hConsole, 9);
}
else if (MAP[y-1][x-1]=="|P|"){
SetConsoleTextAttribute(hConsole, 12);
}
else if (MAP[y-1][x-1]=="|G|"){
SetConsoleTextAttribute(hConsole, 10);
}
else if (MAP[y-1][x-1]=="|M|"){
SetConsoleTextAttribute(hConsole, 8);
}
else if (MAP[y-1][x-1]=="|I|"){
SetConsoleTextAttribute(hConsole, 7);
}
else if (MAP[y-1][x-1]=="|R|"){
SetConsoleTextAttribute(hConsole, 13);
}
else if (MAP[y-1][x-1]=="|B|"){
SetConsoleTextAttribute(hConsole, 14);
}
else if (MAP[y-1][x-1]=="|T|"){
SetConsoleTextAttribute(hConsole, 21);
}
//[y-2][x-2] [y-2][x-1] [y-2][x] [y-2][x+1] [y-2][x+2]
//[y-1][x-2] [y-1][x-1] [y-1][x] [y-1][x+1] [y-1][x+2]
//[y][x-2]   [y][x-1]   [y][x]   [y][x+1]   [y][x+2]
//[y+1][x-2] [y+1][x-1] [y+1][x] [y+1][x+1] [y+1][x+2]
//[y+2][x-2] [y+2][x-1] [y+2][x] [y+2][x+1] [y+2][x+2]
//
//
//
endingfight:
{
SetConsoleTextAttribute(hConsole, 10);
}
cout<<"You are at the coordinates ";cout<<x;cout<<"x ";cout<<y;cout<<"y."<<endl;
//Changing clolors for Posions on MAP//
if (MAP[y-2][x-2]=="|F|"){
SetConsoleTextAttribute(hConsole, 2);
}
else if (MAP[y-2][x-2]=="|W|"){
SetConsoleTextAttribute(hConsole, 9);
}
else if (MAP[y-2][x-2]=="|P|"){
SetConsoleTextAttribute(hConsole, 12);
}
else if (MAP[y-2][x-2]=="|G|"){
SetConsoleTextAttribute(hConsole, 10);
}
else if (MAP[y-2][x-2]=="|M|"){
SetConsoleTextAttribute(hConsole, 8);
}
else if (MAP[y-2][x-2]=="|I|"){
SetConsoleTextAttribute(hConsole, 7);
}
else if (MAP[y-2][x-2]=="|R|"){
SetConsoleTextAttribute(hConsole, 13);
}
else if (MAP[y-2][x-2]=="|B|"){
SetConsoleTextAttribute(hConsole, 14);
}
else if (MAP[y-2][x-2]=="|T|"){
SetConsoleTextAttribute(hConsole, 21);
}
cout<<MAP[y-2][x-2];
if (MAP[y-2][x-1]=="|F|"){
SetConsoleTextAttribute(hConsole, 2);
}
else if (MAP[y-2][x-1]=="|W|"){
SetConsoleTextAttribute(hConsole, 9);
}
else if (MAP[y-2][x-1]=="|P|"){
SetConsoleTextAttribute(hConsole, 12);
}
else if (MAP[y-2][x-1]=="|G|"){
SetConsoleTextAttribute(hConsole, 10);
}
else if (MAP[y-2][x-1]=="|M|"){
SetConsoleTextAttribute(hConsole, 8);
}
else if (MAP[y-2][x-1]=="|I|"){
SetConsoleTextAttribute(hConsole, 7);
}
else if (MAP[y-2][x-1]=="|R|"){
SetConsoleTextAttribute(hConsole, 13);
}
else if (MAP[y-2][x-1]=="|B|"){
SetConsoleTextAttribute(hConsole, 14);
}
else if (MAP[y-2][x-1]=="|T|"){
SetConsoleTextAttribute(hConsole, 21);
}
cout<<MAP[y-2][x-1];
if (MAP[y-2][x]=="|F|"){
SetConsoleTextAttribute(hConsole, 2);
}
else if (MAP[y-2][x]=="|W|"){
SetConsoleTextAttribute(hConsole, 9);
}
else if (MAP[y-2][x]=="|P|"){
SetConsoleTextAttribute(hConsole, 12);
}
else if (MAP[y-2][x]=="|G|"){
SetConsoleTextAttribute(hConsole, 10);
}
else if (MAP[y-2][x]=="|M|"){
SetConsoleTextAttribute(hConsole, 8);
}
else if (MAP[y-2][x]=="|I|"){
SetConsoleTextAttribute(hConsole, 7);
}
else if (MAP[y-2][x]=="|R|"){
SetConsoleTextAttribute(hConsole, 13);
}
else if (MAP[y-2][x]=="|B|"){
SetConsoleTextAttribute(hConsole, 14);
}
else if (MAP[y-2][x]=="|T|"){
SetConsoleTextAttribute(hConsole, 21);
}
cout<<MAP[y-2][x];
if (MAP[y-2][x+1]=="|F|"){
SetConsoleTextAttribute(hConsole, 2);
}
else if (MAP[y-2][x+1]=="|W|"){
SetConsoleTextAttribute(hConsole, 9);
}
else if (MAP[y-2][x+1]=="|P|"){
SetConsoleTextAttribute(hConsole, 12);
}
else if (MAP[y-2][x+1]=="|G|"){
SetConsoleTextAttribute(hConsole, 10);
}
else if (MAP[y-2][x+1]=="|M|"){
SetConsoleTextAttribute(hConsole, 8);
}
else if (MAP[y-2][x+1]=="|I|"){
SetConsoleTextAttribute(hConsole, 7);
}
else if (MAP[y-2][x+1]=="|R|"){
SetConsoleTextAttribute(hConsole, 13);
}
else if (MAP[y-2][x+1]=="|B|"){
SetConsoleTextAttribute(hConsole, 14);
}
else if (MAP[y-2][x+1]=="|T|"){
SetConsoleTextAttribute(hConsole, 21);
}
cout<<MAP[y-2][x+1];
if (MAP[y-2][x+2]=="|F|"){
SetConsoleTextAttribute(hConsole, 2);
}
else if (MAP[y-2][x+2]=="|W|"){
SetConsoleTextAttribute(hConsole, 9);
}
else if (MAP[y-2][x+2]=="|P|"){
SetConsoleTextAttribute(hConsole, 12);
}
else if (MAP[y-2][x+2]=="|G|"){
SetConsoleTextAttribute(hConsole, 10);
}
else if (MAP[y-2][x+2]=="|M|"){
SetConsoleTextAttribute(hConsole, 8);
}
else if (MAP[y-2][x+2]=="|I|"){
SetConsoleTextAttribute(hConsole, 7);
}
else if (MAP[y-2][x+2]=="|R|"){
SetConsoleTextAttribute(hConsole, 13);
}
else if (MAP[y-2][x+2]=="|B|"){
SetConsoleTextAttribute(hConsole, 14);
}
else if (MAP[y-2][x+2]=="|T|"){
SetConsoleTextAttribute(hConsole, 21);
}
cout<<MAP[y-2][x+2]<<endl;
if (MAP[y-1][x-2]=="|F|"){
SetConsoleTextAttribute(hConsole, 2);
}
else if (MAP[y-1][x-2]=="|W|"){
SetConsoleTextAttribute(hConsole, 9);
}
else if (MAP[y-1][x-2]=="|P|"){
SetConsoleTextAttribute(hConsole, 12);
}
else if (MAP[y-1][x-2]=="|G|"){
SetConsoleTextAttribute(hConsole, 10);
}
else if (MAP[y-1][x-2]=="|M|"){
SetConsoleTextAttribute(hConsole, 8);
}
else if (MAP[y-1][x-2]=="|I|"){
SetConsoleTextAttribute(hConsole, 7);
}
else if (MAP[y-1][x-2]=="|R|"){
SetConsoleTextAttribute(hConsole, 13);
}
else if (MAP[y-1][x-2]=="|B|"){
SetConsoleTextAttribute(hConsole, 14);
}
else if (MAP[y-1][x-2]=="|T|"){
SetConsoleTextAttribute(hConsole, 21);
}
cout<<MAP[y-1][x-2];
if (MAP[y-1][x-1]=="|F|"){
SetConsoleTextAttribute(hConsole, 2);
}
else if (MAP[y-1][x-1]=="|W|"){
SetConsoleTextAttribute(hConsole, 9);
}
else if (MAP[y-1][x-1]=="|P|"){
SetConsoleTextAttribute(hConsole, 12);
}
else if (MAP[y-1][x-1]=="|G|"){
SetConsoleTextAttribute(hConsole, 10);
}
else if (MAP[y-1][x-1]=="|M|"){
SetConsoleTextAttribute(hConsole, 8);
}
else if (MAP[y-1][x-1]=="|I|"){
SetConsoleTextAttribute(hConsole, 7);
}
else if (MAP[y-1][x-1]=="|R|"){
SetConsoleTextAttribute(hConsole, 13);
}
else if (MAP[y-1][x-1]=="|B|"){
SetConsoleTextAttribute(hConsole, 14);
}
else if (MAP[y-1][x-1]=="|T|"){
SetConsoleTextAttribute(hConsole, 21);
}
cout<<MAP[y-1][x-1];
if (MAP[y-1][x]=="|F|"){
SetConsoleTextAttribute(hConsole, 2);
}
else if (MAP[y-1][x]=="|W|"){
SetConsoleTextAttribute(hConsole, 9);
}
else if (MAP[y-1][x]=="|P|"){
SetConsoleTextAttribute(hConsole, 12);
}
else if (MAP[y-1][x]=="|G|"){
SetConsoleTextAttribute(hConsole, 10);
}
else if (MAP[y-1][x]=="|M|"){
SetConsoleTextAttribute(hConsole, 8);
}
else if (MAP[y-1][x]=="|I|"){
SetConsoleTextAttribute(hConsole, 7);
}
else if (MAP[y-1][x]=="|R|"){
SetConsoleTextAttribute(hConsole, 13);
}
else if (MAP[y-1][x]=="|B|"){
SetConsoleTextAttribute(hConsole, 14);
}
else if (MAP[y-1][x]=="|T|"){
SetConsoleTextAttribute(hConsole, 21);
}
cout<<MAP[y-1][x];
if (MAP[y-1][x+1]=="|F|"){
SetConsoleTextAttribute(hConsole, 2);
}
else if (MAP[y-1][x+1]=="|W|"){
SetConsoleTextAttribute(hConsole, 9);
}
else if (MAP[y-1][x+1]=="|P|"){
SetConsoleTextAttribute(hConsole, 12);
}
else if (MAP[y-1][x+1]=="|G|"){
SetConsoleTextAttribute(hConsole, 10);
}
else if (MAP[y-1][x+1]=="|M|"){
SetConsoleTextAttribute(hConsole, 8);
}
else if (MAP[y-1][x+1]=="|I|"){
SetConsoleTextAttribute(hConsole, 7);
}
else if (MAP[y-1][x+1]=="|R|"){
SetConsoleTextAttribute(hConsole, 13);
}
else if (MAP[y-1][x+1]=="|B|"){
SetConsoleTextAttribute(hConsole, 14);
}
else if (MAP[y-1][x+1]=="|T|"){
SetConsoleTextAttribute(hConsole, 21);
}
cout<<MAP[y-1][x+1];
if (MAP[y-1][x+2]=="|F|"){
SetConsoleTextAttribute(hConsole, 2);
}
else if (MAP[y-1][x+2]=="|W|"){
SetConsoleTextAttribute(hConsole, 9);
}
else if (MAP[y-1][x+2]=="|P|"){
SetConsoleTextAttribute(hConsole, 12);
}
else if (MAP[y-1][x+2]=="|G|"){
SetConsoleTextAttribute(hConsole, 10);
}
else if (MAP[y-1][x+2]=="|M|"){
SetConsoleTextAttribute(hConsole, 8);
}
else if (MAP[y-1][x+2]=="|I|"){
SetConsoleTextAttribute(hConsole, 7);
}
else if (MAP[y-1][x+2]=="|R|"){
SetConsoleTextAttribute(hConsole, 13);
}
else if (MAP[y-1][x+2]=="|B|"){
SetConsoleTextAttribute(hConsole, 14);
}
else if (MAP[y-1][x+2]=="|T|"){
SetConsoleTextAttribute(hConsole, 21);
}
cout<<MAP[y-1][x+2]<<endl;
if (MAP[y][x-2]=="|F|"){
SetConsoleTextAttribute(hConsole, 2);
}
else if (MAP[y][x-2]=="|W|"){
SetConsoleTextAttribute(hConsole, 9);
}
else if (MAP[y][x-2]=="|P|"){
SetConsoleTextAttribute(hConsole, 12);
}
else if (MAP[y][x-2]=="|G|"){
SetConsoleTextAttribute(hConsole, 10);
}
else if (MAP[y][x-2]=="|M|"){
SetConsoleTextAttribute(hConsole, 8);
}
else if (MAP[y][x-2]=="|I|"){
SetConsoleTextAttribute(hConsole, 7);
}
else if (MAP[y][x-2]=="|R|"){
SetConsoleTextAttribute(hConsole, 13);
}
else if (MAP[y][x-2]=="|B|"){
SetConsoleTextAttribute(hConsole, 14);
}
else if (MAP[y][x-2]=="|T|"){
SetConsoleTextAttribute(hConsole, 21);
}
cout<<MAP[y][x-2];
if (MAP[y][x-1]=="|F|"){
SetConsoleTextAttribute(hConsole, 2);
}
else if (MAP[y][x-1]=="|W|"){
SetConsoleTextAttribute(hConsole, 9);
}
else if (MAP[y][x-1]=="|P|"){
SetConsoleTextAttribute(hConsole, 12);
}
else if (MAP[y][x-1]=="|G|"){
SetConsoleTextAttribute(hConsole, 10);
}
else if (MAP[y][x-1]=="|M|"){
SetConsoleTextAttribute(hConsole, 8);
}
else if (MAP[y][x-1]=="|I|"){
SetConsoleTextAttribute(hConsole, 7);
}
else if (MAP[y][x-1]=="|R|"){
SetConsoleTextAttribute(hConsole, 13);
}
else if (MAP[y][x-1]=="|B|"){
SetConsoleTextAttribute(hConsole, 14);
}
else if (MAP[y][x-1]=="|T|"){
SetConsoleTextAttribute(hConsole, 21);
}
cout<<MAP[y][x-1];
{
SetConsoleTextAttribute(hConsole, 7);
}
cout<<"|*|";
if (MAP[y][x+1]=="|F|"){
SetConsoleTextAttribute(hConsole, 2);
}
else if (MAP[y][x+1]=="|W|"){
SetConsoleTextAttribute(hConsole, 9);
}
else if (MAP[y][x+1]=="|P|"){
SetConsoleTextAttribute(hConsole, 12);
}
else if (MAP[y][x+1]=="|G|"){
SetConsoleTextAttribute(hConsole, 10);
}
else if (MAP[y][x+1]=="|M|"){
SetConsoleTextAttribute(hConsole, 8);
}
else if (MAP[y][x+1]=="|I|"){
SetConsoleTextAttribute(hConsole, 7);
}
else if (MAP[y][x+1]=="|R|"){
SetConsoleTextAttribute(hConsole, 13);
}
else if (MAP[y][x+1]=="|B|"){
SetConsoleTextAttribute(hConsole, 14);
}
else if (MAP[y][x+1]=="|T|"){
SetConsoleTextAttribute(hConsole, 21);
}
cout<<MAP[y][x+1];
if (MAP[y][x+2]=="|F|"){
SetConsoleTextAttribute(hConsole, 2);
}
else if (MAP[y][x+2]=="|W|"){
SetConsoleTextAttribute(hConsole, 9);
}
else if (MAP[y][x+2]=="|P|"){
SetConsoleTextAttribute(hConsole, 12);
}
else if (MAP[y][x+2]=="|G|"){
SetConsoleTextAttribute(hConsole, 10);
}
else if (MAP[y][x+2]=="|M|"){
SetConsoleTextAttribute(hConsole, 8);
}
else if (MAP[y][x+2]=="|I|"){
SetConsoleTextAttribute(hConsole, 7);
}
else if (MAP[y][x+2]=="|R|"){
SetConsoleTextAttribute(hConsole, 13);
}
else if (MAP[y][x+2]=="|B|"){
SetConsoleTextAttribute(hConsole, 14);
}
else if (MAP[y][x+2]=="|T|"){
SetConsoleTextAttribute(hConsole, 21);
}
cout<<MAP[y][x+2]<<endl;
if (MAP[y+1][x-2]=="|F|"){
SetConsoleTextAttribute(hConsole, 2);
}
else if (MAP[y+1][x-2]=="|W|"){
SetConsoleTextAttribute(hConsole, 9);
}
else if (MAP[y+1][x-2]=="|P|"){
SetConsoleTextAttribute(hConsole, 12);
}
else if (MAP[y+1][x-2]=="|G|"){
SetConsoleTextAttribute(hConsole, 10);
}
else if (MAP[y+1][x-2]=="|M|"){
SetConsoleTextAttribute(hConsole, 8);
}
else if (MAP[y+1][x-2]=="|I|"){
SetConsoleTextAttribute(hConsole, 7);
}
else if (MAP[y+1][x-2]=="|R|"){
SetConsoleTextAttribute(hConsole, 13);
}
else if (MAP[y+1][x-2]=="|B|"){
SetConsoleTextAttribute(hConsole, 14);
}
else if (MAP[y+1][x-2]=="|T|"){
SetConsoleTextAttribute(hConsole, 21);
}
cout<<MAP[y+1][x-2];
if (MAP[y+1][x-1]=="|F|"){
SetConsoleTextAttribute(hConsole, 2);
}
else if (MAP[y+1][x-1]=="|W|"){
SetConsoleTextAttribute(hConsole, 9);
}
else if (MAP[y+1][x-1]=="|P|"){
SetConsoleTextAttribute(hConsole, 12);
}
else if (MAP[y+1][x-1]=="|G|"){
SetConsoleTextAttribute(hConsole, 10);
}
else if (MAP[y+1][x-1]=="|M|"){
SetConsoleTextAttribute(hConsole, 8);
}
else if (MAP[y+1][x-1]=="|I|"){
SetConsoleTextAttribute(hConsole, 7);
}
else if (MAP[y+1][x-1]=="|R|"){
SetConsoleTextAttribute(hConsole, 13);
}
else if (MAP[y+1][x-1]=="|B|"){
SetConsoleTextAttribute(hConsole, 14);
}
else if (MAP[y+1][x-1]=="|T|"){
SetConsoleTextAttribute(hConsole, 21);
}
cout<<MAP[y+1][x-1];
if (MAP[y+1][x]=="|F|"){
SetConsoleTextAttribute(hConsole, 2);
}
else if (MAP[y+1][x]=="|W|"){
SetConsoleTextAttribute(hConsole, 9);
}
else if (MAP[y+1][x]=="|P|"){
SetConsoleTextAttribute(hConsole, 12);
}
else if (MAP[y+1][x]=="|G|"){
SetConsoleTextAttribute(hConsole, 10);
}
else if (MAP[y+1][x]=="|M|"){
SetConsoleTextAttribute(hConsole, 8);
}
else if (MAP[y+1][x]=="|I|"){
SetConsoleTextAttribute(hConsole, 7);
}
else if (MAP[y+1][x]=="|R|"){
SetConsoleTextAttribute(hConsole, 13);
}
else if (MAP[y+1][x]=="|B|"){
SetConsoleTextAttribute(hConsole, 14);
}
else if (MAP[y+1][x]=="|T|"){
SetConsoleTextAttribute(hConsole, 21);
}
cout<<MAP[y+1][x];
if (MAP[y+1][x+1]=="|F|"){
SetConsoleTextAttribute(hConsole, 2);
}
else if (MAP[y+1][x+1]=="|W|"){
SetConsoleTextAttribute(hConsole, 9);
}
else if (MAP[y+1][x+1]=="|P|"){
SetConsoleTextAttribute(hConsole, 12);
}
else if (MAP[y+1][x+1]=="|G|"){
SetConsoleTextAttribute(hConsole, 10);
}
else if (MAP[y+1][x+1]=="|M|"){
SetConsoleTextAttribute(hConsole, 8);
}
else if (MAP[y+1][x+1]=="|I|"){
SetConsoleTextAttribute(hConsole, 7);
}
else if (MAP[y+1][x+1]=="|R|"){
SetConsoleTextAttribute(hConsole, 13);
}
else if (MAP[y+1][x+1]=="|B|"){
SetConsoleTextAttribute(hConsole, 14);
}
else if (MAP[y+1][x+1]=="|T|"){
SetConsoleTextAttribute(hConsole, 21);
}
cout<<MAP[y+1][x+1];
if (MAP[y+1][x+2]=="|F|"){
SetConsoleTextAttribute(hConsole, 2);
}
else if (MAP[y+1][x+2]=="|W|"){
SetConsoleTextAttribute(hConsole, 9);
}
else if (MAP[y+1][x+2]=="|P|"){
SetConsoleTextAttribute(hConsole, 12);
}
else if (MAP[y+1][x+2]=="|G|"){
SetConsoleTextAttribute(hConsole, 10);
}
else if (MAP[y+1][x+2]=="|M|"){
SetConsoleTextAttribute(hConsole, 8);
}
else if (MAP[y+1][x+2]=="|I|"){
SetConsoleTextAttribute(hConsole, 7);
}
else if (MAP[y+1][x+2]=="|R|"){
SetConsoleTextAttribute(hConsole, 13);
}
else if (MAP[y+1][x+2]=="|B|"){
SetConsoleTextAttribute(hConsole, 14);
}
else if (MAP[y+1][x+2]=="|T|"){
SetConsoleTextAttribute(hConsole, 21);
}
cout<<MAP[y+1][x+2]<<endl;
if (MAP[y+2][x-2]=="|F|"){
SetConsoleTextAttribute(hConsole, 2);
}
else if (MAP[y+2][x-2]=="|W|"){
SetConsoleTextAttribute(hConsole, 9);
}
else if (MAP[y+2][x-2]=="|P|"){
SetConsoleTextAttribute(hConsole, 12);
}
else if (MAP[y+2][x-2]=="|G|"){
SetConsoleTextAttribute(hConsole, 10);
}
else if (MAP[y+2][x-2]=="|M|"){
SetConsoleTextAttribute(hConsole, 8);
}
else if (MAP[y+2][x-2]=="|I|"){
SetConsoleTextAttribute(hConsole, 7);
}
else if (MAP[y+2][x-2]=="|R|"){
SetConsoleTextAttribute(hConsole, 13);
}
else if (MAP[y+2][x-2]=="|B|"){
SetConsoleTextAttribute(hConsole, 14);
}
else if (MAP[y+2][x-2]=="|T|"){
SetConsoleTextAttribute(hConsole, 21);
}
cout<<MAP[y+2][x-2];
if (MAP[y+2][x-1]=="|F|"){
SetConsoleTextAttribute(hConsole, 2);
}
else if (MAP[y+2][x-1]=="|W|"){
SetConsoleTextAttribute(hConsole, 9);
}
else if (MAP[y+2][x-1]=="|P|"){
SetConsoleTextAttribute(hConsole, 12);
}
else if (MAP[y+2][x-1]=="|G|"){
SetConsoleTextAttribute(hConsole, 10);
}
else if (MAP[y+2][x-1]=="|M|"){
SetConsoleTextAttribute(hConsole, 8);
}
else if (MAP[y+2][x-1]=="|I|"){
SetConsoleTextAttribute(hConsole, 7);
}
else if (MAP[y+2][x-1]=="|R|"){
SetConsoleTextAttribute(hConsole, 13);
}
else if (MAP[y+2][x-1]=="|B|"){
SetConsoleTextAttribute(hConsole, 14);
}
else if (MAP[y+2][x-1]=="|T|"){
SetConsoleTextAttribute(hConsole, 21);
}
cout<<MAP[y+2][x-1];
if (MAP[y+2][x]=="|F|"){
SetConsoleTextAttribute(hConsole, 2);
}
else if (MAP[y+2][x]=="|W|"){
SetConsoleTextAttribute(hConsole, 9);
}
else if (MAP[y+2][x]=="|P|"){
SetConsoleTextAttribute(hConsole, 12);
}
else if (MAP[y+2][x]=="|G|"){
SetConsoleTextAttribute(hConsole, 10);
}
else if (MAP[y+2][x]=="|M|"){
SetConsoleTextAttribute(hConsole, 8);
}
else if (MAP[y+2][x]=="|I|"){
SetConsoleTextAttribute(hConsole, 7);
}
else if (MAP[y+2][x]=="|R|"){
SetConsoleTextAttribute(hConsole, 13);
}
else if (MAP[y+2][x]=="|B|"){
SetConsoleTextAttribute(hConsole, 14);
}
else if (MAP[y+2][x]=="|T|"){
SetConsoleTextAttribute(hConsole, 21);
}
cout<<MAP[y+2][x];
if (MAP[y+2][x+1]=="|F|"){
SetConsoleTextAttribute(hConsole, 2);
}
else if (MAP[y+2][x+1]=="|W|"){
SetConsoleTextAttribute(hConsole, 9);
}
else if (MAP[y+2][x+1]=="|P|"){
SetConsoleTextAttribute(hConsole, 12);
}
else if (MAP[y+2][x+1]=="|G|"){
SetConsoleTextAttribute(hConsole, 10);
}
else if (MAP[y+2][x+1]=="|M|"){
SetConsoleTextAttribute(hConsole, 8);
}
else if (MAP[y+2][x+1]=="|I|"){
SetConsoleTextAttribute(hConsole, 7);
}
else if (MAP[y+2][x+1]=="|R|"){
SetConsoleTextAttribute(hConsole, 13);
}
else if (MAP[y+2][x+1]=="|B|"){
SetConsoleTextAttribute(hConsole, 14);
}
else if (MAP[y+2][x+1]=="|T|"){
SetConsoleTextAttribute(hConsole, 21);
}
cout<<MAP[y+2][x+1];
if (MAP[y+2][x+2]=="|F|"){
SetConsoleTextAttribute(hConsole, 2);
}
else if (MAP[y+2][x+2]=="|W|"){
SetConsoleTextAttribute(hConsole, 9);
}
else if (MAP[y+2][x+2]=="|P|"){
SetConsoleTextAttribute(hConsole, 12);
}
else if (MAP[y+2][x+2]=="|G|"){
SetConsoleTextAttribute(hConsole, 10);
}
else if (MAP[y+2][x+2]=="|M|"){
SetConsoleTextAttribute(hConsole, 8);
}
else if (MAP[y+2][x+2]=="|I|"){
SetConsoleTextAttribute(hConsole, 7);
}
else if (MAP[y+2][x+2]=="|R|"){
SetConsoleTextAttribute(hConsole, 13);
}
else if (MAP[y+2][x+2]=="|B|"){
SetConsoleTextAttribute(hConsole, 14);
}
else if (MAP[y+2][x+2]=="|T|"){
SetConsoleTextAttribute(hConsole, 21);
}
cout<<MAP[y+2][x+2]<<endl;




{
SetConsoleTextAttribute(hConsole, 14);
}
cout<<"Which Direction do you want to go in? N,S,E,W?"<<endl;
cout<<"F = Forest"<<endl;
cout<<"T = Town //Only one town"<<endl;
cout<<"W = Water //Not implemented yet"<<endl;
cout<<"G = Grasslands"<<endl;
cout<<"R = Roads, Chance of bandits"<<endl;
cout<<"P = Point of interest //Not implemented yet"<<endl;
cout<<"I = Inaccessable"<<endl;
cout<<"M = Mountian //Not implemented yet"<<endl;
cout<<"Type 1 for north, 2 for south, 3 for west, 4 for east."<<endl;
cin>>commandmpdir;
if (commandmpdir == "1"){y = y - 1;if (MAP[y][x]=="|I|" or MAP[y][x]=="|W|"){y = y + 1;cout<<"That way is inaccessable!"<<endl;goto maptest;}
else
cout<<"You are going North!"<<endl;system("CLS");
if (MAP[y][x]=="|R|"){Rand_Num = (rand() % 50) + 0;
if (Rand_Num <= 5){cout<<"You encounter a bandit on the road!\n";goto Bandit;}
else if (Rand_Num <=100,Rand_Num > 5){goto maptest;}}
if (MAP[y][x]=="|T|"){if (y == 12,x == 28){goto Terracitylvl1;}
if (y == 16,x == 21){goto tpawsmp;}
goto maptest;}

else
goto maptest;}

else if (commandmpdir == "2"){y = y + 1;if (MAP[y][x]=="|I|" or MAP[y][x]=="|W|"){y = y - 1;cout<<"That way is inaccessable!"<<endl;goto maptest;}
else
cout<<"You are going South!"<<endl;system("CLS");
if (MAP[y][x]=="|R|"){Rand_Num = (rand() % 50) + 0;
if (Rand_Num <= 5){cout<<"You encounter a bandit on the road!\n";goto Bandit;}
else if (Rand_Num <=100,Rand_Num > 5){goto maptest;}}
if (MAP[y][x]=="|T|"){if (y == 12,x == 28){goto Terracitylvl1;}
if (y == 16,x == 21){goto tpawsmp;}
goto maptest;}

else
goto maptest;}

else if (commandmpdir == "3"){x = x - 1;if (MAP[y][x]=="|I|" or MAP[y][x]=="|W|"){x = x + 1;cout<<"That way is inaccessable!"<<endl;goto maptest;}
else
cout<<"You are going West!"<<endl;system("CLS");if (MAP[y][x]=="|R|"){Rand_Num = (rand() % 50) + 0;
if (Rand_Num <= 5){cout<<"You encounter a bandit on the road!\n";goto Bandit;}
else if (Rand_Num <=100,Rand_Num > 5){goto maptest;}}
if (MAP[y][x]=="|T|"){if (y == 12,x == 28){goto Terracitylvl1;}
if (y == 16,x == 21){goto tpawsmp;}
goto maptest;}

else
goto maptest;}

else if (commandmpdir == "4"){x = x + 1;if (MAP[y][x]=="|I|" or MAP[y][x]=="|W|"){x = x - 1;cout<<"That way is inaccessable!"<<endl;goto maptest;}
else
cout<<"You are going East!"<<endl;system("CLS");
if (MAP[y][x]=="|R|"){Rand_Num = (rand() % 50) + 0;
if (Rand_Num <= 5){cout<<"You encounter a bandit on the road!\n";goto Bandit;}
else if (Rand_Num <=100,Rand_Num > 5){goto maptest;}}
if (MAP[y][x]=="|T|"){if (y == 12,x == 28){goto Terracitylvl1;}
if (y == 16,x == 21){goto tpawsmp;}
goto maptest;}

else
goto maptest;}
else if (commandmpdir != "1" or "2" or "3" or "4"){
cout<<"These are invalid directions."<<endl;system("PAUSE");system("CLS");goto maptest;
}

goto jumpto;
}

{ 
tpawsmp:
if (tpaws[z][w]=="|P|"){goto PQUEST;}
if (tpaws[z][w]=="|B|"){z = 3; w = 2;cout<<"You are at the blacksmiths shop."<<endl;system("PAUSE");system("CLS");goto Blacksmith;}
if (tpaws[z][w]=="|E|"){z = 7; w = 4;cout<<"You are Exiting Paws."<<endl;system("PAUSE");system("CLS");x = 21;y = 16;goto endingfight;}
else
cout<<"You are at the coordinates ";cout<<w;cout<<"x ";cout<<z;cout<<"y."<<endl;
cout<<tpaws[z-2][w-2];cout<<tpaws[z-2][w-1];cout<<tpaws[z-2][w];cout<<tpaws[z-2][w+1];cout<<tpaws[z-2][w+2]<<endl;
cout<<tpaws[z-1][w-2];cout<<tpaws[z-1][w-1];cout<<tpaws[z-1][w];cout<<tpaws[z-1][w+1];cout<<tpaws[z-1][w+2]<<endl;
cout<<tpaws[z][w-2];cout<<tpaws[z][w-1];cout<<"|*|";cout<<tpaws[z][w+1];cout<<tpaws[z][w+2]<<endl;
cout<<tpaws[z+1][w-2];cout<<tpaws[z+1][w-1];cout<<tpaws[z+1][w];cout<<tpaws[z+1][w+1];cout<<tpaws[z+1][w+2]<<endl;
cout<<tpaws[z+2][w-2];cout<<tpaws[z+2][w-1];cout<<tpaws[z+2][w];cout<<tpaws[z+2][w+1];cout<<tpaws[z+2][w+2]<<endl;
cout<<"Which Direction do you want to go in? N,S,E,W?"<<endl;
cout<<"Type 1 for north, 2 for south, 3 for west, 4 for east."<<endl; 
cin>>commandpaws;
if (commandpaws == "1"){z = z - 1;if (tpaws[z][w]=="|=|"){z = z + 1;cout<<"That way is inaccessable!"<<endl;goto tpawsmp;}
cout<<"You are going North!"<<endl;system("CLS");goto tpawsmp;}
//problemPAWS//
else if (commandpaws == "2"){z = z + 1; if (tpaws[z][w]=="|=|"){z = z - 1;cout<<"That way is inaccessable!"<<endl;goto tpawsmp;}
    cout<<"You are going South!"<<endl;system("CLS");goto tpawsmp;}

else if (commandpaws == "3"){w = w - 1;if (tpaws[z][w]=="| |"){w = w + 1;cout<<"That way is inaccessable!"<<endl;goto tpawsmp;}
cout<<"You are going West!"<<endl;system("CLS");goto tpawsmp;}

else if (commandpaws == "4"){w = w + 1;if (tpaws[z][w]=="| |"){w = w - 1;cout<<"That way is inaccessable!"<<endl;goto tpawsmp;}
cout<<"You are going East!"<<endl;system("CLS");goto tpawsmp;}
else
cin.get();
system("CLS");
goto tpawsmp;
}
{
Terracitylvl1:
string cmmandtc;
if (TerraCityLevel1[q][u]=="|E|"){q = 7; u = 2;cout<<"You are Exiting Terra City."<<endl;system("PAUSE");system("CLS");y = 12;x = 27;goto maptest;}
else
cout<<"You are at the coordinates ";cout<<u;cout<<"x ";cout<<q;cout<<"y."<<endl;
cout<<TerraCityLevel1[q-2][u-2];cout<<TerraCityLevel1[q-2][u-1];cout<<TerraCityLevel1[q-2][u];cout<<TerraCityLevel1[q-2][u+1];cout<<TerraCityLevel1[q-2][u+2]<<endl;
cout<<TerraCityLevel1[q-1][u-2];cout<<TerraCityLevel1[q-1][u-1];cout<<TerraCityLevel1[q-1][u];cout<<TerraCityLevel1[q-1][u+1];cout<<TerraCityLevel1[q-1][u+2]<<endl;
cout<<TerraCityLevel1[q][u-2];cout<<TerraCityLevel1[q][u-1];cout<<"|*|";cout<<TerraCityLevel1[q][u+1];cout<<TerraCityLevel1[q][u+2]<<endl;
cout<<TerraCityLevel1[q+1][u-2];cout<<TerraCityLevel1[q+1][u-1];cout<<TerraCityLevel1[q+1][u];cout<<TerraCityLevel1[q+1][u+1];cout<<TerraCityLevel1[q+1][u+2]<<endl;
cout<<TerraCityLevel1[q+2][u-2];cout<<TerraCityLevel1[q+2][u-1];cout<<TerraCityLevel1[q+2][u];cout<<TerraCityLevel1[q+2][u+1];cout<<TerraCityLevel1[q+2][u+2]<<endl;
cout<<"Which Direction do you want to go in? N,S,E,W?"<<endl;
cout<<"Type 1 for north, 2 for south, 3 for west, 4 for east."<<endl; 
cin>>cmmandtc;
if (cmmandtc == "1"){q = q - 1;if (TerraCityLevel1[q][u]=="|W|"){u = u + 1;cout<<"That way is inaccessable!"<<endl;goto Terracitylvl1;}
cout<<"You are going North!"<<endl;system("CLS");goto Terracitylvl1;}
//problemPAWS//
else if (cmmandtc == "2"){q = q + 1; if (TerraCityLevel1[q][u]=="|W|"){u = u - 1;cout<<"That way is inaccessable!"<<endl;goto Terracitylvl1;}
    cout<<"You are going South!"<<endl;system("CLS");goto Terracitylvl1;}

else if (cmmandtc == "3"){u = u - 1;if (TerraCityLevel1[q][u]=="|W|"){u = u + 1;cout<<"That way is inaccessable!"<<endl;goto Terracitylvl1;}
cout<<"You are going West!"<<endl;system("CLS");goto Terracitylvl1;}

else if (cmmandtc == "4"){u = u + 1;if (TerraCityLevel1[q][u]=="|W|"){u = u - 1;cout<<"That way is inaccessable!"<<endl;goto Terracitylvl1;}
cout<<"You are going East!"<<endl;system("CLS");goto Terracitylvl1;}
else
cout<<"Invalid directions."<<endl;
cin.get();
system("CLS");
goto Terracitylvl1;
}


jumpto:

cout<<"You have Finished this demo."<<endl;
system("PAUSE");





}
return 0;
}
Attachments
#include <cstdlib>
#include <cstdio>
#include <iostream>
#include <stdlib.h>
#include <ctime>
#include <conio.h>
#include <fstream>
using namespace std;
int main(int argc, char *argv[])
{
string line;
ofstream dragtxt;
HANDLE  hConsole;	int k;   hConsole = GetStdHandle(STD_OUTPUT_HANDLE);   
// you can loop k higher to see more color choices  
string MAP[34][34] = {
{"|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|" },
{"|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|F|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|T|", "|R|", "|F|", "|F|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|G|", "|R|", "|R|", "|F|", "|F|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|B|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|F|", "|F|", "|R|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|B|", "|P|", "|B|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|B|", "|W|", "|F|", "|R|", "|B|", "|B|", "|B|", "|B|", "|W|", "|W|", "|B|", "|B|", "|G|", "|B|", "|B|", "|W|", "|W|", "|W|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|B|", "|B|", "|B|", "|R|", "|R|", "|R|", "|G|", "|B|", "|B|", "|B|", "|B|", "|G|", "|G|", "|G|", "|B|", "|B|", "|W|", "|W|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|B|", "|B|", "|G|", "|G|", "|R|", "|P|", "|R|", "|R|", "|R|", "|R|", "|R|", "|R|", "|R|", "|G|", "|G|", "|R|", "|R|", "|T|", "|W|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|B|", "|B|", "|G|", "|G|", "|R|", "|R|", "|F|", "|F|", "|F|", "|F|", "|G|", "|F|", "|G|", "|R|", "|R|", "|R|", "|R|", "|B|", "|B|", "|B|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|G|", "|G|", "|R|", "|R|", "|R|", "|G|", "|R|", "|G|", "|F|", "|F|", "|F|", "|G|", "|G|", "|G|", "|G|", "|G|", "|F|", "|F|", "|R|", "|B|", "|W|", "|W|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|M|", "|G|", "|G|", "|R|", "|F|", "|F|", "|R|", "|R|", "|G|", "|G|", "|G|", "|G|", "|G|", "|W|", "|W|", "|G|", "|G|", "|G|", "|F|", "|R|", "|R|", "|W|", "|W|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|M|", "|M|", "|M|", "|G|", "|R|", "|F|", "|M|", "|R|", "|P|", "|G|", "|G|", "|G|", "|G|", "|W|", "|W|", "|W|", "|W|", "|F|", "|F|", "|F|", "|F|", "|R|", "|T|", "|W|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|R|", "|R|", "|R|", "|R|", "|R|", "|G|", "|G|", "|W|", "|W|", "|F|", "|F|", "|F|", "|F|", "|F|", "|R|", "|W|", "|W|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|M|", "|M|", "|P|", "|M|", "|M|", "|M|", "|M|", "|M|", "|B|", "|B|", "|B|", "|P|", "|F|", "|F|", "|W|", "|W|", "|W|", "|F|", "|P|", "|F|", "|F|", "|R|", "|W|", "|W|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|B|", "|B|", "|W|", "|B|", "|B|", "|F|", "|F|", "|G|", "|W|", "|F|", "|F|", "|F|", "|F|", "|F|", "|R|", "|G|", "|G|", "|G|", "|G|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|F|", "|F|", "|F|", "|F|", "|M|", "|F|", "|F|", "|M|", "|M|", "|M|", "|W|", "|B|", "|W|", "|W|", "|B|", "|G|", "|G|", "|R|", "|T|", "|F|", "|F|", "|F|", "|F|", "|R|", "|R|", "|G|", "|G|", "|G|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|F|", "|F|", "|F|", "|F|", "|R|", "|R|", "|R|", "|T|", "|M|", "|M|", "|W|", "|W|", "|W|", "|W|", "|W|", "|G|", "|G|", "|R|", "|F|", "|F|", "|F|", "|F|", "|F|", "|R|", "|G|", "|G|", "|G|", "|P|", "|G|", "|I|", "|I|" },
{"|I|", "|I|", "|G|", "|F|", "|F|", "|P|", "|F|", "|R|", "|G|", "|G|", "|W|", "|M|", "|W|", "|W|", "|W|", "|W|", "|B|", "|G|", "|G|", "|R|", "|R|", "|F|", "|F|", "|F|", "|F|", "|R|", "|R|", "|G|", "|G|", "|G|", "|G|", "|G|", "|I|", "|I|" },
{"|I|", "|I|", "|G|", "|G|", "|T|", "|R|", "|R|", "|R|", "|G|", "|B|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|G|", "|R|", "|R|", "|F|", "|F|", "|F|", "|F|", "|F|", "|R|", "|T|", "|G|", "|W|", "|G|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|G|", "|G|", "|G|", "|G|", "|B|", "|B|", "|B|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|G|", "|R|", "|F|", "|F|", "|F|", "|F|", "|F|", "|P|", "|R|", "|R|", "|G|", "|W|", "|W|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|G|", "|G|", "|G|", "|B|", "|B|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|B|", "|B|", "|G|", "|R|", "|F|", "|F|", "|F|", "|F|", "|F|", "|F|", "|F|", "|R|", "|G|", "|G|", "|W|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|G|", "|B|", "|B|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|G|", "|R|", "|F|", "|F|", "|F|", "|F|", "|F|", "|F|", "|F|", "|R|", "|G|", "|W|", "|W|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|P|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|B|", "|T|", "|R|", "|R|", "|R|", "|F|", "|F|", "|F|", "|F|", "|R|", "|R|", "|F|", "|F|", "|F|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|B|", "|G|", "|R|", "|R|", "|R|", "|R|", "|R|", "|R|", "|F|", "|F|", "|F|", "|F|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|B|", "|B|", "|G|", "|G|", "|G|", "|G|", "|G|", "|G|", "|R|", "|F|", "|F|", "|F|", "|W|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|B|", "|B|", "|B|", "|B|", "|F|", "|F|", "|F|", "|P|", "|G|", "|G|", "|G|", "|R|", "|F|", "|F|", "|M|", "|M|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|B|", "|B|", "|B|", "|F|", "|F|", "|F|", "|F|", "|F|", "|F|", "|R|", "|R|", "|R|", "|F|", "|F|", "|M|", "|M|", "|M|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|B|", "|F|", "|F|", "|M|", "|M|", "|F|", "|F|", "|M|", "|F|", "|R|", "|F|", "|F|", "|F|", "|M|", "|M|", "|M|", "|M|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|B|", "|B|", "|B|", "|B|", "|B|", "|F|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|R|", "|F|", "|M|", "|P|", "|M|", "|M|", "|P|", "|M|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|P|", "|W|", "|W|", "|W|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|T|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|W|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|M|", "|W|", "|W|", "|W|", "|I|", "|I|" },
{"|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|" },
{"|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|", "|I|" }
};
//NEW MAP TOWN PAWS//
string TerraCityLevel1[15][20] = {
{"   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   "},
{"   ","|~|","|W|","|W|","|W|","|W|","|W|","|W|","|W|","|W|","|W|","|W|","|W|","|W|","|W|","|W|","|W|","|W|","|~|","   "},
{"   ","|W|","|H|","   ","   ","   ","|H|","|P|","|T|","|H|","|H|","|W|","   ","   ","   ","   ","   ","   ","|W|","   "},
{"   ","|W|","|H|","   ","|H|","   ","|H|","   ","   ","   ","   ","|X|","   ","|W|","|W|","|W|","|W|","   ","|W|","   "},
{"   ","|W|","|H|","   ","|M|","   ","|H|","   ","   ","|H|","   ","|W|","   ","|W|","|P|","|P|","|W|","   ","|W|","   "},
{"   ","|W|","   ","   ","|H|","   ","|H|","   ","   ","|H|","   ","|W|","   ","|W|","|P|","|P|","|W|","   ","|W|","   "},
{"   ","|W|","|B|","   ","|A|","   ","|C|","   ","   ","|H|","   ","|W|","   ","|W|","|G|","|P|","|W|","   ","|W|","   "},
{"   ","|E|","   ","   ","   ","   ","|H|","   ","   ","|F|","   ","|W|","   ","   ","   ","|P|","|W|","   ","|W|","   "},
{"   ","|W|","   ","   ","|H|","   ","|H|","   ","   ","|H|","   ","|W|","   ","|W|","|G|","|P|","|W|","   ","|W|","   "},
{"   ","|W|","|M|","   ","|V|","   ","|H|","|H|","   ","|H|","|H|","|W|","   ","|W|","|P|","|P|","|W|","   ","|W|","   "},
{"   ","|W|","|H|","   ","|H|","   ","|H|","|H|","   ","|H|","|H|","|W|","   ","|W|","|P|","|P|","|W|","   ","|W|","   "},
{"   ","|W|","|H|","   ","|H|","   ","|H|","|H|","   ","|H|","|H|","|W|","   ","|W|","|W|","|W|","|W|","   ","|W|","   "},
{"   ","|W|","|H|","   ","   ","   ","   ","   ","   ","|H|","|H|","|W|","   "

Pretty long, ALMOST twice as long as the rpg I made a little while back.

Sadly it does not work in VC++, did you use Dev? (102 errors)

Edited 7 Years Ago by restrictment: n/a

oh god..... non standards-compliant c++

Would be much better if you had it loading the world data from text file, and seperated that particular game and the core engine in terms of code. Could use inheritance and polymorphesism for the items and monsters. If you used OOP it would make your code juch cleaner.

Not a bad effort, just poor design.

Edited 7 Years Ago by jbennet: n/a

It took me about 1 week to make it. Again, I know that structure is important now, and this had absolutely no structure. Yea I made this in Dev-Cpp.

I think this is quite good program. Some could say that redundancy is an issue but I don't think so. This program is quite good, however a bit redundant. Redundancy isn't so bad, it can be useful sometimes. Redundancy in this example isn't bad, it's important that this program is good. If the program is working you shouldn't care about redundancy. I don't know why people don't like redundancy in programming.

I don't know why people don't like redundancy in programming.

because it makes for poor maintainability.

I never understood why people are always so jumpy when I say I use GOTO? Other than poor structure, why is it so bad?

I downloaded Dev-C++, and the code still deosn't work. It has a problem with your color settings.

Not sure, just compiled with the new version also. The HANDLE should be fixed with conio.h, but for some reason it is not being addressed with 4.9.9.2.

Nice,long code..cool ideas...not so good organisation...doesn't compile on nearly all compilers apart 4rm dev-c++(i tried to compile it on borland c++.8 errors). all in all, good code

This is epic for a fucking amateur. Try making it object oriented, and then we'll see if it's epic(which it certainly isnt right now)

Comments
Epic jackass.
You shouldn't make jest of the work of others when you have nothing to show as yours.
Why didn't you just let this epic piece of crap die? Why resurrect it?

Looks awesome, gonna try it out. Any alternatives to conio.h? I use linux (Go 'nux!)

This article has been dead for over six months. Start a new discussion instead.