[VX] Party Changer

Wahey same question as me pretty much!

^5
@teva, Ayvuir
Removing an actor from the party won't remove it from the reserve. However, adding an actor to the party will automatically add him to the reserve, especially if the party is full. (In that case, it will add the actor to the reserve but not to the party).

If you want to manually add/remove an actor from the reserve, use these lines of code:
  1.  
  2. $game_party.add_reserve_actor(actor_id)
  3. $game_party.remove_reserve_actor(actor_id)
  4.  
Expand to see the code.


That's all!
-Dargor
Do we just add the specific line of code into the script then?? Through an event??

Sorry if thats a pretty noobish question, i'm not that great with scripting yet.
Simply use the desired line of code in a call script event command.
😢 I'm using everything you say to use but when I go into a battle, I get an error message on line 1252 😢

Image
Are you using a script that modifies the battle system? Or more precisely that modifies the update_basic method?
Ok cool i got it to work, thanks a lot ^_^
Dargor wrote:
Are you using a script that modifies the battle system? Or more precisely that modifies the update_basic method?



I am not using any script that changes the battle system.
Godamit...I was hoping to use this script but it's filled with too many errors. I can't even lock my main actor in the party which is mainly what I wanted to do. There are also some other issues with it...the error I'm getting is something like

"undefined local variable or method 'actor1'_id' for game interpreter"

something like that anyways...
I did everything right, and used all the instructions...but it's got
to many bugs. Even when I used the updated party changer
script 3.7, i couldn't even open up my game...
Well, you probably did something wrong. Yes, there are still a couple of bugs to fix but the overall script works fine. Just let me a couple of days and everything should be fixed.

I will also post a demo.
Yo Dargo...you work fast my friend. I'll be willing to test the fixed or updated version. Good job man.
Ok, so i don't know if this has been mentioned before, but it seems to be quite a big, and annoying glitch, and i'm thinking its this script.

Basically if my main character, who's leading on the world map, dies, but i win the battle. When it comes back to the field map... i become unable to move the character, or open up the menu, or basically just do anything...

Any way around this?
Didn't know about that bug...Looks like another 1's come up again. Hang on a minute...are you able to lock your main actor because I can't lock him from being moved out of party or switched. Just gives me errors before I can do that. Also...is your main character actor 1?
Thanks for the report, I'll fix that in the next release ;)
Ok, i found out what was wrong. Basically i twiddled the script so that you couldnt shift your main leader on the field (Page Up/Page Down). So when my main character died, it didnt automatically shift to the next available alive person, when i got back on to the field, which is why i couldn't do anything.

So i just had to put that part to "true" again.
I'll add a state check for that. If the lead character is dead it'll for the next alive character.
I am having a problem when after I select "Quit" from my menu screen. After I select it, it gives me the option to quit and all that stuff just fine, it's just that if I cancel from that menu and I go back to my main menu, my cursor sits off two blank spaces below my "Quit" command and I can't move my cursor up or down any more.

Here are a few reference pics...

This is my menu...
Content Hidden Show
Image


This is when I select "Quit"...
Content Hidden Show
Image


And here is when I return from the quit menu...
Content Hidden Show
Image


I am not quite sure what is causing this problem.

I have also come across a another little glitch while actually getting the reference pics above. I went to press my "Print Screen" button to take a screen shot, but instead I accidentally hit the F-12 button which is the play testings reset button. After it reset, it displayed my title screen for a split second then it displayed this error message...

Content Hidden Show
Image


It doesn't have any real effect on anyone play testing, unless they rely on using the F-12 button a lot.



The content in this spoiler is an older problem I experienced, but I have resolved it.
Content Hidden Show
I have come across an interesting glitch. I am not sure if it is being cause by this script or what, but it is a tad bit annoying to me.

The problem I am encountering is that when ever I choose to use an item from my Menu on the map and the item has a scope of All Allies, it only shows one member of my team, the last one to be exact. It happens anytime I have more than one member in my active party.

For example, my main character is named Titan. When he is the only member in my team, I can go into my menu from the map and select my item that would fully heal all of the members in my party. And his picture shows up just fine. No problems there because that is expected.

Now lets say I add another character named Mist. Now my current team is Titan and Mist. I now go into the menu, open my items and select the item that heals my entire party again. This time though, instead of both of Titan's and Mist's pictures and info which should be showing up, only Mist's picture and info are showing up.

Here are a few reference pics...

Here is a pic of my party...
Image

And here is when I select the item and it pulls up a menu that should show all of my party...
Image

Is there something in these scripts I should change to get all of my party to show up in the menu in the second pic?

EDIT: Never mind about the problem with the first one, I think it was because of the custom menu I had, because now that I changed it to a different menu style all together, I no longer have the problem.



Aside from these little glitches, I absolutely love your "Party" scripts Dargor. This is exactly what I would have been looking for after I finish my first project here and start my second one with a group of my friends. I am glad I stumbled upon it now and be able to use it for my current project. Keep up the good work my friend.
Yo but your using a different menu system. I don't think that occurs if the menu isn't changed...
@obsorber
Unless the custom menu alters important parts of the original menu, it shouldn't matter.

@Titant Strife
About your first error, my guess is that the custom title commands returns a wrong value when selecting Cancel. I'll fix that.

The second bug is a well known bug in RGSS in general. The famous F12 bug. I'll prevent the script from popping up this error.

Now about your last bug, it's probably caused by my Large Party script. When I did this script, I haven't testet the item target window. I'll fix this script too.

Thanks for the reports!
-Dargor
I'll add a state check for that. If the lead character is dead it'll for the next alive character.

Have you now done this? Is it available on the first post?
doubt avyuir, dargors a busy man, plus he's making so many other scripts which is good...
OK you haven't yet, i just tried it lol. Nvm.
Busy indeed.
No I haven't but it's a really easy thing to do. I'll edit the script in my lunch our.
Dargor wrote:
Busy indeed.
No I haven't but it's a really easy thing to do. I'll edit the script in my lunch our.


That's cool man, don't rush yourself. I mean, I really appreciate you providing this script for everyone. It is my favorite one that I am using, hands down.
Thanks :)

I have updated the script to version 3.9.
http://www.freewebs.com/rmxp-ff/Dargor_ ... er_3.9.txt

It fixes the bug of having a dead lead character.

Take care!
-Dargor
It still aint fixed...I still get the same error with this updated version that has to with the new custom commands script. If I set the lead character to be forced in the party, that aint even possible cuz i get an error and thats what I mainly want to do...now I'm not saying the dead character bug isnt fixed but the bug i stated isnt... :pissed:

I dont need to tell you what error looks like. Alll you need to do is make a new event with the party changer system putting force actor 1 there and add another character before hand. Then the error takes place...

Otherwise it's me who is making the mistakes $game_system.forced_party = [actor1_id]
I've also tryed making a forced or locked actor in party like this too...
$game_system.forced_party = [Iain_id] (who is actor 1 too...)

:pissed: why won't it work...if I can't get this party script to work soon...I'm just gonna forget about it as I am very impatient and don't have long to make my game. Plus I will just stick to the limit break script you have dargor, which I also want.


Yes Dargor...I call Scene_PartyChanger.new before I use those scripts.
Yes I know, i haven't fixed that.
Dargor wrote:
It fixes the bug of having a dead lead character.


I've only fixed the lead actor not being switched on the map if he's dead. Other updates are comming soon. Also, I've tried what you're trying to do with Party Changer 3.9 and Custom Commands 1.15 and it works just fine.

obsorber wrote:
Godamit...I was hoping to use this script but it's filled with too
"undefined local variable or method 'actor1'_id' for game interpreter"


Looks like you're doing something wrong in your script call event. What's the exact script line you're calling?
Otherwise it's me who is making the mistakes $game_system.forced_party = [actor1_id]
I've also tryed making a forced or locked actor in party like this too...
$game_system.forced_party = [Iain_id] (who is actor 1 too...)

why won't it work...if I can't get this party script to work soon...I'm just gonna forget about it as I am very impatient and don't have long to make my game. Plus I will just stick to the limit break script you have dargor, which I also want.


Yes Dargor...I call Scene_PartyChanger.new before I use those scripts.


Last edited by obsorber on Tue Mar 24, 2009 3:08 pm, edited 2 times in total.
obsorber wrote:
Otherwise it's me who is making the mistakes $game_system.forced_party = [actor1_id]
I've also tryed making a forced or locked actor in party like this too...
$game_system.forced_party = [Iain_id] (who is actor 1 too...)

why won't it work...if I can't get this party script to work soon...I'm just gonna forget about it as I am very impatient and don't have long to make my game. Plus I will just stick to the limit break script you have dargor, which I also want.


Yes Dargor...I call Scene_PartyChanger.new before I use those scripts.


Last edited by obsorber on Tue Mar 24, 2009 3:08 pm, edited 2 times in total.


It looks like your putting the wrong thing in the brackets.

the line you have is:
$game-system.forced_party = [Iain_id]

Should be:
$game-system.forced_party = [1]

Where the script is calling for "actor_id" it is asking for the actor number, not the name of the Actor.

Hope this helps because that is the way I understood your problem.
exactly, that's the problem. The script needs a number, or a variable holding a number. So, as Titant Strif said, it would be either:

$game_system.forced_party = [1]

or

actor_id = 1
$game_system.forced_party = [actor_id]

Also, a bit offtopic but, why would you be in a rush? Unless your life depends on it O_o.

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=42719