The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: Rune on March 25, 2007, 02:57:26 PM

Title: Battle Layout [RESOLVED]
Post by: Rune on March 25, 2007, 02:57:26 PM
Is there a way to make your battlers appear like:
When you have one character it displays them in the middle in battle
When you have two it displays one to the left and one to the right but not far left or far right
When there's three it displays the main character in the middle and the other two on each side of them?

Thanks in advance  ;)

Also, how do you change your max party size because i'm thinking of adding in a party change script and I only want three at a time?

Thanks again ;)
Title: Re: Battle Layout
Post by: blazinhandle on March 25, 2007, 04:01:56 PM
don't say i never gave you anything ;) or helped....or something....
http://www.gamebaker.com/rmxp/scripts/center-player.htm
Title: Re: Battle Layout
Post by: Rune on March 25, 2007, 04:58:10 PM
Hey! That works perfect! Thanks! :D

*adds blazinhandle to credit list*... this is a very long list now

[EDIT]
What about changing max party size then?
Anyone?
Title: Re: Battle Layout [HALF - RESOLVED]
Post by: Irgna on March 25, 2007, 05:18:43 PM
Ok, go to Game_Party and scroll down till you see this line, it should be around line 110:

    if @actors.size < 4 and not @actors.include?(actor)

Change the "4" to whatever you want the max party size to be. That should fix your problem.
Title: Re: Battle Layout [HALF - RESOLVED]
Post by: Rune on March 25, 2007, 08:16:25 PM
 :( No... the fourth character still appears in the menu and in battle
Title: Re: Battle Layout [HALF - RESOLVED]
Post by: Irgna on March 25, 2007, 10:38:56 PM
Ok, make sure the script I told you to change says "3" instead of "4". The only party changing script that I know of that will work is Blizzard's. Check the script database for it. Let me check to see what line you have to change to keep the player from adding more than three.

EDIT: Ok, right after the instruction crap is this bit of script:

#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# START Conficuration
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

# how many party members do you use
MAX_PARTY = 4
# set to true to use facesets instead of spritesets
FACESETS = true

#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# END Conficuration
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::


Change "MAX_PARTY = 4" to "MAX_PARTY = 3"

That should solve all your problems.
Title: Re: Battle Layout [HALF - RESOLVED]
Post by: Rune on March 27, 2007, 05:05:44 PM
Hmm... that works but when I add a fourth character they still apppear in the menu and in battle... but I can work a way round that by not adding them... just making them available for the party

Thanks Irgna ;)
Title: Re: Battle Layout [HALF - RESOLVED]
Post by: Irgna on March 27, 2007, 05:08:07 PM
No problem, add [RESOLVED] to the topic name if you're satisfied.
Title: Re: Battle Layout [HALF - RESOLVED]
Post by: Rune on March 27, 2007, 05:54:18 PM
oops... almost forgot :D ...