Thread Tools Display Modes
12/26/19, 04:13 AM   #1
Scootworks
 
Scootworks's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2014
Posts: 312
[open] GetUnitBuffInfo <-> GetAbilityBuffType

Figured out an inconsistency of two parameters. One is a string, the other a number:

- correct buffType
GetAbilityBuffType(number abilityId)
Returns: number BuffType buffType

- wrong buffType
GetUnitBuffInfo(string unitTag, number buffIndex)
Returns: string buffName, number timeStarted, number timeEnding, number buffSlot, number stackCount, textureName iconFilename, string buffType, number BuffEffectType effectType, number AbilityType abilityType, number StatusEffectType statusEffectType, number abilityId, boolean canClickOff, boolean castByPlayer

Ticket# 191226-000671

Last edited by Scootworks : 06/15/20 at 08:39 AM.
  Reply With Quote
04/25/21, 03:42 AM   #2
Scootworks
 
Scootworks's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2014
Posts: 312
@Dan, still not fixed ;-)
  Reply With Quote
04/26/21, 02:41 PM   #3
ZOS_DanBatson
ZOS Staff!
 
ZOS_DanBatson's Avatar
Yes this person is from ZeniMax!
Join Date: Jul 2015
Posts: 171
You'd think that'd be an easy fix, but actually it's not. GetUnitBuffInfo's buffType return is poorly named. It's not the BuffType, it's really just whether or not the buff is active, kind of. It's a debug return that's only used in debug code (which is the primary reason it's hard for me to just "fix it."). GetUnitBuffInfo does not currently have anything attempting to return the actual legit BuffType. I could potentially add a new return at the end that it the actual BuffType, if that's desirable, and rename the existing one to something else in the API.
  Reply With Quote
05/15/21, 09:24 AM   #4
Scootworks
 
Scootworks's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2014
Posts: 312
got it, thanks.a new return would be nice
  Reply With Quote

ESOUI » Developer Discussions » Bug Reports » [open] GetUnitBuffInfo <-> GetAbilityBuffType

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