generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Dictionary and DataStore question.

Previous Thread :: Next Thread 
ITBV is not online. 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 is not online. 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
DoNotReadThisNamePlz is not online. DoNotReadThisNamePlz
Joined: 01 Aug 2014
Total Posts: 679
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 is not online. Notwal
Joined: 31 Dec 2014
Total Posts: 915
15 Jan 2017 10:48 AM
Don't do that ^


Report Abuse
DoNotReadThisNamePlz is not online. DoNotReadThisNamePlz
Joined: 01 Aug 2014
Total Posts: 679
15 Jan 2017 10:49 AM
Wait, I'm thinking about the wrong language.
Yes, DEFINITELY don't do that xD
Report Abuse
ITBV is not online. ITBV
Joined: 27 Dec 2013
Total Posts: 954
15 Jan 2017 10:53 AM
Sweet thanks guys!

:D


Report Abuse
WoolHat is online. 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
DoNotReadThisNamePlz is not online. DoNotReadThisNamePlz
Joined: 01 Aug 2014
Total Posts: 679
15 Jan 2017 10:58 AM
Often, plus it can get messy. And often people do it completely wrong.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image