Thread Tools Display Modes
02/25/23, 06:04 AM   #1
Mouton
 
Mouton's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2018
Posts: 9
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 ?
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Collectibles, use them / triggers

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off