Main Menu
  • Welcome to The RPG Maker Resource Kit.

Party Changer

Started by Leon_Westbrooke, August 24, 2007, 05:36:35 PM

0 Members and 1 Guest are viewing this topic.

BK.

I don't get how I gonna lock actor in party, when I use $game_party.locked.push(actor_id) then it is possebole if the actor I locked is in party then I can change it to extra members and if it is there I can't move it at all.
So my question is: How do I lock an actor in party?

Leon_Westbrooke

Ok, a glitch was fixed when it comes to locking a person in-party.  As for your question, BK, you use:


$game_party.add_actor_to_party(2)
$game_party.locked.push(2)

in a Script call.

BK.

#27
thx  ;D
ps. can you make the script so that it allows faces?

patmi

I hvave Blizzards Easy Party Changer, but I cant figure it out...I want it to work from the Main Menu in Party Section, like in Aveyond 2. Could this be done somehow? I used the Call Script Command in his instructions in an event, the problem is the player has to step on the event toactivate it and it doesnt appear in the Main Menu. Can someone please help me?

THANX

pyro

Hey guys and gals , Im very much lovin the look of this party changer but i have one problem..Im a complete noob. This is my first time so i have no idea how to get it to worl..If you could give me a step by step guide of how to get this working it would be a great help.

ahref

Quote
#===================================
#  Party Changing System by Leon_Westbrooke
#   -v 1.2
#----------------------------------------------------------------------
#  Instructions:  Place above main, but below all other default scripts.
#
#  Features:
#    -Allows the player to make a party from the minimum to maximum size.
#    -Extra members are limitless.
#    -You can remove a person from the party and put it into reserve using:
#       $game_party.remove_actor_to_party(actor_id)
#    -You can remove a person from the reserve if they exist, and them into
#     the party:
#       $game_party.add_actor_to_party(actor_id)
#    -You can lock a character in reserve or active party by using:
#       $game_party.locked.push(actor_id)
#    -You can set the maximum and minimum number of the party in-game using:
#       $game_party.min_size = x
#       $game_party.max_size = x
#       (NOTE: Do NOT make the max size lower than the minimum size.)
#    -Allows you to use the default add/remove actors command.
#       (NOTE: If you remove an actor with this method, he is gone from both
#              the party and the reserve members.)
#
#  Credits:
#    This setup uses SephirothSpawn's coding to simplify the cursor's position.
#
#
#  Command Quick-list:
#    $game_party.remove_actor_from_party(actor_id)
#      -Removes an actor from the party, and puts them in reserve.
#    $game_party.add_actor_to_party(actor_id)
#      -Replaces the last actor in the party with the actor in reserve.
#    $game_party.locked.push(actor_id)
#      -Locks the actor in place.
#    $game_party.min_size = x
#    $game_party.max_size = x
#      -Sets the minimum and maximum party size.
#
#
#  Notes:
#    This script rewrites these methods from Game_Party:
#      add_actor
#      remove_actor
#===================================


these are the instructions and these bits:

QuoteCommand Quick-list:
#    $game_party.remove_actor_from_party(actor_id)
#      -Removes an actor from the party, and puts them in reserve.
#    $game_party.add_actor_to_party(actor_id)
#      -Replaces the last actor in the party with the actor in reserve.
#    $game_party.locked.push(actor_id)
#      -Locks the actor in place.
#    $game_party.min_size = x
#    $game_party.max_size = x
#      -Sets the minimum and maximum party size.

are how you edit the script ingame to make it do what you want. call any of these with a "call script" event command. where it says "actor id" insert the number acociated with that actor. this starts at 0 and then incremenets by 1. x is where you put a number could be anything :D

pyro

Hey guys and gals again, I sorry but in really confused..Ive made done the script but im not sure if ive done it right, When i try to start the game it says this

Script 'party changer' line 1:nameerror occured
undefined local variable or  method 'actor_id' for nil:nilclass

So im completly up the duff...If anyone can give me a step by step guide..literally baby steps at a time i woule greatly appreciate it.

;D

ahref

can you give me the line number for that and also anything you entered in a call script event command

Leon_Westbrooke

If you are loading an old save file, it will mess with it as well.

pyro

#34
What do you mean by line number lol, see im a noob, basicly ive messedaround with makin a few characters and items but thats it so everything is standard still.

If you can give me steps as to how you would do it and get it workin that would be great.


ahref

#35
line numbers appear in the error dialog. however i noticed you included it :(. these tell me/leon exactly where to check to see where its going wrong.

here put the three following commands into 3 seperate "callscript" event options one after the other. Replace x with a number the first one is the MININIMUM size eg. 1 the second one is the max size eg.4 the final line calls the party changer

$game_party.min_size = x
$game_party.max_size = x
$scene = Scene_Party_Change.new


azureXtwilight

#36
Umm...
I want to know how I can customize this....
So, I managed to make it 5 people in one battle, but it can't scroll down, how can I make it scroll down?
The 5th member can't be seen...
Okay, here I come!!!

deathzero021

#37
uhhh ummm i got a sorta unrelated issue. well, after adding this script... i got an error in my "Main"... says Line 11 has an incorrect number of arguments... jesus, i never even touched that damn line =\   can anyone help?

double post: gah looks like this page is dead =(

triple post: meh couldnt fix it so i replaced my entire srcipt with the original one that comes with rpg maker xp lol to anyone else with that problem, good luck xP

NAMedit: compressed stupid triple post into one post.

tSwitch

dude, wow, holy shit, you waited all of 2 minutes for a reply and decided it was dead.
seriously.

don't double post, much less triple post.

and give it time for someone to respond, everyone isn't online 24/7 and just waiting for someone to help or fix a problem for.


FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

Zylos

One: Never EVER do something as stupid as a triple post like that. It just pisses us off.

Two: I tested it out by taking the script and adding it where I'm supposed to, and it works just fine. That means you just did something stupid by either changing something, not copying all of the script, or by putting it in the wrong place.




basicna

I'm like it. very nice. lol

chronus866

alright, the script seems to be working beautifully. However, how does one unlock a
character once they've been locked? Is there a way to do that with this script, because I feel like I'm missing something.

modern algebra

Try:

$game_party.locked.delete (actor_id)

chronus866

yup that worked. Thanks for the hand.

SeMcDun

Hey, cool script.

Is there a way to add a player straight into the reserve..?

Foxdie9

Hi! i'm new to this, and my problem is how to add actors in the reserves. I manage to open the party change list but there are no other characters which i can change from my main party.. thnx 4 d help...

InvokingRainbows

Hello! :) First of all, GREAT script, I love it.

Second I just have one question. I know this may be stupid but I really don't understand...

I'm attempting to make certain characters unavailable as they will be unlocked later on in the story, and I know I have to insert the actor ID somewhere...What exactly IS the actor ID? Is it just the actor's name? Because I tried that in all the following formats and I got errors.

Actor Name
ActorName
Actor_Name

Please help!