Advertisement
Guest User

Untitled

a guest
Sep 21st, 2014
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.31 KB | None | 0 0
  1. //--- CONFIRMATION --- \\
  2.  
  3. var confirmation = prompt("This game is full of gore and nastiness, are you sure you want to play?(Reply 'yes' or 'no')");
  4.  
  5. if (confirmation === "yes") {
  6.  
  7. //--- VARIABLES --- \\
  8.  
  9. var userName = prompt("What is your name?");
  10.  
  11. // --- GAME --- \\\
  12.  
  13. confirm("Hello " + userName + "... Welcome to The Frader. In this journey, you will make many decisions which will decide the fate of yourself in this game.");
  14. var drChoice = prompt("You wake up in a dark room not knowing where you are, the temporary blindness that you have received starts to wear off, and you notice you are in some type of jail cell. What is your next move? (Reply either 'get up' or 'stay down')");
  15.  
  16. if (drChoice === "stay down") {
  17. confirm("In deciding to stay down, you have died of starvation! Game over!");
  18. }
  19. else if (drChoice === "get up") {
  20. var guardChoice1 = prompt("You start to get up and you see a guard outside your cell. Do you 'yell at him', or do you 'stand still'?");
  21.  
  22. if (guardChoice1 === "yell at him") {
  23. confirm("The guard was angered by your yelling and has shot and killed you! Game over!");
  24. }
  25.  
  26. else if (guardChoice1 === "stand still") {
  27. confirm("Congrats, you have survived through part 1 of 'The Frader'! Stay tuned for part 2!");
  28. }
  29.  
  30. else {
  31. confirm("Sad to see you go!");
  32. }
  33.  
  34. }
  35. else {
  36. confirm("Sad to see you go!");
  37. }
  38. }
  39.  
  40. else if (confirmation === "no") {
  41.  
  42. // --- QUIT GAME --- \\
  43.  
  44. confirm("Sad to see you go!");
  45.  
  46. }
  47.  
  48. else {
  49.  
  50. // --- CONFUSION CONFIRMATION --- \\
  51.  
  52. var confconf = prompt("I'm sorry, please reply with either 'yes' or 'no'! Are you sure you want to play this game even though it may be graphic!?");
  53.  
  54. if (confconf === "yes") {
  55.  
  56. //--- VARIABLES --- \\
  57.  
  58. var userName = prompt("What is your name?");
  59.  
  60. // --- GAME --- \\\
  61.  
  62. confirm("Hello " + userName + "... Welcome to The Frader. In this journey, you will make many decisions which will decide the fate of yourself in this game.");
  63.  
  64. var drChoice = prompt("You wake up in a dark room not knowing where you are, the temporary blindness that you have received starts to wear off, and you notice you are in some type of jail cell. What is your next move? (Reply either 'get up' or 'stay down')");
  65.  
  66. if (drChoice === "stay down") {
  67. confirm("In deciding to stay down, you have died of starvation! Game over!");
  68. }
  69. else if (drChoice === "get up") {
  70. var guardChoice1 = prompt("You start to get up and you see a guard outside your cell. Do you 'yell at him', or do you 'stand still'?");
  71.  
  72. if (guardChoice1 === "yell at him") {
  73. confirm("The guard was angered by your yelling and has shot and killed you! Game over!");
  74. }
  75.  
  76. else if (guardChoice1 === "stand still") {
  77. confirm("Congrats, you have survived through part 1 of 'The Frader'! Stay tuned for part 2!");
  78. }
  79.  
  80. else {
  81. confirm("Sad to see you go!");
  82. }
  83.  
  84. }
  85. }
  86.  
  87. else {
  88. confirm("Sad to see you go!");
  89. }
  90.  
  91. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement