Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Register
Advertisement

Returns battlefield-specific info for a player (e.g. Warsong Gulch flag captures).

battlefieldStatData = GetBattlefieldStatData(playerIndex, slotIndex)

Parameters[]

Arguments[]

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

Details[]

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.


Example[]

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

Advertisement