设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 88|回复: 0

[转载发布] Flare Collection: Notification

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    2026-7-12 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    8279

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    30565
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    39738

    灌水之王

    发表于 6 天前 | 显示全部楼层 |阅读模式
    Flare Notification - vs 3.0
    Darkness Falls

    Terms: Credit must be given to me. Mit license means you can do what ever. 

    free for commercial usage 



    Flare Notifications allows you to create notification windows based on different events.

    So lets create a notification:

    FlareNotification.notify("\\i[8] \\c[10]Hello World\\c[0]", stickToTop, fadeOutNearBottom);

    This creates a notification window that will scroll down the game window fading in and then out at a specified rate given by the options.

    As you can see we give the notification window some text. Optional values are stickToTop and fadeOutNearBottom which should be obvious what they do.

    fadeOutNearBottom is calculated based on a plugin setting which lets you calculate when it it should start fading out.

    All windows are added to a cue, first in first out.

    For example an event can have:

    FlareNotification.notify("\\i[8] \\c[10]Hello World\\c[0]", false, true, {windoWidth: 900, windowX: 2, windowY: 90});FlareNotification.notify("\\i[8] \\c[10]Hello World\\c[0]", true, false, {windoWidth: 900, windowX: 2, windowY: 90, fontSize: 20});// Options are passed in as an object:// windowWidth = The width of the notification window.// windowX = The x position of the window.// windowY = the y position of the window.// fontSize = the font size for the window.FlareNotification.notify("\\i[8] \\c[10]Hello World\\c[0]");FlareNotification.notify("\\i[8] \\c[10]Hello World\\c[0]");FlareNotification.notify("\\i[8] \\c[10]Hello World\\c[0]");FlareNotification.notify("\\i[8] \\c[10]Hello World\\c[0]");FlareNotification.notify("\\i[8] \\c[10]Hello World\\c[0]");

     

    This adds ten windows to an event that will then all be called.

    ATTN!

    If you have 1 or more notifications and you open a menu, enter a battle. we will play the next set of notifications. If you then open a battle or a menu we will remove any notifications currently on the screen. This is similar behavior to the map name.

    Regarding windowY

    If you set the window Y to low or too high you may never see the notification because the window moved down the y axis and as it does it fades out over time. That time can be adjusted how ever.

    Event Based Notifications

    Now you can enable a set of options to turn on event based notifications for weapons, armor, items, xp, gold, hp, mp and so on. There are a ton of individual event notifications that you can turn on or off so that you are not creating events all the time that contain notifications after a party gains x item or loses x hp.

    These only trigger on events that require the player to some how activate them. They do not play in battle or in menus.

    Event based notifications have options for the way the window looks and behaves including width, font size, stay at the top, how long till next window and so on. These options are different then self created notification window options and are individual for each type of event notification.

    ATTN!!

    Assume you have 6 events that play (all at once) as the player triggers them. The notification messages are added to a queue. The events will play out, level messages and other types of messages will play out associated with that event. these messages are known as $gameMessage's.

    The notification event messages will play directly after according to how they were added to a queue.

    How to get the script?Download Here.

    FAQ:

    How do I use this?

    Download the dist/ script or make a new JS file called: Flare-NotificationWindow.js and then follow the above steps. Do not forget to save and enable the script.

    Are there incompatibilities?

    Not as far as I know? Post them if there is. Rules are: Screen shot of the error, console too if you have Yanflys core script. What you were doing, what caused the crash, what scripts you are using.

    Can you add a feature?

    Yes. Just let me know what you want and ill consider it. 

    - I found a bug!

    Follow the "Are there incompatibilities" rules for positing bugs. It helps me debug.


    本贴来自国际rpgmaker官方论坛作者:DarknessFalls处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/flare-collection-notification.49617/

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-8-1 19:42 , Processed in 0.146917 second(s), 52 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表