Re: コモンイベント後にもう一度アイテム選択画面に戻りたい
Posted: 2021年3月19日(金) 12:50
				
				
			コード: 全て選択
{
    "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();
    };
}