Achievements #

Read more about the Achievements system in Hiro here.

Get all achievements #

Get all achievements with progress accumulated by the player.

1
2
var achievementList = await hiro.achievementsGet(session)
print(achievementList)

Claim achievements #

Claim one or more achievements which have completed their progress.

1
2
3
4
5
6
var request = Hiro.AchievementsClaimRequest.new()
request.ids = ["achievement_1", "achievement_2"]
request.claim_total_reward = true

var updateAck = await hiro.achievementsClaim(session, request)
print(updateAck)

Update achievement progress #

Update one or more achievements with the same progress amount.

1
2
3
4
5
6
var request = Hiro.AchievementsUpdateRequest.new()
request.ids = ["achievement_1", "achievement_2"]
request.amount = 1

var updateAck = await hiro.achievementsUpdate(session, request)
print(updateAck)