Determining who is in the active party

I want to give a bonus to those actors who are in the active party after a particular battle and not those in the reserve party.

All I can see is the second tab in the Conditionals branch, but that merely checks to see if someone is in the overall party, not the active one.

Is it possible to do this?

Thanks
you can refer to actors by party index, and in default the first four party members are in the battle.


If you don't have any script that changes that, you can give the bonus to the first four party members.


If you don't want to use script sequences for that, there is also a control variable:game data command that lets you get the actor ID of the actors in the first few slots.
There is a total party of 8, and I have no way of knowing if the player will be using the first 4 actors or any combination of the 8, which is why I need to be able to identify precisely who is in the active party.  Otherwise I shall have to give the bonus to everyone or no one.
There is a total party of 8, and I have no way of knowing if the player will be using the first 4 actors or any combination of the 8, which is why I need to be able to identify precisely who is in the active party.  Otherwise I shall have to give the bonus to everyone or no one.
I'm not talking about actor ID, I'm talking about Party index.
Unless you modified the battlescript or use a party script, the first four party indizes will be the active battlers - whatever actors are there.


If you use a script to change default behaviour, then we need to know what script that is, because otherwise no one can tell you how to modify that script...
also, try $game_party.battle_members (is this the right script?)... not sure if it works out of battle though... if it doesn't then you can always set it to a global variable so that you can fetch it afterwards
@Andar

Oh, I see the difference now.

I'm using Yanfly's Battle Engine http://yanflychannel.wordpress.com/rmvxa/battle-scripts/ace-battle-engine/ and Yanfly's Party System http://yanflychannel.wordpress.com/rmvxa/core-scripts/party-system/  The number in the party is the default 4.
then just pick out the first four party members and give the bonus... 🙂
If you mean what Andar mentioned earlier i.e. 

you can refer to actors by party index, and in default the first four party members are in the battle.
I don't know how to find the party index, or what to do once I have found it.  I am totally ignorant of things like that.  That is why I need help.
choose a variable to store the actor IDs for the four actors


then go to control variable:game data😛arty member # Actor ID


For the bonus, select the command what you want to give the actor, for example change EXP


Select actor by variable and the amount you want to give


repeat for the first four party members
I think I've got it now.  Thank you very much.

I shan't have time to test it for a while, so I'd like to leave the thread open for a bit in case I hit another snag, but I'm hoping it will go okay now.

EDIT

I can't get this to work.  Here is a screenie of my event page.

Actorbonus_zpsa60c7f17.png


If someone could point out what I've don't wrong I would be very grateful.
It doesn't work, but what DOES happen? Does ANYBODY get the HP topup? Who? Show us a screenshot of your party selection window.


Those scripts may NOT force the first 4 actors to be battlers. Please post links to the scripts so someone can check them out.
he has the scripts linked on his other post... anyway, as far as I know it still does use the first four party members... and yeah, tell us what happened when you used those events...
I can't get this to work.  Here is a screenie of my event page.


If someone could point out what I've don't wrong I would be very grateful.
Are your actors wounded at that moment?
Because that event only heals them, and you can't add more HP than MaxHP - to change MaxHP, you need different event commands...
he has the scripts linked on his other post...
Thanks ... it did occur to me at some point, but I was in a rush when I posted. Should have gone back to check.
btw, using that structure, you only need 1 variable... set it to party member 1, heal, set it to member 2, heal and so on...
No one gets any HP. 

I'm not trying to heal, I'm trying to increase maximum HP, which is why I used the 'Change HP', not 'Recover'.  If, as Andar says, I need a different event command, I can't see what other choices I have.
Change HP does only heal HP... There's no such thing as Recover HP, only Recover All...


To add more HP to the max, go to Change Parameters and choose MHP
Yes, you're changing the actors' HP, not their maximum HP. If their HP is already at maximum, you won't even see a difference.


What happens when you change the MHP parameter, when MHP is linked to levels? What happens to the extra amount when you level up - do you still get X more than the mhp for that level?
I do think so, since parameter change uses the add_param method which in turn modifies the param_plus array... actor parameters based on levels are saved in the param_base... and actual value is param_base + param_plus
I'm an idiot.  It's now official. 

I should - of course - have been using 'Change Parameters', not 'Change HP'.  Using that everyone in active party gets the 50HP and the reserve party gets nothing, so it works perfectly.

Apologies for taking up so much of people's time for such a silly mistake and thanks for all the help.

Original thread: https://forums.rpgmakerweb.com/threads/determining-who-is-in-the-active-party.21723/