1) Wklejasz to jako nowy skrypt:
class Scene_Item
def initialize(backtomap = false)
@backtomap = backtomap
end
def update_item
if Input.trigger?(Input::B)
$game_system.se_play($data_system.cancel_se)
if @backtomap == true
$scene = Scene_Map.new
else
$scene = Scene_Menu.new(0)
end
return
end
if Input.trigger?(Input::C)
@item = @item_window.item
unless @item.is_a?(RPG::Item)
$game_system.se_play($data_system.buzzer_se)
return
end
unless $game_party.item_can_use?(@item.id)
$game_system.se_play($data_system.buzzer_se)
return
end
$game_system.se_play($data_system.decision_se)
if @item.scope >= 3
@item_window.active = false
@target_window.x = (@item_window.index + 1) % 2 * 304
@target_window.visible = true
@target_window.active = true
if @item.scope == 4 || @item.scope == 6
@target_window.index = -1
else
@target_window.index = 0
end
else
if @item.common_event_id > 0
$game_temp.common_event_id = @item.common_event_id
$game_system.se_play(@item.menu_se)
if @item.consumable
$game_party.lose_item(@item.id, 1)
@item_window.draw_item(@item_window.index)
end
$scene = Scene_Map.new
return
end
end
return
end
end
end
2) Aby wywołać okno
Scene_Item, które na wchodzi do menu, a wychodzi bezpośrednio na mapę, używasz:
$scene = Scene_Item.new(true)
Do wszystkich skryptowych marud na forum: nie lubię aliasować i wiem że powinienem to robić.