Thread Tools Display Modes
03/20/14, 05:11 AM   #1
djmid
Join Date: Mar 2014
Posts: 4
Question 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!
  Reply With Quote
03/20/14, 05:18 AM   #2
Shinni
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 167
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"
  Reply With Quote
03/20/14, 01:52 PM   #3
djmid
Join Date: Mar 2014
Posts: 4
Lightbulb

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?
  Reply With Quote
03/21/14, 01:20 PM   #4
Lodur
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 108
"group1 .. group24" for larger groups.
  Reply With Quote
03/21/14, 07:15 PM   #5
Yssaril
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 2
Originally Posted by djmid View Post
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
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » API unitTag explain


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