Solarus-Games English Forum

Solarus => Development => Topic started by: Zefk on October 09, 2016, 08:00:03 AM

Title: [Solved]Question for multiple string names?
Post by: Zefk 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.