switch(input("Welcome to my shop,what would you like to buy?") in list ("Healing powder : 50","Cobweb : 100","Healing leaf : 200","Water of life : 400"))
And make it so that I use some sort of a list. What I actually wanna do is to have it show some basic items to buy and that later on you can unlock some and that they just appear there, Is that possible? (And I know I could make it with a bajilion "If" statements but is there any easier way? like just using a list for it all and add the unlocked stuff to it?)
This way has a lot of overhead and makes the assumption that all shops will sell the same items (if it did not make that assumption, then the extra item list may have to be split into many extra item lists to account for individual shops. I won't put that code here, but if you want it, I can.)
Another way is to have the NPC run a check on the person's level and add items accordingly.
The reason paths are necessary in this example is because I am relying on the object's variables that are coded in. It is possible to pre-define these lists as a global list (if you desire)
I would go with this way. If there is a better way, someone else will have to explain it.