设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 1555|回复: 4
打印 上一主题 下一主题

[有事请教] 能不能让战斗核心插件中,释放技能不显示技能名

[复制链接]

Lv3.寻梦者

梦石
0
星屑
1364
在线时间
237 小时
注册时间
2017-11-5
帖子
51
跳转到指定楼层
1
发表于 2022-4-2 17:21:13 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
50星屑
如图,用了战斗核心插件。释放技能就会自动显示这个技能名字

~[QU269V9WX9NAQFT(UM]8P.png (377.61 KB, 下载次数: 15)

~[QU269V9WX9NAQFT(UM]8P.png

Lv3.寻梦者

梦石
0
星屑
2851
在线时间
446 小时
注册时间
2016-9-26
帖子
1222
2
发表于 2022-4-2 17:47:14 | 只看该作者
可能找到带this.draw的语句,你着看注释掉哪个就行(不确定这个插件是不是这样,只是mv引擎本身一般是这样的)
回复

使用道具 举报

Lv4.逐梦者

梦石
0
星屑
5217
在线时间
523 小时
注册时间
2017-9-28
帖子
151
3
发表于 2022-4-3 08:21:28 | 只看该作者
写yep战斗序列时,setup action里面不写display action

评分

参与人数 1+1 收起 理由
入坑小萌新 + 1 我很赞同

查看全部评分

回复

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
3766
在线时间
553 小时
注册时间
2016-2-11
帖子
113
4
发表于 2022-6-1 02:57:53 | 只看该作者
本帖最后由 liz_fly 于 2022-6-1 03:02 编辑

JAVASCRIPT 代码复制下载
  1. //=============================================================================
  2. // SimpleMsgSideView.js
  3. //=============================================================================
  4.  
  5. /*:
  6.  * @plugindesc 不显示攻击日志.
  7.  * @author Sasuke KANNAZUKI
  8.  *
  9.  * @param displayAttack
  10.  * @text 是否显示攻击日志
  11.  * @desc Whether to display normal attack. 1:yes 0:no
  12.  * @default 0
  13.  *
  14.  * @param position
  15.  * @text 技能名显示位置
  16.  * @desc Skill name display position. 0:左, 1:中间
  17.  * @default 1
  18.  *
  19.  * @help This plugin does not provide plugin commands.
  20.  *
  21.  * By not displaying the log and only displaying the skill name,
  22.  * the speed of battle will increase slightly.
  23.  */
  24.  
  25. /*:ja
  26.  * @plugindesc サイドビューバトルで技/アイテムの名前のみ表示します。
  27.  * @author 神無月サスケ
  28.  *
  29.  * @param displayAttack
  30.  * @desc 通常攻撃も表示するか (1:する 0:しない)
  31.  * @default 0
  32.  *
  33.  * @param position
  34.  * @desc 技名を表示する位置 (0:左寄せ, 1:中央)
  35.  * @default 1
  36.  *
  37.  * @help このプラグインには、プラグインコマンドはありません。
  38.  *
  39.  * ログを表示せず、技名のみを表示することで、戦闘のテンポが若干高速になります。
  40.  */
  41.  
  42. (function() {
  43.  
  44.   var parameters = PluginManager.parameters('SimpleMsgSideView');
  45.   var displayAttack = Number(parameters['displayAttack']) != 0;
  46.   var position = Number(parameters['position'] || 1);
  47.  
  48.   var _Window_BattleLog_addText = Window_BattleLog.prototype.addText;
  49.   Window_BattleLog.prototype.addText = function(text) {
  50.    if($gameSystem.isSideView()){
  51.      this.refresh();
  52.      this.wait();
  53.      return;  // not display battle log
  54.    }
  55.    _Window_BattleLog_addText.call(this, text);
  56.   };
  57.  
  58.   // for sideview battle only
  59.   Window_BattleLog.prototype.addItemNameText = function(itemName) {
  60.     this.refresh();
  61.     this.wait();
  62.   };
  63.  
  64.   var _Window_BattleLog_displayAction =
  65.    Window_BattleLog.prototype.displayAction;
  66.   Window_BattleLog.prototype.displayAction = function(subject, item) {
  67.     if($gameSystem.isSideView()){
  68.       if(displayAttack ||
  69.        !(DataManager.isSkill(item) && item.id == subject.attackSkillId())) {
  70.       this.refresh();
  71.         this.push('wait');
  72.       }
  73.       return;
  74.     }
  75.     _Window_BattleLog_displayAction.call(this, text);
  76.   };
  77.  
  78.   // to put skill/item name at center
  79.   var _Window_BattleLog_drawLineText = Window_BattleLog.prototype.drawLineText;
  80.   Window_BattleLog.prototype.drawLineText = function(index) {
  81.     if($gameSystem.isSideView() && position == 1){
  82.       var rect = this.itemRectForText(index);
  83.       this.contents.clearRect(rect.x, rect.y, rect.width, rect.height);
  84.       this.drawText(this._lines[index], rect.x, rect.y,
  85.        rect.width, 'center');
  86.       return;
  87.     }
  88.     _Window_BattleLog_drawLineText.call(this, index);
  89.   };
  90.  
  91. })();
回复

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
3766
在线时间
553 小时
注册时间
2016-2-11
帖子
113
5
发表于 2022-6-1 02:59:08 | 只看该作者
liz_fly 发表于 2022-6-1 02:57
//=============================================================================
// SimpleMsgSideView ...

MV自带的插件,改了一行代码而已
回复

使用道具 举报

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

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-4-27 18:30

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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