Thread Tools Display Modes
04/20/15, 02:28 PM   #1
@AlphaLemming
 
@AlphaLemming's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 122
Post Dwemer Styles identificated incorrect

Hallo,

anyone who knows whats wrong with this ID's? I get them from the WIKI values in that order
but if requested, it returns not the correct value. As reported it returns Bows instead of Helmet
and so on. Whats the correct order?

GetAchievementCriterion(1144,id)

1 [ITEM_STYLE_CHAPTER_HELMETS]
2 [ITEM_STYLE_CHAPTER_GLOVES]
3 [ITEM_STYLE_CHAPTER_BOOTS]
4 [ITEM_STYLE_CHAPTER_LEGS]
5 [ITEM_STYLE_CHAPTER_CHESTS]
6 [ITEM_STYLE_CHAPTER_BELTS]
7 [ITEM_STYLE_CHAPTER_SHOULDERS]
8 [ITEM_STYLE_CHAPTER_SWORDS]
9 [ITEM_STYLE_CHAPTER_MACES]
10 [ITEM_STYLE_CHAPTER_AXES]
11 [ITEM_STYLE_CHAPTER_DAGGERS]
12 [ITEM_STYLE_CHAPTER_STAVES]
13 [ITEM_STYLE_CHAPTER_SHIELDS]
14 [ITEM_STYLE_CHAPTER_BOWS]
  Reply With Quote
04/20/15, 04:11 PM   #2
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Enumeration of items styles has nothing to do with achievements, so it won't return expected result.

In the Dwemer Style Master achievement are chapters listed alphabetically (at least in English):

1. Learn the Dwemer Style for Axes
2. Learn the Dwemer Style for Belts
3. Learn the Dwemer Style for Boots
4. Learn the Dwemer Style for Bows
5. Learn the Dwemer Style for Chests
6. Learn the Dwemer Style for Daggers
7. Learn the Dwemer Style for Gloves
8. Learn the Dwemer Style for Helmets
9. Learn the Dwemer Style for Legs
10. Learn the Dwemer Style for Maces
11. Learn the Dwemer Style for Shields
12. Learn the Dwemer Style for Shoulders
13. Learn the Dwemer Style for Staves
14. Learn the Dwemer Style for Swords

Lua Code:
  1. local chapterToCriterion = {
  2.     [ITEM_STYLE_CHAPTER_HELMETS]   = 8,
  3.     [ITEM_STYLE_CHAPTER_GLOVES]    = 7,
  4.     [ITEM_STYLE_CHAPTER_BOOTS]     = 3,
  5.     [ITEM_STYLE_CHAPTER_LEGS]      = 9,
  6.     [ITEM_STYLE_CHAPTER_CHESTS]    = 5,
  7.     [ITEM_STYLE_CHAPTER_BELTS]     = 2,
  8.     [ITEM_STYLE_CHAPTER_SHOULDERS] = 12,
  9.     [ITEM_STYLE_CHAPTER_SWORDS]    = 14,
  10.     [ITEM_STYLE_CHAPTER_MACES]     = 10,
  11.     [ITEM_STYLE_CHAPTER_AXES]      = 1,
  12.     [ITEM_STYLE_CHAPTER_DAGGERS]   = 6,
  13.     [ITEM_STYLE_CHAPTER_STAVES]    = 13,
  14.     [ITEM_STYLE_CHAPTER_SHIELDS]   = 11,
  15.     [ITEM_STYLE_CHAPTER_BOWS]      = 4,
  16. }

Last edited by Garkin : 04/20/15 at 04:19 PM.
  Reply With Quote
04/21/15, 09:26 AM   #3
@AlphaLemming
 
@AlphaLemming's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 122
Thank you Garkin. I hope that other languages ​​do not have any other order.
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Dwemer Styles identificated incorrect


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