My game has only three characters, so specifically calling them out shouldn't be a problem and referencing actors works just perfect and so thank you because I have been pulling my hair out for three hours. Super solved, thank you.
For future Googlers, here's the problem and solution.
Problem: I wanted to have a character grow stronger the weaker her party members were, so with the advice from above, I tested the following Custom Damage Formulas:
The two options from above were:
Calling by Party Member:
(($gameParty.members()[0].mhp - $gameParty.members()[0].hp) + ($gameParty.members()[1].mhp - $gameParty.members()[1].hp) + ($gameParty.members()[2].mhp - $gameParty.members()[2].hp)) + 1
and Calling by Actor Number:
(($gameActors.actor(1).mhp - $gameActors.actor(1).hp) + ($gameActors.actor(2).mhp - $gameActors.actor(2).hp) + ($gameActors.actor(3).mhp - $gameActors.actor(3).hp)) + 1
(Replace the +1 with whatever math you want to perform on the results. I just put it in there to make sure the damage was actually happening when I was still troubleshooting the formula.)
Calling by Party Member expects that you will always have that number of party members (however many you call) and if you have less than that, the code breaks and returns zero. There's likely a method to do it via scripting, but I'm not the greatest at that yet so, I wanted to avoid.
Calling by Actor works if you A: Know specifically the actor you want to refer to and B: Control the HP of allies outside of your party. It works if they're not in your party as well. For my, my game will always have three characters, so I went the Actor method and will make a point of healing up any characters that leave the party so that their HP values have no effect on the end result.
Appreciate your help IMMENSELY,
@Wavelength. <3