I'm looking for a way to write out of all alive party members, who has the most/least hp/mp/tp and put it in a damage formula.
I had something similar made for me in order to get a passive state but copy pasting it in the formula doesn't work.
$gameParty.members().sort(function(b1,b2){
return (b1.tp > b2.tp) ? 1 : ( (b1.tp < b2.tp) ? -1 : 0 );
}).pop() === user
I had something similar made for me in order to get a passive state but copy pasting it in the formula doesn't work.
$gameParty.members().sort(function(b1,b2){
return (b1.tp > b2.tp) ? 1 : ( (b1.tp < b2.tp) ? -1 : 0 );
}).pop() === user