Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetNumPartyMembers

Last wiki revision 2020-01-08

Returns number of party members. partyMembers = GetNumPartyMembers

  • partyMembers : Number - The number of party members, excluding the player (0 to 4).

The snippet below adds a message stating the number of people in the player's current party to the default chat frame. print("There are " .. GetNumPartyMembers .. " other people in your party.");

  • While in a battleground, this function returns information about your battleground party. You may retrieve information about your non-battleground party using.
  • While in a raid, you are also in a party. You might be the only person in your raidparty, so this function could still return 0.

Source

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