Notifications System 1.3 + Add-on

Discussion in 'JS Plugin Releases (RMMV)' started by Lecode, Oct 25, 2015.

  1. Lecode

    Lecode (─‿‿─) Veteran

    Messages:
    483
    Likes Received:
    612
    First Language:
    French
    Primarily Uses:
    N/A
    Notifications System 1.3
    By Lecode


    Introduction
    The script draws some notifications according to in game events. Like gain gold, change exp, level up, ect.


    You can also draw a custom text.

    Features
    - Customizable (Size, color, position, ect)


    - Supported escape codes: \v[x], \c[x], \n[x], \p[x], \i[x] and \g


    - Slide animation


    - Long notifications are splitted in multiple notifications when you there is a new line or "|"


    - Fade effect

    Screenshots

    Spoiler



    [​IMG]


    [​IMG]


    [​IMG]




    How to Use


    /* Plugin Commands:
     *   -> Notification Clear                  ( Delete all notifications )
     *   -> Notification Enable true/false      ( Enable or disable notifications )
     *   -> Notification Position value         ( Change next notifications position )
     *   -> Notification TextColor value        ( Change text color )
     *   -> Notification FontSize value         ( Change font size )
     *   -> Notification FontItalic true/false  ( Change text italic property )
     *   -> Notification OutlineColor value     ( Change outline color set value to '' to remove )
     *   -> Notification OutlineWidth value     ( Change outline width )
     *   -> Notification ResetParameters        ( Reset all parameters )
     * Script call:
     *   -> this.newNotif(text)                 ( Draw a custom text )*/




    -Make sure to save the plugin as LeNotifications.js.


    -Insert the plugin below Yanfly Core Item if you're using it.


    ADD-ON: Closed Captions


    [​IMG]


    Adds a closed-captions feature, usefull for the hearing impaired.


    Notifications are shown with a description when a sound is played.


    Each BGM,SE, and BGS are linked to a description in a file you must create inside


    the /data folder and named "Notif_ClosedCaptions.json".


    The syntax is the following: "Sound name" : "Description" (and ended with a comma if it isn't the last element).


    Example:


    {
        "Explosion1": "LOUD CRASH !",
        "Theme1": "A sweeping, excited orchestral score communicating a |sense of wonder about the unknown."
    }



    Plugin and add-on


    Download them from my google drive.


    This plugin requires my utilities plugin


    Insert them in this order:


    -LeUtilities


    -LeNotifications


    -LeClosedCaptions. (If you use it).


    Bluebooth made an awesome json file for closed captioning.


    Version history:


    /*
    # - 1.0 : Initial release
    # - 1.1 : Bugfix
    # - 1.2 : Bugfix ( Enable Command )
    # - 1.3 : The notification visual is now a window,
    #         allowing some escape codes to work:
    #         \v[x], \c[x], \n[x], \p[x], \i[x] and \g
    #         Long notifications are splitted in multiple notifications
    #         when you use a new line or "|"*/



    Credit and Thanks
    - Lecode


    -Fisherrolol for the idea


    -TsukiHime and bluebooth for the add-on idea

    Author's Notes
    Feel free to suggest anything.
     
    Last edited by a moderator: Jun 21, 2016
    #1
    EZaxess, dahlys, Jadebones and 11 others like this.
  2. Silent Darkness

    Silent Darkness Robomage Veteran

    Messages:
    2,284
    Likes Received:
    319
    Location:
    Dark Realms
    First Language:
    English
    What would really be good is if we could set notifications to go off if a certain switch or variable is triggered.
     
    #2
  3. Lecode

    Lecode (─‿‿─) Veteran

    Messages:
    483
    Likes Received:
    612
    First Language:
    French
    Primarily Uses:
    N/A
    Simply use:

    Code:
    * -> Notification Enable true/false ( Enable or disable notifications )
     
    #3
  4. Lakaroth

    Lakaroth Veteran Veteran

    Messages:
    227
    Likes Received:
    119
    First Language:
    English
    Great, must be perfect if was possbile draw a custom number stored in a variable, like in messages \v[1], but decide also in wich position of the screen, without windows skin just text, in order to create custom menus or something like for minigames etc etc
     
    #4
  5. lolshtar

    lolshtar Master of Magic thatknow nospell Veteran

    Messages:
    691
    Likes Received:
    97
    First Language:
    French
    Primarily Uses:
    RMMV
    #5
  6. MuteDay

    MuteDay Mutation Engine Veteran

    Messages:
    253
    Likes Received:
    38
    First Language:
    English
    it also pops up 'name' of undefined or null
     
    #6
  7. Lecode

    Lecode (─‿‿─) Veteran

    Messages:
    483
    Likes Received:
    612
    First Language:
    French
    Primarily Uses:
    N/A
    With Yanfly Item Core ?
     
    #7
  8. MuteDay

    MuteDay Mutation Engine Veteran

    Messages:
    253
    Likes Received:
    38
    First Language:
    English
    yea
     
    #8
  9. Ramiro

    Ramiro Now with an army of Mecha-Ralphs! Veteran

    Messages:
    860
    Likes Received:
    360
    Location:
    Argentina
    First Language:
    Spanish
    Just a suggestion:

    why not add a new plugin command as:

    Notification new "your text here"and keep it consistent with the rest?
     
    #9
    Lecode likes this.
  10. andai

    andai Veteran Veteran

    Messages:
    54
    Likes Received:
    24
    Location:
    Vancouver, Canada
    First Language:
    English
    Excellent plugin! This kind of notification can be used to provide a wide variety of information as well as help with narrative! Quick question though, does it support utilizing icons? Thanks again for this awesome plugin! =D
     
    #10
    Lecode likes this.
  11. Lecode

    Lecode (─‿‿─) Veteran

    Messages:
    483
    Likes Received:
    612
    First Language:
    French
    Primarily Uses:
    N/A
    In fact the method to add a notification use a second parameter (called type) for future updates (e.g auto draw icons, customization category...)

    So I didn't know how to handle this argument since the text itself is a chain of multiple arguments. (Am I wrong ?)

    In addition it is more easy to customize your text in a script call. (Until I handle escape codes)

    var text = "Hello, ";text += String($gameActors.actor(2).name());this.newNotif(text);And finaly, it's still new to me. x)

    I'll try to implement it though, I haven't tried.

    EDIT: Perhaps:

    Notification Type Gold New "Text here..."
    Thanks. Not yet, but I plan to add it.
     
    Last edited by a moderator: Oct 26, 2015
    #11
    andai likes this.
  12. Ramiro

    Ramiro Now with an army of Mecha-Ralphs! Veteran

    Messages:
    860
    Likes Received:
    360
    Location:
    Argentina
    First Language:
    Spanish
    If you use a value between "" is considered as just one argument.

    You may add something like:

    Notification type "gold"Notification new "Message"Or try to look like a more a natural language:

    Notification of "gold" as "my message"And yes I agree the script call is both versatile, and more powerfull, but just to keep consistency it may be better.

    Anyway, you can provide both a javascript api and a plugin command api, that is also a possible trend than will start, like your configuration, imagine if you can configure your parameters like this too:

    this.notifications.configure({  enable: true, textColor: '#FF0000'});So in one call you may be able to configure it entirely.
     
    Last edited by a moderator: Oct 26, 2015
    #12
    Lecode likes this.
  13. Lecode

    Lecode (─‿‿─) Veteran

    Messages:
    483
    Likes Received:
    612
    First Language:
    French
    Primarily Uses:
    N/A
    It's a good idea :)
     
    #13
  14. Lecode

    Lecode (─‿‿─) Veteran

    Messages:
    483
    Likes Received:
    612
    First Language:
    French
    Primarily Uses:
    N/A
    Version 1.1 - Now compatible with Yanfly Item Core.

    Insert the plugin below it.

    ( Sorry for the double post, but It is just to notify those who encounter that issue ).
     
    Last edited by a moderator: Oct 27, 2015
    #14
  15. MuteDay

    MuteDay Mutation Engine Veteran

    Messages:
    253
    Likes Received:
    38
    First Language:
    English
    Works great although have to ask is there any way to have it show over the players head?
     
    #15
  16. MuteDay

    MuteDay Mutation Engine Veteran

    Messages:
    253
    Likes Received:
    38
    First Language:
    English
    1 bug if you set opacity to 0 then even the text becomes invisible to, although that may have been intended
     
    #16
  17. Lecode

    Lecode (─‿‿─) Veteran

    Messages:
    483
    Likes Received:
    612
    First Language:
    French
    Primarily Uses:
    N/A
    I plan to add this feature too ! :)

    Well, it is not really a bug...It is working as intended. But, good point I'll add the possibility to control the background's

    opacity only.
     
    #17
  18. MuteDay

    MuteDay Mutation Engine Veteran

    Messages:
    253
    Likes Received:
    38
    First Language:
    English
    well if i figure out how to get it above the players head ill let you know
     
    #18
  19. Koru-chan

    Koru-chan Veteran Veteran

    Messages:
    28
    Likes Received:
    5
    Location:
    Florida
    First Language:
    English
    Great notifications, very simple and nice looking.  I just have a few things.

    1. It makes the loot SE after a battle even if nothing was gained.  I made an encounter with an enemy that gave no exp, no items, and no gold, and yet it made the sound for gaining something upon leaving the battle and re-entering the map.

    2. It would be nice to disable it reporting on a battle in general.  I already have a victory aftermath screen for that, I don't really need the plugin notifying me of my spoils a second time.  I know there's a command to enable/disable, and that would work on bosses or evented battles, but that doesn't really help me on random encounters.
     
    #19
    Caxlb and Lecode like this.
  20. Lecode

    Lecode (─‿‿─) Veteran

    Messages:
    483
    Likes Received:
    612
    First Language:
    French
    Primarily Uses:
    N/A
    1. Okay I'll see what's wrong.

    2. Nice idea, I'll keep that in mind for the next version.
     
    #20
    Koru-chan likes this.

Share This Page