I have an event that I would like to heal 50% of each party member's max HP and MP. Here is the script call I am using:
$gameParty.members().forEach(function(m){
m.gainHp(0.5*(m.mhp));
m.gainMp(0.5*(m.mmp));
}());
Unfortunately, I am getting the following error:
"Cannot read property "gainHP" of undefined"
How can I make this call work as intended
$gameParty.members().forEach(function(m){
m.gainHp(0.5*(m.mhp));
m.gainMp(0.5*(m.mmp));
}());
Unfortunately, I am getting the following error:
"Cannot read property "gainHP" of undefined"
How can I make this call work as intended