Advertisement
Guest User

ssimon909-javascript

a guest
May 15th, 2018
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var t;
  2. var k="NO";
  3. var d=-1;
  4. function start(){
  5.     document.getElementById('output').innerHTML="<font color=white>You wake up... Your in a dark concret room. You see a hatch. You<br><input type=button value=open_it onclick=lea()><input type=button value=stay onclick=stay()></font>";
  6. d=Number(d)+ 1;
  7.    
  8.     document.getElementById('death').innerHTML="<font color=white>Deaths = "+ d;
  9.    
  10.  
  11.     }function lea(){
  12.         document.getElementById('output').innerHTML="<font color=white>You open the hatch and you see a ladder. You climb down and are meeted by a 2 way coridor.You<br><input type=button value=Go_left onclick=l()><input type=button value=Go_straight onclick=s()></font>";
  13.      
  14.        
  15.        
  16.        
  17.     }function stay(){
  18.         document.getElementById('output').innerHTML="<font color=white>You stay. You wait 10 minutes and then you hear foot steps. The hatch opens and there stands a giant person wearing a cloak. You see they hold a switch-blade. Before you can react they pounce and kill you. <br><input type=button value=restart onclick=start()></font>";
  19.      
  20.        
  21.        
  22.        
  23.         }function l(){
  24.             document.getElementById('output').innerHTML="<font color=white>You hear footsteps coming in your direction. You estimate it will take 3 seconds for the person to see you. You<br><input type=button value=turn_around onclick=lea2()><input type=button value=Prepare_to_fight onclick=f()></font>";
  25.      
  26.    
  27.      t = setTimeout(late,3000);
  28.    
  29.     function late(){
  30.         document.getElementById('output').innerHTML="<font color=white>You take too long and when he sees you he throws a switchblade and it kills you.<br><input type=button value=restart onclick=start()></font>";
  31.    
  32.        
  33.        
  34.         }
  35.        
  36.        
  37.                
  38.                
  39.                 }function s(){
  40.                     document.getElementById('output').innerHTML="<font color=white>You see a coridor. You<font color=white><br><input type=button value=enter onclick=e()><input type=button value=turn_around onclick=lea2()></font>";
  41.                    
  42.                     }function lea2(){
  43.                         document.getElementById('output').innerHTML="<font color=white>You turn around and come back to the 3 way coridor room.You<br><input type=button value=Go_left onclick=l2()><input type=button value=Go_right onclick=r()><input type=button value=Go_straight onclick=s()></font>";
  44.      
  45.                         clearTimeout(t);
  46.                         }function l2(){
  47.                             document.getElementById('output').innerHTML="<font color=white>You walk in are are meeted by a 3 way pathway. You<br><input type=button value=Go_straight onclick=()><input type=button value= onclick=()><input type=button value= onclick=()><input type=button value= onclick=()></font>";
  48.                             }function e(){
  49.                         document.getElementById('output').innerHTML="<font color=white>You come into a Corridor. You<br><input type=button value=Go_right onclick=r2()><input type=button value=Go_straight onclick=s1()><input type=button value=Turn_around onclick=lea2()></font>";
  50.                                
  51.                             }function r2(){
  52.                                     document.getElementById('output').innerHTML="<font color=white>You walk in the Coridor and you hear a scream. You<br><input type=button value=Turn_around onclick=e()><input type=button value=go_in onclick=r2p()></font>";
  53.                            
  54.                                    
  55.                                     }function r2p(){
  56.                                         document.getElementById('output').innerHTML="<font color=white>You walk in and there is a huge person covered in blood. You start to back up but he notices you and before u know it, you dead.<br><input type=button value=restart onclick=start()></font>";
  57.                            
  58.                                        
  59.                                        
  60.                                         }function l3(){
  61.                                         document.getElementById('output').innerHTML="<font color=white>You go left and are meeted by a wall. You<br><input type=button value=Turn_around onclick=s1()></font>";
  62.                                        
  63.                                         }function s1(){
  64.                                           document.getElementById('output').innerHTML="<font color=white>You are meeted by a 3 way crossroad. You<br><input type=button value=Go_left onclick=l3()><input type=button value=Go_right onclick=r3()><input type=button value=Go_straight onclick=s3()><input type=button value=Turn_around onclick=e()></font>";
  65.                              
  66.                                             }function r3(){
  67.                                             document.getElementById('output').innerHTML="<font color=white>You walk in and are meeted my a 2 way crossroad. You<br><input type=button value=Go_straight onclick=s2()><input type=button value=Go_right onclick=r4()><input type=button value=Turn_around onclick=s1()></font>";    
  68.                                                
  69.                                                 }function s2(){
  70.                                                   document.getElementById('output').innerHTML="<font color=white>You walk straight and see a pile of mangled corpse.You turn around and see a giant man. He staps you until you die.<br><input type=button value=restart onclick=e()></font>";  
  71.                                                    
  72.                                                    
  73.                                                        
  74.                                                         }function r4(){
  75.                document.getElementById('output').innerHTML="<font color=white>You go right and are meeted by a wall. You<br><input type=button value=Turn_around onclick=r3()></font>";                                                
  76.                                                            
  77.                                                             }function s3(){
  78.     document.getElementById('output').innerHTML="<font color=white>You go straight and you see a skeliton. You<br><input type=button value=turn_around onclick=s1()><input type=button value=inspect onclick=ins()></font>";      }function ins(){
  79.        
  80.        
  81.         document.getElementById('output').innerHTML="<font color=white>You get up closer and see a glink in the rib-cage. You<br><input type=button value=Turn_around onclick=s1()><input type=button value=grab_it onclick=key()></font>";
  82.        
  83.        
  84.         }function key(){
  85.             document.getElementById('output').innerHTML="<font color=white>You reach in and grab what apears to be a key. You<br><input type=button value=turn_around onclick=s1()><input type=button value=inspect_it onclick=insk()></font>";
  86.            
  87.            
  88.            
  89.             }function insk(){
  90.                
  91.                
  92.                
  93.                
  94.                 }
  95.    
  96.    
  97.    
  98.    
  99.    
  100.    
  101.    
  102.     document.getElementById('output').innerHTML="<font color=white><br><input type=button value= onclick=()><input type=button value= onclick=()><input type=button value= onclick=()><input type=button value= onclick=()></font>";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement