How to make an Achievement System in Gimkit

Setup

First, let’s create 3 new properties:

achievment#:unlocked? = bool:False
achievment#:title = string:Title
achievment#:description = string:Description

Scripting

We can create a new notification device. These devices can hold their own block code, which is helpful since we can simplify our code but compiling it all into one notification device.

We can add this to our notification that runs on wire pulse.

I tried to use a similar method as I would in javascript. In JavaScript, we can use backticks (`) to concatenate strings. I we use a javascript style approach to the problem as such, we can make our code modular. Here is what I would have written in javascript:

let achievements = {
  "1": {
    "unlocked": true,
    "title": "Title Here",
    "description": "description here"
  },
};
const GrantAchievment = (n) => {
  let num = toString(n);
  if (!achievements[num].unlocked) {
    // stuff
  } 
  else return null;
};

Conclusion

Thanks for reading. This was a quicker article, but I plan to make a much longer guide about guide-making it’s self and my process in making my guides.

8 Likes

Nice guide!

1 Like

Nice guide! @M1dnight Can I add the minecraft tag? Cause this can be used in making minecraft…

1 Like

This can also be used in many other cases though like it could be used in clicker games, a simulation of Terraria, etc. Because, you know.

2 Likes

Nice guide!

1 Like

That would be great. I was looking to add a tag but was unsure which one.

1 Like

That sits very unwell with me… I don’t like applying very general things to specific cases.

1 Like

This seems like an interesting idea!

1 Like

Yeah, but you can use this for minecraft. We don’t mark it so that it only is for minecraft, only that they can find it easier

3 Likes

This could be used in many ways, nice guide!

2 Likes
Difficulty?
  • 1/10
  • 2/10
  • 3/10
  • 4/10
  • 5/10
  • 6/10
  • 7/10
  • 8/10
  • 9/10
  • 10/10
  • 11/10 :skull:
0 voters
1 Like

Wow. This is an incredible feat of Gimkit Creative Engineering. Great guide!

4 Likes