Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Code help
#1
Hi.
I am programing an RPG and I have run into a simple yet strange problem (At least to me)

When the user is asked to wake up or not, I used this code:
wake = False

while wake == False:
   if actionWake1 == "Wake" or actionWake1 == "wake" or actionWake1 == "WAKE":
       print ("Your eyes flutter as they slowly open to see a bright light.....")
       break
   else:
       print ("You cannot do that currently")
       wake = False
However, the else just repeats "You cannot do that currently" infinitly....
A little help please?
Reply


Messages In This Thread
Code help - by YevesDraco - Feb-21-2017, 08:47 PM
RE: Code help - by micseydel - Feb-21-2017, 09:02 PM
RE: Code help - by YevesDraco - Feb-21-2017, 09:15 PM
RE: Code help - by micseydel - Feb-21-2017, 09:17 PM
RE: Code help - by YevesDraco - Feb-22-2017, 09:23 AM
RE: Code help - by wavic - Feb-21-2017, 10:13 PM
RE: Code help - by YevesDraco - Feb-21-2017, 10:55 PM
RE: Code help - by wavic - Feb-21-2017, 10:59 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020