View Single Post
  #2  
Unread 10-02-2011, 10:13 PM
Garan's Avatar
Garan Garan is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Oct 2010
Posts: 341
Once you get the Party, you simply call GetMember() to get a PartyMember object which has the same methods as the Player object:
GetName()
RegisterForClickHandling()
GetBaseMaxMorale()
GetBaseMaxPower()
GetEffects()
GetLevel()
GetMaxMorale()
GetMaxPower()
GetMorale()
GetPower()
GetAlignment()
GetClass()
GetParty()
GetRace()
GetReadyState()
IsLinkDead()
IsVoiceEnabled()

for example, the routine below will list the party member names and class codes.
Code:
local localPlayer=Turbine.Gameplay.LocalPlayer:GetInstance();
local party=localPlayer:GetParty();
if party~=nil then
  local memberIndex, member;
  for memberIndex=1,party:GetMemberCount() do
    member=party:GetMember(memberIndex);
    Turbine.Shell.WriteLine("Member("..memberIndex..") Name:"..member:GetName().." Class:"..member:GetClass())
  end
end

Last edited by Garan : 10-03-2011 at 08:30 AM.
Reply With Quote