You are on page 1of 1

from time import sleep

lines = [ ["You awaken in a dark chamber.","The splitting pain in your head make
s you feel weak.","You somehow stand up.","Your right leg is bleeding through yo
ur pants","[dec]Better patch it up fast. \n\t\t1:NOW\t\t2:LATER","[l2]No! Must p
atch it up now or the bleeding will get worse!","[l1]This might hurt...[slp]",".
..","Done."] ]
scene = 0
#---------------------------------------------------------------------------def clrscr():
print "\n"*100
def start_scr():
clrscr()
intro_text = ['\n']*2 + ['\t\t\takabahayato presents..'] + ["\n"]*5;
for i in intro_text:
print i
#sleep(1)
raw_input("\t\t\tpress any key to start")
sleep(0.3)
clrscr()
story()
def story():
for i in lines[scene]:
if "[d" in i :
dec = raw_input(i.strip("[dec]")+"\nWhat will you do?\n"
)
#print "dec = %s" % dec
r = linker(dec)
if r==0: break
elif "[l" in i:
pass
else:
print i.strip("[slp]")
def linker(l):
found_l = False
for i in lines[scene]:
#print "[l%s]" % l,i
#print ("[l%s]" % l) in i
if "[l"+l in i:
print "\n"+i.split("]")[1].strip("[slp]")
found_l = True
break
if found_l == False:
print "Invalid input, nitwit."
return 0
#---------------------------------------------------------------------------start_scr()