查看: 1981|回复: 2

[有事请教] 有什么指令能直接打开YEP-Row 阵型界面

[复制链接]
梦石
0
星屑
1363
在线时间
242 小时
注册时间
2017-11-5
回帖
25
发表于 2022-8-25 15:00:18 | 显示全部楼层 |阅读模式
悬赏10星屑已解决
想在地图上用事件打开yep阵型插件的界面,找不到插件指令,不知道有没有大佬知道

最佳答案

查看完整内容

脚本 SceneManager.push(Scene_Row) 想捣鼓成插件指令在插件脚本中的这个地方加红色那段脚本就可以,可以直接插件指令 打开阵型菜单,算是比填脚本更方便点 //============================================================================= // Game_Interpreter //============================================================================= Yanfly.Row.Game_Interpreter_pluginCommand = Game_Interpreter.prototy ...
梦石
0
星屑
2429
在线时间
363 小时
注册时间
2021-2-8
回帖
137
发表于 2022-8-25 15:00:19 | 显示全部楼层
本帖最后由 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);
};

点评

十分感谢指教  发表于 2022-8-25 16:02
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部