|
| 21 Jun 2016 01:18 PM |
| would I put the backpack contents in a table, and save that table in another table with other items? |
|
|
| Report Abuse |
|
DevVince
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 9245 |
|
|
| 21 Jun 2016 01:19 PM |
Yes you could.
You could set it up like this:
data = { Stats = {} Invy = {} RandomStuff = {} }
Then save data and load it from that array setup. |
|
|
| Report Abuse |
|
|
| 21 Jun 2016 01:23 PM |
I'm assuming that you mean with a datastore. If that is the case, create an array with all the possible tools that your game has. Then, make sure that once a while or manually, you convert their backpack's content into an array of the tool's IDs from the array previously stated. Make sure you also save when PlayerRemoving. After they have been converted, store it into a data table.
So yeah, you have the right idea.
public static void main(String[] args) { System.out.println("Oops! Wrong language."); } |
|
|
| Report Abuse |
|