Project1

标题: 能不能让战斗核心插件中,释放技能不显示技能名 [打印本页]

作者: 421342121    时间: 2022-4-2 17:21
标题: 能不能让战斗核心插件中,释放技能不显示技能名
如图,用了战斗核心插件。释放技能就会自动显示这个技能名字

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

~[QU269V9WX9NAQFT(UM]8P.png

作者: 任小雪    时间: 2022-4-2 17:47
可能找到带this.draw的语句,你着看注释掉哪个就行(不确定这个插件是不是这样,只是mv引擎本身一般是这样的)
作者: 中华国哥    时间: 2022-4-3 08:21
写yep战斗序列时,setup action里面不写display action
作者: liz_fly    时间: 2022-6-1 02:57
本帖最后由 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. })();

作者: liz_fly    时间: 2022-6-1 02:59
liz_fly 发表于 2022-6-1 02:57
//=============================================================================
// SimpleMsgSideView ...

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




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1