<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3AGetBattlegroupMemberData</id>
	<title>API:GetBattlegroupMemberData - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3AGetBattlegroupMemberData"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:GetBattlegroupMemberData&amp;action=history"/>
	<updated>2026-10-18T13:12:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.returnofreckoning.com/index.php?title=API:GetBattlegroupMemberData&amp;diff=30343&amp;oldid=prev</id>
		<title>Maintenance script: UI Lua API import (WAR 1.4.8)</title>
		<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:GetBattlegroupMemberData&amp;diff=30343&amp;oldid=prev"/>
		<updated>2026-10-16T19:43:03Z</updated>

		<summary type="html">&lt;p&gt;UI Lua API import (WAR 1.4.8)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{LuaApi|group=Group}}&lt;br /&gt;
Returns the members of all four parties of the player&amp;#039;s warband.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
parties = GetBattlegroupMemberData()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
;parties : &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; – Array of exactly four party tables, &amp;lt;code&amp;gt;parties[1]&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;parties[4]&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Each party table has one field:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Key !! Type !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;players&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; || Array of member tables, indexed from 1. Empty for a party that does not exist.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Each member table has the same fields as the member tables of [[API:GetGroupData|GetGroupData]]: &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;careerName&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;careerLine&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;level&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;battleLevel&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;worldObjNum&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;healthPercent&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;actionPointPercent&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;moraleLevel&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;isGroupLeader&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;isRVRFlagged&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;isInSameRegion&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;isMainAssist&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;isMasterLooter&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;isAssistant&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;zoneNum&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;online&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;isDistant&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;Pet&amp;lt;/code&amp;gt; (a table with &amp;lt;code&amp;gt;healthPercent&amp;lt;/code&amp;gt;). Both functions fill the member tables with the same code.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* The four party tables are always present; a party the client has no data for gets an empty &amp;lt;code&amp;gt;players&amp;lt;/code&amp;gt; table.&lt;br /&gt;
* &amp;lt;code&amp;gt;isAssistant&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the member is in the warband&amp;#039;s assistant list.&lt;br /&gt;
* A new table is built on every call. The stock UI caches it in &amp;lt;code&amp;gt;PartyUtils.GetWarbandData()&amp;lt;/code&amp;gt; (refreshed when &amp;lt;code&amp;gt;GameData.Party.warbandDirty&amp;lt;/code&amp;gt; is set) and refreshes single members with [[API:GetWarbandMemberStatus|GetWarbandMemberStatus]]. Its comments ask addons to prefer the &amp;lt;code&amp;gt;PartyUtils&amp;lt;/code&amp;gt; functions.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
From &amp;lt;code&amp;gt;default/easystem_utils/source/partyutils.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function PartyUtils.GetWarbandData()&lt;br /&gt;
    if( GameData.Party.warbandDirty )&lt;br /&gt;
    then&lt;br /&gt;
        warbandParties = GetBattlegroupMemberData()&lt;br /&gt;
        GameData.Party.warbandDirty = false&lt;br /&gt;
    end&lt;br /&gt;
    return warbandParties&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reading one member (same file):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local party = PartyUtils.GetWarbandParty( partyIndex )&lt;br /&gt;
local member = party.players[memberIndex]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:GetGroupData|GetGroupData]]&lt;br /&gt;
* [[API:GetWarbandMemberStatus|GetWarbandMemberStatus]]&lt;br /&gt;
* [[API:IsWarBandActive|IsWarBandActive]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>