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.

Mog's Menu Help

I'm using Mog's Menus and I'm stuck. I took off the Scene Menu (using Scene File) so I can use the default to test a quest script and see if the default works with it.
I have:
Item
Skill
Equip
Status
Quests
Save
End Game

When I click on "Quests" It takes me to "Save" when it isn't suppose to. I've only edited Scene_Menu and I think I'm forgetting to edit something but I can't find it. Help?

P.S. Is there a way to change the Mog Menu and add more slots like a default can? Like adding "Party", "Quests", etc?
 
I changed this...
Code:
#--------------------------------------------------------------------------
  # * Main Processing
  #--------------------------------------------------------------------------
  def main
    # Make command window
    s1 = $data_system.words.item
    s2 = $data_system.words.skill
    s3 = $data_system.words.equip
    s4 = "Status"
    s5 = "Quests"
    s6 = "Save"
    s7 = "End Game"
    @command_window = Window_Command.new(160, [s1, s2, s3, s4, s5, s6,s7])
 

khmp

Sponsor

There's also other places you must touch upon to get this to work. There's a case statement that resembles something like the code below somewhere within the Scene look for it:
Code:
case @command_window.index
  when 0 # Items
    ...
  when 1 # Skills
    ...
  when 2 # Equipment
    ...
  when 3 # Status
    ...
  when 4 # Save
    ...
  when 5 # Quit
    ...
end

You need to add to this case statement. Insert a new index 4 case to present the Quest Scene. And then increment every other case beyond 4. Save will become 5 and Quit will become 6. Does that make sense? If not:

Code:
case @command_window.index
  when 0 # Items
    ...
  when 1 # Skills
    ...
  when 2 # Equipment
    ...
  when 3 # Status
    ...
  when 4 # Quest stuff
    ...
  when 5 # Save
    ...
  when 6 # Quit
    ...
end

Good luck with it tchild! :thumb:
 
Ok. I works but it's only for the default menu. How do I edit it so that Mog's Menu can do that? The default has 7 listed (including "Quest") but when I use Mog's menu it becomes 6 (no "Quest").
 

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