Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.
I was messing around with making menus, and wanted to know if there is a way to call the item screen without opening the menu? I know absolutely no ruby. If you could tell me how to do this, I would be forever grateful.
What would I change under Scene_Item to make it bring me back to the map instead of the main menu? I have an idea, but I don't want to ruin the script.
I did that and it says "Wrong number of Augments(1 for 0)". Does this mean I have to change the number after scene_map? If so what number?
def update_item
# B ボタンãŒæŠ¼ã•ã‚ŒãŸå ´åˆ
if Input.trigger?(Input::B)
# ã‚ャンセル SE ã‚’æ¼”å¥
$game_system.se_play($data_system.cancel_se)
# メニュー画é¢ã«åˆ‡ã‚Šæ›¿ãˆ
$scene = Scene_Map.new(0)
return
end
I don't understand. . . . here is the whole error:
"???? 'Scene_Item' ? 71 ??? Augment Error ??????????????
Wrong Number of Augments (1 for 0)
This is the edited piece from Scene_Item:
def update_item
# B ボタンãŒæŠ¼ã•ã‚ŒãŸå ´åˆ
if Input.trigger?(Input::B)
# ã‚ャンセル SE ã‚’æ¼”å¥
$game_system.se_play($data_system.cancel_se)
# メニュー画é¢ã«åˆ‡ã‚Šæ›¿ãˆ
$scene = Scene_Map.new(0)
return
end
This is what it was before:
def update_item
# B ボタンãŒæŠ¼ã•ã‚ŒãŸå ´åˆ
if Input.trigger?(Input::B)
# ã‚ャンセル SE ã‚’æ¼”å¥
$game_system.se_play($data_system.cancel_se)
# メニュー画é¢ã«åˆ‡ã‚Šæ›¿ãˆ
$scene = Scene_Menu.new(0)
return
end
def update_item
# B ボタンãŒæŠ¼ã•ã‚ŒãŸå ´åˆ
if Input.trigger?(Input::B)
# ã‚ャンセル SE ã‚’æ¼”å¥
$game_system.se_play($data_system.cancel_se)
# メニュー画é¢ã«åˆ‡ã‚Šæ›¿ãˆ
$scene = Scene_Map.new
return
end