View Single Post
10/06/16, 05:35 PM   #4
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
Okay, so let's make a test.

I have a char which know 1 chapter of assassin's league (style 47). The belt.

d(tostring(IsSmithingStyleKnown(47, 1))) -> 47, 14 =



Now, I go to the clothing craft station :

/script d(tostring(IsSmithingStyleKnown(47, 8))) = true because I know the light belt and this is the 8th pattern on clothing craft station
/script d(tostring(IsSmithingStyleKnown(47, 15))) = true because I know the medium belt and this is the 15th pattern on clothing craft station

Now, I go to the smithing craft station :

/script d(tostring(IsSmithingStyleKnown(47, 14))) = true, because I know the heavy belt and this is the 14th pattern on smithing craft station. (please note the patternIndex = 8 / 15 now returns false). 14th pattern because weapons = 1-7 and armors = 8-14


What I would like is a function which just accept a ItemStyleChapter as parameter, not influenced by the interaction with a craft station.

and for my case :

/script d(tostring(IsSmithingPatternStyleKnown(47, ITEM_STYLE_CHAPTER_BELTS))) = true


Thank you.