at present I have a table which if I do
display(curing) it shows like
{
"apply epidermal to torso",
"smoke valerian"
}
and if I do
for name, aff in pairs(curing) do
send(aff.."###")
end
its sending each on its own line like
apply epidermal to torso###
smoke valerian###
how can I make it so it sends it like
apply epidermal to torso###smoke valerian###
or, isn't that doable?
table output
-
- Posts: 334
- Joined: Thu Mar 05, 2015 2:53 am
Re: table output
I'd assume you'd do something like:
local temp=""
for name, aff in pairs(curing) do
temp = temp .. aff .. "###"
end
if temp ~= "" then
send(temp)
end
local temp=""
for name, aff in pairs(curing) do
temp = temp .. aff .. "###"
end
if temp ~= "" then
send(temp)
end
Re: table output
but wont that send TEMP over and over again even if nothing is in it?
-
- Posts: 334
- Joined: Thu Mar 05, 2015 2:53 am
Re: table output
If nothing is in temp, it's going to equal ""
The if command prior to the send checks for that.
The if command prior to the send checks for that.
Re: table output
Sorry I read it wrong .. (too many pain killers)
I was thinking the TEMP was CURING.. all working Thanks!
Now to try make it more 'prettier' for what its purpose iss
I was thinking the TEMP was CURING.. all working Thanks!
Now to try make it more 'prettier' for what its purpose iss