1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
|
// Histoire Test.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <string>
#include "Histoire Test.h"
using namespace std;
void event1()
{
int answer2;
cout << "1. Yes \n\n2. I don't think I've ever heard this name before \n\n3. Maybe.. Maybe not.. (Asshole)";
cin >> answer2;
}
void intro()
{
int answer1;
cout << "You follow the man, even though you don't think it's a good idea.. \n\n A few minutes of walk in, he asks you :\n" << endl;
cout << "(Barnaby) -So, where are you from young man? And what brings you here, \nin this dank forest?\n" << endl;
cout << "1. Im from the north, I was raised by the Wolvesmen of Klooklookx. Im here to avenge my people's death.\n\n";
cout << "2. I came from the south. I am a bounty hunter, looking for treasures and epic quests.\n\n";
cout << "3. I came from the caravel across the Windy Ocean, West of here. I am here to do buisness.\n\n";
cout << "4. Say nothing.\n\n";
cin >> answer1;
switch (answer1)
{
{
case1: cout << "(Barnaby) -Oh, so you're from the north... Well, let's try not to kill each other while we're still on the way, we have a long way to go before reaching town";
break;
}
if (answer1 == 2)
{
cout << "I see.. Well if you try to rob me while im sleeping, I will cut your throat little man. Alright, let's get going.";
}
if (answer1 == 3)
{
cout << "From the West hmm? Do you happen to know a certain Shshshhshhsh ?";
event1;
}
if (answer1 == 4)
{
cout << "Ugh.. Ok just follow me then..";
}
if (answer1 != 1, 2, 3, 4)
{
cout << "(Please enter a valid number)";
}
}
}
int main()
{
string name;
cout << "\n\tEnter your name.";
getline(cin, name);
cout << "(" << name << ")"" -I am " << name << ".... Where are we?\n" << endl;
if (name == "Johanna Jones")
{
cout << "(Barnaby) -What the heck?!? Johanna Jones ?! For real?! ..... No time to explain, come with me now! " << endl;
}
else
{
cout << "(Barnaby) -No time to explain, come with me now! \n ------------------------------------------------------------------" << endl;
}
intro();
return 0;
}
|