ITBV
|
  |
| Joined: 27 Dec 2013 |
| Total Posts: 954 |
|
|
| 15 Jan 2017 10:45 AM |
Ok I'm still not an expert in scripting, but I know some things and I'm still learning others (Which the order I'm learning them doesn't really make much sense but ohwell).
So my question is; Is it possible to put a Dictionary within a dictionary, and how would I index it - especially if I was trying to use it in a DataStore.
|
|
|
| Report Abuse |
|
|
Notwal
|
  |
| Joined: 31 Dec 2014 |
| Total Posts: 915 |
|
|
| 15 Jan 2017 10:46 AM |
local t = { [1] = 6; [2] = { [1] = "wooohooo"; }; [3] = 7; }
print(t[2][1])
|
|
|
| Report Abuse |
|
|
|
| 15 Jan 2017 10:47 AM |
It is possible, very much so. If I were you, I'd bunch everything up into a string, using different symbols to split the sections, and then when needed, split up the string back into the dictionaries. |
|
|
| Report Abuse |
|
|
Notwal
|
  |
| Joined: 31 Dec 2014 |
| Total Posts: 915 |
|
| |
|
|
| 15 Jan 2017 10:49 AM |
Wait, I'm thinking about the wrong language. Yes, DEFINITELY don't do that xD |
|
|
| Report Abuse |
|
|
ITBV
|
  |
| Joined: 27 Dec 2013 |
| Total Posts: 954 |
|
| |
|
WoolHat
|
  |
| Joined: 19 May 2013 |
| Total Posts: 1873 |
|
|
| 15 Jan 2017 10:55 AM |
| I'm confused as to why that's such a heavy "nope". String length limit? |
|
|
| Report Abuse |
|
|
|
| 15 Jan 2017 10:58 AM |
| Often, plus it can get messy. And often people do it completely wrong. |
|
|
| Report Abuse |
|
|