Author Topic: [Solved]Question for multiple string names?  (Read 2800 times)

0 Members and 1 Guest are viewing this topic.

Zefk

  • Hero Member
  • *****
  • Posts: 535
  • Just helping Solarus
    • View Profile
    • Zefk Design
[Solved]Question for multiple string names?
« on: October 09, 2016, 08:00:03 AM »
My text box passes the char to a table.

Code: ( lua) [Select]
local text_box = {
       char={}
}

char = "1"
table.insert(text_box.char,char)

print("Char is:", table.concat(text_box.char))

name = table.concat(text_box.char)

print("His name is:", name)

This works, but how can I pass a different string to more than one person? Would I have to make more tables?

EX:
Code: ( lua) [Select]
local text_box = {
       char= {}
       char2={}
}

I solved this and will post a link to my textbox script later.