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

[转载发布] DoubleX RMMV Popularized ATB Cooldown

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

    连续签到: 2 天

    [LV.7]常住居民III

    8038

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 5 天前 | 显示全部楼层 |阅读模式
    Note
    This plugin's available for commercial use

    Purpose
    Lets users set skills/items causing user to cooldown after user

    Games using this plugin
    None so far

    Configurations
    Spoiler: Configuration
                    Code:       
    1. * @param cooldown_c1
    2. * @desc Sets the 1st atb cooldown bar color as text color cooldown_c1
    3. *       cooldown_c1 must return a valid text color code
    4. *       cooldown_c1 should return the same value during the same battle to
    5. *       ensure proper atb cooldown bar color displays
    6. * @default 19
    7. *
    8. * @param cooldown_c2
    9. * @desc Sets the 2nd atb cooldown bar color as text color cooldown_c2
    10. *       cooldown_c2 must return a valid text color code
    11. *       cooldown_c2 should return the same value during the same battle to
    12. *       ensure proper atb cooldown bar color displays
    13. * @default 26
    14. *
    15. * @param cooldown_bar_text
    16. * @desc Sets the code of the cooldown bar description text as cooldown_bar_text
    17. *       It'll only be used if no <patb cooldown text: text> notetag's used
    18. *       Available cooldown_bar_text code:
    19. *       item - The skill/item name causing the cooldown will be the cooldown
    20. *              bar description text
    21. *       Setting cooldown_bar_text as an unavailable code means atb_bar_text
    22. *       will be the cooldown bar description text
    23. *       cooldown_bar_text should return the same code during the same battle to
    24. *       ensure proper cooldown bar text displays
    25. * @default item
    26. *
    27. * @param post_cooldown_common_event_id
    28. * @desc Sets the common event with id post_cooldown_common_event_id to be
    29. *       called right after a battler has finished cooling down
    30. *       post_cooldown_common_event_id must return a Number
    31. *       If post_cooldown_common_event_id doesn't return the id of an existing
    32. *       common event, no common event will be called with this timing
    33. * @default 0
    复制代码


    Notetags
    Spoiler: Notetags
                    Code:       
    1. *    # Skill/Item Notetags:                                                
    2. *    # Skill/Item Notetags:
    3. *      1. <patb cooldown: scale, code>
    4. *         - Sets the cooldown rate to use the skill/item's invocation speed,
    5. *           which will be multiplied by scale
    6. *         - code can be either of the below:
    7. *           set - The cooldown value per frame will be the skill/item's
    8. *                 invocation speed * scale, which should be nonnegative
    9. *           add - The cooldown value per frame will be the absolute value of
    10. *                 the battler atb gain value per frame + the skill/item's
    11. *                 invocation speed * scale
    12. *           multiply - If the skill/item's invocation speed * scale is
    13. *                      positive, the cooldown value per frame will be the
    14. *                      battler atb gain value per frame * the skill/item's
    15. *                      invocation speed * scale
    16. *                      If the skill/item's invocation speed * scale is
    17. *                      negative, the cooldown value per frame will be the
    18. *                      battler atb gain value per frame / (the skill/item's
    19. *                      invocation speed * scale)
    20. *                      If the skill/item's invocation speed * scale is 0, the
    21. *                      battler using the skill/item will be fully cooled down
    22. *                      in 1 frame
    23. *      2. <patb cooldown colors: text color 1, text color 2>
    24. *         - Changes the atb cooldown bar color 1 and 2 to text color 1 and 2
    25. *           respectively when this notetag's used
    26. *      3. <patb cooldown text: text>
    27. *         - Changes the atb cooldown bar description text as text when this
    28. *           notetag's used
    复制代码


    Plugin Calls
    Spoiler                Code:       
    1. *    # Data Skill/Item manipulations
    2. *      1. meta.patb_cooldown
    3. *         - Returns the skill/item invocation speed scale and cooldown rate
    4. *           code in the form of { scale: scale, code: code }
    5. *      2. meta.patb_cooldown = { scale: scale, code: code }
    6. *         - Sets the skill/item invocation speed scale and cooldown rate code
    7. *           in the form of { scale: scale, code: code }
    8. *         - All meta.patb_cooldown changes can be saved if
    9. *           DoubleX RMMV Dynamic Data is used
    10. *      3. meta.patb_cooldown_colors
    11. *         - Returns the text colors stored in
    12. *           <patb cooldown colors: text color 1, text color 2> in the form of
    13. *           [text color 1, text color 2]
    14. *      4. meta.patb_cooldown_colors = [text color 1, text color 2]
    15. *         - Sets the text colors stored in
    16. *           <patb cooldown colors: text color 1, text color 2> as text color
    17. *           1 and 2
    18. *         - All meta.patb_cooldown_colors changes can be saved if
    19. *           DoubleX RMMV Dynamic Data is used
    20. *      5. meta.patb_cooldown_text
    21. *         - Returns the text stored in <patb cooldown text: text>
    22. *      6. meta.patb_cooldown_text = text
    23. *         - Sets the text stored in <patb cooldown text: text> as text
    24. *         - All meta.patb_cooldown_text changes can be saved if
    25. *           DoubleX RMMV Dynamic Data is used
    26. *    # Battler manipulations
    27. *      1. patb_val.cooldown
    28. *         - Returns the battler's cooldown value
    29. *      2. patb_val.cooldown = val
    30. *         - Set the battler's cooldown value as val
    31. *           (v1.04b+)Use empty_patb_cooldown() instead if val = 0 in
    32. *           non-delay fill code and val = max_patb_val in delay fill code, or
    33. *           the cooldown won't finish properly
    34. *      3. patb_rate.cooldown
    35. *         - Returns the battler's cooldown rate
    36. *      4. patb_rate.cooldown = rate
    37. *         - Set the battler's cooldown rate as rate
    38. *         - It'll be reevaluated if it can be changed without plugin calls
    39. *      5. patb_val_change.cooldown = true
    40. *         - Notifies that the cooldown value's changed
    41. *         - It must be used right after the atb bar length changed
    42. *      6. empty_patb_cooldown()
    43. *          - (v1.04b+)Empties the battler's atb cooldown to its minimum
    复制代码






    Video

    https://www.youtube.com/embed/tjR2RdGZ5Uw

    Prerequisites
    Plugins:
    1. DoubleX RMMV Popularized ATB Core
    Abilities:
    1. Little Javascript coding proficiency to fully utilize this plugin

    Terms Of Use
    You shall keep this plugin's Plugin Info part's contents intact
    You shalln't claim that this plugin's written by anyone other than DoubleX or his aliases
    None of the above applies to DoubleX or his/her aliases

    Instructions
    Spoiler                Code:       
    1. * The default plugin file name is DoubleX RMMV Popularized ATB Cooldown v101c
    2. * If you want to change that, you must edit the value of
    3. * DoubleX_RMMV.PATB_Cooldown_File, which must be done via opening this plugin
    4. * js file directly
    复制代码






    Changelog
    Spoiler                Code:       
    1. *      v1.01c(GMT 1400 15-6-2020):
    2. *      1. Added battler manipulation plugin call empty_patb_cooldown()
    3. *      v1.01b(GMT 1500 11-8-2016):
    4. *      1. In sync with the latest DoubleX RMMV Popularized ATB Core version
    5. *      v1.01a(GMT 0200 20-2-2016):
    6. *      1. Lets users set the cooldown bar description text via notetags
    7. *      2. Lets users trigger a common event upon battler cooldown finish
    8. *      3. Fixed not refreshing the battler upon finishing cooldown bug
    9. *      4. Fixed a compatibility issue with charge addon upon cooldown finish
    10. *      v1.00a(GMT 1100 9-2-2016):
    11. *      1. 1st testing version of this plugin finished
    复制代码






    DoubleX RMMV Popularized ATB Cooldown


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

    本帖子中包含更多资源

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

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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-1 10:45 , Processed in 0.065605 second(s), 53 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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