Skip to content

OnPartyChange

The party changed - membership, leader, name, labels, the frames switch, or a vitals update.

Called after every party message and every vitals update (at most twice a second). The argument is what GetParty returns; an empty party (id 0) means the player left or the party ended. An error inside is logged ([KcdMp] OnPartyChange: ...).

function OnPartyChange(party)
-- ...
end
Parameter Type
party table the party, as GetParty gives it

nothing

function OnPartyChange(party)
if party.id ~= 0 then print("party " .. party.id .. ": " .. #party.members .. " member(s)") end
end

GetParty · the The party group of the index