Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.69 KB | None | 0 0
  1. import java.util.ArrayList;
  2. import java.util.Scanner;
  3.  
  4. public class story {
  5.  
  6. public static void main(String[]args){
  7. ArrayList<String> inventory= new ArrayList<String>();
  8.  
  9. int southnorth = 0;
  10. boolean pretendtoberetarted = false;
  11.  
  12.  
  13. firstmission obj = new firstmission();
  14. Scanner reader = new Scanner(System.in);
  15.  
  16. System.out.println(" Would you like to start a game,"
  17. + "1 = Yes 2 = no");
  18. boolean telek = false;
  19. int option = reader.nextInt();
  20.  
  21. if(option == 1){
  22. System.out.println("You have no idea who you are all that you have on you is
  23. 1000$ and a map with your current");
  24. System.out.println(" location on it and a firestarter,'PS: someone
  25. must have put that map on you after drugging you");
  26.  
  27.  
  28. obj.firstline();
  29. }
  30. else{
  31. System.out.println(" Would you like to start a game,"
  32. + "1 = Yes 2 = no");
  33.  
  34.  
  35.  
  36. }
  37.  
  38. }
  39. }
  40.  
  41. import java.util.ArrayList;
  42. import java.util.Scanner;
  43.  
  44. public class firstmission {
  45.  
  46.  
  47. int eastwest =0;
  48. int southnorth = 0;
  49. boolean telek = false;
  50. boolean murderer = false;
  51. boolean intownentrance = false;
  52. boolean ownhouse = false;
  53. boolean pretendedtobedisabled = false;
  54. boolean shelterbuilt = false;
  55.  
  56.  
  57. City cityGate = new City();
  58.  
  59. Scanner reader = new Scanner(System.in);
  60.  
  61. void firstline(){
  62. Scanner reader = new Scanner(System.in);
  63. System.out.println("Its very cold and getting dark very fast, you know that a
  64. town is located about 10km north ");
  65. System.out.println("of you but you have no clue as to which way north
  66. is,");
  67. System.out.println("the sun just set to your right");
  68. System.out.println("Which way do you head");
  69. System.out.println("------------------");
  70. System.out.println(" 1 = forward");
  71. System.out.println(" 2 = Backwards");
  72. System.out.println(" 3 = random");
  73. System.out.println(" -----------------");
  74.  
  75. int option = reader.nextInt();
  76. switch (option){
  77.  
  78. case 1:
  79. System.out.print(" You've been walking for roughly half a day now and you
  80. have not found anything there is a cave");
  81. System.out.println("just to your left it smells like rotten flesh, what do
  82. you do?");
  83. System.out.println("----------------");
  84. System.out.println(" 1 = enter the cave ( WARNING IT SMELLS BAD)");
  85. System.out.println(" 2 = Build a shelter");
  86. System.out.println("----------------");
  87.  
  88. southnorth = -10;
  89. System.out.println(" Your cordinateds are " + southnorth + "kilometres
  90. south, north and " + eastwest + " kilometres east ,west");
  91. System.out.println("Please note that the signs indicate the direction/
  92. negative indicate south and west");
  93.  
  94.  
  95. Scanner reader1 = new Scanner(System.in);
  96.  
  97. int option2 = reader1.nextInt();
  98. switch(option2){
  99. case 1: System.out.println("You find an old wrinkled man who appears to
  100. have been living here a while");
  101. System.out.println(" he is leaning against the wall of the cave and
  102. appears to be in a deep meditative state");
  103. System.out.println(" just to his right their is a big crate of food
  104. supplies, it could last you months");
  105. System.out.println("what do you do?");
  106. System.out.println("----------------");
  107. System.out.println(" 1 = sit beside him a start to meditate");
  108. System.out.println(" 2 = knock him out and take his food ");
  109. System.out.println(" 3 = wake him up");
  110. Scanner reader2 = new Scanner(System.in);
  111. int option3 = reader2.nextInt();
  112. switch(option3){
  113. case 1: System.out.println("You sit there for roughly a full day
  114. meditating, why? you dont know, maybe you");
  115. System.out.println(" are hoping for what this man seems to have");
  116. System.out.println("after this elasped time the man starts speaking
  117. to you he says very calmly");
  118. System.out.println("' won tong youza noww minee new sudent pwease'");
  119. System.out.println("to this you reply sure, you have pretty much
  120. given up on life and this seems like the only viable option.");
  121. System.out.println(" So it goes that you spend years and years in isolation with your new master and he shows you many things");
  122. System.out.println("eventually you attain pure internal happiness and you live a good life.");
  123. System.out.println(" Your master has also taught you how to control matter with your mind and how ");
  124. System.out.println("never be hungry again through mastering breathing techniques, you now decide to venture off to the town.");
  125.  
  126. southnorth = 10;
  127. telek = true;
  128. break;
  129.  
  130. case 2: System.out.println(" Instead of knocking out the man you end up killing him, a few seconds later you hear footsteps around the corner.");
  131. System.out.println(" A small asian woman appears around the corner yelling 'Bing bong you killa my muster, now I must kiwl yousa");
  132. System.out.println(" You instanly kill her with a quick punch and then decide to head to bed");
  133. System.out.println("You wake up and it is somewhat warm outside, now that you know that you headed in the wrong direction do you retrace your steps"
  134. + " 1 = retrace steps back to town ' will take you a full days treck to reach the town now'"
  135. + " 2 = continue with what must be south");
  136.  
  137.  
  138.  
  139. Scanner reader3 = new Scanner(System.in);
  140. int option4 = reader3.nextInt();
  141.  
  142.  
  143. switch(option4){
  144. case 1: southnorth = 10;
  145.  
  146. break;
  147.  
  148. case 2: southnorth = -30;
  149. }
  150.  
  151.  
  152. break;
  153.  
  154. case 3: System.out.println(" The man dies instantly, you hear footsteps coming from around the corner");
  155. System.out.println(" A small asian woman appears around the corner yelling 'Bing bong you killa my muster, now I must kiwl yousa");
  156. System.out.println(" You instanly kill her with a quick punch and then decide to head to bed");
  157. System.out.println("You wake up and it is somewhat warm outside, now that you know that you headed in the wrong direction do you retrace your steps");
  158. System.out.println("----------------------");
  159. System.out.println(" 1 = retrace steps back to town ' will take you a full days treck to reach the town now'");
  160. System.out.println(" 2 = continue with what must be south");
  161. System.out.println("----------------------");
  162.  
  163.  
  164. Scanner reader4 = new Scanner(System.in);
  165. int option5 = reader4.nextInt();
  166.  
  167.  
  168. switch(option5){
  169. case 1: southnorth = 10;
  170.  
  171. break;
  172.  
  173. case 2: southnorth = -30;
  174. }
  175. }
  176. break;
  177.  
  178. case 2: System.out.println(" You build a somewhat decent shelter that will make do while you are out"
  179. + " while you are out here surviving, you go to bed for the night");
  180. System.out.println("You wake up and it is somewhat warm outside, now that you know that you headed in the wrong direction");
  181. System.out.println(" do you retrace your steps?");
  182. System.out.println("-----------------------");
  183. System.out.println("1 = retrace steps back to town ' will take you a full days treck to reach the town now'");
  184. System.out.println( "2 = continue with what must be south");
  185. System.out.println("-----------------------");
  186. shelterbuilt= true;
  187.  
  188. Scanner reader5 = new Scanner(System.in);
  189. int option6 = reader5.nextInt();
  190.  
  191.  
  192. switch(option6){
  193. case 1: southnorth = 10;
  194.  
  195. break;
  196.  
  197. case 2: southnorth = -30;
  198. }
  199.  
  200.  
  201. break;
  202. }
  203. }
  204.  
  205.  
  206. if(southnorth == 10){
  207.  
  208. City.cityGate();
  209.  
  210.  
  211. }
  212. }
  213.  
  214. }
  215.  
  216. import java.util.Scanner;
  217.  
  218. public class City {
  219.  
  220. static int southnorth;
  221.  
  222. static void cityGate(){
  223. System.out.println("-------------------");
  224. System.out.println("Welcome to Calgary");
  225. System.out.println("-------------------");
  226. System.out.println("You arrive at the town, it has a small wooden wall
  227. around it and a guard standing at the gate.");
  228. System.out.println(" what do you do?");
  229. System.out.println(" Ask politely to enter the town = 1");
  230. System.out.println(" Ask forcefully to enter the town = 2");
  231. System.out.println(" pretend you are disabled ( who would deny a disabled
  232. person entry)= 3");
  233.  
  234. Scanner reader = new Scanner(System.in);
  235. int option = reader.nextInt();
  236.  
  237. boolean intownentrance;
  238. switch(option){
  239.  
  240. case 1:
  241. System.out.println("The guard tells you to turn away");
  242. cityGate();
  243. break;
  244.  
  245. case 2:
  246. intownentrance = true;
  247. System.out.println("You are now in the town, its a rather small town with only about 1000 people living there.");
  248.  
  249. System.out.println(" What would you like to do ?");
  250. System.out.println("Go to bar = 1");
  251. System.out.println(" Go to inn = 2");
  252. System.out.println(" leave town = 3");
  253.  
  254. Scanner reader2 = new Scanner(System.in);
  255.  
  256. int option3 = reader2.nextInt();
  257.  
  258. switch(option3){
  259.  
  260.  
  261. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement