Get your own free workspace
View
 

PartyMember

Page history last edited by Gamemaster 3 years, 11 months ago

 

PartyMember

Usage:

                PartyMember(Actor, MemberNumber)

Description:

The PartyMember command will return the handle to an actor from a given actor's party. For more information see CountPartyMembers.

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.