Be a Supporter!

Browse Sections

Newgrounds Wiki: Medal

Description Handles loading and unlocking of medals.

Page Contents

Medal.getList

Return to Top ^Loads a list of medal objects.

Returns:

medals - array<medal>
An array of medal objects.

Medal.unlock

Return to Top ^Unlocks a medal.

Parameters:

id - int
The numeric ID of the medal to unlock.

Returns:

medal - medal
The medal that was unlocked.

medal_score - int
The user's new medal score.



This method can use [wiki:wiki/creator-resources/newgrounds-apis/newgrounds-io/encryption encryption].