Stats #

Read more about the Stats system in Hiro here.

Get all stats #

Get all stats.

1
2
var stat_list = await hiro.statsGet(session)
print(stat_list)

Update stats for the player #

Update stats.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Update stats for the player
var request = Hiro.StatUpdateRequest.new()
request.public = [{
    "name": "public_stat_1",
    "value": 100,
    "operator": Hiro.StatUpdateOperator.Set
}]
request.private = [{
    "name": "private_stat_1",
    "value": 100,
    "operator": Hiro.StatUpdateOperator.Set
}]

var stat_list = await hiro.statsUpdate(session, request)
print(stat_list)