Formula for healing not working because it's a decimal?

So I'm trying to use this formula to heal the player but it seems to only be healing every once in a while. Sometimes it'll heal correctly a few times in a row, sometimes it stops healing but still consumes the items for a few times in a row, sometimes it'll heal, stop, heal, stop. I'm not really sure what causes this besides it being a decimal? This is with the variable set to 1 ("First Aid Skill") and the player can increase it all the way to 100.

If anyone knows why it's doing this, I would really love to know. I don't have any scripts that affect healing btw.
1592868892347.png
Did you initially declare the variable somewhere in an event during the gameplay before you begin using for the skill calculation?

And I don't think it's a decimal issue as the game system will handle the decimal.
Did you initially declare the variable somewhere in an event during the gameplay before you begin using for the skill calculation?

Yes, I had to change it to atleast 1 via another event otherwise the item doesn't heal at all. Why would using an event to increase the variable cause it not to work?
Try:
(v[469] / 2) + 5
Try:
(v[469] / 2) + 5

Still not working like that :/

Here's a video of what's happening.
When you cast the spell and it lands on 0, fress F9 and see what the value of 469 is...
The formula should work, unless the variable is -9 or lower. So I thin the mistake is not inthr formula, but in setting the variable. I think the variable has a wrong value.
When you cast the spell and it lands on 0, fress F9 and see what the value of 469 is...
The formula should work, unless the variable is -9 or lower. So I thin the mistake is not inthr formula, but in setting the variable. I think the variable has a wrong value.

It's an item, and yeah the variable is set to 1 as you can see below. Also, I used the item 10 times and every time I checked the Variable and it's always stayed at 1.
Spoiler: Pic
1592870804586.png
Try using it once and then backing out of the menu, then go back in and try it only once again.
Try using it once and then backing out of the menu, then go back in and try it only once again.

Just tried like you said and it still keeps not healing sometimes. i don't suppose there's a script I can put in the formula of the item to round down decimals, could I?
The system handles decimal numbers so I don't know that it would cause any problems like this...using any plugins? Ones that might deal with variable, items, text codes or damage formulas?
The system handles decimal numbers so I don't know that it would cause any problems like this...using any plugins? Ones that might deal with variable, items, text codes or damage formulas?

I mean, of course. I'll take a look into them and see if any affect any of those and try it out one at a time...

Ugh, so it turns out it's an issue with Victors Hit Formula. So what's happening in MY game is a d20 is being rolled every time I use the item to see if it's used. I tried putting the following into the item notetag but it's still not working...

Spoiler: Formula/Script
<hit formula> result = 100 </hit formula>


Edit 2: Forgot the / in the formula. It's working now. Thank you everyone for helping me.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/formula-for-healing-not-working-because-its-a-decimal.123187/