Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 19th, 2012  |  syntax: C++  |  size: 13.52 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class Achievements{
  5.         public:
  6.                 void achievement1(){
  7.                         cout << "achievement locked" << endl;
  8.                         }
  9. };
  10.  
  11. int achievement1 = 0;
  12. int achievement2 = 0;
  13. int achievement3 = 0;
  14.  
  15.  
  16. int main ()
  17. {
  18.         int choice1;
  19.        
  20.         cout << "Welcome to Hell: \n 1) ESCAPE \n 2) open achievements" << endl;
  21.         cin >> choice1;
  22.        
  23.         switch (choice1)
  24.         {
  25.                 case 1:
  26.                         //The next few lines are the intro to the story
  27.                         cout << "Darkness." << endl << endl;
  28.                         cout << "The darkness is infinitely deep, deeper than the depths of space, and infinitely more empty. The darkness is so great, you lose yourself in its depths. The sensation of falling is terrifying, you snap your eyes open, only to find that they already were. " << endl << endl << endl << endl;
  29.                                 {
  30.                                                 //The next (number far greater than 2) lines are for the first part of the story
  31.                                                 cout << "Darkness." << endl << endl;
  32.                                                 cout << "You can hear rain throwing itself on a metal roof, assumedly above you." << endl << endl;
  33.                                                 cout << "A flash of light reveals that the rain is more than throwing itself against the roof, it seems that the rain is committing mass suicide against the brown rusting roof of the metal shack you find your self in." << endl << endl;
  34.                                                 cout << "Darkness." << endl << endl;
  35.                                                 cout << "You feel a drop of water on your shoulder." << endl << endl;
  36.                                                 cout << "Another flash." << endl << endl;
  37.                                                 cout << "You look up. The roof is old, brown, looking like it hade been through the wars. It would be the equivalent of a 1940's war hero, having been through the wars, rambling how he beat up Hitler with his own hands. Looking past the roof, you can just make out the sky. You cant see the moon or the stars, you reason to yourself that the new moon is out." << endl << endl;
  38.                                                 cout << "Darkness." << endl << endl;
  39.                                                 cout << "Another flash." << endl << endl;
  40.                                                 cout << "You look down at yourself. You see a layer of red mud covering everything like a layer of full body armour. You can just make out torn up jeans (presumably part of the design), battered t-shirt, a worn out jacket (definitely not part of the deign), and a pair of converse shoes." << endl << endl;
  41.                                                 cout << "Darkness." << endl << endl;
  42.                                                 cout << "After wriggling you toes, you find that the front of the shoes are… well… not there." << endl << endl;
  43.                                                 cout << "Another flash." << endl << endl;
  44.                                                 cout << "You study the room around you. The roof has holes in it, no bigger that the width of your forefinger. The ground is a literal quagmire, you can even smell the equivalent of prehistoric sulphur. The walls seem to be made of the same stuff as the roof, returned army veteran and all. There is a light hanging almost impossibly from the ceiling connected to a wire almost too thin to hold the bulb up. Like a single thread of spider web." << endl << endl;
  45.                                                 cout << "Darkness." << endl << endl;
  46.                                                 cout << "Another flash." << endl << endl;
  47.                                                 cout << "You notice a door, and try to open it. It seems like you are trapped. From the sound of the rattling, the door is chained up and locked from the outside." << endl;                           
  48.                                                 {      
  49.                                                         int option;
  50.                                                         cout << "What do you do? \n 1) Search your pockets for anything that could possibly help \n 2) Turn on the light" << endl;
  51.                                                         cin >> option;
  52.                                        
  53.                                                         while (!((option==1) or (option==2)))
  54.                                                         {
  55.                                                                
  56.                                                                 cout << "Invalid entry. Please choose a valid option, you dumb." << endl;
  57.                                                                 cin >> option;
  58.                                                         }
  59.                                                        
  60.                                                         switch (option)
  61.                                                         {
  62.                                                                 case 1:
  63.                                                                         cout << "You search your mud filled pockets for anything that could help." << endl;
  64.                                                                         cout << "You pull out a soggy box of matches. You open the box, only to find that there is more water inside the box than in your jeans pocket. You empty the box to find 5 equally soggy matches." << endl << endl;
  65.                                                                         cout << "You search you other pocket and pull out a perfectly circular, very smooth slightly curved rock the size of your palm. The rock itself is black, with veins of dark purple running through it. You can tell the rock is slightly opaque. The rock is wrapped by a plastic that runs around the edge of it. After prying a small section of the plastic off, you find that the edge of the stone is razor sharp. You touch the edge as light as physically possible in your current situation, drawing blood before you can even feel the edge. Yep… its sharp. You think for a while, and test to see if the stone is sharp enough to cut through the metal. It fails, the stone is the sharpest tool in the shack, but not sharp enough it seems. You wrap the stone back up and put it back in your pocket." << endl << endl;
  66.                                                                         cout << "One of your pockets in your jacket has no pocket in the first place, the other pocket returns a zippo lighter with about 1/2 of the butane left." << endl << endl;
  67.                                                                         cout << "Out of the corner of your eye you make out the shape of a oil lantern and a small canister of propane and a pile of attachment for said canister. The lamp has a small amount of propane in it left. The propane canister has the word 'BOBBY' scrawled in black spray paint on the side. But like everything in the shack, it is rusting badly, looking more like an antiques shop that had been abandoned for 5 years. The attachments are the usual set, BBQ hoses, grill hoses, gas stove hoses, and some hoses that you don’t even know the true purpose behind them. Most of the accessories are for the propane tank and are all hoses." << endl;
  68.                                                                         break;
  69.                                                                        
  70.                                                                 case 2:
  71.                                                                         cout << "storysection2choice2" << endl;
  72.                                                                         break;
  73.                                                                        
  74.                                                         }
  75.                                                        
  76.                                                         return 0;
  77.                                                 }
  78.  
  79.                         break;
  80.                 case 2:
  81.                         cout << "storyachievements" << endl;
  82.                                         {
  83.                                                 cout << "Welcome to the achievemenets section" << endl;
  84.                                                
  85.                                                
  86.                                                
  87.                                                
  88.                                                 if (achievement1 == 1) {
  89.                                                         cout << "achievement 1" << endl;
  90.                                                 }
  91.                                                 else {
  92.                                                         cout << "achievement 1 locked" << endl;
  93.                                                 }
  94.  
  95.                                                 if (achievement2 == 1) {
  96.                                                         cout << "achievement 2" << endl;
  97.                                                 }
  98.                                                 else {
  99.                                                         cout << "achievement 2 locked" << endl;
  100.                                                 }
  101.                                                
  102.                                                 if (achievement3 == 1) {
  103.                                                         cout << "achievement 3" << endl;
  104.                                                 }
  105.                                                 else {
  106.                                                         cout << "achievement 3 locked" << endl;
  107.                                                 }
  108.                                                
  109.                                                
  110.                                                
  111.                                                
  112.                                                 return 0;
  113.                                         }
  114.                         break;                 
  115.        
  116.                                
  117.                 default:
  118.                         break;
  119.                                
  120.                                 }
  121.  
  122.        
  123.         return 0;
  124.         }
  125. }
  126.  
  127.  
  128.  
  129.  
  130. /*
  131. int story1choice ()
  132. int option;
  133.         cout << "What do you do? \n 1) choice 1 \n 2) choice 2" << endl;
  134.         cin >> option;
  135.        
  136.         switch (option) {
  137.                 case 1:
  138.                         cout << "storysection2choice1" << endl;
  139.                         break;
  140.                        
  141.                 case 2:
  142.                         cout << "storysection2choice2" << endl;
  143.                         break;
  144.                        
  145.                 default:
  146.                         break;
  147.         }
  148.          
  149.         return 0;
  150. }
  151.  
  152. */
  153.  
  154.  
  155.  
  156. /* class achievements
  157.  {
  158.  public:
  159.  
  160.  */
  161.  
  162.  
  163.  
  164. /*
  165.  switch (storychoice1) {
  166.  case 1:
  167.  cout << "storysection2choice1" << endl;
  168.  break;
  169.  
  170.  case 2:
  171.  cout << "storysection2choice2" << endl;
  172.  break;
  173.  
  174.  default:
  175.  cout << "Invalid entry" << endl;
  176.  break;
  177. */
  178.  
  179. /*
  180.  while (option != 1||2)
  181.         {
  182.  
  183.                 cout << "Invalid entry. Please choose a valid option, you dumb." << endl;
  184.                 cin >> option;
  185.         }
  186.  
  187. if (option == 1)
  188.         cout << "You search your mud filled pockets for anything that could help." << endl;
  189.         cout << "You pull out a soggy box of matches. You open the box, only to find that there is more water inside the box than in your jeans pocket. You empty the box to find 5 equally soggy matches." << endl << endl;
  190.         cout << "You search you other pocket and pull out a perfectly circular, very smooth slightly curved rock the size of your palm. The rock itself is black, with veins of dark purple running through it. You can tell the rock is slightly opaque. The rock is wrapped by a plastic that runs around the edge of it. After prying a small section of the plastic off, you find that the edge of the stone is razor sharp. You touch the edge as light as physically possible in your current situation, drawing blood before you can even feel the edge. Yep… its sharp. You think for a while, and test to see if the stone is sharp enough to cut through the metal. It fails, the stone is the sharpest tool in the shack, but not sharp enough it seems. You wrap the stone back up and put it back in your pocket." << endl << endl;
  191.         cout << "One of your pockets in your jacket has no pocket in the first place, the other pocket returns a zippo lighter with about 1/2 of the butane left." << endl << endl;
  192.         cout << "Out of the corner of your eye you make out the shape of a oil lantern and a small canister of propane and a pile of attachment for said canister. The lamp has a small amount of propane in it left. The propane canister has the word 'BOBBY' scrawled in black spray paint on the side. But like everything in the shack, it is rusting badly, looking more like an antiques shop that had been abandoned for 5 years. The attachments are the usual set, BBQ hoses, grill hoses, gas stove hoses, and some hoses that you don’t even know the true purpose behind them. Most of the accessories are for the propane tank and are all hoses." << endl;
  193. else if (option == 2)
  194.         cout << "story section 2 choice 2" << endl;
  195. */
  196.  
  197. /*
  198.  while (!((option==1) or (option==2)))
  199.  {
  200.  
  201.  cout << "Invalid entry. Please choose a valid option, you dumb." << endl;
  202.  cin >> option;
  203.  }
  204.  
  205.  switch (option)
  206.  {
  207.  case 1:
  208.  cout << "You search your mud filled pockets for anything that could help." << endl;
  209.  cout << "You pull out a soggy box of matches. You open the box, only to find that there is more water inside the box than in your jeans pocket. You empty the box to find 5 equally soggy matches." << endl << endl;
  210.  cout << "You search you other pocket and pull out a perfectly circular, very smooth slightly curved rock the size of your palm. The rock itself is black, with veins of dark purple running through it. You can tell the rock is slightly opaque. The rock is wrapped by a plastic that runs around the edge of it. After prying a small section of the plastic off, you find that the edge of the stone is razor sharp. You touch the edge as light as physically possible in your current situation, drawing blood before you can even feel the edge. Yep… its sharp. You think for a while, and test to see if the stone is sharp enough to cut through the metal. It fails, the stone is the sharpest tool in the shack, but not sharp enough it seems. You wrap the stone back up and put it back in your pocket." << endl << endl;
  211.  cout << "One of your pockets in your jacket has no pocket in the first place, the other pocket returns a zippo lighter with about 1/2 of the butane left." << endl << endl;
  212.  cout << "Out of the corner of your eye you make out the shape of a oil lantern and a small canister of propane and a pile of attachment for said canister. The lamp has a small amount of propane in it left. The propane canister has the word 'BOBBY' scrawled in black spray paint on the side. But like everything in the shack, it is rusting badly, looking more like an antiques shop that had been abandoned for 5 years. The attachments are the usual set, BBQ hoses, grill hoses, gas stove hoses, and some hoses that you don’t even know the true purpose behind them. Most of the accessories are for the propane tank and are all hoses." << endl;
  213.  break;
  214.  
  215.  case 2:
  216.  cout << "storysection2choice2" << endl;
  217.  break;
  218.  
  219.  }
  220.  
  221.  return 0;
  222. */
  223.  
  224. /*
  225.  while (option != 1||2)
  226.  {
  227.  
  228.  cout << "Invalid entry. Please choose a valid option, you dumb." << endl;
  229.  cin >> option;
  230.  
  231.  }
  232.  if (option == 1)
  233.  cout << "You search your mud filled pockets for anything that could help." << endl;
  234.  cout << "You pull out a soggy box of matches. You open the box, only to find that there is more water inside the box than in your jeans pocket. You empty the box to find 5 equally soggy matches." << endl << endl;
  235.  cout << "You search you other pocket and pull out a perfectly circular, very smooth slightly curved rock the size of your palm. The rock itself is black, with veins of dark purple running through it. You can tell the rock is slightly opaque. The rock is wrapped by a plastic that runs around the edge of it. After prying a small section of the plastic off, you find that the edge of the stone is razor sharp. You touch the edge as light as physically possible in your current situation, drawing blood before you can even feel the edge. Yep… its sharp. You think for a while, and test to see if the stone is sharp enough to cut through the metal. It fails, the stone is the sharpest tool in the shack, but not sharp enough it seems. You wrap the stone back up and put it back in your pocket." << endl << endl;
  236.  cout << "One of your pockets in your jacket has no pocket in the first place, the other pocket returns a zippo lighter with about 1/2 of the butane left." << endl << endl;
  237.  cout << "Out of the corner of your eye you make out the shape of a oil lantern and a small canister of propane and a pile of attachment for said canister. The lamp has a small amount of propane in it left. The propane canister has the word 'BOBBY' scrawled in black spray paint on the side. But like everything in the shack, it is rusting badly, looking more like an antiques shop that had been abandoned for 5 years. The attachments are the usual set, BBQ hoses, grill hoses, gas stove hoses, and some hoses that you don’t even know the true purpose behind them. Most of the accessories are for the propane tank and are all hoses." << endl;
  238.  
  239.  //this next function and slab of text is the next section of the story that leads on from the above choice
  240.  if (option == 2)
  241.  cout << "story section 2 choice 2" << endl;
  242.  
  243.  return 0;
  244. */