Skip to content

OnPartyCreate

A party came into being.

The first accepted invitation (or the mode’s first AddPlayerToParty) makes the group with the inviter leading. Fires before the two joins (OnPlayerJoinParty with "create" for the leader, then the newcomer’s reason). On a server of several levels it also comes on a level where the first member of a party arrives on a trip; the party’s data is each level’s own.

function OnPartyCreate(party, leader)
-- ...
end
Parameter Type
party number the new party’s id
leader number the leader

nothing

function OnPartyCreate(party, leader)
SetPartyName(party, GetPlayerName(leader) .. "'s party")
end

OnPlayerJoinParty · OnPartyDisband · the Parties group of the index