should i use get_instance_id to save game?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Asasma_Sei

I’m working on an RPG game
and I need to save some data in the game,
like a healing potion, I don’t want player can get a lot of them through save and load game many times.

should I use get_instance_id to save these data,
or I need to number them my self?

:bust_in_silhouette: Reply From: volzhs

the instance id is generated on runtime.
so it does not guarantee that you can get the same id.
you need to make your own id for save and restore of your game data.