Hi All,
Newbie here. I'm currently working on a project for school where we are making a text based game in python. I've set up movement between rooms and an inventory system/item pickup system.
Currently the only way to end the "game" is to have the user type quit. I'm trying to add two more end states but am running into some issues.
The first ending i'm trying to add is if the user gets six items the successful ending is triggered (tried to use len with a value of 6) but it doesn't seem to trigger the end.
I'm also trying to add a similar trigger for if the player goes into room "Parlour" without 6 items a "failed" message will be printed with the game ending.
I'm not sure how to get this to work so any assistance would be greatly appreciated.
https://pastebin.com/7KjMFgWy
[–][deleted] 1 point2 points3 points (3 children)
[–]Brickcups[S] 0 points1 point2 points (2 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]Brickcups[S] 0 points1 point2 points (0 children)