How Do I Remove The Party Commands In Battle?

Discussion in 'RGSS3 Script Requests' started by ShinyRedUmbreon, Jul 15, 2019.

Thread Status:
Not open for further replies.
  1. ShinyRedUmbreon

    ShinyRedUmbreon Wannabe-Animator + Gamer Veteran

    Messages:
    61
    Likes Received:
    12
    First Language:
    English
    Primarily Uses:
    RMVXA
    At the beginning of every battle, a fight and escape menu is shown. How do i remove the commands from the battle? Keep in mind, this is for VX Ace(or RGSS3).
     
    #1
  2. Heirukichi

    Heirukichi Veteran Veteran

    Messages:
    1,247
    Likes Received:
    506
    Location:
    Italy
    First Language:
    Italian
    Primarily Uses:
    RMVXA
    Do you want to completely remove them (making escaping impossible) or do you want to just skip them when entering the battle?
     
    #2
  3. ShinyRedUmbreon

    ShinyRedUmbreon Wannabe-Animator + Gamer Veteran

    Messages:
    61
    Likes Received:
    12
    First Language:
    English
    Primarily Uses:
    RMVXA
    I'd like to completely remove them, so you wouldn't be able to go to the party commands menu, no matter what.
     
    #3
  4. slimmmeiske2

    slimmmeiske2 Little Red Riding Hood Moderator

    Messages:
    5,632
    Likes Received:
    4,144
    Location:
    Belgium
    First Language:
    Dutch
    Primarily Uses:
    RMXP

    Since this can't be done without a script (editing), I'm moving this to RGSS3 Script Requests.

     
    #4
  5. Heirukichi

    Heirukichi Veteran Veteran

    Messages:
    1,247
    Likes Received:
    506
    Location:
    Italy
    First Language:
    Italian
    Primarily Uses:
    RMVXA
    Then you have to edit the Scene_Battle class. I am not going to do that for you because I have no time right now, but, to anyone who wants to do it, here are two options:
    1. Without having to rewrite too many methods, simply move the viewport to the left and redirect the scene to directly activate the actors window (disallowing the cancel button when selecting actor actions);
    2. Rewrite the Scene_Battle class and its viewport to completely get rid of that said window this uses less memory but requires more work
     
    Last edited: Jul 16, 2019
    #5
  6. Roninator2

    Roninator2 Gamer Veteran

    Messages:
    1,731
    Likes Received:
    381
    Location:
    Canada
    First Language:
    English
    Primarily Uses:
    RMVXA
    An easy way is to put in Yanfly Ace Battle Engine script. There is an option in there to not use the party menu.
     
    #6
  7. ShinyRedUmbreon

    ShinyRedUmbreon Wannabe-Animator + Gamer Veteran

    Messages:
    61
    Likes Received:
    12
    First Language:
    English
    Primarily Uses:
    RMVXA
    I'm so bad at scripting, sorry. I didnt understand what you meant by moving the viewport to the left. I did see the word viewport in Scene_Battle!

    And you are right on that, Roninator2, but it also adds other things that I don't need. Also, its possible to press cancel and go back to the party commands menu.
     
    #7
  8. Roninator2

    Roninator2 Gamer Veteran

    Messages:
    1,731
    Likes Received:
    381
    Location:
    Canada
    First Language:
    English
    Primarily Uses:
    RMVXA
    Add this below Yanfly Ace Battle Engine
    Code:
    class Scene_Battle < Scene_Base
     
      def prior_command
        if BattleManager.prior_command
          start_actor_command_selection
        else
        start_party_command_selection unless YEA::BATTLE::SKIP_PARTY_COMMAND
        return unless YEA::BATTLE::SKIP_PARTY_COMMAND
        @party_command_window.deactivate
        if BattleManager.input_start
          command_fight
        else
          turn_start
        end
        end
      end
     
    end
     
    #8
  9. GGZiron

    GGZiron Veteran Veteran

    Messages:
    75
    Likes Received:
    25
    Location:
    Bulgaria
    First Language:
    Bulgarian
    Primarily Uses:
    RMVXA
    If you really are not up into using Yanfly, you could use this:


    Code:
    class Window_PartyCommand < Window_Command
       
      def setup; call_handler(:fight); end
    end
    What it does is basically force the fight handler, thus although commands are technically still there, they wouldn't display, and player wouldn't be able to select between them. It overwrites setup method of Window_PartyCommand.


    Maybe you would like this script to be bellow others.
     
    #9
  10. ShinyRedUmbreon

    ShinyRedUmbreon Wannabe-Animator + Gamer Veteran

    Messages:
    61
    Likes Received:
    12
    First Language:
    English
    Primarily Uses:
    RMVXA
    Both ways worked! Thank you to everyone who contributed to this thread.

    Mod, please lock this thread.
     
    #10
  11. slimmmeiske2

    slimmmeiske2 Little Red Riding Hood Moderator

    Messages:
    5,632
    Likes Received:
    4,144
    Location:
    Belgium
    First Language:
    Dutch
    Primarily Uses:
    RMXP

    This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

     
    #11
Thread Status:
Not open for further replies.

Share This Page