Lets say the Main character has 80 ATK, when the first party member joins (battle_party, nobody in the reserve causes this) they both lose 10 ATK and if a second joins, all three lose another 10 ATK and so on to the fourth. Is possible to create something for this?
Formula for lowering a stat each time a party member joins the active/battle party
RPG Maker VXAce Supportfirst, by default the reserve party only exists after all slots in the battleparty are filled.
second, do you want that to happen based only on the number of slots filled once, or should removing and adding a new member do the same to everyone again and again?
in all cases you can add calculations with control variable to the event that adds a member, and have that reduced by change parameter command.
however you should keep in mind that on higher-level monsters this reduction has a different effect than if the party is fighting lower strength monsters
second, do you want that to happen based only on the number of slots filled once, or should removing and adding a new member do the same to everyone again and again?
in all cases you can add calculations with control variable to the event that adds a member, and have that reduced by change parameter command.
however you should keep in mind that on higher-level monsters this reduction has a different effect than if the party is fighting lower strength monsters
It would do the same to everyone again and again.
Yeah it sounds goofy haha, I just wanna test it out!
I'm trying to build a system where theres disadvantages to having large amount of party members but without making it completely unusable
then go to each event that adds an actor and add a change parameter command for entire party ARK -10 after the add member
if needed use a cnditional branch to prevent this if the party size is greater than 4
if needed use a cnditional branch to prevent this if the party size is greater than 4
It works pretty good, Thank you!- However, when you change formation (remove a party member) the stats do not go back after losing -10, is there a way I can fix this? also how can I learn to create scripts? Is there a place you can link me to start learning? I can't seem to find anything online
It works in the demo I made it in.
How are you removing members?
What are other scripts you have?
The only party related script I have is the Yanfly Party System script, it's below the script you provided
(Didn't mean to make this) I'm using a event in the game that allows change formation access, I have it disabled in the menu.
That's fine. You limit access to yanfly party system script.
That would be why, yanfly's script is performing things that makes my script useless basically.
I have to adjust my script for compatibility with yanfly.
*updated above.
It works!- however I noticed two issues:
1. Recruiting members does decrease a selected stat, however once taking them off the team and putting them back in, it does not change the stat for either member (2.) then taking them off again will increase the stat up by 10 and this will repeat with stats continuing to grow, you can do with this with the main character and two party members as well, only removing one and increasing stats for the two, so its safe to assume all forms will cause this.
also its not a big deal but when trying a battle test in the database, I receive this:
Script 'Adjust Stats on Party Size' line 83: NoMethodError occured.
undefined method 'each' for nil:NilClass
1. fixed. 2. fixed
Original thread: https://forums.rpgmakerweb.com/threads/formula-for-lowering-a-stat-each-time-a-party-member-joins-the-active-battle-party.174066/