ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Lua/XML Help (https://www.esoui.com/forums/forumdisplay.php?f=175)
-   -   Collectibles, use them / triggers (https://www.esoui.com/forums/showthread.php?t=10465)

Mouton 02/25/23 06:04 AM

Collectibles, use them / triggers
 
Hi there !

I'm not much into asking help usually (yeah, bad habit, but I like to explore code by myself) but I'm looking into the collectible use actions.

I'm trying to find a way to catch all memento usage, reliably, basically to know which memento was activated.

The event EVENT_COLLECTIBLE_USE_RESULT does not hold any information on the collectible that was used. So my idea was to catch the collectible execution itself (likely, mementos still).

I used/overwritten the following but they are only fired when using a memento from the inventory.
Code:

function ZO_CollectibleData:Use(actorCategory)
and
Code:

function UseCollectible(collectibleId, actorCategory)
I'm now trying to find a better solution or catch the quickslots / quick wheel as well. I could catch the QuickslotActionButton:OnRelease() eventually but I did not find my way to the dedicated memento action/quickslot wheel execution as QuickslotActionButton:OnRelease is not fired there.

I got deep in the code, but API function that could help are restricted.
If anyone have some ideas where to find that ?


All times are GMT -6. The time now is 03:57 PM.

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