/*: * @plugindesc v1.04 - Adds an achievements mechanic. * @author SMO * * @param ---- Data Management ---- * @desc Achievements', categories' and menu settings. * @default -------------------- * * @param Use In-Game Editor * @parent ---- Data Management ---- * @type boolean * @desc If ON, the achievements', the categories' and the menu's * settings will only be changed through the in-game editor. * @default false * * @param Categories And Trophies * @parent ---- Data Management ---- * @type struct[] * @desc Add/edit the categories you want here. Leave it empty * if you don't want to use categories. * @default ["{\"Category Name\":\"Battle\",\"New Scene Name\":\"\",\"Category Background\":\"\",\"New Menu Background\":\"\",\"Locked Achiev Image\":\"\",\"Secret Achiev Image\":\"\",\"Global Category\":\"false\",\"Auto Color\":\"{\\\"Color\\\":\\\"\\\",\\\"AC Category Name\\\":\\\"true\\\",\\\"AC Scene Name\\\":\\\"true\\\",\\\"AC Achievs Names\\\":\\\"true\\\",\\\"AC Pop Up\\\":\\\"true\\\"}\",\"--- Trophy ---\":\"--------------------\",\"Hide Trophy\":\"false\",\"Trophy Description\":\"\\\"This is a description.\\\"\",\"Trophy Image\":\"\",\"Locked Trophy Image\":\"\",\"On Unlock\":\"\"}"] * * @param Achievements Data * @parent ---- Data Management ---- * @type struct[] * @desc Create/edit the data of each achievement here. * @default ["{\"Name\":\"And so it begins\",\"Category\":\"Battle\",\"Description\":\"\\\"No prison can hold me, adventure awaits! HUZZAAA!\\\"\",\"Pop Up Desc\":\"\\\"Adventure awaits!\\\"\",\"Visibility\":\"Visible from start\",\"Background Image\":\"\",\"Pop Up Image\":\"\",\"Hide Progress\":\"false\",\"Requirements\":\"[\\\"{\\\\\\\"Type\\\\\\\":\\\\\\\"Playtime\\\\\\\",\\\\\\\"Item ID\\\\\\\":\\\\\\\"1\\\\\\\",\\\\\\\"Comparison\\\\\\\":\\\\\\\"≥\\\\\\\",\\\\\\\"Required Value\\\\\\\":\\\\\\\"1\\\\\\\",\\\\\\\"Alias\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"Alias Icon\\\\\\\":\\\\\\\"-2\\\\\\\",\\\\\\\"Advanced\\\\\\\":\\\\\\\"------\\\\\\\",\\\\\\\"Current Value\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"Final Value\\\\\\\":\\\\\\\"\\\\\\\"}\\\"]\",\"Rewards\":\"\",\"Icons\":\"------\",\"Locked Icon\":\"-2\",\"Unlocked Icon\":\"-2\",\"Secret Icon\":\"-2\"}"] * * @param Menu Settings * @parent ---- Data Management ---- * @type struct * @desc Define the settings for the windows on the achievements * menu. * @default {"Scene Name":"{\"------ Position ------\":\"--------------------\",\"X\":\"0\",\"Y\":\"0\",\"-------- Size --------\":\"--------------------\",\"Width\":\"Graphics.width\",\"Height\":\"80\",\"------- Texts --------\":\"--------------------\",\"Title\":\"Achievements\",\"-------- Font --------\":\"--------------------\",\"Font Face\":\"GameFont\",\"Font Size\":\"28\",\"----- Appearence -----\":\"--------------------\",\"Opacity\":\"255\",\"Window Skin\":\"\",\"------- Colors -------\":\"--------------------\",\"Text Color\":\"#ffffff\"}","Categories":"{\"------ Position ------\":\"--------------------\",\"X\":\"0\",\"Y\":\"80\",\"-------- Size --------\":\"--------------------\",\"Width\":\"Graphics.width / 3\",\"Height\":\"Graphics.height - 80\",\"------- Texts --------\":\"--------------------\",\"Text\":\" (/)\",\"Text Align\":\"Center\",\"-------- Font --------\":\"--------------------\",\"Font Face\":\"GameFont\",\"Font Size\":\"28\",\"----- Appearence -----\":\"--------------------\",\"Opacity\":\"255\",\"Window Skin\":\"\",\"Columns\":\"1\",\"------- Colors -------\":\"--------------------\",\"Text Color\":\"#ffffff\",\"------- Items --------\":\"--------------------\",\"Item Height\":\"72\",\"Draw Rectangle\":\"true\",\"Rect Border Size\":\"1\",\"Rect Border Color\":\"rgba(255,255,255,1)\",\"Rect Back Color\":\"rgba(0,0,0,0.5)\"}","Trophies":"{\"Type\":\"Trophies\",\"------ Position ------\":\"--------------------\",\"X\":\"Graphics.width / 3\",\"Y\":\"80\",\"-------- Size --------\":\"--------------------\",\"Width\":\"Graphics.width * 2 / 3\",\"Height\":\"Graphics.height - 80\",\"------- Texts --------\":\"--------------------\",\"Title\":\"TROPHIES\",\"Description\":\"\\\"Unlock trophies by completing achievements. Each category unlocks a different trophy.\\\"\",\"Locked\":\"LOCKED\",\"Locked Sign\":\"?\",\"Total Progress\":\"Total Progress: / (%)\",\"-------- Font --------\":\"--------------------\",\"Font Face\":\"GameFont\",\"Font Size\":\"28\",\"----- Appearence -----\":\"--------------------\",\"Opacity\":\"255\",\"Window Skin\":\"\",\"Lines\":\"2\",\"Columns\":\"2\",\"Big Trophy Y\":\"140\",\"Big Trophy Height\":\"250\",\"Progress Bar Y\":\"480\",\"Progress Text Position\":\"Top Right\",\"------- Colors -------\":\"--------------------\",\"Text Color\":\"#ffffff\",\"Progress Gauge C1\":\"#aa8300\",\"Progress Gauge C2\":\"#ffa500\",\"Progress Gauge BG\":\"#202040\",\"------- Items --------\":\"--------------------\",\"Border Size\":\"2\",\"------ Selector ------\":\"--------------------\",\"Selector\":\"Grow\",\"Selector Color\":\"#ff9900\",\"Selector Image\":\"\"}","Achievements":"{\"------ Position ------\":\"--------------------\",\"X\":\"0\",\"Y\":\"80\",\"-------- Size --------\":\"--------------------\",\"Width\":\"Graphics.width\",\"Height\":\"Graphics.height - 80\",\"-------- Font --------\":\"--------------------\",\"Font Face\":\"GameFont\",\"Font Size\":\"18\",\"----- Appearence -----\":\"--------------------\",\"Opacity\":\"255\",\"Window Skin\":\"\",\"Columns\":\"Math.floor(Graphics.width / 200)\",\"------- Colors -------\":\"--------------------\",\"Text Color\":\"#ffffff\",\"Progress Gauge C1\":\"rgba(20,255,20,1)\",\"Progress Gauge C2\":\"rgba(100,255,100,1)\",\"Progress Gauge BG\":\"#202040\",\"------- Items --------\":\"--------------------\",\"Hide Progress\":\"false\",\"Progress Gauge Height\":\"24\",\"Progress Align\":\"Center\",\"Progress Style\":\"Percent\",\"Corner Radius\":\"8\",\"Description Lines\":\"3\",\"Item Height\":\"144\",\"Border Size\":\"1\"}","Achievs Info":"{\"Enabled\":\"true\",\"------ Position ------\":\"--------------------\",\"X\":\"Graphics.width / 4\",\"Y\":\"78\",\"-------- Size --------\":\"--------------------\",\"Width\":\"Graphics.width / 2\",\"Height\":\"468\",\"------- Texts --------\":\"--------------------\",\"Unlocked On\":\"Unlocked on at