I have a set of skills that heal a set percentage of hp and mp to the user. The script call I pieced together is
if ($gameSwitches.value(271)) {
var actor = $gameActors.actor(1);
actor.gainHp(0.25 * actor.mhp);
actor.gainMp(0.15 * actor.mmp);
}
and that works like a charm. Except now I end up with hp and mp that's displayed with decimal points, like if I have 10 hp and heal 25% I end up with 12.5 hp. I've never seen that before. Any way to get rid of that?
if ($gameSwitches.value(271)) {
var actor = $gameActors.actor(1);
actor.gainHp(0.25 * actor.mhp);
actor.gainMp(0.15 * actor.mmp);
}
and that works like a charm. Except now I end up with hp and mp that's displayed with decimal points, like if I have 10 hp and heal 25% I end up with 12.5 hp. I've never seen that before. Any way to get rid of that?