Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Library.h"
- //Village concept
- //New quest to be coded in :D
- void Tavern(PLAYER*);
- bool ArbekVillage (PLAYER* player)
- {
- int choice = 0;
- while (choice !=4)
- {
- cout << "You look around at the village\n";
- cout << "It seems to be full of activity\n";
- cout << "You see the village elder looking at you\n";
- Wait();
- cout << "1: Talk to the elder\n";
- cout << "2: Check status\n";
- cout << "3: Tavern\n";
- cout << "4: Leave\n";
- cin >> choice;
- cin.clear();
- cin.ignore(INT_MAX,'\n');
- cout << endl;
- switch (choice)
- {
- case 1:
- {
- cout << "You approach the elder\n";
- //convo here blah blah w.e
- //DemonicPath(); <- Little heads up ;D
- break;
- }
- case 2:
- {
- DisplayStats(player);
- break;
- }
- case 3:
- {
- Tavern();
- break;
- }
- case 4:
- {
- cin.get();
- break;
- }
- default: break;
- }
- }
- return true;
- }
- void Tavern(PLAYER* player)
- cout << "You stand in the tavern, full of people\n";
- cout << "A man approaches you, asking if you are here to save Arbek\n";
- char answer;
- answer = 'm';
- while (true)
- {
- cout << "Accept this quest=y/n\n";
- cout << ">";
- cin >> answer;
- cin.ignore(10,'\n');
- if (answer == 'y' || answer == 'n')
- break;
- }
- if (answer == 'y')
- {
- cout << "You accept the quest\n";
- Wait();
- DemonicQuest();
- }
- else
- {
- cout << "You walk away.\n";
- cin.get();
- }
Advertisement
Add Comment
Please, Sign In to add comment