Buttons

hey guys does anyone know in which script the data is where you can see which key does what
because i need do delet the b button so that it wont open the menu if its pressed i need this for my project an i cant use the menu forbidden command on eventing because it causes trouble with my scripts so please help

edit : i found out that the game interpreter uses the command_351 to open the menu
but there is no button defined!

Code:
#--------------------------------------------------------------------------
  # * Open Menu Screen
  #--------------------------------------------------------------------------
  def command_351
    return if $game_party.in_battle
    SceneManager.call(Scene_Menu)
    Window_MenuCommand::init_command_position
    Fiber.yield
  end
an i cant use the menu forbidden command on eventing because it causes trouble with my scripts so please help
I'm not sure how you ended up like this ... but to completely remove menu calling
Code:
class Scene_Map
  def update_call_menu
  end
end
no its kinda complicated so basicly i have a windowskin changer script and i got an event which changes the windoskin evrey time i press B its the button to call the menu and it works fine the only problem i got is that if you press B to fast like imedeatly after closing the menu it opens the normal menu and not the menu that would be called with the event and than it has a diffrent skin so i need the menu call scene but i dont want the menu to open when i press b

can you understand it or should i make some screen shots or a demo
Why can't you use another key press there are several (z, x, a, s, q, w, ctrl, alt)
because if i use another key in the event there would be two keys which open two diffrent menus lol

thats why im asking in which script is the B button defined to open the menu

Edit:
@TheoAllen
i found what i was looking for

Code:
 #--------------------------------------------------------------------------
  # * Determine if Menu is Called due to Cancel Button
  #--------------------------------------------------------------------------
  def update_call_menu
    if $game_system.menu_disabled || $game_map.interpreter.running?
      @menu_calling = false
    else
      @menu_calling ||= Input.trigger?(:B)
      call_menu if @menu_calling && !$game_player.moving?
    end
  end

now i can just delete the :B from menu calling and hope that it works


Edit 2: ok so if i let this line empty
Code:
@menu_calling ||= Input.trigger?()

instead of

Code:
@menu_calling ||= Input.trigger?(:B)

I get an error so i tried to put in just something i put : P in onstead of :B

but this gave me an error aswell in following code
Code:
#--------------------------------------------------------------------------
  # * Restore Previous Selection Position
  #--------------------------------------------------------------------------
  def select_last
    select_symbol(@@last_command_symbol)
  end
end

i think its just because there is no : P input

any ideas what i can to for to get no input for calling the menu?
Code:
# @menu_calling ||= Input.trigger?🙂😎
The # comments out the line. making @menu_calling always false.
Or just set it to this
Code:
  def update_call_menu
#    if 
$game_system.menu_disabled #|| $game_map.interpreter.running?
#      @menu_calling = false
#   else
#    @menu_calling ||= Input.trigger?(:B)
#   call_menu if @menu_calling && !$game_player.moving?
#   end
  end
@Roninator2
i tried it just now but i cant use the scene_manager(Menu) call

Code:
SceneManager.call(Scene_Menu)
i get again this error

Code:
#--------------------------------------------------------------------------
  # * Restore Previous Selection Position
  #--------------------------------------------------------------------------
  def select_last
   select_symbol(@@last_command_symbol)
  end
end

i think simply outcomment the lines will not help i need to place something inbetween these Brackets


Edit 2 : Ok i finaly figured it out thanks i uncomment the lines as you said but when i did this the
Code:
SceneManager.call(Scene_Menu)
script call became usless so i tried to use instead the game interpreter with the script call

Code:
command_351
now it works perfect thank you so much
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/buttons.100386/