Skip to content

NickB-30/BlipMods

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 

Repository files navigation

BlipMods

Achievements Module:

Setup:

Modules = { achievements = "github.com/NickB-30/BlipMods/achievements" }
local achievements = require(Modules.achievements)

Initialize the module with your achievement definitions and badge identifiers:

achievements({
  ["games-played"] = {
    {
      goal = 5,
      badge = "noob",
    },
    {
      goal = 20,
      badge = "rookie",
    },
  },
  ["score"] = {
    {
      goal = 500,
      badge = "good",
    },
    {
      goal = 1000,
      badge = "great",
    },
  },
})

In your game code, you can either SET or INCREMENT achievement counters with:

achievements:Set("score", value)

or

achievements:Increment("games-played", value) -- value is optional, defaults to 1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors