Streaks #

The Hiro Streaks System is a versatile feature designed to enhance player engagement and competitiveness by rewarding consecutive wins. These wins can be tracked, and rewards can be configured to motivate players to reach certain streak thresholds by maintaining momentum. This feature enhances player engagement by adding an extra layer of challenge, encouraging skill mastery, and creating competitive tension.

Customization parameters #

The following JSON represents the customization parameters you can use to configure the default user experience for the Streaks system.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
  "streaks": {
    "wins": {
      "name": "Consecutive Wins",
      "description": "Number of consecutive wins, without any losses.",
      "count": 0,
      "max_count": 9,
      "max_count_current_reset": 3,
      "idle_count_decay_reset": 9,
      "reset_cronexpr": "0 0 * * *",
      "rewards": [
        {
          "count_min": 3,
          "count_max": 3,
          "reward": {
            "guaranteed": {
              "currencies": {
                "coins": {
                  "min": 10
                }
              }
            }
          }
        },
        {
          "count_min": 6,
          "count_max": 6,
          "reward": {
            "guaranteed": {
              "currencies": {
                "coins": {
                  "min": 30
                }
              }
            }
          }
        },
        {
          "count_min": 9,
          "count_max": 9,
          "reward": {
            "guaranteed": {
              "currencies": {
                "coins": {
                  "min": 100
                }
              }
            }
          }
        }
      ]
    }
  }
}

Streak #

PropertyTypeDescription
namestringThe display-friendly name for this streak.
descriptionstringThe description text for this streak.
countint64The initial progress for this streak.
max_countint64The maximum progress that this streak can achieve.
max_count_current_resetint64The maximum count that can be submitted within the same reset interval.
idle_count_decay_resetint64The amount of count that will be decreased if no count is submitted within the reset interval.
max_idle_count_decayint64The maximum amount of count that can be decreased if no count is submitted over consecutive reset intervals.
reset_cronexprstringThe reset schedule expressed in CRON format.
rewardsStreakRewardThe rewards that a user should receive once they complete certain streak checkpoints.
start_time_secint64The start time (expressed as a UNIX timestamp) for this streak.
end_time_secint64The end time (expressed as a UNIX timestamp) for this streak.
disabledboolUsed to disable this streak without removing it from the data definition.

Streak Reward #

PropertyTypeDescription
count_minint64The minimum count required to receive this reward.
count_maxint64The maximum count required to receive this reward.
rewardRewardThe rewards that a user should receive at each count between count_min and count_max.