Advertisement
Conner_36

intro() solution thanks monoid!

Jun 30th, 2011
358
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.04 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. #include "introduction.h"
  4. #include "wait.h"
  5.  
  6. int introduction (void) {
  7.    
  8.     extern int quittersFlag;
  9.    
  10.     printf("This is your character -> @\n\nSay hello!\n");
  11.     if (wait()!=0) {
  12.         return quittersFlag;
  13.     }
  14.     printf("\n@ is excited about his new master...\n");
  15.     printf("\n@ needs some word food to complete his upcoming journey.\n");
  16.     if (wait()!=0) {
  17.         return quittersFlag;
  18.     }   printf("Any letter or number on your keyboard will do.\n");
  19.     printf("I warn you though, @ hates numbers. If you feed him some...\nhe might just run back to the start.\n\nOr worse...\n\nHe may get lost.\n");
  20.     if (wait()!=0) {
  21.         return quittersFlag;
  22.     }   printf("If this seems too great a responsibility you can always press (control-D)\n");
  23.     if (wait()!=0) {
  24.         return quittersFlag;
  25.     }   printf("I won't hold it against you.\n");
  26.     if (wait()!=0) {
  27.         return quittersFlag;
  28.     }   printf("Still here?\n");
  29.     if (wait()!=0) {
  30.         return quittersFlag;
  31.     }   printf("Very well then... its time you give some motivation to your character:\n");
  32.    
  33.     return quittersFlag;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement