Talk:API C EquipmentSet.GetNumEquipmentSets

index Number - number of saved sets for the current character. (This starts at 0 not 1 like before)

Is this the "number of saved sets" or is this "the highest index value for a save set"?

If the numbering system starts at 0 and I have 3 sets, they would be numbered 0, 1, 2.

If I understand how this is used, print(C_EquipmentSet.GetNumEquipmentSets) would return 2, not 3.

That is NOT the number of equipment sets I have.

if GetNumEquipmentSets does in fact return a count of equipment sets, then in the article on API C_EquipmentSet.GetEquipmentSetInfo, the argument description is wrong:

index Number - Index of the equipment set to query, between 0 and GetNumEquipmentSets.

I'm not sure which is correct and which is incorrect as I'm not on my gaming system right now, but this needs attention (either this article or the one for GetEquipmentSetInfo).Mltco78dhs (talk) 05:37, 23 September 2018 (UTC)


 * C_EquipmentSet replaced the earlier global equipment manager API in patch 7.2.0, changing the semantics of several functions. It looks like the documentation pages were moved to the new names, and not carefully checked for possible changes. Prior to patch 7.2.0, equipment set information could be queried either by equipment set name, or by an index ascending from 1 to the number of saved sets, which would coincide with the return value of the old global version of this function.
 * , like the old, returns the number of saved sets. Post 7.2.0, this does not necessarily correspond to the greatest active set ID.
 * I've removed the note from this article (as its current wording doesn't refer to the return value as anything other than the number of currently saved sets) and corrected the arguments/returns description on API C_EquipmentSet.GetEquipmentSetInfo. — foxlit (talk) 00:00, 27 September 2018 (UTC)