Don't even ask me what that title is. I don't know what to call this.
You know how normal dictionaries work, right?
MyDictionary = {
['Setting1'] = "setting1"
}
and on and on.. but how do these 'user-defined' arrays/tables work? How would a script detect them? Let me take an example from the EISS Settings, in which you can define group ranks for certain types of admin and such:
['Ranks'] = {
{Group=124324,Rank=142,Type='Mod'},
{Group=1932348,Rank='Generals',Type='Owner'},
{Group=1284124,Rank=-193,Type='Admin'},
{Group=1399424,Rank=-1,Type='Banned'}
};
That's the example from it. Essentially, this 'Ranks' setting in the Settings has it's own subdictionary/array/whatever. You can keep adding {Group=,Rank=,Type=} forever. Can I get an example to use for this, specifically with a dictionary?
Like the scenario posted, you can keep adding these rank/group admin things into this 'Ranks' section without having to change the script that controls this. How would I refer back to things like 'Rank', 'Group', or 'Type'? Please explain in-depth if you can. This is boggling me. I don't even know the word to search when looking for an answer for this.
I'm taking a wild guess it might have to do with metatables/metamethods.
For the simplest explanation somebody could provide, maybe a thing like this that could add a textbutton? Like this:
['Buttons'] = {
{Name="Textbox1",Font="SourceSans",FontSize=24},
{Name="Textbox2",Font="SourceSansBold",FontSize=36}
}
Maybe with each of these textbuttons defined, it could move it down? Please make this realistic.

2 comments
Can you better explain line 21?
Edited