i’m new to python and am trying to make a text-based RPG using VScode. I keep running into this bug and i’m not sure what is causing it, please help me :O Here is the code: and here’s what to enter to encounter the error: Right there, where it says [‘forest’], it should say [‘berry bushes’, ‘trees’], as it does
Tag: text-based
How can I add items and avoid duplicates to my inventory in a text based adventure game?
So I am trying to design a text based adventure game for one of my classes. I have the movement from room to room down, but have been struggling when it comes to getting items added to the inventory for the escape. At first when I tried to enter “get ‘item'” I was prompted with ‘invalid move’ which was happening
Python: How to end a while loop while it is running if the while condition changes during the loop?
I need some help with code in a text based game I am trying to make. My game uses health, and the code starts off with “while health>0:”, and in another point in the game, when health eventually =0, the loop still continues. How do I make the loop end when health=0, without finishing the whole loop. Here is an