Difference between revisions of "Gaming:incrementAchievement"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(2 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
=== <translate>Description</translate> ===
 
=== <translate>Description</translate> ===
 
<translate>Increment achievement progress Either. ''Event.REPORT_ACHIEVEMENTS_COMPLETE'' or ''Event.REPORT_ACHIEVEMENTS_ERROR'' will be triggered.</translate>
 
<translate>Increment achievement progress Either. ''Event.REPORT_ACHIEVEMENTS_COMPLETE'' or ''Event.REPORT_ACHIEVEMENTS_ERROR'' will be triggered.</translate>
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
  Gaming:incrementAchievement(achievementId,numSteps,immediate)
 
  Gaming:incrementAchievement(achievementId,numSteps,immediate)
</source>
+
</syntaxhighlight>
 
=== <translate>Parameters</translate> ===
 
=== <translate>Parameters</translate> ===
 
'''achievementId''': (string) <translate>Achievement Id</translate> <br/>
 
'''achievementId''': (string) <translate>Achievement Id</translate> <br/>
 
'''numSteps''': (number) <translate>Number of steps to add</translate> '''optional'''<br/>
 
'''numSteps''': (number) <translate>Number of steps to add</translate> '''optional'''<br/>
 
'''immediate''': (boolean) <translate>Push the update immediately</translate> <br/>
 
'''immediate''': (boolean) <translate>Push the update immediately</translate> <br/>
 +
 +
{{Gaming}}

Latest revision as of 14:29, 13 July 2023


Available since: Gideros 2012.09
Class: Gaming

Description

Increment achievement progress Either. Event.REPORT_ACHIEVEMENTS_COMPLETE or Event.REPORT_ACHIEVEMENTS_ERROR will be triggered.

 Gaming:incrementAchievement(achievementId,numSteps,immediate)

Parameters

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