Hey there I have 2 questionS.
1) I have several battles where a specific party member/s must be present in the battle and cannot be switched out. Ex: A fight scene between bitter rivals, the rival(boss) and hero(you), such as that the hero must be one of the party members to enter the battle, but the other members can be switched out.
2) There is a scene where the main character has to fight someone one on one, how do I set it so that the other characters are not present in the battle, but can be used again after the battle.
Thank you! 😀
-Julio A. Delgado (JAD)
1) I think yanfly's party script has a lock option ,and also one where you can make him "need" a party member before going on
2) You can remove them from the party then re-add later (make sure initialize is off, else they'll go back to level 1 and lose current equipments)... or modify the battle members (via modifying the scripts) to include only the leader
Oh ok thanks I'll check it out 😀
Yeah, I've got a couple of spots in my game where a particular character must be alone, or be in a battle alone.
I set variables to keep track of who is in the party and in what order (actually, I might have written a little script to simplify this), then remove them all except for the one I want to be there, and add them back in the correct order later. So I use the second method suggested above.
That's exactly what I need! What script\variable did you use?
I made a little script to remember the party lineup, and another to restore it afterwards. Then in the event I just did a script call to remember, removed everyone one by one via the existing Change Party Member commands, then later another script call to restore the lineup (I didn't have to re-add the party members).
I'm on a different computer now and won't be able to look at the script for another few hours, but maybe someone else will be able to quickly write something up for you in the meantime.
If you just want to do it with variables and not worry about actually adding scripts, you could do it something like this just using events (again, I don't have Ace with me, so I'm going by memory and this might be buggy - someone may be able to test and fix it for you):
Control Variables: [0001: Party Lineup] = Script: $game_party.all_members.select {|actor| actor.id}Change Party Members: Remove actorChange Party Members: Remove actor(repeat for all actors you don't want to be there)to record the list of actors in the correct order in variable 1 (use a different variable if you need to), then remove all the unwanted actors from the party.Then, to add them back in the same order again:
Change Party Members: Remove (remaining actor) - so nobody is in the party anymoreScript: $game_variables[1].each {|actor| $game_party.add_actor($game_actors[actor])}You MAY have to use $data_actors[actor] instead of $game_actors[actor]. You also may have to do $game_party.add_actor($game_actors[actor], false) if it insists on the second parameter being there.I KNEW I should have brought my tablet with me today ...
Wow thank you so much I'll try it out to see how it goes, otherwise this is exactly what I needed. 🙂
So you just add this as an event?
Two events. One when you want to remove everyone from the party, another when you want to add them back. Of course, if the battle is part of a cutscene and you want to isolate the one character, have the battle, then add everyone back, it will all be done in the same event.
Hey Shaz do you have the exact script for the Party script?
PM me as a reminder to look for it tonight for you.
I've made the record system like this:
For stores the ID: $game_variables[id] = $game_party.battle_members[x].id (x = Actor's position, 0 = 1st; 1 = 2nd, etc)
For adds the actors: $game_party.add_actor ($game_variables[id where the IDs stored])
But i don't know how to store the whole party's ID 🙁
You could do this:
$game_variables[1] = $game_party.all_members.collect {|actor| actor.id}That turns your variable into an array.Then to add them all back, it's a two-step process - remove them, then add them:
Script: $game_variables[1].each {|id| $game_party.remove_actor(id)$game_party.add_actor(id) }You remove them because you don't know who's still in the party or what their order is. Then you add them back to put them in the original order they were in.This way, any NEW party members that might have been added still remain (but they will be at the start of the lineup).
JAD94, if this works for you, let me know, and I won't worry about that script. If it doesn't work though, I'll still go ahead with the script.
Ok Shaz I'll try it out right now
Hey Shaz it works perfectly! ^_^
Thank you! 🙂
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.