Jan 10 2012, 04:42 AM
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.
Jan 10 2012, 05:19 AM
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.
Jan 10 2012, 05:24 AM
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.
Jan 10 2012, 05:28 AM
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"
"Can't do it" or something along those lines.
Jan 10 2012, 05:33 AM
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?
Jan 10 2012, 05:53 AM
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.
Jan 10 2012, 08:45 AM
If you want to check for the size of the party, paste the following into the script condition:
$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
Jan 10 2012, 09:02 AM
Great! thanks will check it out shortly.
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.
Jan 10 2012, 09:30 AM
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.
Jan 10 2012, 09:44 AM
Maybe, still == works too
Jan 11 2012, 06:36 AM
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.
Jan 15 2012, 04:16 PM
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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here