Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetBattlefieldStatData

Last wiki revision 2023-08-24

Returns battlefield-specific info for a player (e.g. Warsong Gulch flag captures). battlefieldStatData = GetBattlefieldStatData(playerIndex, slotIndex)

  • playerIndex: - Player you want to grab the data for
  • slotIndex: - Column you want to grab the data from

Used to retrieve data from battleground specific scoreboard columns like flag captures in Warsong Gulch. If you want to make sure you have the most recent data you will have to call RequestBattlefieldScoreData and then wait for UPDATE_BATTLEFIELD_SCORE.

Get how many flags captures and returns a player has inside Warsong Gulch.

for i=1, GetNumBattlefieldScores do local playerName = GetBattlefieldScore(i); local flagCaptures = GetBattlefieldStatData(i, 1); local flagReturns = GetBattlefieldStatData(i, 2); end

Source

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