party members following you

dylansgames

Veteran
Veteran
Joined
Jan 14, 2014
Messages
41
Reaction score
0
First Language
english
Primarily Uses
Hi, I am wondering if there is a way for me to limit the amount of party members are physically following me, instead of them all following like a big snake id like there to be just the main actor and another. is there any way to do this?
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
Working on the assumption that the method of decreasing the number of followers is the same as for increasing them:

Go to your script editor.  Find the script Game_Party (it's in the section Game_Objects)

Scroll down to line 73 and change the 4 to the number of followers you want.
 

Zoltor

Veteran
Veteran
Joined
Jan 18, 2014
Messages
1,550
Reaction score
211
First Language
English
Primarily Uses
When I first read that RPG maker uses the Caterpillar party system, I was hoping the same thing, sigh how about if I don't want a bunch of char following me. It's definitely not a major issue, but still, it seems weird to force people to use that format(why didn't the developers make it a option, instead of sticking us with it, It's a weird mechanic to have as a default setup), but I would think someone created a script to do away with that already, if at all possible.

Edit: Lol KSJP beat me to it. Yep that would do it, I forgot you had access to all the scripts that RPG maker uses for its defaults, that makes things easier(no need for a override script, just edit the script already there).
 
Last edited by a moderator:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
When I first read that RPG maker uses the Caterpillar party system, I was hoping the same thing, sigh how about if I don't want a bunch of char following me. It's definitely not a major issue, but still, it seems weird to force people to use that format(why didn't the developers make it a option, instead of sticking us with it, It's a weird mechanic to have as a default setup), 
It is optional.  Go into database, select the tab 'System'.  Top right side, uncheck the box 'Show Player Followers'.  No caterpillar. 
 

Zoltor

Veteran
Veteran
Joined
Jan 18, 2014
Messages
1,550
Reaction score
211
First Language
English
Primarily Uses
Oh ok cool ty so it is, I briefly looked over the options in the system tab, but looks like I over looked it(I was kind of busy worrying about the Vehicles at the time), my bad.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Go to your script editor.  Find the script Game_Party (it's in the section Game_Objects)


Scroll down to line 73 and change the 4 to the number of followers you want.
No. This WILL change the number of people following you around on the map, but it will also change the number of people available to you in a battle. That's fine, if you WANT that to happen, but if you only want one follower visible on the map but four in battle, it won't work.
 

Zoltor

Veteran
Veteran
Joined
Jan 18, 2014
Messages
1,550
Reaction score
211
First Language
English
Primarily Uses
To Shaz: I haven't looked at that script, but shouldn't there be two different lines of code that are similar, just with one of them effecting the followers outside of battle, while the other one effects the party in battle?

It's really odd to see a single variable in the code, effect multiple aspects like that.

Oh wait a second, unless they wrote a code to make it go by what the number of followers you have following you, is that's what's going on?

If the latter is the case, you would have to delete this line, to code it the other way(kind of a pain, but if they did it the 2nd way, It's the only way to fix that)
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
No. Battles select the first max_battle_members (4) party members to create your battle troop. Followers select the first max_battle_members (4) to decide who to display on the map. Both call the same Game_Party method.


So if you changed it to 6 instead of 4, you would find 6 of your team in battles, and 6 characters walking around on the map. Easy to test for yourself ;)


Oh - you might be thinking of Game_Party.members, which is this:

Code:
in_battle ? battle_members : all_members
battle_members uses the max_battle_members method to determine how many to pull out. Game_Follower also uses the battle_members method - outside of battle.
 
Last edited by a moderator:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
So, if, as the OP asks, it's just the number of followers on the map that is to be changed, which of these bits of scripts is the one which should be altered?

and apologies, btw, for giving misleading info.  I forgot that this line also changed the number in battle.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Add this to a new script slot in Materials.

Code:
class Game_Party  def max_on_map    2    # <-- number of characters to show on map (including the leader)  endendclass Game_Followers  # OVERWRITES Game_Followers.initialize to use Game_Party.max_on_map to indicate how many followers  def initialize(leader)    @visible = $data_system.opt_followers    @gathering = false                    # Gathering processing underway flag    @data = []    @data.push(Game_Follower.new(1, leader))    (2...$game_party.max_on_map).each do |index|       @data.push(Game_Follower.new(index, @data[-1]))    end  endend
Untested.
 
Last edited by a moderator:

dylansgames

Veteran
Veteran
Joined
Jan 14, 2014
Messages
41
Reaction score
0
First Language
english
Primarily Uses
Shaz, I'm trying your coding and I am getting an error on line 5 saying that it "had an unexpected keyword_end, expecting $end end".

Edit, I fixed that and now its saying line 15 is saying no method error occurred. 

Edit, I recopied it. but it still shows all 3 of my party members.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Did you put it into a NEW script slot below all your other custom scripts? Can you show a screenshot of your script window with this script visible?


Oh - maybe change max_on_map to return 1 instead of 2? I may have misinterpreted that loop.
 
Last edited by a moderator:

dylansgames

Veteran
Veteran
Joined
Jan 14, 2014
Messages
41
Reaction score
0
First Language
english
Primarily Uses
It is in its own thing. Is this what you wanted?

blbla.png
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Yep, that's it. I put that in my game (with 2 in max_on_map) and it worked.


If you're getting errors, are you SURE they're with this script? What are your other party scripts that you're using? Try putting this one BELOW all the others and see if it works.
 

dylansgames

Veteran
Veteran
Joined
Jan 14, 2014
Messages
41
Reaction score
0
First Language
english
Primarily Uses
can you screen cap how you have it set up exactly? mine still doesnt work i deleted everything that deals with my party.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
It looks exactly like your screenshot, but I don't have the other scripts added that you do. That's why I suggested you move the script BELOW all the others.


What other scripts do you still have active? You've got a couple of party scripts in that list, and sometimes people forget to name scripts when they add them, so check and see if you have any "empty" script slots that actually contain scripts.


Try starting a completely new project and add JUST that little script, and see if it changes the number of followers. If it does, I'd be looking at what scripts you have still, for something else that either overwrites that initialize method or aliases it - having it STILL not work in your project, if it does in a completely new project with no other scripts, points to a likely script conflict. So if you've still got extra scripts in there, provide links to where you got them from and I'll take a quick look.
 

dylansgames

Veteran
Veteran
Joined
Jan 14, 2014
Messages
41
Reaction score
0
First Language
english
Primarily Uses
I think it was because of my previous saved game interfering with the way things looked. I tried it all and everything works. thank you so much! This is solved!
 

kerbonklin

Hiatus King
Veteran
Joined
Jan 6, 2013
Messages
1,726
Reaction score
275
First Language
English
Primarily Uses
RMMV
Yeah, remember that you have to start a New Game 99% of the time when changing anything script-related.
 

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

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,072
Members
137,578
Latest member
JamesLightning
Top