Virtual Currencies #

Gems and Cash are two of the available virtual currencies in Squad Alpha by Say Games.
Gems and Cash are two of the available virtual currencies in Squad Alpha by Say Games.

Define any number of currencies to be used in your game. Each currency can be either soft or hard currency. Soft currency is currency that can be obtained by the player through gameplay, and hard currency is currency that can be obtained by the player through real money purchases.

New players can be initialized with a set number of each currency, if desired, and currencies can be granted as part of a reward.

Customization parameters #

The following JSON represents the customization parameters you can use to initialize user’s currencies.

1
2
3
4
5
6
7
8
{
  "initialize_user": {
    "currencies": {
      "<currencyName1>": 100,
      "<currencyName2>": 50
    }
  }
}

Initialize User #

PropertyTypeDescription
currenciesstring:int64A map of currency IDs and quantities that a user account should be created with.
itemsstring:int64A map of item IDs and quantities that a user account should be created with.