Project1

标题: 有什么指令能直接打开YEP-Row 阵型界面 [打印本页]

作者: 421342121    时间: 2022-8-25 15:00
标题: 有什么指令能直接打开YEP-Row 阵型界面
想在地图上用事件打开yep阵型插件的界面,找不到插件指令,不知道有没有大佬知道
作者: Heiko    时间: 2022-8-25 15:00
本帖最后由 Heiko 于 2022-8-25 15:28 编辑

脚本 SceneManager.push(Scene_Row)

想捣鼓成插件指令在插件脚本中的这个地方加红色那段脚本就可以,可以直接插件指令 打开阵型菜单,算是比填脚本更方便点

//=============================================================================
// Game_Interpreter
//=============================================================================

Yanfly.Row.Game_Interpreter_pluginCommand =
    Game_Interpreter.prototype.pluginCommand;
Game_Interpreter.prototype.pluginCommand = function(command, args) {
  Yanfly.Row.Game_Interpreter_pluginCommand.call(this, command, args);
  if (command === 'ShowMenuRow') $gameSystem.setShowRowMenu(true);
  if (command === 'HideMenuRow') $gameSystem.setShowRowMenu(false);
  if (command === 'EnableMenuRow') $gameSystem.setEnabledRowMenu(true);
  if (command === 'DisableMenuRow') $gameSystem.setEnabledRowMenu(false);
  if (command === 'ShowBattleRow') $gameSystem.setShowRowBattle(true);
  if (command === 'HideBattleRow') $gameSystem.setShowRowBattle(false);
  if (command === 'EnableBattleRow') $gameSystem.setEnabledRowBattle(true);
  if (command === 'DisableBattleRow') $gameSystem.setEnabledRowBattle(false);
  if (command === 'SetActorRow') this.setActorRow(args);
  if (command === 'SetPartyRow') this.setPartyRow(args);
  if (command === 'SetEnemyRow') this.setEnemyRow(args);
  if (command === '打开阵型菜单') SceneManager.push(Scene_Row);
};




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