Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Party, Rmxp
Vexus
post Jan 10 2012, 04:42 AM
Post #1


Level 19
Group Icon

Group: Revolutionary
Posts: 396
Type: Mapper
RM Skill: Intermediate




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.


__________________________
Current Project/s:
Go to the top of the page
 
+Quote Post
   
Nof56
post Jan 10 2012, 05:19 AM
Post #2


Level 4
Group Icon

Group: Member
Posts: 47
Type: Developer
RM Skill: Beginner




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.



__________________________
S.P.O.R.D.<- Military acronym meaning Steaming Pile of Rectal Discharge.

Go to the top of the page
 
+Quote Post
   
Vexus
post Jan 10 2012, 05:24 AM
Post #3


Level 19
Group Icon

Group: Revolutionary
Posts: 396
Type: Mapper
RM Skill: Intermediate




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.


__________________________
Current Project/s:
Go to the top of the page
 
+Quote Post
   
Nof56
post Jan 10 2012, 05:28 AM
Post #4


Level 4
Group Icon

Group: Member
Posts: 47
Type: Developer
RM Skill: Beginner




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.


__________________________
S.P.O.R.D.<- Military acronym meaning Steaming Pile of Rectal Discharge.

Go to the top of the page
 
+Quote Post
   
Vexus
post Jan 10 2012, 05:33 AM
Post #5


Level 19
Group Icon

Group: Revolutionary
Posts: 396
Type: Mapper
RM Skill: Intermediate




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?


__________________________
Current Project/s:
Go to the top of the page
 
+Quote Post
   
Nof56
post Jan 10 2012, 05:53 AM
Post #6


Level 4
Group Icon

Group: Member
Posts: 47
Type: Developer
RM Skill: Beginner




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.


__________________________
S.P.O.R.D.<- Military acronym meaning Steaming Pile of Rectal Discharge.

Go to the top of the page
 
+Quote Post
   
maximusmaxy
post Jan 10 2012, 08:45 AM
Post #7


PZE whore
Group Icon

Group: Revolutionary
Posts: 131
Type: Scripter
RM Skill: Skilled




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


__________________________
Check out the new PZE Forums! http://zeldaengine.net/index.php
Go to the top of the page
 
+Quote Post
   
Vexus
post Jan 10 2012, 09:02 AM
Post #8


Level 19
Group Icon

Group: Revolutionary
Posts: 396
Type: Mapper
RM Skill: Intermediate




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.

This post has been edited by Vexus: Jan 10 2012, 09:15 AM


__________________________
Current Project/s:
Go to the top of the page
 
+Quote Post
   
maximusmaxy
post Jan 10 2012, 09:30 AM
Post #9


PZE whore
Group Icon

Group: Revolutionary
Posts: 131
Type: Scripter
RM Skill: Skilled




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.


__________________________
Check out the new PZE Forums! http://zeldaengine.net/index.php
Go to the top of the page
 
+Quote Post
   
Vexus
post Jan 10 2012, 09:44 AM
Post #10


Level 19
Group Icon

Group: Revolutionary
Posts: 396
Type: Mapper
RM Skill: Intermediate




Maybe, still == works too tongue.gif


__________________________
Current Project/s:
Go to the top of the page
 
+Quote Post
   
superafroboy
post Jan 11 2012, 06:36 AM
Post #11


Level 3
Group Icon

Group: Member
Posts: 39
Type: None
RM Skill: Skilled




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.

This post has been edited by superafroboy: Jan 11 2012, 06:41 AM


__________________________
Go to the top of the page
 
+Quote Post
   
lobsteronmyhead
post Jan 15 2012, 04:16 PM
Post #12


Level 2
Group Icon

Group: Member
Posts: 22
Type: None
RM Skill: Undisclosed




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

Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 25th May 2013 - 02:59 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker