GainMP damage formula question

Hello,


So I was going to make a skill that can restore caster MP on use. But it does not work..


I already turn off all plugins, but still got the same result. I have tried to change the value to (200) too.


What is wrong with this formula?


If anyone know, please help. Thank you

Spoiler
1484996802855.jpg
Try


a.mp = a.mp + 20; a.mat * 3 - b.mdf * 2


Does that work?


Also im unsure as to why it doesnt work as is. Not at my computer at the moment sorry.
I think the P in gainMp(20) should not be capitalized.
@Sekunri That does not work either. It looks like it not connected to the value inside the parameter.


@LadyBaskerville Omg It works like a charm! So it was a Uppercase mistake after all.. Really need to be extra carefully about this formula.



Thank you very much both of you!
I wasnt sure about that but seems it was the case.


Javascript is case sensitive so definitely double check that in the future

Original thread: https://forums.rpgmakerweb.com/threads/gainmp-damage-formula-question.73930/