Good point. But still if it's hard to code, i'm cool with manual linebreaks.
Achievements plugin
JS Plugin RequestsYou probably won't like this, but i have decided to keep the menu simple and in the same style as the standard item menus of MV. Since the whole achievement logic is contained in the core plugin, anyway, it's easy to modify or replace the menu and someone who got more graphical talent than me (likely everyone) can handle this better, anyway.
I'll do the popups next. I'm still deciding, if i should copy some of the existing code from my Generic Popup plugin, or if i should use it as a dependency.
I'll do the popups next. I'm still deciding, if i should copy some of the existing code from my Generic Popup plugin, or if i should use it as a dependency.
It's ok for me. I think i can make it look like my mockup anyway.
But I got this issue now:
But I got this issue now:
Yeah, this happens, if the color you supplied doesn't conform to the hex standards set by my regex (leading # followed by a combination of either 3 or 6 numbers or letters from A-F).
I added a check that will at least prevent the plugin from crashing, but it will use undefined as the color, which defaults to black.
I added a check that will at least prevent the plugin from crashing, but it will use undefined as the color, which defaults to black.
Yeah, I agree with this and am eagerly await pop-ups! Good luck!! BD
First version of the popup plugin: http://pastebin.com/aCJ6YYEt
I'll add more options to customize the appearance and position of the windows. Multiple popups can be shown at the same time, with older ones being pushed downward to make space.
/edit: Here are the links for alle 3 plugins:
Core: http://pastebin.com/wTTmQDwH
Menu: http://pastebin.com/V02LpTT4
Popup: http://pastebin.com/aCJ6YYEt
//edit: I updated the popup plugin to add a few more customization options.
I'll add more options to customize the appearance and position of the windows. Multiple popups can be shown at the same time, with older ones being pushed downward to make space.
/edit: Here are the links for alle 3 plugins:
Core: http://pastebin.com/wTTmQDwH
Menu: http://pastebin.com/V02LpTT4
Popup: http://pastebin.com/aCJ6YYEt
//edit: I updated the popup plugin to add a few more customization options.
I'm getting a "Cannot read property 'value' of null" error on line 351 "$.prototype.test = function() { return $gameSwitches.value(this._switchId); };" What would be causing that?
I only have your core out of the three downloaded.
I am looking into if other plugins are affecting it.
I only have your core out of the three downloaded.
I am looking into if other plugins are affecting it.
This means, that $gameSwitches hasn't been initialized. which shouldn't be possible, unless you manually call "IAVRA.ACHIEVEMENT.check()", while the game is still loading.
So. I'm having a little bit of trouble changing to complete the "simpleAchievement" ones. Even when I call the script or plugin command correctly, the achievement does not complete. If I use a script call I get this:
Also. Somehow the achievements got stuck and even if I click New Game, uninstall the plugin and install it back the achievements are marked as completed.
Also. Somehow the achievements got stuck and even if I click New Game, uninstall the plugin and install it back the achievements are marked as completed.
Did you perhaps try to call the script like this?
If so, you need to put quotes around the id, like this:
Regarding your second issue: This is intended. Achievements are saved across saves in their own savefile. To reset them, either delete that file (or local storage entry) or execute one of the following script calls:
Code:
IAVRA.ACHIEVEMENT.complete(simpleAchievement);
Code:
IAVRA.ACHIEVEMENT.complete("simpleAchievement");
Code:
IAVRA.ACHIEVEMENT.reset(id);IAVRA.ACHIEVEMENT.resetAll();
Hi @Iavra (I was going mad trying cite you XDDD Tha capital i hahahaaha). I use Yanfly's Main Menu Manager plugin, and I would like to know how I should name the diferent parameters there so I can choose where in the game menu the "Achivements" option appears.
Or it may be edited from the menu subplugin, but I'm quite noob with coding, so I prefer not touch anything without being sure.
Currently, my game menu looks like this:
The yellow square is where "Achivements" shows ("Logros" is spanish for achivements). I want this to show just above the red square ("Ajustes" is spanish for settings), or better, above "Guardar". As you see is merely aesthetical question.
Also, I can't make the popups work. I have made two simple events to test the achivements system via plugin Commands (one to get "simpleAchievement" and another one to reset it in ordet to avoid having to edit the savefile). No matter what I do, the popup doesn't show up. But the other things seem to work flawless 🙂
Or it may be edited from the menu subplugin, but I'm quite noob with coding, so I prefer not touch anything without being sure.
Currently, my game menu looks like this:
The yellow square is where "Achivements" shows ("Logros" is spanish for achivements). I want this to show just above the red square ("Ajustes" is spanish for settings), or better, above "Guardar". As you see is merely aesthetical question.
Also, I can't make the popups work. I have made two simple events to test the achivements system via plugin Commands (one to get "simpleAchievement" and another one to reset it in ordet to avoid having to edit the savefile). No matter what I do, the popup doesn't show up. But the other things seem to work flawless 🙂
Uh, could you link Yanfly's plugin, so i can take a look at it?
Regarding popups, it has been ages since i last touched this one, so i'm not sure if i can help you with this 😀 Maybe the achievements have already been unlocked (remember, they are saved separately from game saves), so you can't unlock them again?
Regarding popups, it has been ages since i last touched this one, so i'm not sure if i can help you with this 😀 Maybe the achievements have already been unlocked (remember, they are saved separately from game saves), so you can't unlock them again?
Here you have the link to the plugin 🙂
Sorry, I may not explained correctly. To test the achivements and popups I have created 2 events:
1) "Actor A" gives me the "simpleAchievement" achivement via a plugin command.
2) "Actor B" resets the "simpleAchievement" achivement via a plugin command, so I don't have to make anything to de save file.
I checked it multiple times, and it reset the achievement correctly, so I can get/reset the achivement multiple times without problems (apart from the popups).
It doesn't matter if it's the first time or if I reset it and try again, the popup doesn't show up.
Thanks 🙂
Oh boy! This is the kinda of thing I've been scavenging for one of my RPG ideas or two! An Achievement System!
I've been planning on setting up to 50 In-Game Achievements and was going to use this with another type of Plugin I had for an idea that the more Achievements you get the more stuff is unlocked. I called this my "Extra Shop" where new options in it appears when certain Achievements are done and/or a certain amount is collected and it's global so if you play through one game and start a new one or a New Game Plus you don't have to do the Achievements again!
Ummm... I kinda skimmed some of it so I might've missed a post or two that might've asked this already and has been addressed.
Does the current configuration of this Plugin allow you to have the Achievement save altogether in the game or per game file? Kinda like with the Tropies for PSN games so starting a new game you don't have to do the Achievements again as it's already saved on the system/data file itself. Can it do this?
And possibly have it tied to another Plugin that makes use of Achievements for something else? I'm going to make a Request topic on this later.
I've been planning on setting up to 50 In-Game Achievements and was going to use this with another type of Plugin I had for an idea that the more Achievements you get the more stuff is unlocked. I called this my "Extra Shop" where new options in it appears when certain Achievements are done and/or a certain amount is collected and it's global so if you play through one game and start a new one or a New Game Plus you don't have to do the Achievements again!
Ummm... I kinda skimmed some of it so I might've missed a post or two that might've asked this already and has been addressed.
Does the current configuration of this Plugin allow you to have the Achievement save altogether in the game or per game file? Kinda like with the Tropies for PSN games so starting a new game you don't have to do the Achievements again as it's already saved on the system/data file itself. Can it do this?
And possibly have it tied to another Plugin that makes use of Achievements for something else? I'm going to make a Request topic on this later.
So, I downloaded this, and I started playing with it in my game, and I was able to integrate it with my existing plugins and setup, and it works beautifully. I love it.
One question I have, though... is there a way you could make the Popup plugin give you the option to play a sound when an Achievement Popup happens?
One question I have, though... is there a way you could make the Popup plugin give you the option to play a sound when an Achievement Popup happens?
Hello! I hope you will answer me! When my player gets an achievement, the colour of the pop-up text is black. I want it to be white, what's wrong?
Screenshot down below!
Original thread: https://forums.rpgmakerweb.com/threads/achievements-plugin.50855/