Type Error

Every time I use a Heal skill, this Type Error comes up.

Failed to execute 'createLinearGradient' on 'CanvasRenderingContext2D': float parameter 3 is not finite.

I have no plugins, how do I fix this?
Along with that, the skill does not have any animation, and I can't even use it from the menu.
Please post a screenshot of the skill, we can't really help without.

That said, a typeerror can only happen if something has mixed up data in the javascript - did you ever use a plugin before?
If you remove a plugin, you also need to start a new game after that removal and cannot continue to use old savefiles or such errors can occur.

If it is neither something in the plugins nor in the skill, then your project files are damaged - does the same happen in a new project?
Which core version does your project have, and which version is your editor updated to?
This is the skill.
I also realized, the same thing happens when I use poison, which is set to HP Drain, but when I change it to HP Damage, it works. So I think it has something to do with the HP Drain and HP Recover.
Have you installed any plugins or made any changes to the core code?
Have you installed any plugins or made any changes to the core code?
No, I haven't added any plugins.
Can you show a screenshot of the actual error including the stacktrace if there is one?
Here are the plugins
Here
Here is the error
Sorry, I meant from the console. Press F8 when the error occurs and take a screenshot of the console window for me, please.
Here it is.
Does it still cause an error if you put something in the formula box for the heal skill?
Does it still cause an error if you put something in the formula box for the heal skill?
It works. But how do I add 10% health recover in the formula box?
b.mhp * 10 / 100 (or b.mhp * 0.1 if you want an even simpler calculation)
b.mhp * 10 / 100 (or b.mhp * 0.1 if you want an even simpler calculation)
And how do I use it for Poison?
Same thing, multiply by the percentage you want then divide by 100. You'd just set it to HP damage/drain rather than recover.
Same thing, multiply by the percentage you want then divide by 100. You'd just set it to HP damage/drain rather than recover.
And what if I want it to last for multiple turns?
Then have it inflict a poison state and make the HP damage one of its traits. The only thing is you can't do HP absorption DoT effects without plugins.
Then have it inflict a poison state and make the HP damage one of its traits. The only thing is you can't do HP absorption DoT effects without plugins.
Thanks! Everything works now!

Original thread: https://forums.rpgmakerweb.com/threads/type-error.75738/