Where should I begin if I want to implement a trading functionality between players with the virtual currency, goods, items etc?
Best Answer
C
Customer Support
said
almost 5 years ago
Hi Ondrej,
To get started setting up a trading system in your game I would recommend looking at the SparkPlayer. More specifically the following functions:
- addVGood: adds virtual good(s) to the players existing virtual goods. - useVGood: removes virtual good(s) from the players existing virtual goods. - credit1: credits the player's currency1 (there are similar functions for all currencies). - debit1: debits the player's currency1 (there are similar functions for all currencies).
The specific way you implement these would depend on how you want the flow of control for your trading system to work. You could create custom events for trade proposals and acceptances, maybe create custom messages for the same. It's really up to how you'd like it to work.
If you need any pointers on a more specific implementation let us know.
To get started setting up a trading system in your game I would recommend looking at the SparkPlayer. More specifically the following functions:
- addVGood: adds virtual good(s) to the players existing virtual goods. - useVGood: removes virtual good(s) from the players existing virtual goods. - credit1: credits the player's currency1 (there are similar functions for all currencies). - debit1: debits the player's currency1 (there are similar functions for all currencies).
The specific way you implement these would depend on how you want the flow of control for your trading system to work. You could create custom events for trade proposals and acceptances, maybe create custom messages for the same. It's really up to how you'd like it to work.
If you need any pointers on a more specific implementation let us know.
Ondrej Tokar
Where should I begin if I want to implement a trading functionality between players with the virtual currency, goods, items etc?
To get started setting up a trading system in your game I would recommend looking at the SparkPlayer. More specifically the following functions:
- addVGood: adds virtual good(s) to the players existing virtual goods.
- useVGood: removes virtual good(s) from the players existing virtual goods.
- credit1: credits the player's currency1 (there are similar functions for all currencies).
- debit1: debits the player's currency1 (there are similar functions for all currencies).
The specific way you implement these would depend on how you want the flow of control for your trading system to work. You could create custom events for trade proposals and acceptances, maybe create custom messages for the same. It's really up to how you'd like it to work.
If you need any pointers on a more specific implementation let us know.
Regards,
Vinnie
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstCustomer Support
To get started setting up a trading system in your game I would recommend looking at the SparkPlayer. More specifically the following functions:
- addVGood: adds virtual good(s) to the players existing virtual goods.
- useVGood: removes virtual good(s) from the players existing virtual goods.
- credit1: credits the player's currency1 (there are similar functions for all currencies).
- debit1: debits the player's currency1 (there are similar functions for all currencies).
The specific way you implement these would depend on how you want the flow of control for your trading system to work. You could create custom events for trade proposals and acceptances, maybe create custom messages for the same. It's really up to how you'd like it to work.
If you need any pointers on a more specific implementation let us know.
Regards,
Vinnie
1 person likes this
Ondrej Tokar
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2485 topics