Menu Scrolling only with battle members

Hi RMweb.

In my project I have the formation/party command disabled so the Player can only change the battle members at a guild house with another window, the problem is that right now he can bypass the limitation with the Menu, this allowing the player to change the equipment of inactive actors and using  their healing skills through the menu.

So basically I'm asking to modify this menu function and setting it to only be able to select battle members, the same goes with the quick scrolling function (Q and W on the keyboard).

inactivemembersproblem_zps407a9599.png
class Game_Party < Game_Unit
attr_accessor :in_army


#--------------------------------------------------------------------------


# * Object Initialization


#--------------------------------------------------------------------------


alias game_party_initialize_rrns initialize


def initialize


game_party_initialize_rrns


@in_army = false


end


#--------------------------------------------------------------------------


# * Get Members


#--------------------------------------------------------------------------


def members


in_army ? all_members : battle_members


end


end


class Scene_Army < Scene_MenuBase


#--------------------------------------------------------------------------


# * Start


#--------------------------------------------------------------------------


alias scene_army_start_rrns start


def start


$game_party.in_army = true


scene_army_start_rrns


end


#--------------------------------------------------------------------------


# * Terminate


#--------------------------------------------------------------------------


alias scene_army_return_scene_rrns return_scene


def return_scene


$game_party.in_army = false


scene_army_return_scene_rrns


end


end

This needs to go under Galv's script. You'll be able to scroll through all members with Q/W and such in the army-related screen, but not the regular menu.
So basically I'm asking to modify this menu function and setting it to only be able to select battle members, the same goes with the quick scrolling function (Q and W on the keyboard).
Next time, please provide a link to the menu script you're using - and confirm wheter Racheal's guess that it's Galv's script is correct or not.
Any such modification has to go into the menu script you're using, and it's a good chance that you're using Galv's because that is the only one I know off with horizontal instead of vertical scrolling - but not everyone knows that script, and it might be that you have found something else that looks similiar somewhere on the web.


So ALWAYS provide links to the scripts you're asking us to modify for you, otherwise most scripters won't be able to even start helping...
Oh sorry Andar I didn't have in mind the request guidelines when posting this, I will modify the OP later.

@Racheal: Thanks for the reply!!! I will check that script in a while and I will confirm here if anything happens!
The Galv script I was referring to was the army script that he did link to, not a menu script. So there was no guessing involved.


Because I'm editing Game_Party and not the menu/various scenes involved, this should work with most menu systems anyway, as long as it uses $game_party.members to access the party and not all_members.
OMG IT WORKS!!!, Thanks Racheal 😀 !!

This thread is solved.
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.

Original thread: https://forums.rpgmakerweb.com/threads/menu-scrolling-only-with-battle-members.21638/