Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetTrainerSelectionIndex

Last wiki revision 2022-07-22

Returns the index of the selected trainer service. selectionIndex = GetTrainerSelectionIndex

  • Returns
  • selectionIndex: : The index of the selected trainer service (the index changes when a subclass header is collapsed or expanded. And the subclass headers are included in the index).
  • Example

Prints the index of the selected trainer service to the chatwindow. ChatFrame1:AddMessage(GetTrainerSelectionIndex);

Source

https://warcraft.wiki.gg/wiki/API_GetTrainerSelectionIndex · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.