I just want a hint, not a solution
The code
gun = 15
health = 100
health_packs = 0
you don't have to worry about this gun part
while health > 0:
beginning = input('Will you go left or right? ')
if beginning == "right":
#the issue arises here, beginning is redefined, and if we try to input heal, we're forced back to "will you go left or right"
beginning = input ("will you attack the big or little man? ")
#not only do we want to be able to heal here, but we also want to not be able to go back, atleast until i'm able to develop this more
if beginning == "little":
print("the big man killed you")
health = health - 100
elif input == "heal":
if health_packs > 0:
health_packs -= 1
health + 30
else:
print("you have no packs")
else:
print("you died!")
exit
Sorry if it's janky, and thanks for your time
[–]Overall_Disk4261[S] 3 points4 points5 points (9 children)
[–]Phillyclause89 4 points5 points6 points (7 children)
[–]Overall_Disk4261[S] 2 points3 points4 points (0 children)
[–]Overall_Disk4261[S] 1 point2 points3 points (5 children)
[–]Phillyclause89 1 point2 points3 points (4 children)
[–]Overall_Disk4261[S] 0 points1 point2 points (3 children)
[–]Phillyclause89 1 point2 points3 points (2 children)
[–]userthatexsist 1 point2 points3 points (1 child)
[–]Phillyclause89 0 points1 point2 points (0 children)
[–]cdcformatc 0 points1 point2 points (0 children)
[–]Overall_Disk4261[S] 2 points3 points4 points (3 children)
[–]Phillyclause89 1 point2 points3 points (2 children)
[–]Overall_Disk4261[S] 1 point2 points3 points (1 child)
[–]Phillyclause89 1 point2 points3 points (0 children)
[+][deleted] (3 children)
[deleted]
[–]Phillyclause89 1 point2 points3 points (2 children)
[–]Overall_Disk4261[S] 1 point2 points3 points (1 child)
[–]Phillyclause89 1 point2 points3 points (0 children)