Help - Search - Members - Calendar
Full Version: Party
RPG RPG Revolution Forums > Game Engines > RPG Maker XP Discussion
Vexus
Hi there me again.

I'm looking for a way (Script/Event) to make me make requirements on some characters that can join the group.

Say I got a tamer class and I need it so when on is in party his pet MUST also be in the party or else you can't bring him along (Obviously if you try to add the pet the same thing happens). I tried with events but there is no condition for party is full as I tried if x is in party add his pet too.

Then I thought instead of having him in your party they could maybe be called with a skill in battle but if you have 4 people in party you can't call them obviously so it's not such a great idea this way.

I don't know if there is a party script like this but if you know of one that would be great.

Thanks.
Nof56
I don't know of a script that'll do this but I do have two ideas of how this could work out.
1.Can't you just make it so the event puts both in the party at the same time, that way you don't need a script.
2. You could also just make them 1 Actor. This might not be what you want but it's an easy way out.

Vexus
If you add both of them at the same time but you already have 3 people in your party only the first one gets added.
Nof56
Well yeah, but can't you just like take one out when you go to put one in? Using choices or something, or you could use a conditional branch. The conditional branch option could be like
"When actor Tamer is in party, add Pet"
else
"Can't do it" or something along those lines.
Vexus
There is no condition for when the party is full that is the problem with doing it by event.

How can you know throughout the game when the player playing the game has 3 people in party and wants to add the character and his pet if there's no way to check it by condition?
Nof56
I dunno, I was just throwing in ideas from what you gave me, I didnt really have context of the certain setting so I just came up with Ideas. Maybe asking people who have done things like Party Changer scripts would be up for the request. What I've told you is the extent of my knowledge.
maximusmaxy
If you want to check for the size of the party, paste the following into the script condition:

CODE
$game_party.actors.size == X

X can be replaced by the size of the party you are checking for.

If you want, instead of '==' you could use '>' (greater than), '<' (less than), '>=' (greater than or equal to), '<=' (less than or equal to) or '!=' (not equal to)

Hope that helps
Vexus
Great! thanks will check it out shortly.

[Edit]

When I tried this "$game_party.actors.size > 2" it didn't work but I could still do it "$game_party.actors.size == 2" still works.

Thanks.
maximusmaxy
You may have been using the wrong operation for what you are trying to achieve. Try out the other symbols and see what works best for you.
Vexus
Maybe, still == works too tongue.gif
superafroboy
You already have your answer, but as an FYI you can also do this with a simple variable. On the Control Variables window, set the Operand to Other and choose Party Members.

Then you could use the variable in a conditional branch.
lobsteronmyhead
If you don't mind another suggestion, you might want to use a totally different approach. A bit of sprite-tweaking to produce a Tamer with his Pet in tow & some work on what sort of behaviour this doubled character might exhibit in battle would be a way to work in both the Tamer & his pet. Of course, it's not as elegant a solution as what you, perhaps, are after; just something off the wall, maybe, to think about. smile.gif

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.