ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   How to know if skillslot is avaliable ? (https://www.esoui.com/forums/showthread.php?t=8880)

CorpDady 12/05/19 12:01 PM

How to know if skillslot is avaliable ?
 
Hi everyone,

I have a little question

How to know if one skill are available

Sample, one Necromancer cant cast mystic siphon, if corpse when not avaible

i have not found function for detect that by using slotNum values

Baertram 12/05/19 04:09 PM

Maybe this works:
Code:

* IsSlotUsed(*luaindex* _actionSlotIndex_)
** _Returns:_ *bool* _used_

* GetSlotCooldownInfo(*luaindex* _actionSlotIndex_)
** _Returns:_ *integer* _remain_, *integer* _duration_, *bool* _global_, *[ActionBarSlotType|#ActionBarSlotType]* _globalSlotType_

* IsSlotUsable(*luaindex* _actionSlotIndex_)
** _Returns:_ *bool* _useable_

Taken from this thread's attached esoui documentation p24-3.txt
https://www.esoui.com/forums/showthread.php?t=8759

Download link:
https://www.esoui.com/forums/attachm...9&d=1571694949

CorpDady 12/07/19 05:25 AM

thx a lot for the doc link

i have used HasRangeFailure for detect if i can launch mystic siphon

this thread is solved


All times are GMT -6. The time now is 06:57 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI