I'm trying to insert a string that I need to adjust before entering.
I read lue table details and help for lua tables and searched forum...
When I do it this way
it works. But I don't want to use another variable and I think it must work the first way... somehow
%1 is amulet aardwolf |
t = {}
table.insert(t, "string.gsub("%1","( +)|","")")
I get error
[string "Trigger: "]:2: ')' expected near 'amulet'
I read lue table details and help for lua tables and searched forum...
When I do it this way
%1 is amulet aardwolf |
aaa = string.gsub("%1","( +)|","")
t = {}
table.insert(t, "aaa")
it works. But I don't want to use another variable and I think it must work the first way... somehow