[XP] Easy Party Switcher

Started by Blizzard, January 09, 2008, 04:30:52 pm

Previous topic - Next topic

Blazblue Fan

I'm sorry if this is a dumb question, but what does it mean when you said that it will corrupt old saved games?

Blizzard

This script adds variables to data that is saved. When you load a save file, those variables don't exist and are set to nil since they were not initialized so people often get a "no method for nil class" error. It IS possible to set them to some value on loading, but I avoid that as it adds extra code and it's not really necessary. Giving up old save files is a small price to pay. Better that than increase lag on the map.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Sima Yi

May 26, 2010, 05:49:02 am #122 Last Edit: May 28, 2010, 10:36:44 am by Sima Yi
I got a very simple(Yes there's no deceration,I'm just lazy to do it)demo here:

http://www.mediafire.com/?jjzxnqyyygf

Hope you can help me solve the problem.Thanks. :D

[EDIT]
So...until now is anyone helping me?

Blizzard

Quote from: Sima Yi on May 21, 2010, 11:33:47 am
I went to the Scene_Load script and erased the code of the party members being refreshed


You deliberately deleted a line in a script and expect it to work. Laughable.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Sima Yi

May 30, 2010, 11:22:35 am #124 Last Edit: May 30, 2010, 11:33:16 am by Sima Yi
So how can I fix that?

I know that I'm stupid,so I need help.I barely even pass the exam to maintain in Express stream in Secondary 2.

Blizzard

Put the deleted line back in.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Sima Yi

May 31, 2010, 02:26:34 am #126 Last Edit: May 31, 2010, 02:35:46 am by Sima Yi
But I don't want the party members to restore their HP and SP.

Quote from: Sima Yi on May 21, 2010, 11:33:47 am

I went to the Scene_Load script and erased the code of the party members being refreshed,cause I want to make it more like the other RPGs.



Blizzard

What are you talking about?!
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Sima Yi

June 01, 2010, 05:03:03 am #128 Last Edit: June 01, 2010, 05:05:02 am by Sima Yi
Look at the Scene_Load script.Scroll it to the bottom and find this line.

$game_party.refresh


This is the line I deleted and it caused that duplicate character problem.

Quote from: Blizzard on May 31, 2010, 02:55:07 am
What are you talking about?!


You sounded irritated.Woh.





Blizzard

June 01, 2010, 05:13:01 am #129 Last Edit: June 01, 2010, 05:14:02 am by Blizzard

Quote from: Sima Yi on May 31, 2010, 02:26:34 am
But I don't want the party members to restore their HP and SP.


WHAT?!

Quote from: Sima Yi on May 21, 2010, 11:33:47 am
cause I want to make it more like the other RPGs.


Again: WHAT?!

I don't understand at all what your initial problem is. Yes, I am very irritated. Party members are not changed at all when you save the game. Other RPGs don't change data before it is saved either.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Sima Yi

After you save on a savedata,you load it.You will realise that your HP and SP will be fully restored.This will cause problem as people can just save and load again if their character's HP are low.

So,I found that what caused the Hp and SP to be fully recovered is the code at the bottom,which is this:

$game_party.refresh


Then I proceed to delete this line.

After I deleted it,yes,the characters' HP and SP did not restore,but when I look at the party changer,I got a duplicate character.

Did you try my demo?

Blizzard

I repeat:

Quote from: Blizzard on June 01, 2010, 05:13:01 am
Party members are not changed at all when you save the game.


It's possible that you are using a script that messes things up because except if you put copies of database actors into the party, it's not possible that their HP/SP are restored after loading the game.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Sima Yi

I found the problem.A script had messed up my whole game.

Thanks Blizz.I finally understood the problem.Sorry if I have caused any anger and irritance(wrong spelling?)over this.

Blizzard

Lol, in future make sure you don't delete stuff from the default scripts just like that. xD
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

RedViper1990

June 06, 2010, 07:16:54 am #134 Last Edit: June 06, 2010, 08:14:43 am by RedViper1990
EDIT:

I used this script:

$game_actors[ID].not_available = true/false


But every time i want to enable the character again, the game freezes.

do i have to use this?

$game_actors[ID].not_available = false

Blizzard

Quote from: Sase on March 22, 2008, 12:34:47 am
My game freezes if I set not_available to false after setting it to true, but can this be caused with Not_available and Disabled_for_party at the same time? Because I used disabled first and then changed it to not available but I haven't removed the old skript calls.


Quote from: Blizzard on March 25, 2008, 10:30:44 am
Use
bla.not_available =
true

instead of
bla.not_available = true

Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

RedViper1990

Quote from: Blizzard on March 25, 2008, 10:30:44 am
Use
bla.not_available =
true

instead of
bla.not_available = true




Thanks :-*

SilverShadow737

The party wipe doesn't work.
Even in the demo...
Also in the demo, if you try to continue with a party of 1 it says please make a party of 6.
Ginyu Force Rules

InvokingRainbows

October 25, 2010, 02:54:30 am #138 Last Edit: October 25, 2010, 03:04:22 am by InvokingRainbows
Hey! :)

Well I'm currently attempting to make a Sailor Moon RPG and I really want it to be perfect. I've searched around a lot for a reserve party system and so far yours is the best I've been able to find! However, I am having a few problems with it.

First I should probably say that I am using a side-view battle script, though so far it seems to be completely compatible with your script.

OK well I saw earlier that someone wanted to have the party selector option on the menu, and that you posted a demo with this option. Well my game is already in development so I just copied and pasted the script from the demo into my own and I can't get it to show up in the menu. Any ideas why?

Also, I noticed that ALL of my actors show up in the reserve party when I set it to turn on via an event. Is there a way to set it so that only members that have been added to the party show up in said reserve? I appreciate the help as I am new to scripting! :)

Oh yeah, one more thing. Originally it worked I believe as you intended, and then when I began to try to get it available in the party menu I now get an error that says something like "unable to locate "char_set_file_FACE" when I attempt to activate the scrtipt..

Holyrapid

I got a bug in the demo. After fighting the ghost after having an empty party (is it the fourth or fifth fight? I didn't keep count...) i get this error:
Script ' (*) Scene_PartySwitcher' line 988: NoMethodError occured. undefined method `compact! for nil: NilClass