So I wanted to know if this is possible with a table:
Multiple values for a specific slot.
2 Likes
["Dependance"] = {"UpgradeMine", "Conveyor1"}
4 Likes
thx, that was easier than I thought
1 Like
One question, how do I reach to one of the two values?
you’d set a key value for each item like this for example:
["Dependance"] = {
["Key1"] = "UpgradeMine",
["Key2"] = "Conveyor1"}
And then
StarterDropper.Dependance.Key1
-> UpgradeMine
OR
StarterDropper.Dependance["Key1"]
-> UpgradeMine
So that would basically work like a sub-table.
1 Like
Dependance[1]
or Dependance[2]
1 Like
Yeah it’s a dictionary nested in another dictionary
Or you can do what @MrOnlyKemal said and you wouldn’t have to assign keys
This is really useful! Thanks a lot
2 Likes
Thank you aswell! I really needed that refresher lol
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.