forked from ShadowMario/FNF-PsychEngine
-
Notifications
You must be signed in to change notification settings - Fork 32
Adding Custom Achievements (1.33.0 and newer)
JordanSantiagoYT edited this page Aug 29, 2024
·
1 revision
To add custom achievements to JS Engine, Copy this text and paste it in YourModFolder/data/achievements.json
You can drop your achievement images in YourModFolder/images/achievements/, but be sure to read the readme file inside it if you extracted the Mod Template zip.
Here are all the LUA callbacks related to Achievements:
Get the current score of an achievement.
-
name
- The save name of the achievement.
Set the specified achievement's score.
-
value
- The achievement's new score. -
saveIfNotUnlocked
- Whether or not the game should save that score if the achievement isn't unlocked.
Adds value
to the specified achievement's score.
Unlocks the specified achievement.
Returns whether or not the specified achievement is unlocked.
Returns whether or not the specified achievement exists.