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

Project1

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

[有事请教] 如何去除物品里武器和护甲这两个选项?

[复制链接]

Lv4.逐梦者

梦石
0
星屑
12157
在线时间
4435 小时
注册时间
2014-4-11
帖子
5955

开拓者

1
发表于 2018-1-18 09:48:47 | 显示全部楼层
找到    Window_ItemCategory
然后
Window_ItemCategory.prototype.maxCols = function() {
        if (this._battle) {return 2;}
    return 4;
};
这一段是设置一行有多少个选项。
if (this._battle) 是讲,当是战斗中的时候
return 4  是输出后面的数字
然后
Window_ItemCategory.prototype.makeCommandList = function() {
    this.addCommand(TextManager.item,    'item');
    this.addCommand(TextManager.weapon,  'weapon');
    this.addCommand(TextManager.armor,   'armor');
    this.addCommand(TextManager.keyItem, 'keyItem');
};
这一段,是讲选项都有哪些项目
不想要哪个就删哪个
this.addCommand(TextManager.item,    'item');
括号前面部分是显示的文字,后面部分是执行的代号
回复 支持 3 反对 0

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-5-18 08:02

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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