ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   How to get item description? (https://www.esoui.com/forums/showthread.php?t=8764)

cloudor 09/21/19 08:01 AM

How to get item description?
 
I want to retrieve time info from quick slot potion, not its cooldown info, but its effects time info. I can get item link by GetSlotItemLink(GetCurrentQuickslot()), but can't find any api to get its description. Please help.

Thank you.

Kyoma 09/21/19 08:58 AM

Quote:

Originally Posted by cloudor (Post 39209)
I want to retrieve time info from quick slot potion, not its cooldown info, but its effects time info. I can get item link by GetSlotItemLink(GetCurrentQuickslot()), but can't find any api to get its description. Please help.

Thank you.

You'll want either GetItemLinkOnUseAbilityInfo or GetItemLinkTraitOnUseAbilityInfo. For the latter a loop like this is needed I think:
Code:

for i = 1, GetMaxTraits() do
        local hasTraitAbility, traitAbilityDescription, traitCooldown, traitHasScaling, traitMinLevel, traitMaxLevel, traitIsChampionPoints = GetItemLinkTraitOnUseAbilityInfo(itemLink, i)
        if hasTraitAbility then
                ...
        end
end


cloudor 09/25/19 08:35 AM

Quote:

Originally Posted by Kyoma (Post 39210)
You'll want either GetItemLinkOnUseAbilityInfo or GetItemLinkTraitOnUseAbilityInfo. For the latter a loop like this is needed I think:
Code:

for i = 1, GetMaxTraits() do
        local hasTraitAbility, traitAbilityDescription, traitCooldown, traitHasScaling, traitMinLevel, traitMaxLevel, traitIsChampionPoints = GetItemLinkTraitOnUseAbilityInfo(itemLink, i)
        if hasTraitAbility then
                ...
        end
end


That's it. Thank you very much!


All times are GMT -6. The time now is 04:42 AM.

vBulletin © 2019, Jelsoft Enterprises Ltd
© 2014 - 2019 MMOUI