I'm making a game where you take care of a duck, and I want to make it so that when you return to the menu, you can select one of your ducks and it will load that duck with the same stats as when you left it. The 3 variables I need to save are name, hunger, and anger.
Here is the code for the menu screen and play screen
Menu:
You are reusing the same text value as a tag for each duck's attributes. They should be stored under their names as tags.
Either learn how to store a dictionary under each duck name with your two attributes, or keep multiple TinyDbs with different NameSpaces, one Namespace per attribute (hunger/anger/other stat...) and use the duck name as the tag in each TinyDb.