Games can have achievements with no completion value and so you can use this function to increment those achievement by a given amount. On Android, you send the ID of the achievement as a string (this is the unique achievement ID that got assigned when you set up the achievement), while on all other platforms you supply the defined achievement name as a string, and then you give the actual achievement value to increment by.

The function will trigger a Social Asynchronous Event where the returned async_load DS map will have the following key/value pairs:


achievement_increment(name, value)

Argument Description
name The name/id of the achievement.
value The value to be sent as an increment.




achievement_increment(global.Achievement[0], score);

The above code adds the current player score to the achievement with the ID stored in the global array.