CountPartyMembers
Usage:
CountPartyMembers(Actor)
Description:
The CountPartyMembers command will return the number of members in an actor's party. You can use the PartyMember command to retrieve each one. The number does not include the actor himself. If the actor has no party, this command will return 0.
Example:
// Send a message to a player's party
Function Main()
// Count party members
Player = Actor()
Result = CountPartyMembers(Player)
Count = 1
// Send to each in turn
.Loop
If (Count > Result)
GoTo(Done)
EndIf
Ac = PartyMember(Player, Count)
Output(Ac, "Hello party member!")
Count = Count + 1
GoTo(Loop)
// Finished
.Done
Return()
End Function
Comments (0)
You don't have permission to comment on this page.