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.

Jump to status selection

Im wondering how on a map screen, you would push a button (i know how to configure buttons) and the menu screen would pop up. But, when you open the menu screen, i want teh selection cursor to already be in the character area, ready to select a character to view the status screen.
I would also like to know how to do this for the equip and skills screen.
Can someone help me?
Thanks XD
 
Probably the easiest way to do this would be to use a global variable.

What you need to do is simply set the status window to active and the command window to not active.

I would suggest making some kind of global variable and putting it at the list of them in scene_title, name it $menu_setting = 0, or something similar, after that you would put an if statement in the main section of scene_menu (under the commands to create the windows) which would look something like..

Code:
if $menu_setting == 1
   # Make status window active
   @command_window.active = false
   @command_window.index = 3
   @status_window.active = true
   @status_window.index = 0
   $menu_setting = 0
end

This would make the status window active whenever the variable is set to 1, so all you would do is make an input event in scene_map that set the variable to $menu_setting = 1 and then $scene = Scene_Menu.new below it.

You can do the same for the other menus essencially, with different settings.

Note: The @command_window.index sets the cursor to status, otherwise its on items, not a crucial thing but it makes it look better. =P

Hope this helps. If you don't get it i can probably explain more or provide some code.
 

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