- Joined
- Aug 31, 2019
- Messages
- 34
- Reaction score
- 65
- First Language
- Portuguese
- Primarily Uses
- RMMV
SMO_Achievements.js
by SMOValadorn
Description:by SMOValadorn
Creates an achievements menu for your project.
Features:
- In-Game Editor (optional):
You may use an editor in-game to create/edit your achievements, categories and the menu data;
- Pop up on unlock (optional):
When unlocking an achievement, a pop up will be shown on the screen. The player can click on the pop up and it'll lead him to directly to the achievemnt menu (as long as the player is not on a dialog);
- Auto update (optional):
The requirements for locked achievements will be checked every 1 second. It's possible to change this interval on the plugin's parameters, or even deactivate it and check manully using a plugin command if you want;
- Categories (optional):
It's possible to make many categories, and each achievement can be on multiple categories;
- Trophies (optional):
After completing all achievements on a specific category the player unlocks a trophy;
- Sort (optional):
It's possible to add/remove or edit the sort options through the plugin's parameters (some JS knowledge may be required).
E.G: A-z, Locked, Unlocked...
- Global/Local range:
It's possible to make global achievements, in this case any achievement unlocked on a playthrough will keep unlocked until you use a plugin command to reset it.
- Requirements and Rewards:
Each achievement may have many requirements and rewards (rewards are optional);
- Hidden and Secret achievements:
It's possible to make an achievement secret or completely hide it until it's unlocked, you can also reveal them before unloking them;
- Unlocked date:
The info window shows the unlocked date;
These are the main features.
Optional features may be deactivated using the plugin parameters.
You may use an editor in-game to create/edit your achievements, categories and the menu data;
- Pop up on unlock (optional):
When unlocking an achievement, a pop up will be shown on the screen. The player can click on the pop up and it'll lead him to directly to the achievemnt menu (as long as the player is not on a dialog);
- Auto update (optional):
The requirements for locked achievements will be checked every 1 second. It's possible to change this interval on the plugin's parameters, or even deactivate it and check manully using a plugin command if you want;
- Categories (optional):
It's possible to make many categories, and each achievement can be on multiple categories;
- Trophies (optional):
After completing all achievements on a specific category the player unlocks a trophy;
- Sort (optional):
It's possible to add/remove or edit the sort options through the plugin's parameters (some JS knowledge may be required).
E.G: A-z, Locked, Unlocked...
- Global/Local range:
It's possible to make global achievements, in this case any achievement unlocked on a playthrough will keep unlocked until you use a plugin command to reset it.
- Requirements and Rewards:
Each achievement may have many requirements and rewards (rewards are optional);
- Hidden and Secret achievements:
It's possible to make an achievement secret or completely hide it until it's unlocked, you can also reveal them before unloking them;
- Unlocked date:
The info window shows the unlocked date;
These are the main features.
Optional features may be deactivated using the plugin parameters.
License:
This plugin is under MIT License.
You can use it for free on both comercial and non-commercial projects. Credit me as SMO.
You can read more about the license here.
Download:
Clicking below you'll see the raw file, use RMB and click on "Save as..." to download it.
Download Plugin
You'll find a demo below, it's a non encrypted project stored on Google Drive ~ 27 MB.
Download Demo
How to use:
You'll find all the info you need on the plugin's help section, you can use the plugin's parameters to add achievements and customize the menu.
Changelog:
V 1.04
V 1.02
V 1.01
V 1.00
- Added the ACHIEVENATOR, which includes an editor for the achievements, for the menu and for the categories;
- Added option to collect the reward manually, check out the "Collect Reward" parameter;
- Rewards are now optional, check out the "Use Rewards" parameter;
- You can now reveal secret and hidden achievements before the player unlocks it or turn other achievements into secret/hidden ones, take a look at the new script calls (10-14);
- Gold gained and spent are now tracked and available to be used as the requirement types: "Gold Gained" and "Gold Spent", there are new script calls to check those values too (scripts 15 and 16);
- New reward type: Experience;
- New parameter for categories: "Global Category", only one category may be global, it'll be automatically added to all achievements;
- The info window now has a fixed height and scrollers were added to the requirements and rewards;
- Compatibility with YEP_MessageCore and some translation plugins: SRD_TranslationEngine, KDTools_Localization and Iavra Localization - Core;
- Necessary files are automatically created, "data/Achievements.json" is now on "save/achievs.rpgsave", the old data is automatically imported and the old file deleted;
- Auto-refresh after transfer is now optional, check out the "Refresh After Transfer" parameter;
- Fixed error where achievements unlocked on global mode were not being saved on deployed projects;
- Fixed bug where unlocking an achievement with no background would still show the "locked" image as background;
- Fixed bug where loading a game saved while the pop up is visible would show the same pop up without background when that game is loaded, you can now decide what the pop up should remember when loading a game, check out the "Local Load Pop Up" parameter;
- Fixed bug where the trophies could be misplaced when using the "Grow" selector;
- Fixed bug where creating a requirement based on the party size wouldcrash the game;
- Fixed bug where it was possible to unlock achievements on scenes loaded from the title on local mode;
- General improvements on the plugin's script and plugin parameters;
- The info window now open/close instead of just appearing/disappearing;
- Improved wrap text mechanic, and it also works on the info window now;
- Improved performance on the menu;
- Achievements are now refreshed after transfering;
- Parameter "Unlocked In" changed to "Unlocked On";
- New parameters for trophies on "Categories and Trophies": "Hide Trophy", "Trophy Image" and "On Unlock";
- New parameter inside "Use Trophies": "Trophy Selector";
- Added option to select images for locked and secret achievements (check out "Locked Achiev Background" and "Secret Achiev Background";
- Added text codes for the pop up's text and for the "Unlocked On" text;
- It's possible to set a different image for the pop up for each achiev, check out "Pop Up Image" inside "Achievements Data";
- Fixed bug where advanced requirements were not working properly;
V 1.02
- Fixed bug with plugin commands;
- Fixed bug where achievements unlocked with script calls were not being saved on global range;
V 1.01
- New parameter added: Global Rewards;
V 1.00
- Plugin released!
Please let me know if you have any suggestions or if you find any bug (or even a spelling mistake, I'm trying to improve my english hehehe)
Cheers everyone!
Last edited: