I'm trying to update path in path 3 to 2 so it prints path 2 but it won't work. Is there anyway I can fix this?
def direction():
time.sleep(0.3)
print("=====================================================================")
time.sleep(0.3)
print("You look around")
time.sleep(0.3)
print("1 or 2?")
while path == 2:
print("Other path")
while path == 3:
print("=====================================================================")
time.sleep(0.3)
print("You look down to see a bunch of tools scattered around on the floor.")
press_enter()
time.sleep(0.3)
print("1. Look through tools")
time.sleep(0.3)
print("2. Go back")
tools = int(input("Which way should you look? (1/2) - "))
if tools == 1:
if screwdriver == 1:
time.sleep(0.3)
print("After searching through the tools you find a decent screwdriver.")
screwdriver = 2
direction()
path = int(input("Which way should you look? (1/2/3/4) - "))
elif screwdriver == 2 or 3:
time.sleep(0.3)
print("There are no other tools in usable conditions.")
direction()
path = int(input("Which way should you look? (1/2/3/4) - "))
if tools == 2:
direction()
path = int(input("Which way should you look? (1/2/3/4) - "))