Menu > Equip scene edit needed (or help to do it myself)

Discussion in 'RGSS3 Script Requests' started by gregbaby, Jul 31, 2017.

  1. gregbaby

    gregbaby Evil Genius. o_O Veteran

    Messages:
    255
    Likes Received:
    11
    Location:
    The world.
    First Language:
    English
    Primarily Uses:
    RMVXA
    Hello everyone!

    My game has only one playable character and therefore I'm looking to do a slight edit to the menu. When I go into my menu and select Equip I want it to bypass the actor select bit and jump straight to the equipment selection screen. I've had a dig about in the script files but I'm not sure which lines I need to comment out to get it working for me.

    Any advice would be greatly appreciated!

    Cheers,

    Greg
     
    Last edited: Jul 31, 2017
    #1
  2. mlogan

    mlogan Global Moderators Global Mod

    Messages:
    13,661
    Likes Received:
    7,532
    Location:
    Texas
    First Language:
    English
    Primarily Uses:
    RMMV

    I've moved this thread to Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.

     
    #2
  3. gregbaby

    gregbaby Evil Genius. o_O Veteran

    Messages:
    255
    Likes Received:
    11
    Location:
    The world.
    First Language:
    English
    Primarily Uses:
    RMVXA
    Apologies. This is a VX Ace topic also.
     
    #3
  4. mlogan

    mlogan Global Moderators Global Mod

    Messages:
    13,661
    Likes Received:
    7,532
    Location:
    Texas
    First Language:
    English
    Primarily Uses:
    RMMV
    Sorry, because there is only one RGSS support section, I forget there are multiple request sections.
     
    #4
  5. Sixth

    Sixth Veteran Veteran

    Messages:
    2,122
    Likes Received:
    792
    First Language:
    Hungarian
    Primarily Uses:
    RMVXA
    Not everything can be solved by commenting out something. :D

    Try this snippet:
    Code:
    class Scene_Menu < Scene_MenuBase
    
      alias skip_act_sel9972 create_command_window
      def create_command_window
        skip_act_sel9972
        @command_window.set_handler(:equip, method(:call_equip_scene))
      end
    
      def call_equip_scene
        if $game_party.members.size > 1
          command_personal
        else
          SceneManager.call(Scene_Equip)
        end
      end
    
    end
    
    Put it below the default scripts.
    This should do what you asked for, although I haven't tested it.
    Also, if you use a custom menu, it might interfere with this snippet.
     
    Last edited: Aug 5, 2017
    #5
  6. Morpheus

    Morpheus Graphic Designer Veteran

    Messages:
    111
    Likes Received:
    8
    First Language:
    english
    Primarily Uses:
    N/A
    Works perfectly, thanks for your help, any chance you can edit it so that if you have more than 1 party member it goes back to the way it was?
     
    #6
  7. gregbaby

    gregbaby Evil Genius. o_O Veteran

    Messages:
    255
    Likes Received:
    11
    Location:
    The world.
    First Language:
    English
    Primarily Uses:
    RMVXA
    Thanks Sixth! You seem to be the only person on this forum that still helps with VX Ace queries, you sir are a legend!
     
    #7
    Sixth likes this.
  8. Sixth

    Sixth Veteran Veteran

    Messages:
    2,122
    Likes Received:
    792
    First Language:
    Hungarian
    Primarily Uses:
    RMVXA
    I have edited the snippet in my previous post.
    Now it will use the default way if the party got more than 1 members.
     
    #8

Share This Page