Skip to content

Instantly share code, notes, and snippets.

@BenVlodgi
Last active April 23, 2024 15:34
Show Gist options
  • Save BenVlodgi/4b7993e5e044aa8ba00937ad07e08231 to your computer and use it in GitHub Desktop.
Save BenVlodgi/4b7993e5e044aa8ba00937ad07e08231 to your computer and use it in GitHub Desktop.
My second video game from 2008
// Note from Author 2024-04-23
// I wrote this program during my programming class in 2008. It was an online class at my highschool.
// I was enthusiastic about trying to make my own game. This was my passion project I was doing on my own.
// I did submit it and earned extra credit. At this time I haddn't learned about arrays or pointers.
// This is a console program which prints out a map. The player can then sumbit an action by typing the
// input and pressing enter. You can also enter multiple sequenced commands and press enter as the characters
// proccessed sequentially.
// There is so much charm in seeing how I foud solutions and then repeated them. For instance: I have integers
// which represent if the player is at that location. I update their state, when I could have instead just
// checked the position int in the if-statements.
// I seemed to have indented my lines with roughly six spaces, and had my own standard for braces and scope.
// The rest of this file has not been changed since I zipped it in 2009
//Here.CPP
//Version 1.0 beta
//By Benjamin Blodgett
using namespace std;
#include<iostream>
#include<string.h>
main()
{
cout<<"Loading";
//movement mode
int po1,po2,po3,po4,po5,po6,po7,po8,po9,po10,po11,po12,po13,po14,po15,po16,po17,po18,po19,po20,po21,po22,po23,po24,po25,po26,po27,po28,po29,po30,po31,po32,po33,po34,po35,po36,po37,po38,po39,po40,po41,po42,po43,po44,po45,po46,po47,po48,po49,po50,po51,po52,po53,po54,po55,po56,po57,po58,po59,po60,po61,po62,po63,po64,po65,po66,po67,po68,po69,po70,po71,po72,po73,po74,po75,po76,po77,po78,po79,po80,po81,po82,po83,po84,po85,po86,po87,po88,po89,po90,po91,po92,po93,po94,po95,po96,po97,po98,po99,po100,po101,po102=0;
int position=1;
po1=1;
int movementmode=0;
char movementmodecommand;
int typeofmovementmode=1;
int small_position=0;
int mvmntmd_inputcommandexception=0;
int exitcode=0;
int dead_dehydrated=0;
//cheating
char cheat;
int cheating=0;
// Items
unsigned long quantityof_your_watercapacity=0;
unsigned long quantityof_your_current_water=0;
int woodstacking_town1_roldie=0;
int quantityof_your_axe=0;
int quantityof_your_waterjug=3;
int quantityof_your_apple=0;
int quantityof_your_steak=0;
int quantityof_your_whiskey=0;
int quantityof_your_funnyhat1=0;
int check_the_quantity=0;
int purchase_quantity_validityYN=0;
int quantityof_tavern1_funnyhat1=20;
int quantityof_tavern1_whiskey=100;
int quantityof_market1_axe=3;
int quantityof_market1_waterjug=50;
int quantityof_market1_apple=200;
int quantityof_market1_steak=20;
char purchaseinput_item;
int purchaseinput_quantity=0;
int purchaseinput_validity=0;
int purchaseinput_validityYN=0;
int purchaseinput_cost=0;
char sellinput_item;
int sellinput_quantity=0;
int price=0;
unsigned long LK=1000075;
int key_town1_watchtower=0;
//questions
int question_tip_town1_tasha=0;
char conversation_choice=0;
//scocial appearence
int sensitivity=10;
int strength=4;
int akwardness=40;
int coolness=5;
int inteligence=40;
int renown=0;
int fatnes=3;
//int money=0;
int inputcommandexception=0;
//misc
int tavern1=0;
int done=0;
int subdone=0;
//life existence
int life_position=1;
int town=0;
int sight=0;
cout<<".";
char input;
//startup
char beginingcode='N';
int beginingcodeYNnum=0;
//screen adjustements
int screencountercount,screencounter,screennumcounter=0;
//int 123456789012345678901234567890
cout<<".\n\n";
//Screen Adjustements Begin
/*
cout<<"Welcome to \"Here\"\nVersion 1.0 BETA\nBy BenjAmin BlodGett\n\n";
cout<<"First Before we play the game... the game needs to adjust to fit your screen...\n(your screen must be maximized before you continue)\n";
system("pause");
system("pause");
screencountercount=201;
while (screencountercount>3)
{
screencountercount--;
cout<<screencountercount<<'\n';
}
cout<<"Enter in what number is at the top of you screen\n>: ";
cin>>screencounter;
//Screen Adjustements End
//Get a begining code or not
cout<<"Do you wish to start from a previous game? (Y/N): ";
cin>>beginingcode;
if (beginingcode=='Y')
beginingcodeYNnum=1;
if (beginingcode=='y')
beginingcodeYNnum=1;
if (beginingcode=='N')
beginingcodeYNnum=0;
if (beginingcode=='n')
beginingcodeYNnum=0;
if (beginingcodeYNnum==1)
{
int bc01,bc02,bc03,bc04,bc05,bc06,bc07,bc08,bc09,bc10=0;
cout<<"Please enter in the code below\n";
//cin>>
}
*/
//Game Begins
cout<<"\n\n";
cout<<"Here is how you play the game.\n";
cout<<"At any time when your in free-roam mode you can enter any of these leters to\nperform there functions\n\n";
cout<<"O--to observer your surroundings\n";
cout<<"A--to bring up a list of actions you can perform\n";
cout<<"Q--to quit and receive a startup code\n";
//cout<<"P--Pauses the game... Not that it really matters. The thing that does matter is\n";
//cout<<"that when you pause the game it brings up your map, and other statistics that\nyou might want to see.\n";
cout<<"M--puts your character into movement mode, and takes him out of movement mode.\n\n";
cout<<"Once in movement mode, the map will appear. To move you type in either \n";
cout<<" L - to move to the Left\n";
cout<<" R - to move to the Right\n";
cout<<" U - to move Up\n";
cout<<" D - to move Down\n";
cout<<"\n+ It is recomended that you maximize your screen for best results\n";
cout<<'\n'<<'\n'<<" ";
system("pause");
cout<<"01234567890123456789012345678901234567890123456789012345678901234567890123456789"<<"\n\n\n";
while (life_position!=0)
{
if (life_position==1)
{
cout<<"Theresa: Hey! He's waking up!\n";
cout<<"Ted: I'm coming!\n";
cout<<"You: (Wake up)\n"<<" ";
system("pause");
cout<<"Theresa: Are you okay?\n";
cout<<"You: Huh, what? Where am I? Who are you?\n";
cout<<"Theresa: my name is Theresa and this is my brother Ted.\n";
cout<<"Ted: Hi!\n";
cout<<"You: Where am I?\n"<<" ";
system("pause");
cout<<"Ted: You're in the woods.\n";
cout<<"You: Woods? What woods?\n";
cout<<"Theresa: Richwik woods.\n";
cout<<"Ted: We found you lying over there. (points)\n"<<" ";
system("pause");
cout<<"You: (look where he pointed)\n";
cout<<"Theresa: We've never seen you before in these parts. Are you a trader?\n";
cout<<"You: No, well I'm not sure I cant remember anything.\n";
cout<<"Ted: What about your name?\n";
cout<<"You: I don't know.\n";
cout<<"Theresa: Well we have to know what to call you, but we dont want to rush you.\n";
cout<<" ";
system("pause");
cout<<" So when you come up with a name for youself, come and find us in town.\n";
cout<<"Ted: Here is a map for your to look at, and here's three water jugs, you'll need";
cout<<" them. See you later, and good luck.\n";
cout<<'\n'<<'\n'<<"Hint: Here is your map of Devrenal woods\n\nwhen ever you wish to enter movement mode, type in the letter M\n\n";
quantityof_your_watercapacity=quantityof_your_waterjug*12;
quantityof_your_current_water=quantityof_your_watercapacity;
life_position++;
}
/*
cout<<"Key:\n# Woods\n- path-way\n| path-way\n% water\n+ Town/Village area\n& Your location\n";
cout<<"01234567890123456789012345678901234567890123456789012345678901234567890123456789";
cout<<" \n";
cout<<"###############################################################################\n";
cout<<"###############################################################################\n";
cout<<"###&------------###############################################################\n";
cout<<"###############|###############################################################\n";
cout<<"###############|###############################################################\n";
cout<<"###############|###############################################################\n";
cout<<"###############|###############################################################\n";
cout<<"###############|###############################################################\n";
cout<<"###############|---------------------------------------------------############\n";
cout<<"###############|##################################################|############\n";
cout<<"###############|##############%%%%%%%%%###########################|############\n";
cout<<"###############|##########%%%%%%%%%%%%%%##########################|############\n";
cout<<"###############|##########%%%%%%%%%%%%%%%%%%%#####################|############\n";
cout<<"###############|##########%%%%%%%%%%%%%%%%%%%%%%%%%%##############|############\n";
cout<<"###############|##########%%%%%%%%%%%%%%%%%%%%%%%%%%%%%###########|############\n";
cout<<"###############|##########%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%##########|############\n";
cout<<"###############|###########%%%%%%%%%%%%%%%%%%%%%%%%%%%%%##########|############\n";
cout<<"###############|#############%%%%%%%%%%%%%%%%%%%%%%%%%%%%#########|############\n";
cout<<"#############+++++#############%%%%%%%%%%%%%%%%%%%%%%%%%%%########|############\n";
cout<<"###########+++++++++###########%%%%%%%%%%%%%%%%%%%%%%%%%%%########|############\n";
cout<<"###########+++++++++###########%%%%%%%%%%%%%%%%%%%%%##############|############\n";
cout<<"#############+++++############%%%%%%%%%%%%%%%%%###################|############\n";
cout<<"%############################%%%%%%%%%%%%%%%%#####################|############\n";
cout<<"%%%%###################%%%%%%%%%%%%%%%%###########################|############\n";
cout<<"%%%%%%%########%%%%%%%%%%%%%%%%%%%%###############################|############\n";
cout<<"%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%##############################|############\n";
cout<<"%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%##############################|############\n";
cout<<"%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#############################|############\n";
cout<<"%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#############################|############\n";
cout<<"%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%##############################|############\n";
cout<<"%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%##############################|############\n";
*/
if ((input=='m'||input=='M')&&typeofmovementmode==1)
{
movementmode=1;
}
while (movementmode==1)
{
if(dead_dehydrated==1)
{
break;
}
system("cls");
cout<<"\nKey: North\n";
cout<<"# Woods |\n";
cout<<"- Path-way West-O-East\n";
cout<<"| path-way |\n";
cout<<"% Water South\n";
cout<<"+ Town/Village area";
cout<<"\t\t\tSteps before water runs out "<<quantityof_your_current_water<<'\n';
cout<<"& Your location\n\n";
//cout<<"01234567890123456789012345678901234567890123456789012345678901234567890123456789";
//cout<<" \n";
cout<<"###############################################################################\n";
cout<<"###############################################################################\n";
cout<<"###";
if(po1==1)
{cout<<"&";}
else
{cout<<"-";}
if(po2==1)
{cout<<"&";}
else
{cout<<"-";}
if(po3==1)
{cout<<"&";}
else
{cout<<"-";}
if(po4==1)
{cout<<"&";}
else
{cout<<"-";}
if(po5==1)
{cout<<"&";}
else
{cout<<"-";}
if(po6==1)
{cout<<"&";}
else
{cout<<"-";}
if(po7==1)
{cout<<"&";}
else
{cout<<"-";}
if(po8==1)
{cout<<"&";}
else
{cout<<"-";}
if(po9==1)
{cout<<"&";}
else
{cout<<"-";}
if(po10==1)
{cout<<"&";}
else
{cout<<"-";}
if(po11==1)
{cout<<"&";}
else
{cout<<"-";}
if(po12==1)
{cout<<"&";}
else
{cout<<"-";}
if(po13==1)
{cout<<"&";}
else
{cout<<"-";}
cout<<"###############################################################\n";
cout<<"###############";
if(po14==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"###############################################################\n";
cout<<"###############";
if(po15==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"###############################################################\n";
cout<<"###############";
if(po16==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"###############################################################\n";
cout<<"###############";
if(po17==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"###############################################################\n";
cout<<"###############";
if(po18==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"###############################################################\n";
cout<<"###############";
if(po19==1)
{cout<<"&";}
else
{cout<<"|";}
if(po30==1)
{cout<<"&";}
else
{cout<<"-";}
if(po31==1)
{cout<<"&";}
else
{cout<<"-";}
if(po32==1)
{cout<<"&";}
else
{cout<<"-";}
if(po33==1)
{cout<<"&";}
else
{cout<<"-";}
if(po34==1)
{cout<<"&";}
else
{cout<<"-";}
if(po35==1)
{cout<<"&";}
else
{cout<<"-";}
if(po36==1)
{cout<<"&";}
else
{cout<<"-";}
if(po37==1)
{cout<<"&";}
else
{cout<<"-";}
if(po38==1)
{cout<<"&";}
else
{cout<<"-";}
if(po39==1)
{cout<<"&";}
else
{cout<<"-";}
if(po40==1)
{cout<<"&";}
else
{cout<<"-";}
if(po41==1)
{cout<<"&";}
else
{cout<<"-";}
if(po42==1)
{cout<<"&";}
else
{cout<<"-";}
if(po43==1)
{cout<<"&";}
else
{cout<<"-";}
if(po44==1)
{cout<<"&";}
else
{cout<<"-";}
if(po45==1)
{cout<<"&";}
else
{cout<<"-";}
if(po46==1)
{cout<<"&";}
else
{cout<<"-";}
if(po47==1)
{cout<<"&";}
else
{cout<<"-";}
if(po48==1)
{cout<<"&";}
else
{cout<<"-";}
if(po49==1)
{cout<<"&";}
else
{cout<<"-";}
if(po50==1)
{cout<<"&";}
else
{cout<<"-";}
if(po51==1)
{cout<<"&";}
else
{cout<<"-";}
if(po52==1)
{cout<<"&";}
else
{cout<<"-";}
if(po53==1)
{cout<<"&";}
else
{cout<<"-";}
if(po54==1)
{cout<<"&";}
else
{cout<<"-";}
if(po55==1)
{cout<<"&";}
else
{cout<<"-";}
if(po56==1)
{cout<<"&";}
else
{cout<<"-";}
if(po57==1)
{cout<<"&";}
else
{cout<<"-";}
if(po58==1)
{cout<<"&";}
else
{cout<<"-";}
if(po59==1)
{cout<<"&";}
else
{cout<<"-";}
if(po60==1)
{cout<<"&";}
else
{cout<<"-";}
if(po61==1)
{cout<<"&";}
else
{cout<<"-";}
if(po62==1)
{cout<<"&";}
else
{cout<<"-";}
if(po63==1)
{cout<<"&";}
else
{cout<<"-";}
if(po64==1)
{cout<<"&";}
else
{cout<<"-";}
if(po65==1)
{cout<<"&";}
else
{cout<<"-";}
if(po66==1)
{cout<<"&";}
else
{cout<<"-";}
if(po67==1)
{cout<<"&";}
else
{cout<<"-";}
if(po68==1)
{cout<<"&";}
else
{cout<<"-";}
if(po69==1)
{cout<<"&";}
else
{cout<<"-";}
if(po70==1)
{cout<<"&";}
else
{cout<<"-";}
if(po71==1)
{cout<<"&";}
else
{cout<<"-";}
if(po72==1)
{cout<<"&";}
else
{cout<<"-";}
if(po73==1)
{cout<<"&";}
else
{cout<<"-";}
if(po74==1)
{cout<<"&";}
else
{cout<<"-";}
if(po75==1)
{cout<<"&";}
else
{cout<<"-";}
if(po76==1)
{cout<<"&";}
else
{cout<<"-";}
if(po77==1)
{cout<<"&";}
else
{cout<<"-";}
if(po78==1)
{cout<<"&";}
else
{cout<<"-";}
if(po79==1)
{cout<<"&";}
else
{cout<<"-";}
if(po80==1)
{cout<<"&";}
else
{cout<<"-";}
cout<<"############\n";
cout<<"###############";
if(po20==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"##################################################";
if(po81==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"############\n";
cout<<"###############";
if(po21==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"##############%%%%%%%%%###########################";
if(po82==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"############\n";
cout<<"###############";
if(po22==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"##########%%%%%%%%%%%%%%##########################";
if(po83==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"############\n";
cout<<"###############";
if(po23==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"##########%%%%%%%%%%%%%%%%%%%#####################";
if(po84==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"############\n";
cout<<"###############";
if(po24==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"##########%%%%%%%%%%%%%%%%%%%%%%%%%%##############";
if(po85==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"############\n";
cout<<"###############";
if(po25==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"##########%%%%%%%%%%%%%%%%%%%%%%%%%%%%%###########";
if(po86==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"############\n";
cout<<"###############";
if(po26==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"##########%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%##########";
if(po87==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"############\n";
cout<<"###############";
if(po27==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"###########%%%%%%%%%%%%%%%%%%%%%%%%%%%%%##########";
if(po88==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"############\n";
cout<<"###############";
if(po28==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"#############%%%%%%%%%%%%%%%%%%%%%%%%%%%%#########";
if(po89==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"############\n";
cout<<"#############+++++#############%%%%%%%%%%%%%%%%%%%%%%%%%%%########";
if(po90==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"############\n";
cout<<"###########+++++++++###########%%%%%%%%%%%%%%%%%%%%%%%%%%%########";
if(po91==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"############\n";
cout<<"###########+++++++++###########%%%%%%%%%%%%%%%%%%%%%##############";
if(po92==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"############\n";
cout<<"#############+++++############%%%%%%%%%%%%%%%%%###################";
if(po93==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"############\n";
cout<<"%############################%%%%%%%%%%%%%%%%#####################";
if(po94==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"############\n";
cout<<"%%%%###################%%%%%%%%%%%%%%%%###########################";
if(po95==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"############\n";
cout<<"%%%%%%%########%%%%%%%%%%%%%%%%%%%%###############################";
if(po96==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"############\n";
cout<<"%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%##############################";
if(po97==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"############\n";
cout<<"%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%##############################";
if(po98==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"############\n";
cout<<"%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#############################";
if(po99==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"############\n";
cout<<"%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#############################";
if(po100==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"############\n";
cout<<"%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%##############################";
if(po101==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"############\n";
cout<<"%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%##############################";
if(po102==1)
{cout<<"&";}
else
{cout<<"|";}
cout<<"############\n";
cout<<"Command: ";
cin>>movementmodecommand;
if (movementmodecommand=='R'||movementmodecommand=='r')
{
if(position==1||position==2||position==3||position==4||position==5||position==6||position==7||position==8||position==9||position==10||position==11||position==12||position==19||position==30||position==31||position==32||position==33||position==34||position==35||position==36||position==37||position==38||position==39||position==40||position==41||position==42||position==43||position==44||position==45||position==46||position==47||position==48||position==49||position==50||position==51||position==52||position==53||position==54||position==55||position==56||position==57||position==58||position==59||position==60||position==61||position==62||position==63||position==64||position==65||position==66||position==67||position==68||position==69||position==70||position==71||position==72||position==73||position==74||position==75||position==76||position==77||position==78||position==79)
{
if (position==19)
{position=position+10;}
position++;
quantityof_your_current_water--;
}
else
{
cout<<"\nYou can't go that way.\n";
}
}
if (movementmodecommand=='L'||movementmodecommand=='l')
{
if(position==2||position==3||position==4||position==5||position==6||position==7||position==8||position==9||position==10||position==11||position==12||position==13||position==30||position==31||position==32||position==33||position==34||position==35||position==36||position==37||position==38||position==39||position==40||position==41||position==42||position==43||position==44||position==45||position==46||position==47||position==48||position==49||position==50||position==51||position==52||position==53||position==54||position==55||position==56||position==57||position==58||position==59||position==60||position==61||position==62||position==63||position==64||position==65||position==66||position==67||position==68||position==69||position==70||position==71||position==72||position==73||position==74||position==75||position==76||position==77||position==78||position==79||position==80)
{
if (position==30)
{position=position-10;}
position--;
quantityof_your_current_water--;
}
else
{
cout<<"\nYou can't go that way.\n";
}
}
if (movementmodecommand=='D'||movementmodecommand=='d')
{
if(position==13||position==14||position==15||position==16||position==17||position==18||position==19||position==20||position==21||position==22||position==23||position==24||position==25||position==26||position==27||position==28||position==80||position==81||position==82||position==83||position==84||position==85||position==86||position==87||position==88||position==89||position==90||position==91||position==92||position==93||position==94||position==95||position==96||position==97||position==98||position==99||position==100||position==101||position==102)
{
position++;
quantityof_your_current_water--;
}
else
{
cout<<"\nYou can't go that way.\n";
}
}
if (movementmodecommand=='U'||movementmodecommand=='u')
{
if(position==14||position==15||position==16||position==17||position==18||position==19||position==20||position==21||position==22||position==23||position==24||position==25||position==26||position==27||position==28||position==81||position==82||position==83||position==84||position==85||position==86||position==87||position==88||position==89||position==90||position==91||position==92||position==93||position==94||position==95||position==96||position==97||position==98||position==99||position==100||position==101||position==102)
{
position--;
quantityof_your_current_water--;
}
else
{
cout<<"\nYou can't go that way.\n";
}
}
dead_dehydrated=(quantityof_your_current_water==0);
po1=(position==1);
po2=(position==2);
po3=(position==3);
po4=(position==4);
po5=(position==5);
po6=(position==6);
po7=(position==7);
po8=(position==8);
po9=(position==9);
po10=(position==10);
po11=(position==11);
po12=(position==12);
po13=(position==13);
po14=(position==14);
po15=(position==15);
po16=(position==16);
po17=(position==17);
po18=(position==18);
po19=(position==19);
po20=(position==20);
po21=(position==21);
po22=(position==22);
po23=(position==23);
po24=(position==24);
po25=(position==25);
po26=(position==26);
po27=(position==27);
po28=(position==28);
po29=(position==29);
po30=(position==30);
po31=(position==31);
po32=(position==32);
po33=(position==33);
po34=(position==34);
po35=(position==35);
po36=(position==36);
po37=(position==37);
po38=(position==38);
po39=(position==39);
po40=(position==40);
po41=(position==41);
po42=(position==42);
po43=(position==43);
po44=(position==44);
po45=(position==45);
po46=(position==46);
po47=(position==47);
po48=(position==48);
po49=(position==49);
po50=(position==50);
po51=(position==51);
po52=(position==52);
po53=(position==53);
po54=(position==54);
po55=(position==55);
po56=(position==56);
po57=(position==57);
po58=(position==58);
po59=(position==59);
po60=(position==60);
po61=(position==61);
po62=(position==62);
po63=(position==63);
po64=(position==64);
po65=(position==65);
po66=(position==66);
po67=(position==67);
po68=(position==68);
po69=(position==69);
po70=(position==70);
po71=(position==71);
po72=(position==72);
po73=(position==73);
po74=(position==74);
po75=(position==75);
po76=(position==76);
po77=(position==77);
po78=(position==78);
po79=(position==79);
po80=(position==80);
po81=(position==81);
po82=(position==82);
po83=(position==83);
po84=(position==84);
po85=(position==85);
po86=(position==86);
po87=(position==87);
po88=(position==88);
po89=(position==89);
po90=(position==90);
po91=(position==91);
po92=(position==92);
po93=(position==93);
po94=(position==94);
po95=(position==95);
po96=(position==96);
po97=(position==97);
po98=(position==98);
po99=(position==99);
po100=(position==100);
po101=(position==101);
po102=(position==102);
if (position==29)
{
town=1;
typeofmovementmode=1;
movementmode=0;
}
if (movementmodecommand=='M'||movementmodecommand=='m')
{
movementmode=0;
}
} //while in movement mode
if (input=='c')
{
cin>>input;
if (input=='o')
{
cin>>input;
if (input=='u')
{
cin>>input;
if (input=='t')
{
cin>>input;
if (input=='<')
{
cin>>input;
if (input=='<')
{
cin>>input;
if (input=='"')
{
cin>>input;
if (input=='c'||input=='C')
{
cin>>input;
if (input=='h')
{
cin>>input;
if (input=='e')
{
cin>>input;
if (input=='a')
{
cin>>input;
if (input=='t')
{
cin>>input;
if (input==':')
{
cin>>input;
if (input=='"')
{
cin>>input;
if (input==';')
{
cheating=1;
while (cheating==1)
{
cout<<"Cheat: ";
cin>>cheat;
if(cheat=='p')
{
cout<<"choose you position: ";
cin>>position;
}
if(cheat=='$')
{
LK=LK+500;
cout<<"LK + 500 = "<<LK<<'\n';
}
if(cheat=='D'||cheat=='d')
{cheating=0;}
}// end of cheating
}}}}}}}}}}}}}}}// end of the rest
if (input=='O'||input=='o')
{
if (position==1)
{
sight=1;
if (life_position>=10)
{
cout<<"\n";
}
else
{
cout<<"This is the place where you were found on the ground\nYou see fruit Trees, besides that you find nothing else out of the ordinary\n";
}
}
if (sight==0)
{
cout<<"You see nothing out of the ordinary\n";
}
sight=0;
}//Observatin Mode
if (town!=0)
{
system("cls");
dead_dehydrated=0;
quantityof_your_current_water++;
movementmode==1;
inputcommandexception=1;
if (town==1)
{cout<<"\n\nSign: Welcom to Devrenal Village\n\n";}
while(town==1)
{
typeofmovementmode=2;
if(life_position==2)
{
cout<<"\n\nOpy: Well look at this, we got our selves a visitor\n"<<" ";
system("pause");
cout<<"You: Um, yeah. Look, I don't really know whats going on, and...\n";
cout<<"Opy: Sir you've come to the right village if you're trying to find yourself\n";
cout<<"You: I don't think I'm soposed to be here\n";
cout<<"Opy: Listen fella if you wern't soposed to be here, you wouldn't (chuckles)\n";
cout<<" ";
system("pause");
cout<<"You: I guess I could stay for a while, at least until I get a grasp on what's\n";
cout<<" going on\n";
cout<<"Opy: Well if you need a job, head over John Roldie's house, he's been looking\n";
cout<<" for someone to split wood for him\n";
cout<<"You: Okay, thanks...\n";
cout<<"Opy: Well I would love to stay and chat, but I was just heading out on trip to\n";
cout<<" Craanonjina, I'll see you later\n\n";
cout<<"Hint:You are now in a town. When you go into movement mode, the map will look\n";
cout<<" different. To move you must enter in one of the letter on the map.\n";
cout<<" ";
system("pause");
life_position++;
}
if(inputcommandexception==0)
{
cout<<"Command: ";
cin>>input;
}
else
{inputcommandexception=0;}
if ((input=='m'||input=='M')&&typeofmovementmode==2)
{
movementmode=1;
}
while (movementmode==1)
{
system("cls");
cout<<'\n'<<'\n';
cout<<"################################| E |###################################\n";
cout<<"################################| |###################################\n";
cout<<"################################| |###################################\n";
cout<<"##########################------| |------#############################\n";
cout<<"##################-------- --------#####################\n";
cout<<"#############----- -----################\n";
cout<<"##########--- Tavern House for ---#############\n";
cout<<"#########-- / \\ sale --############\n";
cout<<"#########| | T | /H\\ |############\n";
cout<<"#########| |___| Water |_| |############\n";
cout<<"#########| Spicket |############\n";
cout<<"#########| _ Roldie's house |############\n";
cout<<"#########| Market (_) /R\\ |############\n";
cout<<"#########| _______ D |_| |############\n";
cout<<"#########| / S \\ ___ |############\n";
cout<<"#########| |_______| / \\ |############\n";
cout<<"#########| Kurtles | K | |############\n";
cout<<"#########| Bakery Watch tower House |___| |############\n";
cout<<"#########-- / B \\ _______ --############\n";
cout<<"##########--- |______| | | ---#############\n";
cout<<"#############----- | W | -----################\n";
cout<<"##################-------- |_______| --------#####################\n";
cout<<"##########################------------------------#############################\n";
cout<<"###############################################################################\n";
cout<<"###############################################################################\n";
cout<<"###############################################################################\n";
cout<<"###############################################################################\n";
cout<<"Command: ";
cin>>movementmodecommand;
if (movementmodecommand=='m'||movementmodecommand=='M')
{
movementmode=0;
}
if (movementmodecommand=='E'||movementmodecommand=='e')
{
position=28;
po28=1;
movementmode=0;
typeofmovementmode=1;
town=0;
inputcommandexception=1;
quantityof_your_watercapacity=quantityof_your_waterjug*12;
if (quantityof_your_current_water>quantityof_your_watercapacity)
quantityof_your_current_water=quantityof_your_watercapacity;
cout<<"\nSign: Leaving so soon?\n\n";
}
if (movementmodecommand=='S'||movementmodecommand=='s')
{
done=0;
while (done==0)
{
cout<<"\nTasha: How can I help you?\n\n";
done=0;
cout<<"Option\n 1: Buy\n 2: Sell\n";
cout<<" 3: Ask Questions\n 4: Leave\n";
subdone=0;
while(subdone==0)
{
cout<<"Cammand: ";
cin>>input;
if (input=='1')
{
purchase_quantity_validityYN=1;
purchaseinput_validityYN=1;
cout<<"Tasha: What would you like to buy?\n";
cout<<"\t\t\t\t\t\tCurrent amount of LK: "<<LK<<'\n';
cout<<"Item:\t\tQuantity:\tOwned:\tPrice:\n";
cout<<"1. Water Jug\t(*"<<quantityof_market1_waterjug<<")\t\t(*"<<quantityof_your_waterjug<<")\t55 LK\n";
cout<<"2. Axe\t\t(*"<<quantityof_market1_axe<<")\t\t(*"<<quantityof_your_axe<<")\t3500 LK\n";
cout<<"3. Apple\t(*"<<quantityof_market1_apple<<")\t\t(*"<<quantityof_your_apple<<")\t10 LK\n";
cout<<"4. Steak\t(*"<<quantityof_market1_steak<<")\t\t(*"<<quantityof_your_steak<<")\t50 LK\n";
cout<<"\nD. Done\n";
cout<<"Item: ";
cin>>purchaseinput_item;
if (purchaseinput_item=='1')
{price=55;}
if (purchaseinput_item=='2')
{price=3500;}
if (purchaseinput_item=='3')
{price=10;}
if (purchaseinput_item=='4')
{price=50;}
if(purchaseinput_item=='D'||purchaseinput_item=='d')
{
subdone=1;
//break;
}
else
{
cout<<"\nQuantity: ";
cin>>purchaseinput_quantity;
purchaseinput_cost=purchaseinput_quantity*price;
purchaseinput_validity=LK-purchaseinput_cost;
purchaseinput_validityYN=(purchaseinput_validity>=0);
if (purchaseinput_item=='1')
{check_the_quantity=quantityof_market1_waterjug;}
if (purchaseinput_item=='2')
{check_the_quantity=quantityof_market1_axe;}
if (purchaseinput_item=='3')
{check_the_quantity=quantityof_market1_apple;}
if (purchaseinput_item=='4')
{check_the_quantity=quantityof_market1_steak;}
purchase_quantity_validityYN=(purchaseinput_quantity<=check_the_quantity);
if(subdone!=1)
{
if(purchaseinput_validityYN==0||purchase_quantity_validityYN==0)
{
if(purchaseinput_validityYN==0)
{cout<<"\nYou don't have enough money.\nYou need "<<purchaseinput_validity<<" More LK\n\n";}
if(purchase_quantity_validityYN==0&&purchaseinput_validityYN==0)
{cout<<"Plus\n";}
if(purchase_quantity_validityYN==0)
{cout<<"You tried to buy more than possible\n";}
cout<<'\n';
subdone=1;
}
if(purchaseinput_validityYN==1&&purchase_quantity_validityYN==1)
{
if (purchaseinput_item=='1')
{
quantityof_your_waterjug=quantityof_your_waterjug+purchaseinput_quantity;
quantityof_market1_waterjug=quantityof_market1_waterjug-purchaseinput_quantity;
}
if (purchaseinput_item=='2')
{
quantityof_your_axe=quantityof_your_axe+purchaseinput_quantity;
quantityof_market1_axe=quantityof_market1_axe-purchaseinput_quantity;
}
if (purchaseinput_item=='3')
{
quantityof_your_apple=quantityof_your_apple+purchaseinput_quantity;
quantityof_market1_apple=quantityof_market1_apple-purchaseinput_quantity;
}
if (purchaseinput_item=='4')
{
quantityof_your_steak=quantityof_your_steak+purchaseinput_quantity;
quantityof_market1_steak=quantityof_market1_steak-purchaseinput_quantity;
}
LK=LK-purchaseinput_cost;
cout<<"\nPurchase complete. You now have "<<LK<<" LK\n\n";
subdone=1;
}// end to the valid value
}// end to if(subdone!=1)
}//end to else for,if(purchaseinput_item=='D'||purchaseinput_item=='d')
}// if input== '1'
if (input=='2')
{
cout<<"Tasha: What would you like to sell?\n\n";
cout<<"\t\t\t\t\t\tCurrent amount of LK: "<<LK<<'\n'<<'\n';
cout<<"Item:\t\tOwned:\t\tSell Value:\tMarket Quantity:\n";
if(quantityof_your_waterjug>=1)
{cout<<" 1. Water Jug\t(*"<<quantityof_your_waterjug<<")\t\t47 LK\t\t(*"<<quantityof_market1_waterjug<<")\n";}
if(quantityof_your_axe>=1)
{cout<<" 2. Axe \t(*"<<quantityof_your_axe<<")\t\t3400 LK\t\t(*"<<quantityof_market1_axe<<")\n";}
if(quantityof_your_apple>=1)
{cout<<" 3. Apple\t(*"<<quantityof_your_apple<<")\t\t5 LK\t\t(*"<<quantityof_market1_apple<<")\n";}
if(quantityof_your_steak>=1)
{cout<<" 4. Steak\t(*"<<quantityof_your_steak<<")\t\t40 LK\t\t(*"<<quantityof_market1_steak<<")\n";}
cout<<"\n D. Done\n";
cout<<"Item: ";
cin>>sellinput_item;
if(sellinput_item=='d'||sellinput_item=='D')
{
subdone=1;
}
else
{
cout<<"Quantity: ";
cin>>sellinput_quantity;
if (sellinput_item=='1')
{price=47;}
if (sellinput_item=='2')
{price=3400;}
if (sellinput_item=='3')
{price=5;}
if (sellinput_item=='4')
{price=40;}
if((sellinput_item=='1'&&quantityof_your_waterjug>=1&&sellinput_quantity<=quantityof_your_waterjug)||(sellinput_item=='2'&&quantityof_your_axe>=1&&sellinput_quantity<=quantityof_your_axe)||(sellinput_item=='3'&&quantityof_your_apple>=1&&sellinput_quantity<=quantityof_your_apple)||(sellinput_item=='4'&&quantityof_your_steak>=1&&sellinput_quantity<=quantityof_your_steak))
{
if(sellinput_item=='1'&&quantityof_your_waterjug>=1&&sellinput_quantity<=quantityof_your_waterjug)
{
quantityof_your_waterjug=quantityof_your_waterjug-sellinput_quantity;
quantityof_market1_waterjug=quantityof_market1_waterjug+sellinput_quantity;
LK=LK+price;
cout<<"\nSale complete.\n";
}
if(sellinput_item=='2'&&quantityof_your_axe>=1&&sellinput_quantity<=quantityof_your_axe)
{
quantityof_your_axe=quantityof_your_axe-sellinput_quantity;
quantityof_market1_axe=quantityof_market1_axe+sellinput_quantity;
LK=LK+price;
cout<<"\nSale complete.\n";
}
if(sellinput_item=='3'&&quantityof_your_apple>=1&&sellinput_quantity<=quantityof_your_apple)
{
quantityof_your_apple=quantityof_your_apple-sellinput_quantity;
quantityof_market1_apple=quantityof_market1_apple+sellinput_quantity;
LK=LK+price;
cout<<"\nSale complete.\n";
}
if(sellinput_item=='4'&&quantityof_your_steak>=1&&sellinput_quantity<=quantityof_your_steak)
{
quantityof_your_steak=quantityof_your_steak-sellinput_quantity;
quantityof_market1_steak=quantityof_market1_steak+sellinput_quantity;
LK=LK+price;
cout<<"\nSale complete.\n";
}
}
else
{cout<<"\nYour choice was invalid.\n";}
}//end of else for, if(sellinput_item=='d'||sellinput_item=='D')
subdone=1;
}//end of input 2
if (input=='3')
{
cout<<"Tasha: What would you like to know?\n\n";
cout<<" 1. About Lignrest Coast.\n";
cout<<" 2. About Denvrenal.\n";
cout<<" 3. About Craanonjina.\n";
cout<<" 4. Tips/Hints.\n";
cout<<" 5. Nevermind.\n\n";
cout<<"Command: ";
cin>>conversation_choice;
subdone=1;
cout<<'\n';
switch(conversation_choice)
{
case '1':
//cout<<"01234567890123456789012345678901234567890123456789012345678901234567890123456789";
cout<<"Tasha: Lignrest Coast is the stretch of coast line that you can see on the map\n";
cout<<" you have.\n";
cout<<" ";
system("pause");
cout<<"Tasha: Lignrest Coast goes a little past Craanonjina before your into\n";
cout<<" Yhd-Kahn territory. Nobody really knows how far it goes the other way.\n";
break;
case '2':
cout<<"Tasha: We are in Denvrenal right now. It was founded by traders, as a stop along\n";
cout<<" their trade rout. The road has long since been over-runned by plants.\n";
cout<<" ";
system("pause");
cout<<"Tasha: The path is completly gone, intfact no-one even remembers exactly which\n";
cout<<" direction it went. Where the path ends, is where Richwik woods ends also.\n";
cout<<" ";
system("pause");
cout<<"Tasha: There have been folks over the years who have ventured into those woods,\n";
cout<<" but for all we know they have been killed by wild animals.\n";
break;
case '3':
cout<<"Tasha: Craanonjina is a grouping of villages south east of us. It is a good day's\n";
cout<<" hike from here. I wouldn't segest going there... the bandits will kill\n you.\n";
cout<<" ";
system("pause");
cout<<"Tasha: If you ever wish to go there you need to make yourself look tougher, and\n";
cout<<" carry a weapon.\n";
cout<<" ";
system("pause");
cout<<"Tasha: But there really is no reason you would need to go there. We have strong\n";
cout<<" traders who come through, and sell us what ever we need\n.";
break;
case '4':
if(question_tip_town1_tasha==5)
{question_tip_town1_tasha=question_tip_town1_tasha-5;}
question_tip_town1_tasha++;
switch(question_tip_town1_tasha)
{
case 1:
//cout<<"01234567890123456789012345678901234567890123456789012345678901234567890123456789";
cout<<"\nThe more water jugs you own, the more water you can keep with you.\n";
break;
case 2:
cout<<"\nYou can sell items to people, but usually for less than how much you purchased\nit for.\n";
break;
case 3:
cout<<"\nGo to a spicket, and you will fill up all of your water jugs.\n";
break;
case 4:
cout<<"\nDon't take the path to Craanonjina, unless you think your strong enough, and\nyou have a weapon.\n";
break;
case 5:
cout<<"\nStop and look arround, you might even find some fruit.\n";
break;
case 6:
cout<<"";
break;
}//end of switch question_tip_town1_tasha
break;
default:
break;
}
}//end of input=='3'
if (input=='4')
{
cout<<"Tahsa: See you later\n";
subdone=1;
done=1;
}
}//while subdone==0
}
}
if (movementmodecommand=='W'||movementmodecommand=='w')
{
if (key_town1_watchtower==1)
{
done=0;
while(done==0)
{
//the watch tower
}
}
else
{
cout<<"\nTo get into the Watch Tower you will need the key\n\n";
}
}
if (movementmodecommand=='D'||movementmodecommand=='d')
{
quantityof_your_watercapacity=quantityof_your_waterjug*12;
quantityof_your_current_water=quantityof_your_watercapacity;
cout<<"\nHint: Your water jugs have been filled\n";
}
if (movementmodecommand=='T'||movementmodecommand=='t')
{
done=0;
while(done==0)
{
subdone=0;
if (tavern1==0)
{
cout<<"\nFrank: Well hello there young man, havent seen you in these parts before\n";
cout<<"You: Well I havent seen these \"parts\" before either...\n";
cout<<"Frank: AH! a funny lad, eh? I like you. Now ";
akwardness--;
renown=renown+5;
tavern1=1;
}
cout<<"What can I get you?\n";
while(subdone==0)
{
cout<<" ";
system("pause");
cout<<"Option\n 1: Buy\n 2. Sell\n";
cout<<" 3: Ask Questions\n 4: Leave\n";
cout<<"Cammand: ";
cin>>input;
if (input=='1')
{
purchase_quantity_validityYN=1;
purchaseinput_validityYN=1;
cout<<"Frank: Okay lets talk buisiness\n";
cout<<"\t\t\t\t\t\tCurrent amount of LK: "<<LK<<'\n';
cout<<"Item:\t\tQuantity:\tOwned:\tPrice:\n";
cout<<"1. Whiskey\t(*"<<quantityof_tavern1_whiskey<<")\t\t(*"<<quantityof_your_whiskey<<")\t20 LK\n";
cout<<"2. Funny Hat\t(*"<<quantityof_tavern1_funnyhat1<<")\t\t(*"<<quantityof_your_funnyhat1<<")\t200 LK\n";
cout<<"\nD. Done\n";
cout<<"Item: ";
cin>>purchaseinput_item;
if (purchaseinput_item=='1')
{price=20;}
if (purchaseinput_item=='2')
{price=200;}
if(purchaseinput_item=='D'||purchaseinput_item=='d')
{
subdone=1;
//break;
}
else
{
cout<<"\nQuantity: ";
cin>>purchaseinput_quantity;
purchaseinput_cost=purchaseinput_quantity*price;
purchaseinput_validity=LK-purchaseinput_cost;
purchaseinput_validityYN=(purchaseinput_validity>=0);
if (purchaseinput_item=='1')
{check_the_quantity=quantityof_tavern1_whiskey;}
if (purchaseinput_item=='2')
{check_the_quantity=quantityof_tavern1_funnyhat1;}
purchase_quantity_validityYN=(purchaseinput_quantity<=check_the_quantity);
if(subdone!=1)
{
if(purchaseinput_validityYN==0||purchase_quantity_validityYN==0)
{
if(purchaseinput_validityYN==0)
{cout<<"\nFrank: You don't have enough money.\nYou need "<<purchaseinput_validity<<" More LK\n\n";}
if(purchase_quantity_validityYN==0&&purchaseinput_validityYN==0)
{cout<<"Plus\n";}
if(purchase_quantity_validityYN==0)
{cout<<"Frank: I don't have that many\n";}
cout<<'\n';
subdone=1;
}
if(purchaseinput_validityYN==1&&purchase_quantity_validityYN==1)
{
if (purchaseinput_item=='1')
{
quantityof_your_whiskey=quantityof_your_whiskey+purchaseinput_quantity;
quantityof_tavern1_whiskey=quantityof_tavern1_whiskey-purchaseinput_quantity;
}
if (purchaseinput_item=='2')
{
quantityof_your_funnyhat1=quantityof_your_funnyhat1+purchaseinput_quantity;
quantityof_tavern1_funnyhat1=quantityof_tavern1_funnyhat1-purchaseinput_quantity;
}
LK=LK-purchaseinput_cost;
cout<<"\nPurchase complete. You now have "<<LK<<" LK\n\n";
subdone=1;
}// end to the valid value
}// end to if(subdone!=1)
}//end to else for,if(purchaseinput_item=='D'||purchaseinput_item=='d')
}// if input== '1'
if (input=='2')
{
cout<<"Frank: Lets see whatcha got.\n";
cout<<"\t\t\t\t\t\tCurrent amount of LK: "<<LK<<'\n'<<'\n';
cout<<"Item:\t\tOwned:\t\tSell Value:\tMarket Quantity:\n";
if(quantityof_your_whiskey>=1)
{cout<<" 1. Whiskey\t(*"<<quantityof_your_whiskey<<")\t\t12 LK\t\t(*"<<quantityof_tavern1_whiskey<<")\n";}
if(quantityof_your_funnyhat1>=1)
{cout<<" 2. Funny Hat\t(*"<<quantityof_your_funnyhat1<<")\t\t175 LK\t\t(*"<<quantityof_tavern1_funnyhat1<<")\n";}
cout<<"\n D. Done\n";
cout<<"Item: ";
cin>>sellinput_item;
if(sellinput_item=='d'||sellinput_item=='D')
{
subdone=1;
}
else
{
cout<<"Quantity: ";
cin>>sellinput_quantity;
if (sellinput_item=='1')
{price=12;}
if (sellinput_item=='2')
{price=175;}
if ((sellinput_item=='1'&&quantityof_your_whiskey>=1&&sellinput_quantity<=quantityof_your_whiskey)||(sellinput_item=='2'&&quantityof_your_funnyhat1>=1&&sellinput_quantity<=quantityof_your_funnyhat1))
{
if(sellinput_item=='1'&&quantityof_your_whiskey>=1&&sellinput_quantity<=quantityof_your_whiskey)
{
quantityof_your_whiskey=quantityof_your_whiskey-sellinput_quantity;
quantityof_tavern1_whiskey=quantityof_tavern1_whiskey+sellinput_quantity;
LK=LK+price;
cout<<"\nSale complete.\n";
}
if(sellinput_item=='2'&&quantityof_your_funnyhat1>=1&&sellinput_quantity<=quantityof_your_funnyhat1)
{
quantityof_your_funnyhat1=quantityof_your_funnyhat1-sellinput_quantity;
quantityof_tavern1_funnyhat1=quantityof_tavern1_funnyhat1+sellinput_quantity;
LK=LK+price;
cout<<"\nSale complete.\n";
}
}
else
{cout<<"\nYour choice was invalid.\n";}
}//end of else for, if(sellinput_item=='d'||sellinput_item=='D')
subdone=1;
}//end of input 2
if (input=='3')
{
cout<<"Frank: Well what do you want to know about?\n";
}
if (input=='4')
{
cout<<"Frank: See you later\n";
subdone=1;
done=1;
}
}//End of conversation
}//leaving the tavern
if (movementmodecommand=='R'||movementmodecommand=='r')
{
done=0;
while(done==0)
{
small_position=1;
cout<<'\n'<<'\n';
cout<<"# - woods / stacked wood\n* - Pile of wood chips\n";
cout<<" ";
//if
cout<<" You are currently infront of the house ";
cout<<" ";
cout<<" |############\n";
cout<<" |############\n";
cout<<" |############\n";
cout<<" |############\n";
cout<<" |############\n";
cout<<" John Roldie's |############\n";
cout<<" house |############\n";
cout<<" |############\n";
cout<<" |############\n";
cout<<" ________________________________ |############\n";
cout<<" | | |############\n";
cout<<" | | |############\n";
cout<<" | | |############\n";
cout<<" | | Back yard |############\n";
cout<<" Front door | | B |############\n";
cout<<" _| | :###* |############\n";
cout<<" D _| | :**** |############\n";
cout<<" | | :**** |############\n";
cout<<" | | |############\n";
cout<<" Front yard | | |############\n";
cout<<" F |________________________________| |############\n";
cout<<" |############\n";
cout<<" |############\n";
cout<<" L - Leave |############\n";
cout<<" |############\n";
cout<<" |############\n";
cout<<" |############\n";
cin>>movementmodecommand;
if (movementmodecommand=='L'||movementmodecommand=='l')
{
done=1;
}
}//while(done==0)
}//END of if (movementmodecommand=='R'||movementmodecommand=='r')
}//end of movement mode
}
}
movementmode=1;
}//leaving town, so soon?
if (dead_dehydrated==1)
{
cout<<"\n\n\n\n\nBummer dude you died of dehydration. Better luck next time\n\n";
life_position=0;
inputcommandexception=1;
}
if(input=='Q'||input=='q')
{
cout<<"\n\nAre you sure you sure you want to quit? Y/N\n(If you say yes, you will receive a code that you can enter into the game\nat the startup menu)\n";
cin>>input;
if (input=='Y'||input=='y')
{
do
{
cout<<"\nYour startup code is shown below\n\n";
//code ouput
life_position=0;
system("pause");
cout<<"are you sure you wrote down the whole code? Y/N\n";
cin>>input;
if (input=='Y'||input=='y')
{
cout<<"Okay then, seeya later...";
}
else
{
cout<<"Okay, take your time";
done=0;
}
}while (done==0);
}
else
{cout<<"\nOkay Back to the game";}
}
if(inputcommandexception==0)
{
cout<<"Command: ";
cin>>input;
}
else
{inputcommandexception=0;}
} //while life position doesn't = 0
cout<<" ";
system("pause");
return 0;
}
/*
--------------|---------------
|"|
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment