コード: 全て選択
this._categoryWindow.select(0);
1: 武器
2: 防具
3: 大事なもの
になっています。つまり…
コード: 全て選択
this._categoryWindow.select(3);
追記:整理したスクリプトを用意して頂けたようなのでそっちでよさそうですね。上記だけだとちょっと足りなかった
コード: 全て選択
this._categoryWindow.select(0);
コード: 全て選択
this._categoryWindow.select(3);
コード: 全て選択
{
"use strict";
const _Scene_Item_start = Scene_Item.prototype.start;
Scene_Item.prototype.start = function() {
_Scene_Item_start.call(this);
if( 0 < SceneManager._stack.length ) return;
SceneManager._stack.push(Scene_Map.prototype.constructor);
SceneManager._stack.push(Scene_Menu.prototype.constructor);
const symbol = 'keyItem';
this._categoryWindow.selectSymbol(symbol);
this._categoryWindow.deactivate();
this._itemWindow.setCategory(symbol);
this.onCategoryOk();
};
}