查看: 811|回复: 2

[有事请教] 有无大佬帮忙修复一下这个插件的衍生bug

[复制链接]
奖 18 星屑 回复本帖可获得 2 星屑奖励! 每人限 1 次
梦石
0
星屑
1182
在线时间
228 小时
注册时间
2012-7-3
回帖
26
发表于 2025-8-19 16:19:43 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

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

×
找到一个可以复刻FF“双重吟唱”技能的插件,但是这个插件会导致“行动次数增加”的特性失效。具体表现为具有该特性的角色会在本回合无限选择行动,而不会转到选择下一个角色的行动。
这个插件效果还是不错的,有点不太舍得抛弃他,所以上论坛来问问有无大佬能帮忙做个补丁修补一下 谢谢大家

dingk_Multicast.zip

5.58 KB, 下载次数: 6

梦石
0
星屑
5773
在线时间
671 小时
注册时间
2020-6-14
回帖
86
发表于 2025-8-20 21:12:00 | 显示全部楼层

回帖奖励 +2 星屑

不确定会不会有bug,有待更多测试
1.更换行动清空规则(这一步可以不做,但会导致多次行动的角色在任意一次取消行动时清空所有刚选完的技能。改动后,仅在其中触发过本插件多次技能的前提下才会触发清空。)
[pre lang="javascript" line="335"]Game_Battler.prototype.resetMulticast = function() {
        if(this._isMulticast){
                this.clearActions();
           if (this.canMove()) {
                let actionTimes = this.makeActionTimes();
                this._actions = [];
                for (let i = 0; i < actionTimes; i++) {
                        this._actions.push(new Game_Action(this));
                }
        }
        }
        this._isMulticast = false;
        this._multicastType = 0;
        this._multicastSkills = [];
        if (Imported.YEP_X_SkillCostItems) {
                $gameParty.restoreContainers(this._mcItems, this._mcWeapons, this._mcArmors);
                this._mcItems = JsonEx.makeDeepCopy($gameParty._items);
                this._mcWeapons = JsonEx.makeDeepCopy($gameParty._weapons);
                this._mcArmors = JsonEx.makeDeepCopy($gameParty._armors);
        }
};[/pre]
2.将startActorCommandSelection全部改为selectPreviousCommand
[pre lang="javascript" line="550"]dingk.Multicast.SB_selectPreviousCommand = Scene_Battle.prototype.selectPreviousCommand;
Scene_Battle.prototype.selectPreviousCommand = function() {
        dingk.Multicast.SB_selectPreviousCommand.call(this);
        let actor = BattleManager.actor();
        if (Imported.YEP_X_SkillCostItems) {
                actor._mcItems = JsonEx.makeDeepCopy($gameParty._items);
                actor._mcWeapons = JsonEx.makeDeepCopy($gameParty._weapons);
                actor._mcArmors = JsonEx.makeDeepCopy($gameParty._armors);
        }
        if(actor){actor.resetMulticast();
        this._skillWindow.resetMulticast();}
};[/pre]

点评

目前没有异常,效果真的很不错,谢谢大佬  发表于 2025-8-20 22:58

评分

参与人数 1赞 +1 收起 理由
qq1293616440 + 1 塞糖

查看全部评分

克系游戏《书典怪奇录》内部开发中https://www.bilibili.com/video/BV1zp4y1B7Ce
任何热心游戏作者都欢迎的互相分享测试群1049580832
回复 1 0

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部