Talk:API GetMacroIndexByName

From Warcraft Wiki
Jump to navigation Jump to search

I tested the existing statement that if multiple macros existed for the same name, that the highest index number would be returned as follows:

I created a GLOBAL macro, TEST, that was assigned macro index number 30. I created two CHARACTER SPECIFIC macros, both named TEST that were assigned slots 121 and 122.

I ran /run print(GetMacroIndexByName("TEST")) multiple times and got 30 each time, however, there may be factors that affect which of the index numbers are returned. The icon selection may play a part in it, or the line count. I don't know. I think it's better to say that the function return value is undefined that to claim that it will return the highest (old statement) or lowest (direct experimentation from today) value. I made a change to reflect that.Mltco78dhs (talk) 03:30, 24 August 2017 (UTC)

The use of the term "global" describing the macros with low-order index number is incorrect. These are not global macros, they are account-level macros. This is easily verifiable on any PC with multiple World of Warcraft accounts sharing an install path. Macro-cache.txt files exist immediately below the user account file path and immediately below the character name path.Mltco78dhs (talk) 03:37, 24 August 2017 (UTC)