The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: Mistrust on April 06, 2007, 10:36:17 PM

Title: I was wondering.
Post by: Mistrust on April 06, 2007, 10:36:17 PM
Is there a script to reduce the characters you take into battle like 4 to 3 and a arena script?
Title: Re: I was wondering.
Post by: Halestorm5 on April 06, 2007, 10:37:48 PM
How about that! I was about to request this!
Title: Re: I was wondering.
Post by: Shibuya on April 07, 2007, 03:08:35 AM
Quote from: Mistrust on April 06, 2007, 10:36:17 PM
Is there a script to reduce the characters you take into battle like 4 to 3 and a arena script?

What do you mean? Explain better.
Title: Re: I was wondering.
Post by: Mistrust on April 07, 2007, 06:46:11 AM
a script where your party is 3 members not 4 and a arena where you battle monster and get money and items.
Title: Re: I was wondering.
Post by: modern algebra on April 07, 2007, 07:24:39 AM
do you want the fourth char to still be in menu?
Title: Re: I was wondering.
Post by: Mistrust on April 07, 2007, 07:55:26 AM
no just three.
Title: Re: I was wondering.
Post by: Zan on April 09, 2007, 06:18:50 PM
Okay, in line 110 of the Game_Party script, I found this:

if @actors.size < 4 and not @actors.include?(actor)
You could try changing "4" to "3".  Looking at the script, it seems like that should work.
Or, if you want to be able to change it at will, change "4" to something like "$MAX_ACTORS_IN_PARTY_W" (just makin sure it's not already a variable.  That's the reason for the long name).  Then, in the first scene on your first map(literally the very first thing that happens), use a Call Script command and type this:
$MAX_ACTORS_IN_PARTY_W = 4
That should set the max party size to default.  Then, whenever you wanted to change it use a script call with the same syntax, but change the "4" to "3".  Also, you'll probably have to remove the last party member through an event, but once he's gone, he won't be able to come back until you change that global variable back to 4.
(Uh, none of this is actually tested, I'm just going based off what makes sense to me.  Hope it works.)
Title: Re: I was wondering.
Post by: Mistrust on April 09, 2007, 09:12:43 PM
thanks ill try that
Title: Re: I was wondering.
Post by: Shibuya on April 10, 2007, 11:05:32 AM
Quote from: Mistrust on April 07, 2007, 06:46:11 AM
a script where your party is 3 members not 4 and a arena where you battle monster and get money and items.

Arena as in like a FIGHTING game? Or you walk around fighting?
Title: Re: I was wondering.
Post by: AiR on April 10, 2007, 04:32:12 PM
If you're looking for a battle arena similar to the old Dragon Warrior games (Where the party, or single members, enter a fight and battle it out in normal mode fights) the easiest way to do it would be through events.  What you would do is create the map that will be the arena.  Then, create an NPC with a list of choices using the "Show Choices" command.  Under each option, create a seperate "start Battle" with the conditions for each fight.

For example, if it's a single person fight, you could use a another "show Choices" option to select a character.  Then, use the "change Party" event to alter the party's make up. (Don't forget to changet he party back after the fight!)

You could easily add more choices after a battle is won by creating conditional branches and/or new event pages that open up as each fight is won.  Prizes would simply be be added by using the "change Items/change money/etc" event options.

If you're looking for a Kingdom Hearts action style battle system however, I don't think there is one on this site.
Title: Re: I was wondering.
Post by: Shibuya on April 10, 2007, 11:24:55 PM
Quote from: AiR on April 10, 2007, 04:32:12 PM

If you're looking for a Kingdom Hearts action style battle system however, I don't think there is one on this site.

Yeah~ But I'm requesting one!
Title: Re: I was wondering.
Post by: Mistrust on April 11, 2007, 03:58:09 AM
yea thats what i was looking for i didnt think it could be done in events thats alot