Party Leader Changing

Status
Not open for further replies.

nathanlink169

Game Dev by Career, no idea what I'm doing
Veteran
Joined
Aug 15, 2013
Messages
72
Reaction score
32
First Language
English
Primarily Uses
RMMV
Hey guys! This has been brought up before here - http://www.rpgmakervxace.net/topic/7292-locking-a-leader-character-in-place-in-the-party/

However, this is more than a year old and no answer was brought. The problem is that whenever a new character is added, they then take the roll of party leader, no matter what. Things that have been tried:

  • Adding Actor 2, Removing Actor 1, Adding Actor 1
  • Removing Actor 1, Adding Actor 2, Adding Actor 1
  • Using Yanfly Party Engine to lock Actor 1 as party leader (Actor 1 gets unlocked, bumped down the queue then re-locked)
  • Using scripts in events to say things like $game_party.members[0] == $game_actors[1]
This is really frustrating and the first time I've ever encountered this problem. Does anyone know of any solution?

Also, before this is suggested, I have made the 392 and 402 line change in Yanfly's Party Engine script.
 

Mevo

Veteran
Veteran
Joined
Jan 6, 2014
Messages
35
Reaction score
2
First Language
English
Primarily Uses
Hey guys! This has been brought up before here - http://www.rpgmakervxace.net/topic/7292-locking-a-leader-character-in-place-in-the-party/

However, this is more than a year old and no answer was brought. The problem is that whenever a new character is added, they then take the roll of party leader, no matter what. Things that have been tried:

  • Adding Actor 2, Removing Actor 1, Adding Actor 1
  • Removing Actor 1, Adding Actor 2, Adding Actor 1
  • Using Yanfly Party Engine to lock Actor 1 as party leader (Actor 1 gets unlocked, bumped down the queue then re-locked)
  • Using scripts in events to say things like $game_party.members[0] == $game_actors[1]
This is really frustrating and the first time I've ever encountered this problem. Does anyone know of any solution?

Also, before this is suggested, I have made the 392 and 402 line change in Yanfly's Party Engine script.
Just press Esc Then change their formation

Then put the actor you want to be the party leader in the first spot
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,358
Reaction score
7,671
First Language
German
Primarily Uses
RMMV
First (and that is the same as in the linked topic in the other forum) you need to find the reason why the last added member becomes the leader.


Because in default, the last added member becomes the last member of the party, NOT the leader.


So you have a script added that changes that behaviour - remove all scripts until the last added member stays the last member, then check if that remains if the last deactivated script is the only one deactivated or if it's an incompatibility between several scripts.


After you've found the script that replaces the leader with the last added member, then we can help looking how to correct that script back into proper behaviour.
 
Last edited by a moderator:

Mevo

Veteran
Veteran
Joined
Jan 6, 2014
Messages
35
Reaction score
2
First Language
English
Primarily Uses
First (and that is the same as in the linked topic in the other forum) you need to find the reason why the last added member becomes the leader.

Because in default, the last added member becomes the last member of the party, NOT the leader.

So you have a script added that changes that behaviour - remove all scripts until the last added member stays the last member, then check if that remains if the last deactivated script is the only one deactivated or if it's an incompatibility between several scripts.

After you've found the script that replaces the leader with the last added member, then we can help looking how to correct that script back into proper behaviour.
Or he can just use my method Instead of removing Scripts
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
Or he can just use my method Instead of removing Scripts
But that means the eventual player will have to do that each time, which seems a bit unprofessional to me.  The player shouldn't have to do something because a script is malfunctioning, so I think it's better to find the reason for the error and deal with it.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,358
Reaction score
7,671
First Language
German
Primarily Uses
RMMV
Or he can just use my method Instead of removing Scripts
No, because that is something only the player can do - if the developer requires an actor to be in the first slot for story reasons, then your methods doesn't work because then the player needs to be forbidden to be able to change formation.
 

nathanlink169

Game Dev by Career, no idea what I'm doing
Veteran
Joined
Aug 15, 2013
Messages
72
Reaction score
32
First Language
English
Primarily Uses
RMMV
First (and that is the same as in the linked topic in the other forum) you need to find the reason why the last added member becomes the leader.

Because in default, the last added member becomes the last member of the party, NOT the leader.

So you have a script added that changes that behaviour - remove all scripts until the last added member stays the last member, then check if that remains if the last deactivated script is the only one deactivated or if it's an incompatibility between several scripts.

After you've found the script that replaces the leader with the last added member, then we can help looking how to correct that script back into proper behaviour.
Good call! I never thought of that. I got rid of Yanfly's Party System and it works fine now. It's strange though because in another game I was making, if I added a member he went to the back of the party, not the leader. I copied and pasted that script directly from that previous game into this one.
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,358
Reaction score
7,671
First Language
German
Primarily Uses
RMMV
Good call! I never thought of that. I got rid of Yanfly's Party System and it works fine now. It's strange though because in another game I was making, if I added a member he went to the back of the party, not the leader. I copied and pasted that script directly from that previous game into this one.
Then it's probably not because of a single script, but because of a combination of scripts.
Yanfly's scripts are relatively bug-free (one of the reasons why a lot of people use them), and I don't think that this effect was made by the party system alone (haven't tested it). Most probably it happens because another script effect was mixed up in the party system - that's why I suggested continuing seeking that other skript and only then decide which one to correct or ditch.
 

nathanlink169

Game Dev by Career, no idea what I'm doing
Veteran
Joined
Aug 15, 2013
Messages
72
Reaction score
32
First Language
English
Primarily Uses
RMMV
Then it's probably not because of a single script, but because of a combination of scripts.

Yanfly's scripts are relatively bug-free (one of the reasons why a lot of people use them), and I don't think that this effect was made by the party system alone (haven't tested it). Most probably it happens because another script effect was mixed up in the party system - that's why I suggested continuing seeking that other skript and only then decide which one to correct or ditch.
I've been through all of my scripts and removed them, none of the others seem to be causing the issue. The other thing is that at the moment, I only have Yanfly scripts installed. I'm planning on adding more later, but right now, there's only a few and they're all his.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
I use Yanfly's Party System script without this problem, and it's in conjunction with a lot of other scripts, so if you have not modified the script in any way, that, imo, cannot be the root cause of what's happening.
 

nathanlink169

Game Dev by Career, no idea what I'm doing
Veteran
Joined
Aug 15, 2013
Messages
72
Reaction score
32
First Language
English
Primarily Uses
RMMV
I use Yanfly's Party System script without this problem, and it's in conjunction with a lot of other scripts, so if you have not modified the script in any way, that, imo, cannot be the root cause of what's happening.
Nope, not modded at all. Like I said, I've used this exact version of the script in another game and it's worked perfectly fine. I have no idea what's wrong now
 

Linkerbell

bares fangs @ god
Member
Joined
Jul 16, 2014
Messages
12
Reaction score
3
First Language
english
Primarily Uses
RMMV
Hey I just had this same problem and I realize this is 4 years late and you may have very well solved this and had the same "oh my god i am so dumb" revelation that I did, but the problem was that I added a char and removed the first actor assuming that actor 2 would take lead position but they were actually still occupying slot 2, so when another actor is added - they would take lead. Solution was to swap removing and adding.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
[necro]Member[/necro]

Not only do you know that this is 4 years old, and therefore the OP is unlikely to be still searching for an answer, but the OP hasn't been on the site for over 3 years so will not see your post anyway.
 
Status
Not open for further replies.

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

Latest Threads

Latest Profile Posts

Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
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:

Forum statistics

Threads
105,854
Messages
1,017,004
Members
137,562
Latest member
tamedeathman
Top