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

[转载发布] Verdelite's Remove Battle Commands

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

    连续签到: 2 天

    [LV.7]常住居民III

    7977

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 4 天前 | 显示全部楼层 |阅读模式
    Verdelite_RemoveBattleCommands v.1.00
    Verdelite


    Introduction
    This simple plugin enables you to assign a switch to a battle command and remove the linked battle command from the battle command window if the switch is on. The command will return once the switch is turned off.
    That's useful for creating tutorial battles where you hide commands until they're introduced or for restricting Item use for example.

    Features
    - Temporarily remove battle commands
    - Super simple to use

    How to Use
    1. Download the script here or copy the code and save as a .js file (Be sure to keep the file name) and move to your project's plugin folder
    2. Open the plugin manager to install the plugin. If you're using YEP_X_ChangeBattleEquip, be sure to place the this plugin above Yanfly's.
    3. Assign switches by inputting the switch ID into the parameters for the corresponding battle commands.
    4. Now you can remove/readd battle commands by turning the assigned switches on/off!

    Script
    Spoiler: Verdelite_RemoveBattleCommands
                    Code:       
    1. /*: @plugindesc v1.00 Simple Plugin removing commands from the Battle Command window using switches
    2. * @author Verdelite
    3. *
    4. * @param Switch for removing item command
    5. * @desc Enter switch ID for removing Item command, enter 0 for no switch
    6. * @default 0
    7. *
    8. * @param Switch for removing guard command
    9. * @desc Enter switch ID for removing Guard command, enter 0 for no switch
    10. * @default 0
    11. *
    12. * @param Switch for removing skill command
    13. * @desc Enter switch ID for removing Skill command, enter 0 for no switch
    14. * @default 0
    15. *
    16. * @param Switch for removing attack command
    17. * @desc Enter switch ID for removing Attack command, enter 0 for no switch
    18. * @default 0
    19. *
    20. * @help
    21. * SETUP:
    22. * Enter the switch ID for the corresponding commands.
    23. * If the switch is ON (true) the command will be hidden.
    24. * If the switch is OFF (false) or the ID is 0, the command will show as usual.
    25. *
    26. * If using Yanfly's ChangeBattleEquip Plugin, place this plugin above Yanfly's.
    27. *
    28. * ======================================================================================
    29. *
    30. * TERMS OF USE
    31. * Free for any commercial or non-commercial project!
    32. * No credit required
    33. */
    34.    (function() {
    35.   var parameters = PluginManager.parameters('Verdelite_RemoveBattleCommands');
    36.   var itemSwitch = Number(parameters['Switch for removing item command'] || 0);
    37.   var guardSwitch = Number(parameters['Switch for removing guard command'] || 0);
    38.   var skillSwitch = Number(parameters['Switch for removing skill command'] || 0);
    39.   var attackSwitch = Number(parameters['Switch for removing attack command'] || 0);
    40.   var _Verdelite_Window_ActorCommand = Window_ActorCommand.prototype.makeCommandList;
    41.   Window_ActorCommand.prototype.makeCommandList = function() {
    42.     if (this._actor) {
    43.         if(attackSwitch==0 || ($gameSwitches.value(attackSwitch)==false)){
    44.             this.addAttackCommand();
    45.         }
    46.       
    47.         if(skillSwitch==0 || ($gameSwitches.value(skillSwitch)==false)){
    48.             this.addSkillCommands();
    49.         }
    50.       
    51.         if(guardSwitch==0 || ($gameSwitches.value(guardSwitch)==false)){
    52.             this.addGuardCommand();
    53.         }
    54.         if(itemSwitch==0 || ($gameSwitches.value(itemSwitch)==false)) {
    55.             this.addItemCommand();
    56.         }
    57.     }
    58. };
    59. }) ();
    复制代码



    Terms of use
    Free for any commercial or non-commercial use!
    No credit required!


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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-1 08:37 , Processed in 0.087150 second(s), 52 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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