View Single Post
10/05/16, 10:39 PM   #1
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
[outdated] IsSmithingPatternStyleKnown

When you want to know if you have the knowledge of a specific style, you can use :

  • IsItemLinkBookKnown(itemLink) : But you have to provide itemLink.

  • IsSmithingStyleKnown(styleItemIndex, patternIndex) : But you need to interact with a crafting station and be on the good mode. (weapons / armors).

  • GetLoreBookInfo(categoryIndex, collectionIndex, bookIndex) : But collectionIndex changes at each DLC.

  • GetAchievementCriterion(achievementId, criterionIndex) : But you need an achievement.


The last method, GetAchievementCriterion worked fine since the Dwemer introduction in 2014 because each style was linked to its achievement.



But the last DLC will introduce in its future event Grim Harlequin style, which have no achievement.
This one is ITEMSTYLE_UNUSED21 or styleItemIndex = 59 and is already available on live craft UI.

So I'll really like a

IsSmithingPatternStyleKnown(styleItemIndex, styleChapterIndex) with styleChapterIndex being an ItemStyleChapter constant.

Without this, we are unable to track style knownledge.


PS: Another answer would be that because this style will be Crown Store only, there will be no chapters.
So you could use IsSmithingStyleKnown(59, 1), but I'm not totally satisfied with this answer because collectionIndex 54 of Eidetic Memory list the 14 styles books of this style.

PPS: We'll have same issue with Stahlrim Frostcaster style incoming after u13, which have no achievement.
This one is ITEMSTYLE_UNUSED16 or styleItemIndex = 54 and is already available on live craft UI.

Thank you.

Last edited by Ayantir : 10/05/16 at 11:02 PM.