[XDE] xDGameStudios Engine - AchievementSys v1.2 (UPDATE NEW!!)

● ARCHIVED · READ-ONLY
Started by xDGameStudios 27 posts Page 1 of 2 View original ↗
  1. XDE_AchievementsSys +v1.2
    xDGameStudios



    Introduction
     This plugin enables the creation of a achievement system that helps the developers to create more in-depth game mechanic.

    Features


    All the help is provided in the help section of the plug in. Here is a copy of that section:
     

    Spoiler
    Code:
     ========================================================================
     Help
     ========================================================================
    
     This plugin enables the creation of a achievement system that helps the
     developers to create more in-depth game mechanic. Imagine a game where
     the gamer as to complete a series of tasks to unlock new game modes. To
     unlock new weapons and to access new parts of the game. Imagine you can
     easily create said system and keep track of every task/achievement. The
     limit is your imagination.
    
     ========================================================================
     Plugin Properties
     ========================================================================
    
     Title Text : The name displayed in the top window of the achievements
     menu.
    
     Title Color : The color used to draw the title text of the menu.
    
     Icon Size : The size in pixels used to draw the achievement icon.
    
    
     Achv. Mask Name : The mask name used by achievements if they are no
     unlocked yet. If you don't want to use the mask system use '#' instead.
    
     Achv. Mask Icon : The mask icon & default icon for all the achievements
     locked or unlocked. If you do not want to use the mask use '#' instead.
    
     Achv. Mask Descr. : The general description used for locked achievements
     you can disable the use of the mask by using '#' symbol.
    
    
     The same rules apply for the individual Arch. data. Note whoever that if
     no icon data is supplied the Mask icon is used instead.
    
     Achv. X SwitchId. : This property make the tie between the achievement
     and it's data the system used gameSwitches to lock/unlock achievements.
     This way it is easy to unlock or lock them via the event system.
    
     ========================================================================
     Plugin Commands
     ========================================================================
    
     The plugin command used within this plugin enables the creator to get
     achievement complete rate data and store it inside a gameVariable.
    
     AchievementSys RateToVar X (X is the number of gameVariable).
    
    
     Another couple of plugin commands available are the lock all and unlock
     all commands.
    
     AchievementSys UnlockAll
    
     AchievementSys LockAll
    
    
     Lastly there are a few set of plugin commands for showing/hiding or
     enabling/disabling the MainMenu entry for the achievements menu scene.
    
     AchievementSys MenuShow
    
     AchievementSys MenuHide
    
     AchievementSys MenuEnable
    
     AchievementSys MenuDisable
    
     ========================================================================
     Extra Data
     ========================================================================
    
     XDE.AchievementSys.Params.Data represents an array[26] containing all
     the achievements data [index:0 == null]. Every entry in the array is an
     object containing the following structure.
    
     { switchId: [id], name: [text], iconId: [id], description: [text] }
    
     ========================================================================
     Updates History
     ========================================================================
    
     1.0: Initial Release
     1.1: Corrected a few bugs and added a few more plugin commands
     1.2: Achievements title now can handle escape code text.
    
     ========================================================================


    Screenshots
     

    Spoiler
    Screen_Shot_2016_01_25_at_23_49_42.png


    Screen_Shot_2016_01_25_at_23_50_11.png


    How to Use
    Put plugin in the plugin folder and add it to your project. The place shouldn't be a problem.


    CALLING THE SCENE
    for now use an event with this java script code:
    SceneManager.push(Scene_Achievement);

    OR

    using Yanfly MainMenuManager:

    a ) choose your menu entry.
    b ) in the name field give a name to your liking ('Achievements') (USE quotation marks here)
    c ) set symbol to 'achievements' (DON'T USE quotation marks here )
    d ) set show & enable to true
    e ) paste this into the Main Bind (DON'T USE quotation marks) : "function( ) { SceneManager.push(Scene_Achievement) }.bind(this);"
    f ) you're ready to go!! :D

    OR (new since v1.1)

    activate auto add in the plugin properties.

    Script


    [Download Plugin Here v1.2]


    Updates
    v1.1 - Added new plugin commands to enable/disable and show/hide main menu entry


            - Added "Auto Add" functionality.


            - Fixed minor bugs and updated code structure.


            - Achievements description can be multiline (just use '\n' character) :)
    v1.1 (NEW) - Corrected a crashing bug! Sorry
    v1.2 Added escape characters capabilities to title window.


    Terms of Usage
    Free to use both on free and commercial games, give credit to author "xDGameStudios" and notify me of your game free or commercial (a demo would be appreciated  ).


    Credit and Thanks
    xDGameStudios
  2. It would be great if you could put the copy of the help section into a spoiler when you post your scripts - some of them are really big and it takes a bit of scrolling to get to the other info.  I've done this for you in at least one of your previous scripts, but I'd love it if you could do the same for this, and future ones :)
  3. Shaz said:
    It would be great if you could put the copy of the help section into a spoiler when you post your scripts - some of them are really big and it takes a bit of scrolling to get to the other info.  I've done this for you in at least one of your previous scripts, but I'd love it if you could do the same for this, and future ones :)

    Done, sorry
  4. Pretty nice idea and well done :)


    I will definetly use this in the future :D


    Now we just need to know how we can connect those with steam achievements
  5. This is the second "outside the box" plugin that I have found from you. I have really like your CodeLanguage plugin. Gonna try this one out now. Thanks very much for your hard work on these and sharing :)
  6. Unmercyful said:
    This is the second "outside the box" plugin that I have found from you. I have really like your CodeLanguage plugin. Gonna try this one out now. Thanks very much for your hard work on these and sharing :)



    Thank you! I'll try to keep them "outside the box" ;)
    Just updated the link, it could get broken but now it's everything ok :D
  7. Is it possible to tie an ingame reward to an achievement?


    As in you get an item/gold/etc.. for unlocking certain achievements.
  8. Myst Desdemona said:
    Is it possible to tie an ingame reward to an achievement?


    As in you get an item/gold/etc.. for unlocking certain achievements.



    You can simply create a parallel event that checks if the gold is over a certain value turn switch X [ON].
    The same way you can create an event that checks for item possession if so turn switch Y [ON].

    Don't forget to turn SelfSwitch ON and change event's page to the second page and delete it. So it isn't such a resource eater.
  9. xDGameStudios said:
    You can simply create a parallel event that checks if the gold is over a certain value turn switch X [ON].
    The same way you can create an event that checks for item possession if so turn switch Y [ON].

    Don't forget to turn SelfSwitch ON and change event's page to the second page and delete it. So it isn't such a resource eater.

    thank you for the clarification. This would be very useful :)
  10. Myst Desdemona said:
    thank you for the clarification. This would be very useful :)



    But keep a look on my plugins!! I might release something of your interest :)  maybe tonight
  11. I usually keep an eye out for new plugins. Although what interests me the most is a way to create new resources, or at least manipulate the mana/tp bar ( and their colors for each character.)
  12. Is it somehow possible to sort the achievements in order they are achieved rather than sorting them by ID?


    Anyhow.. very nice plugin! Thank you!
  13. Hi, I have three questions.


    1. How do I unlock a specific achievement? Ego what plugin command would I have to type?


    2. Is it possible to display a pop-up window that tells the player they've completed the achievement?


    3. Is it possible to have more achievements than there currently are? And how would I create them?
  14. Kinda in the same boat as the guy above? i downloaded your script, added it to the game, the menu is there but no achievements inside there, i have added them based on how i understand your instructions but i still dont see anything in game under achievements its empty, i tried a few methods of calling the achievement so i could just test it, i ltrally made a guy and gave him the call to complete the achievement but nothing i just get an error so im obviously doing something wrong, it could be something simple and stupid?? any ideas?

    what is needed to call the achievement so its complete, and also how do i get them to actually show in the achievements tab when i click it? im so confused right now :S
  15. Screech1989 said:
    Kinda in the same boat as the guy above? i downloaded your script, added it to the game, the menu is there but no achievements inside there, i have added them based on how i understand your instructions but i still dont see anything in game under achievements its empty, i tried a few methods of calling the achievement so i could just test it, i ltrally made a guy and gave him the call to complete the achievement but nothing i just get an error so im obviously doing something wrong, it could be something simple and stupid?? any ideas?

    what is needed to call the achievement so its complete, and also how do i get them to actually show in the achievements tab when i click it? im so confused right now :S

     You must fill in the blanks in the achievement mask section and then the individual achievements, both are in the plugin. If you don't want to show anything fill in # and they will show up in the menu. as for how to switch individual achievements between unlock and luck, I still have no idea.
  16. loozje said:
     You must fill in the blanks in the achievement mask section and then the individual achievements, both are in the plugin. If you don't want to show anything fill in # and they will show up in the menu. as for how to switch individual achievements between unlock and luck, I still have no idea.

    [EDIT]

    I got it working correctly for anyone stuck :

    Mask Name: ???????
    Mask Icon: #
    Mask Descr.:#

    Achievement Details:
    1 SwitchId : 2001
    1 Name: Learning The Basics
    1 Icon: 476
    1 Descr. : It's Good To Know How To Play

    I then created a Switch i used 2001 as i have so much other stuff and named it correctly :
     #2001 : Achv. 1 SwitchId
    Upon creating the event, or if your adding it to an event you already have, just add anywhere in the event:
    Control Switches : #2001 Achv. 1 SwitchId = ON

    Sorted :D
     
  17. Screech1989 said:
    Ok so at the moment i have :Mask Details :Mask Name: ???????Mask Icon:Mask Descr.:#Achievement Details:1 SwitchId : 20011 Name: Learning The Basics1 Icon:1 Descr. : It's Good To Know How To PlayI then set gameSwitch #2001 : Achv. 1 Learning The Basics.I then set the event that i wanted the achievement to be complete on eg. when you finish the tutorial of the game and talk to the guide. In his script i added :Control Switches : #2001 Achv. 1 Learning The Basics = ONOUTCOME:Before Talking to The Guide =The menu shows AchievementsInside Achievements Is my 1 Achievement and its greyed reading this:001: ???????It's Good To Know How To PlayAfter talking to the Guide =Achievement is still grey and with ????? etc, at this point i want the achievement to be complete, this is where i am stuck 






     

    Try setting the icon to a number. That seemed to work for me
  18. loozje said:
    Try setting the icon to a number. That seemed to work for me

    It's all sorted now i edited my previous post, thanks for the help tho :D  i had a few little bits wrong basically lol
  19. This is a really cool plugin! Thanks @xDGameStudios!


    I love the way the achievement menu looks especially, they're all so neatly organised and the big icons next to them looks awesome, especially the achievement ones you use in the screenshot  ;)


    EDIT: Is there any way to have more than 25 achievements? I ran out of space already...


    EDIT2: Also is there a way to use text codes in the title of the achievements menu? THIS ( see below ) doesn't work...

    Spoiler
    Capture4.PNG
  20. Sorry for my late response somehow I don't receive any notification of your questions --' well hope you all get how to make it work... I thought it would be easy to understand sorry if it isn't xP
    About the 25 achievement limit... I released this plugin as a demo... I intended to make a game of my own and some extra features will remain exclusive...
    I'll be making an update and release an expansion plugin for more a 100 achievements... and will change the title so it can use escape character... keep in mind it won't be centered... anymore... although you can add extra spaces to change that ;)
    See you in a coupe of hours!!