The_Cat, on 28 June 2015 - 10:27 PM, said:
is this what you mean?
input = {
text="hello", --# String type (you need commas at the end of each time you set a variable)
isMale=true, --# Boolean type
age=20 --# Int type (last one doesn't need a comma :D/>/>/>/>/>)
}
print(input.text) --# Writes the text "hello"
print(input.age)
If not, heres a link to the Lua wiki (theres a lot more ways of using tables)
http://lua-users.org.../TablesTutorial
No, I Mean Something More Along The Lines Of This:
input = {a, b, c, d, e, f, g}
With Each Variable Being What The User Inputs, However I Dont Want To Type It Out, It Needs To Create It On Its Own
Edit: Thx For The Link To The Tutorial, Gonna Read It Now
Actually, Im Thinking Something Like This Might Work?
x = 1
while true do
input = {}
input[x] = read()
x + 1
end
Edited by theMCcm, 28 June 2015 - 10:50 PM.