Currently I am using this code from one of Yanfly's tips and tricks videos. (Joint Penalty)
What this does is make it so that everyone with the affected state disperses their damage they take between each other based on how many characters have that status.
What I want to do is add some extra effects to this, namely:
1. The damage taken by the characters who have the state take element rates into consideration. (for instance, a character with 200% physical element rate would take double damage from the damage-dispersed attack but everyone else with the state who have 100% physical rate would take normal damage from it.)
2. The damage taken by the characters who have the state take defense into consideration.
3. The characters sharing damage also get any states that were inflicted on the target from the attack.
4. The damage taken by the characters who have the state take Yanfly's absorption barriers into consideration.
I've spent a few hours trying to figure this out myself with no luck. I've found a workaround for the second effect but it is a hassle.
I hope this made sense and if you need any clarifications I'd be happy to elaborate. Thanks in advance.
Edit: added a 4th thing I'd like it to do.
What this does is make it so that everyone with the affected state disperses their damage they take between each other based on how many characters have that status.
What I want to do is add some extra effects to this, namely:
1. The damage taken by the characters who have the state take element rates into consideration. (for instance, a character with 200% physical element rate would take double damage from the damage-dispersed attack but everyone else with the state who have 100% physical rate would take normal damage from it.)
2. The damage taken by the characters who have the state take defense into consideration.
3. The characters sharing damage also get any states that were inflicted on the target from the attack.
4. The damage taken by the characters who have the state take Yanfly's absorption barriers into consideration.
I've spent a few hours trying to figure this out myself with no luck. I've found a workaround for the second effect but it is a hassle.
I hope this made sense and if you need any clarifications I'd be happy to elaborate. Thanks in advance.
Edit: added a 4th thing I'd like it to do.