dimanche 30 octobre 2016

If Loop Not Working

So I can't seem to find out what is wrong with my code, Its good, i checked but it seems not to work. everything left out of what is shown is correct because i tested it before, so, well, here's my code...

1 = Stay 2 = Go 3 = South ''') while True: choice = raw_input("->") if choice == 1: time.sleep (2.5) '<' + str(Pname) + '> Lets Stay Here For Tonight' time.sleep (2.5) '<' + str(NPCChester) + '> But we have no other choice, we have nothing so we have to go out and find stuff as fast as possable!' time.sleep (2.5) '<' + str(NPCAnnabeth) + '> On the other hand, we have nothing so we should play it safe right?' time.sleep (2.5) '<' + str(NPCChester) + 'Fine...' time.sleep (2.5) break elif choice == 2: '<' + str(Pname) + '> Well, Lets Just Go' time.sleep (2.5) '<' + str(Pname) + "> But we should play it safe right after we lost everything because we're not prepared right?" time.sleep (2.5) break elif choice == 3: '<' + str(Pname) + '> How About We Go South' time.sleep (2.5) '<' + str(NPCAnnabeth) + "> But we're still going some where anyways I want to stay" time.sleep (2.5) '<' + str(NPCChester) + "well, we have tot go soo" break else: print "That Is Not A Choice" continue

Aucun commentaire:

Enregistrer un commentaire