Skip to content

Achievement Manager API

Val Zubko edited this page Apr 4, 2025 · 2 revisions
  • progress_achievement(key, progress) - Set progress value for an achievement

  • unlock_achievement(key) - Unlock an achievement and call notification

  • get_all_achievements() - Returns a dictionary (indexed by key) of all the achievements you have in the game

  • get_achievement(key) - Returns the full dictionary of your achievement. the mandatory data an achievement has is:

    • key: String - The key of your achievement (same as the one you used to get the achievement)
    • name: String - The name of your achievement
    • goal: int - The maximum progress of your achievement, at which point it'll be marked as achieved (only for progress achievements)
    • current_progress: int - The current progress of your achievement (only for progress achievements)
    • icon_path: String - The path of the icon that shows up in the achievement notification
    • achieved: bool - Wether or not the achievement is complete
    • reset_achievements() - Debug function, resets all received achievements by setting "achieved" field to 0 for all achievements.

Clone this wiki locally