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.
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
then just pick out the first four party members and give the bonus... 🙂
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
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...
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.