Yanfly Party System: Change Max Battle Members in Battle

BentStick

Villager
Member
Joined
Oct 5, 2016
Messages
8
Reaction score
1
First Language
English
Primarily Uses
Hi folks,

I'm working on a skill that summons a meatshield character/punching bag (the game is based on argument styles and you call a literal Strawman).

It's a 1 character battle system in which the char has a party of 4 and a back-up party (like Pokemon) of some large number.  The 4 person party travels with the the player and can be swapped out in battle using Yanfly's Party Switch plugin.

Currently, my method is this: When you use the skill, the Strawman joins your party and the total number of battle members changes to 2.  Party Switch is disabled to prevent switching out the meatshield.  I also might allow party switch but lock the Strawman, I'm not sure yet as I can't get it to quite work.  When the Strawman is at 0% HP, the party should revert to 1 member and the party unlock.  If I can do the first part, this part should be easy.

Note that there is a plugin command for Setting the party limit in game, but not the battle party.

Here's what I'm having trouble with:
1. Accessing through script the part of Yanfly's code that allows the battle party to be restricted.
2. Ensuring this "character" joins the actual battle. IE: Is at #1 or #2 in the battle party without pushing out the other members.

Here's the script line I used to increase the battle party:

$gameParty.maxBattleMembers() = 2;

I get an invalid left-hand side error though, so I think I'm doing this wrong.

Also, any tips for part 2? Since part 1 isn't working, I haven't even started on Part 2.

Thanks!
 

Michael Caiola

The Stone Bull
Veteran
Joined
Sep 14, 2016
Messages
392
Reaction score
76
First Language
English
Primarily Uses
I had a similar issue. See here.


I was trying to use the the Party Max plugin command, which does also increase the battle party limit. According to the members that were helping me, there was some sort of conflict with Yanfly as the plugin command was being used after all the things that happen under the hood at the start of the battle. I'm not javascript savvy so I didn't delve into it any further.


As for actually adding the Strawman, if I understand you correctly, you have to create an actor that will serve as the Strawman. If you want his stats and such to be dependent on any current conditions, you have to use a special class and variables for that.


I can show you screenshots of my setup if you want. I don't know how experienced you are with the program.


Also, "the game is based on argument styles and you call a literal Strawman," I must play this game.


EDIT: You're going to want to put this in your OP: http://yanfly.moe/2015/11/20/yep-29-party-system/
 
Last edited by a moderator:

BentStick

Villager
Member
Joined
Oct 5, 2016
Messages
8
Reaction score
1
First Language
English
Primarily Uses
Yes it sounds like the eventing is similar to what I'm doing - but I have some odd caveats that require a slightly different approach.  Thanks for the links and advice - I will keep working on it.

Thanks!
 
Last edited by a moderator:

Michael Caiola

The Stone Bull
Veteran
Joined
Sep 14, 2016
Messages
392
Reaction score
76
First Language
English
Primarily Uses
No problem. Hope it works out.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,990
Members
137,562
Latest member
tamedeathman
Top