Jump to content

Issue


FlyingSpoon

Recommended Posts

Posted

So how would I go about making a unique index for all my 9 elements, e.g.

local arenas = {
  {"Arena1"},
  {"Arena2"},
  {"Arena3"},
  {"Arena4"},
  ...
}

for i, v in ipairs(arenas) do
  uniqueValue?? = createElement(...)
end

 

Posted
local arenas = {
	{"Arena1"},
	{"Arena2"},
	{"Arena3"},
	{"Arena4"},
}

for i, v in ipairs(arenas) do
	arenas[i]["Element"] = createElement(...)
end

Try it like this.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...