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

[转载发布] DoubleX RMVXA Unison Addon to Yanfly Engine Ace - Ace Battle Engine

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

    连续签到: 2 天

    [LV.7]常住居民III

    9071

    主题

    864

    回帖

    6万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 2026-8-1 15:25:29 | 显示全部楼层 |阅读模式
    Purpose


            Lets users make actor unison skills/items needing multiple actors to use


    Notetags

    SpoilerSpoiler


                    Code:       
    1. #  * Skill/Item Notetags:                                                      |
    2. #    1. <unison actors: ids>                                                   |
    3. #       - Sets the list of id of actors needed for the skill/item as ids.      |
    4. #         For example:                                                         |
    5. #         <unison actors: 1> means actor with id 1 is required to use it       |
    6. #         <unison actors: 4, 2> means actors with id 4 and 2 are needed        |
    7. #       - All actors in list ids needs to be in the battle, inputable, able to |
    8. #         use it and pay its cost. They'll all pay the cost after using it.    |
    9. #         Only actors in list x can select it.                                 |
    10. #    2. <unison def rule: rule                                                 |
    11. #       - Sets the rule of setting user's def in the skill/item's damage       |
    12. #         formula as rule, whose symbol is one of those in UNISON_RULES.       |
    13. #       - The symbol of def must be included in UNISON_DEFS                    |
    14. #       - This notetag needs to be written below <unison item: ids> to work.   |
    15. #    3. <unison def actors: ids>                                               |
    16. #       - Sets user's method def in the skill/item's damage formula to use its |
    17. #         unison rule to combine those of actors with id includedin the list   |
    18. #         ids. def needs to be able to take no arguments and return a Numeric  |
    19. #         to work.                                                             |
    20. #         For example:                                                         |
    21. #         <unison atk actors: 1> means the user's atk in its damage formula    |
    22. #         uses thatof actor with id 1                                          |
    23. #         <unison mat actors: 4, 2> means the user's mat in its damage formula |
    24. #         uses mat of actors with id 4 and 2 under the skill/item's unison rule|
    25. #       - The symbol of def must be included in UNISON_DEFS                    |
    26. #       - This notetag needs to be written below <unison item: ids> to work.   |
    复制代码








    Configurations

    SpoilerSpoiler


                    Code:       
    1.     # Sets if the battlelog will show all actors involved in the unison skills
    2.     # or items instead of only the one invoking them
    3.     # If SHOW_UNISON_ACTOR_SWITCH_ID is a natural number, the state of switch
    4.     # with id SHOW_UNISON_ACTOR_SWITCH_ID will be used instead
    5.     SHOW_UNISON_ACTOR = true
    6.     SHOW_UNISON_ACTOR_SWITCH_ID = 0
    7.     # Sets the symbol of the rule used for setting the user's methods in the
    8.     # damage formula by using those of the included unison actors
    9.     # or items instead of only the one invoking them
    10.     # It must return a symbol included in UNISON_RULES
    11.     # If UNISON_DEF_RULE_VAR_ID is a natural number, the value of variable
    12.     # with id UNISON_DEF_RULE_VAR_ID will be used instead
    13.     UNISON_DEF_RULE = :avg
    14.     UNISON_DEF_RULE_VAR_ID = 0
    15.     # Implements the unison method rules
    16.     # The unison method value of all unison battlers can be referneced by vals
    17.     # The unison method rule symbol can be referenced by rule
    18.     # It's a method under Game_BattlerBase
    19.     # It must return a real number
    20.     UNISON_RULES = %Q(
    21.   def unison_rules(vals, rule) # This line shalln't be changed
    22.     if rule == :min
    23.       vals.min
    24.     elsif rule == :avg
    25.       vals.inject(:+) / vals.size
    26.     elsif rule == :max
    27.       vals.max
    28.     else
    29.       0
    30.     end
    31.   end
    32.     )
    33.     # Sets the battler methods to use the unison method rules
    34.     # Its keys must be the battler method name symbols
    35.     # Methods with name method_name will be aliased to method_name_unison
    36.     UNISON_DEFS = {
    37.       # General Form:
    38.       # [:method_class, :super_class] => [
    39.       #   :method_name
    40.       # ]
    41.       [:Game_BattlerBase] => [
    42.         :hp,
    43.         :mp,
    44.         :tp,
    45.         :mhp,
    46.         :mmp,
    47.         :atk,
    48.         :def,
    49.         :mat,
    50.         :mdf,
    51.         :agi
    52.         # Adds new methods here
    53.         
    54.       ],
    55.       [:Game_Actor, :Game_Battler] => [
    56.         :level
    57.         # Adds new methods here
    58.         
    59.       ]
    60.       # Adds new classes here
    61.       
    62.     }
    复制代码








    Info

    Spoiler 





    New Terms


                            Unison skill/item - Skill/item needing more than 1 battler to be used


                            Unison actors - All actors needed for the same unison skill/item


                            Unison invoker - The unison actor actually selecting and executing the unison skill/item


                            Unison invokee - Unison actor that's not the unison invoker


                            Empty action slot - An action slot without a skill/item but can be inputted with a skill/item


                            Inputted action slot - An action slot with a skill/item inputted


                            Reserved action slot - An action slot that can't be inputted with a skill/item


    Actor inputable check


                            An actor's inputable if and only if that actor has at least 1 empty action slot. Only empty and inputted action slots can be selected.


    Unison skill/item usability check


                            1. The actor trying to select an unison skill/item must be an unison actor of that skill/item


                            2. That actor must pass all the ordinary skill/item usability checks


                            3. For skills, all unison invokees must be movable, without autobattle nor confusion, meet the ordinary skill conditions, have learned that skill, and have at least 1 empty action slot or reserved action slot that is reserved by the currently inputted unison skill in the currently selected action slot


                            4. For items, all unison invokees must be movable and without autobattle nor confusion








    Video










    Games Using This Script


            None so far


    Prerequisites


            Scripts:


            1. Yanfly Engine Ace - Ace Battle Engine


            2. DoubleX RMVXA Clear Addon to Yanfly Engine Ace - Ace Battle Engine


            Abilities:


            1. Little RGSS3 scripting proficiency to fully utilize this script


    Terms Of Use


            You shall:


            1. Follow the terms of use of Yanfly Engine Ace - Ace Battle Engine


            2. Keep this script's Script Info part's contents intact


            You shalln't claim that this script's written by anyone other than DoubleX, his aliases, Yanfly, or his/her aliases


            None of the above applies to Yanfly or his/her aliases


    Instructions


            1. Open the script editor and put this script into an open slot between DoubleX RMVXA Clear Addon to Yanfly Engine Ace - Ace Battle Engine and Main, save to take effect.


    Authors


            DoubleX:


            1. This script


            Yanfly:


            1. Yanfly Engine Ace - Ace Battle Engine


    Changelog

    SpoilerSpoiler


                    Code:       
    1. #    v1.00c(GMT 0000 25-2-2016):                                               |
    2. #    1. Fixed nil actor in unison_item_usable? due to missing code bug         |
    3. #    2. Fixed not restroing the unison usable lock for the currently selected  |
    4. #       unison skill/item right before processing the prior command            |
    5. #    3. Fixed not clearing the unison usable lock for the currently selected   |
    6. #       unison skill/item right after processing the next command              |
    7. #    4. Fixed not clearing unison inputable/usable locks upon clearing unison  |
    8. #       action slot                                                            |
    9. #    v1.00b(GMT 1100 26-7-2015):                                               |
    10. #    1. Fixed reserving nonempty action slots and selecting reserved ones bug  |
    11. #    v1.00a(GMT 1200 22-7-2015):                                               |
    12. #    1. 1st version of this script finished                                    |
    复制代码








    View attachment (DoubleX)YEA-BattleEngine Unison v1.00c.rar


    本贴来自国际rpgmaker官方论坛作者:DoubleX处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/doublex-rmvxa-unison-addon-to-yanfly-engine-ace-ace-battle-engine.42669/
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-18 00:26 , Processed in 0.138337 second(s), 52 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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