Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetShapeshiftForm

Last wiki revision 2022-07-21

Returns the zero-based index of current form/stance. index = GetShapeshiftForm([flag])

  • flag: - True if return value is to be compared to a macro's conditional statement. This makes it always return zero for Presences and Auras. False or nil returns an index based on which button to highlight on the shapeshift/stance bar left to right starting at 1.
  • index: - one of the following:
  • All:
  • 0. humanoid form
  • druid:
  • Bear Form
  • Cat Form
  • Travel Form / Aquatic Form / Flight Form (all 3 location-dependent versions of Travel Form count as Form 3)
  • The first known of: Moonkin Form, Treant Form, Stag Form (in order)
  • The second known of: Moonkin Form, Treant Form, Stag Form (in order)
  • The third known of: Moonkin Form, Treant Form, Stag Form (in order)
  • Note: The last 3 are ordered. For example, if you know Stag Form only, it is form 4. If you know both Treant and Stag, Treant is 4 and Stag is 5. If you know all 3, Moonkin is 4, Treant 5, and Stag 6.
  • priest:
  • Shadowform
  • rogue:
  • Stealth
  • Vanish / Shadow Dance (for Subtlety rogues, both Vanish and Shadow Dance return as Form 1)
  • shaman:
  • Ghost Wolf
  • warrior:
  • Battle Stance
  • Defensive Stance
  • Beserker Stance
  • For some classes the return value is nil during the loading process. You need to wait until UPDATE_SHAPESHIFT_FORMS fires to get correct return values.

Source

https://warcraft.wiki.gg/wiki/API_GetShapeshiftForm · 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.