Buttons

Status
Not open for further replies.

Zino97

Villager
Member
Joined
Mar 17, 2014
Messages
25
Reaction score
0
First Language
Russian
Primarily Uses
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
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,594
Reaction score
6,527
First Language
Indonesian
Primarily Uses
RMVXA
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
 

Zino97

Villager
Member
Joined
Mar 17, 2014
Messages
25
Reaction score
0
First Language
Russian
Primarily Uses
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
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,661
Reaction score
563
First Language
English
Primarily Uses
RMVXA
Why can't you use another key press there are several (z, x, a, s, q, w, ctrl, alt)
 

Zino97

Villager
Member
Joined
Mar 17, 2014
Messages
25
Reaction score
0
First Language
Russian
Primarily Uses
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?
 
Last edited:

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,661
Reaction score
563
First Language
English
Primarily Uses
RMVXA
Code:
# @menu_calling ||= Input.trigger?:)B)
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
 

Zino97

Villager
Member
Joined
Mar 17, 2014
Messages
25
Reaction score
0
First Language
Russian
Primarily Uses
@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
 
Last edited:
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

"You can thank my later", "But you haven't done anything", "Well, that's why ..."
Are we allowed to post about non-RPG Maker games?
I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

Forum statistics

Threads
105,884
Messages
1,017,243
Members
137,609
Latest member
shododdydoddy
Top