question

steelfox001 avatar image
steelfox001 asked

Solution for create Alliance?

I want find solution how create Alliance?

Alliance should resolve those:

1)Player in game can see all players in Alliance.

2) Players can request one item per day from other players in Alliance

3) Players can give requested items to other players in Alliance

4) Alliance has own chat.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

While we do not currently have a Guild/Clan system (we'll be adding on later this year), what you're describing is a more narrowly scoped system which can be supported with the tools available now:

1. Use a leaderboard per alliance, so that players can query to view members via GetLeaderboard calls.

2. A daily reward system is described in this sample which would manage this effectively (https://github.com/PlayFab/PlayFab-Samples/tree/master/Recipes/ProgressiveRewards).

3. We have a trading system (https://api.playfab.com/documentation/Client#Trading) which you can use to set up secure trades for items. For communicating the trade, you would use a Cloud Script to write info on the items being given to the player data of the recipient.

4. We provide integration with Photon Chat, and would recommend it for any chat feature.

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

steelfox001 avatar image steelfox001 commented ·

It will be super if you do it.

How can i add tag to players from CloudScript?

Is it possible from script get array of players by "tag"?

0 Likes 0 ·
brendan avatar image brendan steelfox001 commented ·

To add a tag, you can use the API call https://api.playfab.com/documentation/server/method/AddPlayerTag.

If you create a Segment for users with a specific tag, you can get a set of players that have that tag, though you would not be able to get a full list of all players with that tag, unless your player population is extremely small.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.