Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How Do You Save Unknown Objects Using Data Stores?

Asked by 8 years ago

I am scripting an RPG game that my friends are making and I made the inventory system and quest system, but I don't know how I would save the individual quest folder, tools, and their contents if I don't exactly know what they are at a given time. How would I save them using data stores?

1 answer

Log in to vote
0
Answered by 8 years ago

Serialize

Using a combination of GetChildren and an understanding of your structure, you should be able to store everything into tables. You won't be able to store the actual Instances however, so what you'll have to do instead is save something which your game understands that describes the item you're trying to save.

Saving the item name and its stats are always a good start.

Ad

Answer this question