1
2
3
4
5
6
7
2
3
4
5
6
7
PlayerBasicStats = {
Mora = 24,
Inventory = {},
Number = 1322,
String = "String",
Table = {1,{s}},
}
1
2
3
4
2
3
4
Player = {
Mora = 24,
Inventory = {},
}
1
2
2
if not Player[id].Number then
Player[id].Number = 1322
It required because anytime I add new items in
PlayerBasicStats, the player that already has a save file wouldn't have these and I need to delete saves to load all items from
PlayerBasicStats, so I need them to be inserted, if player has no values.
Any ideas?
Well, Idk if I explained it good enough to understand, but if You have a questions ask.
edited 1×, last 01.06.22 09:06:58 am