Damage formula using Yanfly's Lunatic

Hey everyone !

I would like to make a skill that increase its damages each time it's used. I'm not used at all with JS (i just look a little at some script's syntax to try to find why it isn't working) and after some research and few try, i can't make it works. 

Actually, i have something like this in the skill notetag :

<damage formula>

$gameVariable.setValue(3, $gameVariable.value(3) + 1);        <--- this is a count of the number of times i used the skill

value += $gameVariable.value(3);

</damage formula>

It should make the skill deal 0 damages the first time it is used, then 1, 2, 3...

But actually it always deals 0 damages.

Can someone point out where i made a mistake ?

Thanks !
you are missing an s, it is $gameVariables

Original thread: https://forums.rpgmakerweb.com/threads/damage-formula-using-yanflys-lunatic.53144/