In my inventory system, I have a toolbelt and an inventory seperately. They work pretty much the same, except for a few minor changes. I decided to add them both in the same script for convenience.
So right now, I have this code:
export var inventory = Array() setget set_inventory, get_inventory
export var toolbelt = Array() setget set_toolbelt, get_toolbelt
This will first output the following below.
Which of course is incorrect, as both log the same thing. If I remove the
export in front of both variables, it does work. But from my testing, the method
ResourceSaver.save, which I use to save the inventory, only seems to save exported members.
How can I fix this issue?