Envision, Create, Share

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.

How to call the inventory

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.
 
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

*EDIT*

I figured it out. Thanks for all your help.
 
Just use this:
Code:
def update_item
# B ボタンが押された場合
if Input.trigger?(Input::B)
# キャンセル SE を演奏
$game_system.se_play($data_system.cancel_se)
# メニュー画面に切り替え
$scene = Scene_Map.new
return
end
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top