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

Project1

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

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

[复制链接]

Lv3.寻梦者

梦石
0
星屑
1364
在线时间
237 小时
注册时间
2017-11-5
帖子
51
跳转到指定楼层
1
发表于 2022-8-25 15:00:18 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
10星屑
想在地图上用事件打开yep阵型插件的界面,找不到插件指令,不知道有没有大佬知道

最佳答案

查看完整内容

脚本 SceneManager.push(Scene_Row) 想捣鼓成插件指令在插件脚本中的这个地方加红色那段脚本就可以,可以直接插件指令 打开阵型菜单,算是比填脚本更方便点 //============================================================================= // Game_Interpreter //============================================================================= Yanfly.Row.Game_Interpreter_pluginCommand = Game_Interpreter.prototy ...

Lv3.寻梦者

梦石
0
星屑
2356
在线时间
363 小时
注册时间
2021-2-8
帖子
149
2
发表于 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
回复

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-5-4 13:30

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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