ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   API unitTag explain (https://www.esoui.com/forums/showthread.php?t=329)

djmid 03/20/14 05:11 AM

API unitTag explain
 
Hello I'm trying to create a simple addon that will show the player on-going buffs.

I found this api function: GetUnitBuffInfo(string unitTag, luaindex buffIndex)

And I wanted to ask if someone can explain what unitTag is supposed to be? And more importantly how can I call the "player" object as a unitTag.

Thanks in advance!

Shinni 03/20/14 05:18 AM

unitTag is a string:
"player" -you
"reticleover" -your target
"reticleovertarget" - target of your target
"group1" ... "group4" -other group members


However they recently changed the API so GetUnitBuffInfo will only work on "player"

djmid 03/20/14 01:52 PM

Thanks for the explanation, and for the several "bagId" that I see is there a default like bag0 that is referencing the player default bag?

Lodur 03/21/14 01:20 PM

"group1 .. group24" for larger groups.

Yssaril 03/21/14 07:15 PM

Quote:

Originally Posted by djmid (Post 1524)
Thanks for the explanation, and for the several "bagId" that I see is there a default like bag0 that is referencing the player default bag?

bagId: 0 are your equipped items (the slot numbers for this are weird but you can reference the slots via the global variables: http://wiki.esoui.com/Globals#EquipSlot)

bagId: 1 is your actual bag


All times are GMT -6. The time now is 08:14 PM.

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