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

[转载发布] DoubleX RMMV Popularized ATB Charge

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

    连续签到: 2 天

    [LV.7]常住居民III

    8037

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

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

    Purpose
    Lets users set skills/items to need time to charge before using

    Games using this plugin
    None so far

    Configurations
    Spoiler: Configurations
                    JavaScript:       
    1. * @param charge_c1
    2. * @desc Sets the 1st atb charge bar color as text color charge_c1
    3. *       charge_c1 must return a valid text color code
    4. *       charge_c1 should return the same value during the same battle to
    5. *       ensure proper atb charge bar color displays
    6. * @default 30
    7. *
    8. * @param charge_c2
    9. * @desc Sets the 2nd atb charge bar color as text color charge_c2
    10. *       charge_c2 must return a valid text color code
    11. *       charge_c2 should return the same value during the same battle to
    12. *       ensure proper atb charge bar color displays
    13. * @default 31
    14. *
    15. * @param charge_bar_text
    16. * @desc Sets the code of the charge bar description text as charge_bar_text
    17. *       It'll only be used if no <patb charge text: text> notetag's used
    18. *       Available charge_bar_text code:
    19. *       item - The name of the currently charging skill/item will be the charge
    20. *              bar description text
    21. *       Setting charge_bar_text as an unavailable code means atb_bar_text
    22. *       will be the charge bar description text
    23. *       charge_bar_text should return the same code during the same battle to
    24. *       ensure proper charge bar text displays
    25. * @default item
    26. *
    27. * @param charge_prior_item_cost
    28. * @desc Sets the skill/item charging to take place before paying its costs if
    29. *       charge_prior_item_cost is true
    30. *       It'll only be used if no <patb charge prior item cost> notetag's used
    31. *       charge_prior_item_cost should return the same value for the same action
    32. * @default true
    33. *
    34. * @param post_charge_common_event_id
    35. * @desc Sets the common event with id ppost_charge_common_event_id to be
    36. *       called right after a battler has finished charging a skill/item
    37. *       post_charge_common_event_id must return a Number
    38. *       If post_charge_common_event_id doesn't return the id of an existing
    39. *       common event, no common event will be called with this timing
    40. * @default 0
    复制代码

                    Code:       
    1. DoubleX_RMMV.PATB_Charge = {
    2.     /* Sets hotkeys cancelling the charging of the charging actor with the
    3.      * specified party member index
    4.      * The effects will be the same as calling the reset_patb() plugin call
    5.      * None of these hotkeys are supposed to be changed during the same battle
    6.      * Each hotkey will be referenced by $gameSystem.patb.charge_actor_index,
    7.      * where index is the index of the hotkey
    8.      * $gameSystem.patb.charge_actor_count must always be updated to maintain
    9.      * the exact number of these hotkeys
    10.      * The ith hotkey will try to select the charging actor with party member
    11.      * index i - 1
    12.      * Each of these hotkey must be a String
    13.      * Using a keyboard mapping plugin, like Quasi Input, can be useful here
    14.      */
    15.     charging_actors: [
    16.         // Setting these as the same as those in inputable_actors in the hotkey
    17.         // addon would cause the buzzer sound to be played on valid cases too
    18.         "#1", // Referenced by $gameSystem.patb.charge_actor_0
    19.         "#2", // Referenced by $gameSystem.patb.charge_actor_1
    20.         "#3", // Referenced by $gameSystem.patb.charge_actor_2
    21.         "#4", // Referenced by $gameSystem.patb.charge_actor_3
    22.         "#5", // Referenced by $gameSystem.patb.charge_actor_4
    23.         "#6", // Referenced by $gameSystem.patb.charge_actor_5
    24.         "#7", // Referenced by $gameSystem.patb.charge_actor_6
    25.         "#8", // Referenced by $gameSystem.patb.charge_actor_7
    26.         "#9", // Referenced by $gameSystem.patb.charge_actor_8
    27.         "#0" // Referenced by $gameSystem.patb.charge_actor_9
    28.         //
    29.     ]
    30. }; // DoubleX_RMMV.PATB_Charge
    复制代码


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


    Plugin Calls
    Spoiler                JavaScript:       
    1. *    # Data Skill/Item manipulations
    2. *      1. meta.patb_charge
    3. *         - Returns the skill/item invocation speed scale and charge rate
    4. *           code in the form of { scale: scale, code: code }
    5. *      2. meta.patb_charge = { scale: scale, code: code }
    6. *         - Sets the skill/item invocation speed scale and charge rate code
    7. *           in the form of { scale: scale, code: code }
    8. *         - All meta.patb_charge changes can be saved if
    9. *           DoubleX RMMV Dynamic Data is used
    10. *      3. meta.patb_charge_colors
    11. *         - Returns the text colors stored in
    12. *           <patb charge colors: text color 1, text color 2> in the form of
    13. *           [text color 1, text color 2]
    14. *      4. meta.patb_charge_colors = [text color 1, text color 2]
    15. *         - Sets the text colors stored in
    16. *           <patb charge colors: text color 1, text color 2> as text color 1
    17. *           and 2
    18. *         - All meta.patb_charge_colors changes can be saved if
    19. *           DoubleX RMMV Dynamic Data is used
    20. *      5. meta.patb_charge_text
    21. *         - Returns the text stored in <patb charge text: text>
    22. *      6. meta.patb_charge_text = text
    23. *         - Sets the text stored in <patb charge text: text> as text
    24. *         - All meta.patb_charge_text changes can be saved if
    25. *           DoubleX RMMV Dynamic Data is used
    26. *      7. meta.patb_charge_prior_item_cost
    27. *         - Returns whether the skill/item charging will take place before
    28. *           paying its costs
    29. *      8. meta.patb_charge_prior_item_cost = boolean
    30. *         - Sets whether the skill/item charging will take place before
    31. *           paying its costs
    32. *         - All meta.patb_charge_prior_item_cost changes can be saved if
    33. *           DoubleX RMMV Dynamic Data is used
    34. *    # Battler manipulations
    35. *      1. patb_val.charge
    36. *         - Returns the battler's charge value
    37. *      2. patb_val.charge = val
    38. *         - Set the battler's charge value as val
    39. *           (v1.04b+)Use fill_up_patb_charge() instead if val = max_patb_val
    40. *           in non-delay fill code and val = 0 in delay fill code, or the
    41. *           post charge event wouldn't trigger
    42. *      3. patb_rate.charge
    43. *         - Returns the battler's charge rate
    44. *      4. patb_rate.charge = rate
    45. *         - Set the battler's charge rate as rate
    46. *         - It'll be reevaluated if it can be changed without plugin calls
    47. *      5. patb_val_change.atb = true
    48. *         - Notifies that the charge value's changed
    49. *         - It must be used right after the atb bar length changed
    50. *      6. fill_up_patb_charge()
    51. *          - (v1.04b+)Fully fills up the battler's atb charge to its maximum
    复制代码






    Video

    https://www.youtube.com/embed/2T6cnXh_r7c

    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 Charge v103b
    2. * If you want to change that, you must edit the value of
    3. * DoubleX_RMMV.PATB_Charge_File, which must be done via opening this plugin
    4. * js file directly
    5. * (v1.03a+)You're supposed to edit this js file directly to setup hotkeys
    6. * cancelling the charging of charging actors with specified party member index
    复制代码






    Changelog

    Spoiler                JavaScript:       
    1. *      v1.03b(GMT 1400 15-6-2020):
    2. *      1. Added battler manipulation plugin call fill_up_patb_charge()
    3. *      v1.03a(GMT 1100 22-8-2017):
    4. *      1. Lets users cancel all skills/items of the selected charging actor
    5. *      v1.02a(GMT 1500 12-8-2016):
    6. *      1. Added post_charge_common_event_id
    7. *      2. In sync with the latest DoubleX RMMV Popularized ATB Core version
    8. *      v1.01a(GMT 1000 20-2-2016):
    9. *      1. Lets users set the charge bar description text via notetags
    10. *      2. Lets users set skill/item to be charged before paying its costs
    11. *      3. Fixed not refreshing the battler upon starting/ending charging bug
    12. *      v1.00a(GMT 0500 9-2-2016):
    13. *      1. 1st testing version of this plugin finished
    复制代码






    DoubleX RMMV Popularized ATB Charge


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

    本帖子中包含更多资源

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

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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-1 10:42 , Processed in 0.128203 second(s), 61 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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