Is there any easy way to get the correct party size (including reserve members) during battle events?
With 5 or 6 party members, MV returns the correct number outside battles, but only 4 during battle events. This is using the editor "Control Variables" to set a variable to give the number of party members via "Game Data", "Other" and "Party Members".
I am trying to do a "surrender" event that includes "abort battle", and I want some but not all the potential party members to suffer negative consequences. I want the reserve party members (those after the first 4) to share the grief. Because I don't know how many party members there will be during play, and who they will be, I want to check each party member and act upon the result of the check, so I use a loop which breaks when the look variable gets larger than the party size.
"$gameParty.members().length" seems to work in the same way as the editor, giving 4 in battle, the correct 5 or 6 outside battle.
The best that I have come up with is setting a flag in the battle event, aborting the battle and having an autorun common event triggered by the flag to handle surrender aftermath. This works, but it looks a little strange. Has anyone got any better ideas?
With 5 or 6 party members, MV returns the correct number outside battles, but only 4 during battle events. This is using the editor "Control Variables" to set a variable to give the number of party members via "Game Data", "Other" and "Party Members".
I am trying to do a "surrender" event that includes "abort battle", and I want some but not all the potential party members to suffer negative consequences. I want the reserve party members (those after the first 4) to share the grief. Because I don't know how many party members there will be during play, and who they will be, I want to check each party member and act upon the result of the check, so I use a loop which breaks when the look variable gets larger than the party size.
"$gameParty.members().length" seems to work in the same way as the editor, giving 4 in battle, the correct 5 or 6 outside battle.
The version of MV is 1.6.1., running on a Ubuntu laptop
Plugins used are:
YEP_CoreEngine
YEP_MessageCore
YEP_BaseTroopEvents
GALV_VisibilityRange
HIME_LargeChoice
HIME_HiddenChoiceConditions
GenderFunctions (Trihan's conversion of an Ace script from Mr. Bubbles)
RegionEncounters (again, by Trihan)
Plugins used are:
YEP_CoreEngine
YEP_MessageCore
YEP_BaseTroopEvents
GALV_VisibilityRange
HIME_LargeChoice
HIME_HiddenChoiceConditions
GenderFunctions (Trihan's conversion of an Ace script from Mr. Bubbles)
RegionEncounters (again, by Trihan)
The best that I have come up with is setting a flag in the battle event, aborting the battle and having an autorun common event triggered by the flag to handle surrender aftermath. This works, but it looks a little strange. Has anyone got any better ideas?