Menu Scrolling only with battle members

Status
Not open for further replies.

Oriceles

Veteran
Veteran
Joined
Apr 4, 2012
Messages
384
Reaction score
71
First Language
English
Primarily Uses
N/A
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).

 

Yato

(aka Racheal)
Veteran
Joined
Mar 17, 2012
Messages
825
Reaction score
346
Primarily Uses
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.
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,668
First Language
German
Primarily Uses
RMMV
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...
 

Oriceles

Veteran
Veteran
Joined
Apr 4, 2012
Messages
384
Reaction score
71
First Language
English
Primarily Uses
N/A
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!
 

Yato

(aka Racheal)
Veteran
Joined
Mar 17, 2012
Messages
825
Reaction score
346
Primarily Uses
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.
 

Oriceles

Veteran
Veteran
Joined
Apr 4, 2012
Messages
384
Reaction score
71
First Language
English
Primarily Uses
N/A
OMG IT WORKS!!!, Thanks Racheal :D !!

This thread is solved.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,981
Members
137,563
Latest member
cexojow
Top