- Joined
- Mar 17, 2019
- Messages
- 12
- Reaction score
- 0
- First Language
- English
- Primarily Uses
- RMMV
I've created a state (active at level 35) that boosts the characters HP based on their Def and Mdf. Currently it does increase the HP by the expected amount, but there are two issues that I don't understand.
1. The character's current HP doesn't completely fill the new max hp. Without the passive state, the character has 1280/1280 hp. With the state, the character has 1404/1459 hp.
2. Whenever I uses a potion on the character (+250 HP) it increases the character's max hp. The first potion makes the character's HP 1473/1473 on use. Then, once i return to the main menu, the characters hp is listed as 1473/1487.
Any idea why this may be happening? My state notetag code is written below.
<Custom Passive Condition>
if (user.level >= 35) {
condition = true;
user.addParam(0,.01*user.def + .01*user.mdf);
} else {
condition = false;
}
</Custom Passive Condition>
1. The character's current HP doesn't completely fill the new max hp. Without the passive state, the character has 1280/1280 hp. With the state, the character has 1404/1459 hp.
2. Whenever I uses a potion on the character (+250 HP) it increases the character's max hp. The first potion makes the character's HP 1473/1473 on use. Then, once i return to the main menu, the characters hp is listed as 1473/1487.
Any idea why this may be happening? My state notetag code is written below.
<Custom Passive Condition>
if (user.level >= 35) {
condition = true;
user.addParam(0,.01*user.def + .01*user.mdf);
} else {
condition = false;
}
</Custom Passive Condition>