Currently, I have a script to return a table of information from an equipment database, returning lines like:
The way I set it up is by iterating through db:rows() and using table.insert in the following manner:
And it works perfectly. However, now I'm finding that I want to add a hyperlink to the third column, the eqid, and I'm unsure how to do that. To be clear, I want only the id to be hyperlinked, not the entire row.
Is there a way I can possibly do this? What will I have to rewrite, or how should I rewrite it, to get it to do what I want?
Thank you, as always!
My awesome sword 1 123456
The way I set it up is by iterating through db:rows() and using table.insert in the following manner:
for a in eqdb:rows() do
local eqname, eqlvl, eqid = a[1], a[2], a[3]
results = {"green", "", eqname .. string.rep(" ", 20-#eqname), "yellow", "", eqlvl .. string.rep(" ", 5-#tostring("eqlvl"), "magenta", "", eqid}
end
for _,v in ipairs(results) do
ColourNote(unpack(v))
end
And it works perfectly. However, now I'm finding that I want to add a hyperlink to the third column, the eqid, and I'm unsure how to do that. To be clear, I want only the id to be hyperlinked, not the entire row.
Is there a way I can possibly do this? What will I have to rewrite, or how should I rewrite it, to get it to do what I want?
Thank you, as always!