View Single Post
02/17/23, 03:02 AM   #14
Matoro342
Join Date: Feb 2023
Posts: 9
Here's something I've tried. Not sure if it exposes a bug in the API?

Lua Code:
  1. local itemStyleId = GetOutfitStyleItemStyleId(outfitStyleId)
  2. self:AddLine("itemStyleId " .. itemStyleId) -- Always 0???
  3. self:AddLine(collectibleName .. " red glo 1")
  4. --local outfitStyleName = GetOutfitStyleNameById(outfitStyleId)
  5. self:AddLine(outfitStyleName)
  6. local collectibleItemStyleId = GetOutfitStyleItemStyleId(GetCollectibleReferenceId(3654))
  7. -- Redguard Gloves 1 collectibleId used here for testing. This is how Zenimax does it themselves, "self.outfitStyleItemStyleId = GetOutfitStyleItemStyleId(self.referenceId)" in collectibledatamanager.lua
  8. local match = ""
  9. if itemStyleId == collectibleItemStyleId then
  10.     match = "Yes" -- This is what it always returns. Both are always zero. Why? Idk.
  11. else match = "Nope lol" end
  12. self:AddLine(match)

I would have though that CollectibleData.outfitStyleItemStyleId would have some use not being zero all the time. But since outfits don't interact with item data, what is the use? Where is the actual collectible information coming from that tells it what outfitStyleId to use? I am flabbergasted.

At this point I'm about to try comparing the icon paths and matching them that way. I am stumped!

By the way, does anyone know where to post to request features for the API? The official ESO forums doesn't seem to have a specific category. I am a simple human, I just want GetCollectibleOutfitStyleId().
  Reply With Quote