View Single Post
02/04/18, 03:58 PM   #8
ArtOfShred
 
ArtOfShred's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2016
Posts: 103
You can technically do this already by creating a string table and concatenating it.

For context use:
https://wiki.esoui.com/ZO_LinkHandle...ITEM_LINK_TYPE
and with an existing itemLink: local parts = {ZO_LinkHandler_ParseLink(itemLink)} d(parts)

Code:
function MyAddon.GenerateItemLink(stringVar1, stringVar2, ...)

parts = {
[1] = stringVar1
[2] = stringVar2
-- etc for each value...
 }

parts = table.concat(parts, ":"):sub(2, -1)
itemLink = strformat("|H<<1>>|h|h", parts)

return itemLink

end
Little heavy handed compared to potentially having a function to input only necessary values but it does get the job done.

Last edited by ArtOfShred : 02/04/18 at 04:13 PM.