|Topic was automatically imported from the old Question2Answer platform.
I am making a game in which there are items, and in order to make it simpler to develop I made a plugin for creating items, in which you give it a name, description, and image, and then assign it an ID, which you can pass to different objects in the world as a reference to an object with that name, description, and image (I have an item.gd script so I can have things like
var item = preload("res://item.gd").new(image, title, description))
My current approach is basically creating a dictionary containing the IDs as keys for the actual item reference, the problem of course is that I want it to be permanent even when you close the editor or game. How can I do that? (Hopefully I don’t need to save the items as files for later access).
Thanks in advance.