Adilol

Demonic Quest Concept

Jul 20th, 2011
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.84 KB | None | 0 0
  1. #include "Library.h"
  2.  
  3. //Village concept
  4.  
  5. //some stuff here
  6.  
  7. bool ArbekVillage (PLAYER* player)
  8. {
  9.     int choice = 0;
  10.  
  11.     while (choice !=3)
  12.     {
  13.         cout << "You look around at the village\n";
  14.         cout << "It seems to be full of activity\n";
  15.         cout << "You see the village elder looking at you\n";
  16.        
  17.         Wait();
  18.        
  19.         cout << "1: Talk to the elder\n";
  20.         cout << "2: Check status\n";
  21.         cout << "3: Leave\n";
  22.        
  23.         cin >> choice;
  24.         cin.clear();
  25.         cin.ignore(INT_MAX,'\n');
  26.  
  27.         cout << endl;
  28.  
  29.         switch (choice)
  30.         {
  31.         case 1:
  32.             {  
  33.                 cout << "You approach the elder\n";
  34.                 //convo here blah blah w.e
  35.                 //DemonicPath(); <- Little heads up ;D
  36.                 break;
  37.                 }
  38.                 case 2:
  39.                 {
  40.                     DisplayStats(player);
  41.                     break;
  42.                     }
  43.                 case 3:
  44.                 {
  45.                     cin.get();
  46.                     break;
  47.                     }
  48.                         default: break;
  49.                             }
  50.     }
  51.  
  52.     return true;
  53. }
Advertisement
Add Comment
Please, Sign In to add comment