查看: 2241|回复: 4

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

[复制链接]
梦石
0
星屑
1363
在线时间
242 小时
注册时间
2017-11-5
回帖
25
发表于 2022-4-2 17:21:13 | 显示全部楼层 |阅读模式
悬赏50星屑未解决
如图,用了战斗核心插件。释放技能就会自动显示这个技能名字

~[QU269V9WX9NAQFT(UM]8P.png
梦石
0
星屑
2866
在线时间
446 小时
注册时间
2016-9-26
回帖
1175
发表于 2022-4-2 17:47:14 | 显示全部楼层
可能找到带this.draw的语句,你着看注释掉哪个就行(不确定这个插件是不是这样,只是mv引擎本身一般是这样的)
回复

使用道具 举报

梦石
0
星屑
5725
在线时间
564 小时
注册时间
2017-9-28
回帖
151
发表于 2022-4-3 08:21:28 | 显示全部楼层
写yep战斗序列时,setup action里面不写display action

评分

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

查看全部评分

回复

使用道具 举报

梦石
0
星屑
5343
在线时间
683 小时
注册时间
2016-2-11
回帖
120
发表于 2022-6-1 02:57:53 | 显示全部楼层
本帖最后由 liz_fly 于 2022-6-1 03:02 编辑
  1. //=============================================================================
  2. // SimpleMsgSideView.js
  3. //=============================================================================

  4. /*:
  5. * @plugindesc 不显示攻击日志.
  6. * @author Sasuke KANNAZUKI
  7. *
  8. * @param displayAttack
  9. * @text 是否显示攻击日志
  10. * @desc Whether to display normal attack. 1:yes 0:no
  11. * @default 0
  12. *
  13. * @param position
  14. * @text 技能名显示位置
  15. * @desc Skill name display position. 0:左, 1:中间
  16. * @default 1
  17. *
  18. * @help This plugin does not provide plugin commands.
  19. *
  20. * By not displaying the log and only displaying the skill name,
  21. * the speed of battle will increase slightly.
  22. */

  23. /*:ja
  24. * @plugindesc サイドビューバトルで技/アイテムの名前のみ表示します。
  25. * @author 神無月サスケ
  26. *
  27. * @param displayAttack
  28. * @desc 通常攻撃も表示するか (1:する 0:しない)
  29. * @default 0
  30. *
  31. * @param position
  32. * @desc 技名を表示する位置 (0:左寄せ, 1:中央)
  33. * @default 1
  34. *
  35. * @help このプラグインには、プラグインコマンドはありません。
  36. *
  37. * ログを表示せず、技名のみを表示することで、戦闘のテンポが若干高速になります。
  38. */

  39. (function() {

  40.   var parameters = PluginManager.parameters('SimpleMsgSideView');
  41.   var displayAttack = Number(parameters['displayAttack']) != 0;
  42.   var position = Number(parameters['position'] || 1);

  43.   var _Window_BattleLog_addText = Window_BattleLog.prototype.addText;
  44.   Window_BattleLog.prototype.addText = function(text) {
  45.    if($gameSystem.isSideView()){
  46.      this.refresh();
  47.      this.wait();
  48.      return;  // not display battle log
  49.    }
  50.    _Window_BattleLog_addText.call(this, text);
  51.   };

  52.   // for sideview battle only
  53.   Window_BattleLog.prototype.addItemNameText = function(itemName) {
  54.     this.refresh();
  55.     this.wait();
  56.   };

  57.   var _Window_BattleLog_displayAction =
  58.    Window_BattleLog.prototype.displayAction;
  59.   Window_BattleLog.prototype.displayAction = function(subject, item) {
  60.     if($gameSystem.isSideView()){
  61.       if(displayAttack ||
  62.        !(DataManager.isSkill(item) && item.id == subject.attackSkillId())) {
  63.       this.refresh();
  64.         this.push('wait');
  65.       }
  66.       return;
  67.     }
  68.     _Window_BattleLog_displayAction.call(this, text);
  69.   };

  70.   // to put skill/item name at center
  71.   var _Window_BattleLog_drawLineText = Window_BattleLog.prototype.drawLineText;
  72.   Window_BattleLog.prototype.drawLineText = function(index) {
  73.     if($gameSystem.isSideView() && position == 1){
  74.       var rect = this.itemRectForText(index);
  75.       this.contents.clearRect(rect.x, rect.y, rect.width, rect.height);
  76.       this.drawText(this._lines[index], rect.x, rect.y,
  77.        rect.width, 'center');
  78.       return;
  79.     }
  80.     _Window_BattleLog_drawLineText.call(this, index);
  81.   };

  82. })();
复制代码
回复

使用道具 举报

梦石
0
星屑
5343
在线时间
683 小时
注册时间
2016-2-11
回帖
120
发表于 2022-6-1 02:59:08 | 显示全部楼层
liz_fly 发表于 2022-6-1 02:57
//=============================================================================
// SimpleMsgSideView ...

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

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部