I'm trying to organise a drop system for mining in a text based rpg i'm creating with python, the idea is basically once you destroy a rock you have a chance of getting loot, the problem is i need some way of making a string into a variable then being able to print the string to say something like "You now have 2 Stone" this is what I have so far:
stone = 1
drops = ["stone","none"]
drop1 = random.choice(drops)
if drop1 == "none":
print("You get nothing")
else:
drop1 = eval(drop1 + 1)
print("You now have",eval(drop1)," "+drop1)