<?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%3AGetGroupMemberStatusData</id>
	<title>API:GetGroupMemberStatusData - 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%3AGetGroupMemberStatusData"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:GetGroupMemberStatusData&amp;action=history"/>
	<updated>2026-10-17T20:17:10Z</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:GetGroupMemberStatusData&amp;diff=30392&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:GetGroupMemberStatusData&amp;diff=30392&amp;oldid=prev"/>
		<updated>2026-10-16T19:43:49Z</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 frequently changing status values (health, AP, morale, level, location…) of one member of the player&amp;#039;s group.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
status = GetGroupMemberStatusData(memberIndex)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;memberIndex : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Groupmate slot, 1 to 5 (the player is not counted). Only the low 8 bits are used.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
;status : &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; – Status table (see below), or nothing if &amp;lt;code&amp;gt;memberIndex&amp;lt;/code&amp;gt; is out of range or there is no player object.&lt;br /&gt;
&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;healthPercent&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Health, 0–100.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;petHealthPercent&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Health of the member&amp;#039;s pet.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;actionPointPercent&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Action points, 0–100.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;moraleLevel&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Morale rank, 0–4, derived from the member&amp;#039;s morale percentage.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;level&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Character level.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;battleLevel&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Battle (bolstered) level. Equal to &amp;lt;code&amp;gt;level&amp;lt;/code&amp;gt; when the stored battle level is 0.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;isRVRFlagged&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt; || –&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;zoneNum&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Zone id.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;online&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt; || –&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;isDistant&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt; || –&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;worldObjNum&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || World object number of the member.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* The fields match those of the same name in the member tables of [[API:GetGroupData|GetGroupData]], except that the pet&amp;#039;s health is a top-level &amp;lt;code&amp;gt;petHealthPercent&amp;lt;/code&amp;gt; here instead of &amp;lt;code&amp;gt;Pet.healthPercent&amp;lt;/code&amp;gt;.&lt;br /&gt;
* The slot is read whether or not a groupmate is in it.&lt;br /&gt;
* The stock UI calls this function only after [[API:GetAndClearPartyMemberDirtyFlag|GetAndClearPartyMemberDirtyFlag]] returned &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; for the same slot, and copies the values into its cached &amp;lt;code&amp;gt;GetGroupData&amp;lt;/code&amp;gt; table.&lt;br /&gt;
* The function needs at least one argument and only reads the last one.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
None besides the generic &amp;#039;&amp;#039;Invalid Parameters&amp;#039;&amp;#039; message when the argument is missing or not a number.&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; (&amp;lt;code&amp;gt;PartyUtils.GetPartyMember&amp;lt;/code&amp;gt;, shortened):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local member = PartyUtils.GetPartyData()[memberIndex]&lt;br /&gt;
if( GetAndClearPartyMemberDirtyFlag( memberIndex ) )&lt;br /&gt;
then&lt;br /&gt;
    local memberData = GetGroupMemberStatusData( memberIndex )&lt;br /&gt;
    member.healthPercent = memberData.healthPercent&lt;br /&gt;
    member.actionPointPercent = memberData.actionPointPercent&lt;br /&gt;
    member.moraleLevel = memberData.moraleLevel&lt;br /&gt;
    member.Pet.healthPercent = memberData.petHealthPercent&lt;br /&gt;
    ...&lt;br /&gt;
end&lt;br /&gt;
return member&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:GetAndClearPartyMemberDirtyFlag|GetAndClearPartyMemberDirtyFlag]]&lt;br /&gt;
* [[API:GetWarbandMemberStatus|GetWarbandMemberStatus]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>