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 name of this streak.
descriptionstringThe description of this streak.
countint64The current/starting count of this streak.
max_countint64The maximum count this streak can achieve.
max_count_current_resetint64The maximum count this streak can be submitted in the same reset interval.
idle_count_decay_resetint64The amount of count that will be decreased if no count is submitted in 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 interval in CRON format.
rewardsStreakRewardThe rewards a user should receive once they complete certain streak checkpoints.
start_time_secint64The start time (as a UNIX timestamp) of this streak.
end_time_secint64The end time (as a UNIX timestamp) of this streak.
disabledboolUsed to disable this streak without removing it from the data definition.

Streak Reward #

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