Difference between revisions of "Gaming:reportAchievement"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Available since:''' Gideros 2012.09<br/> | + | '''<translate>Available since</translate>:''' Gideros 2012.09<br/> |
− | === Description === | + | === <translate>Description</translate> === |
<translate>Update achievement progress. Either [[Special:MyLanguage/Event.REPORT_ACHIEVEMENTS_COMPLETE|Event.REPORT_ACHIEVEMENTS_COMPLETE]] or [[Special:MyLanguage/Event.REPORT_ACHIEVEMENTS_ERROR|Event.REPORT_ACHIEVEMENTS_ERROR]] will be triggered.</translate> | <translate>Update achievement progress. Either [[Special:MyLanguage/Event.REPORT_ACHIEVEMENTS_COMPLETE|Event.REPORT_ACHIEVEMENTS_COMPLETE]] or [[Special:MyLanguage/Event.REPORT_ACHIEVEMENTS_ERROR|Event.REPORT_ACHIEVEMENTS_ERROR]] will be triggered.</translate> | ||
<source lang="lua"> | <source lang="lua"> | ||
Gaming:reportAchievement(achievementId,numSteps,immediate) | Gaming:reportAchievement(achievementId,numSteps,immediate) | ||
</source> | </source> | ||
− | === Parameters === | + | === <translate>Parameters</translate> === |
'''achievementId''': (string) <translate>Achievement Id</translate> <br/> | '''achievementId''': (string) <translate>Achievement Id</translate> <br/> | ||
'''numSteps''': (number) <translate>Number of steps</translate> '''optional'''<br/> | '''numSteps''': (number) <translate>Number of steps</translate> '''optional'''<br/> | ||
'''immediate''': (boolean) <translate>Push the update immediately</translate> <br/> | '''immediate''': (boolean) <translate>Push the update immediately</translate> <br/> |
Revision as of 07:28, 24 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)
Parameters
achievementId: (string) Achievement Id
numSteps: (number) Number of steps optional
immediate: (boolean) Push the update immediately