Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Execute Lua Online

print ('What is your name sir?')
    
    name = io.read()
    
    print ('Welcome to the Ride ' ,name)
    
    print ('                                                                                                                                                                                                        ')
    print ('Do you want to join us on our Journey to Assention?')
     print ('                                                                                                                                                                                                        ')
    
    choice1 = io.read() 
    

    if choice1 ==yes then
         print ('                                                                                                                                                                                                        ')
        print ('That is good to hear!!!')
        
        else 
             print ('                                                                                                                                                                                                        ')
            print ('Trust me, it will be tons of fun!')
            
            end
            
            choice2 = io.read() 
             print ('                                                                                                                                                                                                        ')
        print ('Come on it will be heaps of fun dude, just trust me',name )
        
        if choice2 == Yes then
             print ('                                                                                                                                                                                                        ')
            print ('That is good to hear!!!')
            
            else  print ('                                                                                                                                                                                                        ')
                print ('You really have no choice. Sorry I had to do this but the fate of the cult depends on this')
                 print ('                                                                                                                                                                                                        ')
                
                print ('You are hit by the speaker and slump into sleep')
                end
                
                strike = 0
                
                strike = strike +1 
                
            print ('You wake up in a dark, rank building. You have never seen this place before and you hear the maddened raving of crazy people It looks abandoned and un used for a long time')
             print ('                                                                                                                                                                                                        ')
             print ('If you want to get up, type 1 , to play dead, type 2 , to make like a tree and leave, press 3') 
                
                choice3 = io.read("*n") 
                
                if choice3 == 1 then 
                    print (" You get up and stagger over to the door of the building. You see flickering shadows of what seem to be dancing humanoids, mabye you can figure out what happened from them?")
                 print ('                                                                                                                                                                                                        ')
                 end
                
                if choice3 == 2 then 
                    
                    print ('You lie down, waiting, and hoping for someone to find you. It is very wet and under further observation you see that your fore-arms are red. People died here')
                     print ('                                                                                                                                                                                                        ')
                     end
                     
                     
                     if choice3 == 3 then
                         
                         print ('You leap up and sprint over to the broken window. You hear the panicked shouts of people, you cut your arms trying to bust through the glass and you feel something sharp stab you in your back. A thin, frail man with insantiy in his eyes stabs you. You feel yourself getting weaker as you slump down onto the floor')
                         
                          print ('                                                                                                                                                                                                        ') 
                         
                          print ('You died!')
                         
                         end
                          
                          cultpan = 0
                          cultpan = cultpan + 1
                          
                          choice4 = io.read()
                          
                          
                          
                          

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.