Difference between revisions of "Gaming:reportAchievement"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2012.09<br/> === Description === Update achievement progress. Either `Event.REPORT_ACHIEVEMENTS_COMPLETE` or `Event.REPORT_ACHIEVEMENT...")
 
Line 4: Line 4:
 
Update achievement progress. Either `Event.REPORT_ACHIEVEMENTS_COMPLETE` or `Event.REPORT_ACHIEVEMENTS_ERROR` will be triggered.
 
Update achievement progress. Either `Event.REPORT_ACHIEVEMENTS_COMPLETE` or `Event.REPORT_ACHIEVEMENTS_ERROR` will be triggered.
 
<source lang="lua">
 
<source lang="lua">
= Gaming:reportAchievement(achievementIdnumStepsimmediate,)
+
Gaming:reportAchievement(achievementId,numSteps,immediate)
 
</source>
 
</source>
'''achievementId:''' (string) Achievement Id ''''''<br/>
+
'''achievementId''': (string) Achievement Id ''''''<br/>
'''numSteps:''' (number) Number of steps '''optional'''<br/>
+
'''numSteps''': (number) Number of steps '''optional'''<br/>
'''immediate:''' (boolean) Push the update immediately ''''''<br/>
+
'''immediate''': (boolean) Push the update immediately ''''''<br/>

Revision as of 10:19, 23 August 2018

Available since: Gideros 2012.09

Description

Update achievement progress. Either `Event.REPORT_ACHIEVEMENTS_COMPLETE` or `Event.REPORT_ACHIEVEMENTS_ERROR` will be triggered.

 Gaming:reportAchievement(achievementId,numSteps,immediate)

'achievementId: (string) Achievement Id '
numSteps: (number) Number of steps optional
'immediate: (boolean) Push the update immediately '