A new string from title and in-game menu which opens an achievements screen with goals we can set. Images (or maybe icons) with every achievents has to be settable too.
Most important idea of this - is possibility to keep earned achievements whatever you do. Even if you replaying a game or loading an old save file. Possibility to manualy reset achievement progress could be handy as well.
I would do this, but i currently have a christmas present to code :>
I would love this as well.
I would also like this! It seems like a system in many games now-days and something that would be very interesting!
I'm currently planning to do this and collect features to be implemented:
- What kind of achievements should be supported?
- Should i rather hook into each method involved (so, if there is an achievement when having 100 pieces of a given item, check this every time an item is obtained) or check in intervals, like every few seconds, which delays the achievements, but will work independent of the requirements?
- (Optional) popup, when the achievement is obtained? I might decide to use my Generic Popup plugin as a dependency.
- Special popup scene to view all achievements, callable from in-game menu/title?
- How to handle not-yet-achieved achievements in that screen (completely hide them, only show their name, show "???" to indicate that there's something or show everything. Configurable per entry?)
- ... more stuff, that i don't think about, currently.
Tying them to variables/switches is easy, but the plugin user would be responsible for (for example) setting a variable to the number of item X in possession or setting a switch to true, if a given amount is reached.
Regarding configuration, that will depend on how much information i need to setup an achievement (name, switch/variable id, icon/picture to be displayed, hide if unknown true/false). If it's doable, i'll use plugin parameters, otherwise it will be either an external file or notetags in a common event.
Here are my two cents:
Stay away from external files. They can easily be edited by someone playing the game with access to the files (like on windows) unless the developer finds some way to compact or encrypt everything.
Personally I would love setting everything in Parameters if they fit. Like 100 different Achievements, and for each achievement have Name, Description, Type (Variable, Switch, or Command), ID (for variables or switches id), and Value (for completion, like 100 for variable or true/false for switch or command)
And when I say command, i mean using a plugin command/script call, because I find that more useful.
I believe a popup when achieved would be nice for an optional setting.
Also, make the achievements be accesible by a scene script call, and make menu access optional.
I'm definitely not adding 100 plugin parameters like "Achievement 00" - "Achievement 99", because that would bloat the file way too much. Also, if someone has access to the unencrypted files, it doesn't matter where the data is stored, since everything is available in a human readable way.
Oh true. I didnt even think about being able to access the plugin itself.
In that case, do an external .json or .txt xD
This plugin sounds like a good Idea
The plugin works for me, though i only have my test project and manually edit the plugins.js (yeah, i know, it even tells me not to do so), so i might have missed something. I'll test it once i get proper access to MV, again (~ 2-3 hours).
I'll add the option to specify 0 for the interval to disable automatic checking and add script call / plugin commands for manual testing.
/edit: The core plugin has been updated. You can now specify a value of 0 or lower for the plugin parameter "Update Interval" to disable automatic checking. You can also use the script call "IAVRA.ACHIEVEMENT.check()" or plugin command "Achievement check" to manually check all achievements for completion.
Note: If you manually complete or reset an achievement(s), there is no need to manually check, afterwards. So, if your game only contains achievements of type "none" (which can only be manually completed, anyway), automatic checking can be safely disabled.